question

mtt avatar image
mtt asked mtt commented

REST API - Unable to associate customer on creation

Unable to associate customer on create. It seems that I can only associate a customer on update.

POST /v3/merchants/MERCHANT_ID/orders

{
   "note":"test note",
   "customers":[
      {
         "id":"CUSTOMER_ID"
      }
   ],
   "total":10000,
   "manualTransaction":true
}

GET /v3/merchants/PBHPQQ7J70VNM/orders/CHQYJM6154KGP?expand=customers

Will return the order without the "customers" field.

Is it only possible to add customers after creation? What's the reason for this?

Are the fields that are allowed on creation listed anywhere in the documentation?

Orders
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Jeffrey Blattman avatar image
Jeffrey Blattman answered mtt commented

No you cannot add the custom during creation. I don't know if there's a reason.

2 comments
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

mtt avatar image mtt commented ·

Thanks Jeff.

What about: Are the fields that are allowed on creation listed anywhere in the documentation?

0 Likes 0 ·
Jeffrey Blattman avatar image Jeffrey Blattman ♦♦ commented ·

It is documented in our Android SDK (but the change w/ that documentation isn't released yet ...). I'll file an internal issue to have the information added to the REST API.

0 Likes 0 ·

Welcome to the
Clover Developer Community