Create Cart

Version 1.0.3
download iconDownload spec

Endpoint

POST
https://partner.att.com/omni-svcs/v1/carts

Create a new shopping cart for product ordering. The cart can be created empty or with initial items. This operation initializes a draft order that can be modified before submission.

arrowRequest

Cart creation request containing channel information, optional cart items, and related party details

Header Parameters

      Body Parameters

      Responses

      Cart successfully created. Returns the complete ProductOrder object with cart ID, items and validation status.

      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
      curl --request POST \
           --url https://partner.att.com/omni-svcs/v1/carts \
           --header 'accept: application/json' \
           --header 'content-type: application/json' \
           --data '
      {
        "channel": {
          "id": "IND",
          "name": "IND",
          "extensions": [
            {
              "name": "subChannel",
              "value": "bestbuy"
            },
            {
              "name": "subChannelGroup",
              "value": "National Retail"
            }
          ]
        },
        "relatedParty": [
          {
            "referredType": "individual",
            "role": "owner",
            "id": "2f3ca666-744d-4aa3-9351-e259185a065b"
          },
          {
            "name": "RS and I Inc",
            "referredType": "dealerLocation",
            "id": "G5MGG",
            "role": "partner"
          },
          {
            "referredType": "customer",
            "role": "customer",
            "id": "3f7f9189-974e-4639-8343-4a1819a98c7e",
            "extensions": [
              {
                "name": "CustomerType",
                "value": "Consumer"
              },
              {
                "name": "CustomerSubType",
                "value": "Individual"
              }
            ]
          }
        ]
      }
      '

      RESPONSE

      1
      2
      3
      {
        "id": "dea79fb0-21c4-11f1-8527-67c36c11d002"
      }