When creating orders with the atomic order endpoints, we are not seeing alternate names appearing for modifications.
For example, adding a modification using the non-atomic APIs:
POST https://apisandbox.dev.clover.com/v3/merchants/MMMMM/orders/OOOO/line_items/31TSGCTVNDJHT/modifications {"amount":50,"name":"Greek Lime","modifier":{"id":"N8B1KCXPF13CC"}}
Results in an order with the modification having an alternate name:
"modifications": { "elements": [ { "id": "D3ZY5SW4QWFK0", "lineItemRef": { "id": "31TSGCTVNDJHT" }, "name": "Greek Lime", "alternateName": "GL", "amount": 50, "modifier": { "id": "N8B1KCXPF13CC" } } ] }
Using the atomic APIs:
POST https://apisandbox.dev.clover.com/v3/merchants/MMMM/atomic_order/orders { "orderCart": { "total": 1015, "currency": "USD", "lineItems": [ { "name": "Item", "price": 965, "priceWithModifiers": 1015, "item": { "id": "DGCT3YQREWFG4" }, "modifications": [ { "amount": 50, "name": "Greek Lime", "modifier": { "id": "N8B1KCXPF13CC" } } ] } ] } }
Results in an order without a alternate name:
"modifications": { "elements": [ { "id": "VBFWV878P47CE", "lineItemRef": { "id": "TMTQ8SE9DRXF6" }, "name": "Greek Lime", "amount": 50, "modifier": { "id": "N8B1KCXPF13CC" } }
Are we sending modifications in the correct way for the atomic order endpoints?