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
          24
          25
          26
          27
          28
          29
          30
          31
          32
          33
          34
          35
          36
          37
          38
          39
          40
          41
          42
          43
          44
          45
          46
          47
          48
          49
          50
          51
          52
          53
          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": {
              "id": "string",
              "href": "string",
              "name": "string",
              "role": "string",
              "@baseType": "string",
              "@schemaLocation": "string",
              "@type": "string",
              "@referredType": "string",
              "extensions": [
                {
                  "@baseType": "string",
                  "@referredType": "string",
                  "@schemaLocation": "string",
                  "@type": "string",
                  "href": "string",
                  "id": "string",
                  "name": "string",
                  "value": "string",
                  "valueType": "string"
                }
              ]
            },
            "extensions": [
              {
                "@baseType": "string",
                "@referredType": "string",
                "@schemaLocation": "string",
                "@type": "string",
                "href": "string",
                "id": "string",
                "name": "string",
                "value": "string",
                "valueType": "string"
              }
            ],
            "quote": {
              "id": "string",
              "href": "string",
              "name": "string",
              "@baseType": "string",
              "@schemaLocation": "string",
              "@type": "string",
              "@referredType": "string"
            }
          }
          '

          RESPONSE

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