question

habib avatar image
habib asked David Marginian Deactivated commented

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

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

Chris H avatar image Chris H commented ·

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

0 Likes 0 ·
David Marginian avatar image David Marginian ♦♦ Chris H commented ·

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

0 Likes 0 ·

1 Answer

·
David Marginian avatar image
David Marginian Deactivated answered David Marginian Deactivated commented

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.

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.

jmalone30 avatar image jmalone30 commented ·
Have you found an answer to this? I would like to be able to add a customer to an atomic order. I do see that a customer can be added to a custom order. But I also see that according to the documentation, a customer is returned in the atomic order object.
0 Likes 0 ·
David Marginian avatar image David Marginian ♦♦ jmalone30 commented ·
No, unfortunately for now you will need to make another call to add the customer.
0 Likes 0 ·

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