Submit Order

Version v1
download iconDownload spec

Endpoint

POST
undefined/msapi/sales/shopping-cart-api/v1/carts/{cartId}/submit

This API is responsible for submitting shopping cart & provide valid cart response back which is needed for every commerce operation.

arrowSecurity

http

This API supports Basic Authentication.
scheme:basic
arrowRequest

Path Parameters

    Header Parameters

          Body Parameters

          Responses

          Succcess

          arrowBody

          application/json

          REQUEST

          1
          2
          3
          4
          5
          6
          7
          8
          9
          10
          11
          12
          13
          14
          15
          16
          17
          18
          19
          20
          21
          22
          23
          curl --request POST \
               --url https://example.com/msapi/sales/shopping-cart-api/v1/carts/string/submit \
               --header 'accept: application/json' \
               --header 'content-type: application/json' \
               --data '
          {
            "channel": {
              "name": "SelfService",
              "role": "customer"
            },
            "extensions": [
              {
                "name": "BrowserID",
                "value": "OL_AE_20210914"
              }
            ],
            "quote": {
              "name": "<text UI shows to customer eg: Pre-order submit quote>",
              "id": "<corrId000000>",
              "@referredType": "RTBQuote"
            }
          }
          '

          RESPONSE

          1
          2
          3
          4
          5
          6
          7
          {
            "id": "123456789",
            "state": "Acknowledged",
            "customerOrderId": "25-46454212454",
            "completionDate": "2022-01-03T21:25:33.226Z",
            "orderSummaryAccessToken": "string"
          }