question

habib avatar image
habib asked ·

add customer in atomic order

how to add customer detail when creating atomic order

request

{

"orderCart" : {

"lineItems" : [

{

"item" : {

"id" : "MFVDRKSSR0PTC"

} ,

"modifications" : [

{

"modifier" : {

"id" : "JPYNDFG0QXPY4"

},

"amount": "400",

"name": "{modifier name 1}"

},

{

"modifier" :

{

"id" : "Y6V9D1M23AKHY"

},

"amount": "600",

"name": "modifier name 2"

}

]

},

{

"item" : {

"id" : "MFVDRKSSR0PTC"

} ,

"modifications" : [

{

"modifier" : {

"id" : "JPYNDFG0QXPY4"

},

"amount": "400",

"name": "{modifier name 1}"

},

{

"modifier" :

{

"id" : "Y6V9D1M23AKHY"

},

"amount": "600",

"name": "modifier name 2"

}

]

}

],

{

"customers":[{"id":"X353M5W6HJCJJ"}]

}

}

}

Orders
2 comments
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.

did this ever get answered? would be curious as well...

0 Likes 0 ·

There isn't a way to do it via the atomic endpoint currently. Use the v3/orders endpoint.

0 Likes 0 ·

1 Answer

· Write an Answer
David Marginian avatar image
David Marginian answered ·

If there is a way to add a customer it isn't documented. I will ask about it but in the meantime you should use the normal update orders and endpoint.

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.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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

Welcome to the
Clover Developer Community