question

gokulselvan avatar image
gokulselvan asked David Marginian Deactivated edited

Error While Applying Modifications When Creating Atomic Orders.

Hii.



I've got the "The operation could not be completed due to a data validation error." While creating a atomic order with modifications.

here's a data:

https://sandbox.dev.clover.com/v3/merchants/CD1YZVEJZM8K1/atomic_order/orders

{

"orderCart": {

"orderType": {

"id": "FWN9MXFQGK1P6"

},

"lineItems": [

{

"item": {

"id": "Y75A0GMGWNJXW"

},

"modifications": [

{

"modifier": {

"id": "DKG9B6861DFA4"

}

}

]

}

]

}

}



How to Create orders with modifications?

REST APIclover developer community
1 comment
10 |2000

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

gokulselvan avatar image gokulselvan commented ·
Please help me here.
0 Likes 0 ·

1 Answer

·
David Marginian avatar image
David Marginian Deactivated answered David Marginian Deactivated edited

Please see our documentation here - https://docs.clover.com/docs/working-with-orders. Note the section on working with modifiers.

Requirements for using modifiers

  • If you do not pass a modifier.id, other modifier fields are ignored
  • You must pass both name and amount values
  • The name and the amount passed override the defaults set on the modification that are set up in the merchant's inventory
10 |2000

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