POST
/
cart
/
customerInfo
curl --request POST \
  --url https://client-request-service-staging-wghsjlqnoa-uw.a.run.app/cart/customerInfo \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "<string>",
  "buyer_identity": {
    "first_name": "<string>",
    "last_name": "<string>",
    "address_1": "<string>",
    "address_2": "<string>",
    "city": "<string>",
    "province_code": "<string>",
    "country_code": "<string>",
    "postal_code": "<string>",
    "email": "<string>",
    "phone": "<string>"
  }
}'
{
  "cart": {
    "id": "<string>",
    "cost": {
      "is_estimated": true,
      "subtotal": {
        "value": 123,
        "display_value": "<string>",
        "currency": "<string>"
      },
      "tax": {
        "value": 123,
        "display_value": "<string>",
        "currency": "<string>"
      },
      "shipping": {
        "value": 123,
        "display_value": "<string>",
        "currency": "<string>"
      },
      "total": {
        "value": 123,
        "display_value": "<string>",
        "currency": "<string>"
      }
    },
    "buyer_identity": {
      "first_name": "<string>",
      "last_name": "<string>",
      "address_1": "<string>",
      "address_2": "<string>",
      "city": "<string>",
      "province_code": "<string>",
      "country_code": "<string>",
      "postal_code": "<string>",
      "email": "<string>",
      "phone": "<string>"
    },
    "stores": [
      {
        "store": "<string>",
        "request_id": "<string>",
        "cart_lines": [
          {
            "quantity": 123,
            "variant": {
              "id": "<string>",
              "title": "<string>",
              "marketplace": "<string>",
              "description": "<string>",
              "is_available": true,
              "price": {
                "value": 123,
                "display_value": "<string>",
                "currency": "<string>"
              }
            },
            "product": {
              "id": "<string>",
              "title": "<string>",
              "marketplace": "<string>",
              "description": "<string>",
              "is_available": true,
              "price": {
                "value": 123,
                "display_value": "<string>",
                "currency": "<string>"
              }
            }
          }
        ],
        "offer": {
          "subtotal": {
            "value": 123,
            "display_value": "<string>",
            "currency": "<string>"
          },
          "margin": {
            "value": 123,
            "display_value": "<string>",
            "currency": "<string>"
          },
          "not_available_ids": [
            "<string>"
          ],
          "shipping_methods": [
            {
              "id": "<string>",
              "label": "<string>",
              "price": {
                "value": 123,
                "display_value": "<string>",
                "currency": "<string>"
              },
              "taxes": {
                "value": 123,
                "display_value": "<string>",
                "currency": "<string>"
              },
              "total": {
                "value": 123,
                "display_value": "<string>",
                "currency": "<string>"
              }
            }
          ],
          "selected_shipping_method": {
            "id": "<string>",
            "label": "<string>",
            "price": {
              "value": 123,
              "display_value": "<string>",
              "currency": "<string>"
            },
            "taxes": {
              "value": 123,
              "display_value": "<string>",
              "currency": "<string>"
            },
            "total": {
              "value": 123,
              "display_value": "<string>",
              "currency": "<string>"
            }
          }
        },
        "is_submitted": true
      }
    ]
  }
}

Body

application/json
id
string
required

The unique identifier for the cart

buyer_identity
object
required

Response

200 - application/json
Successfully created or updated customer information
cart
object