question

mtt avatar image
mtt asked ·

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 characters needed characters left characters exceeded

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 ·

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

2 comments Share
10 |2000 characters needed characters left characters exceeded

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

Thanks Jeff.

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

0 Likes 0 · ·

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