question

pttommy avatar image
pttommy asked

Orders created with atomic endpoint do not have modifier alternate names

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?

Orders
10 |2000

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

0 Answers

·

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