v1

latestOpenAPI 3.0.32026-07-1793060.0 KB
CartAddresses

Create cart address

Create cart address

post/api/v1/cart-addresses

Request body

Example request

{
  "data": {
    "attributes": {
      "address_type": "shipping",
      "city": "New York",
      "company_in": "12345678",
      "company_name": "ABC Company",
      "company_tin": "CZ12345678",
      "contact_email": "bob6@mail.com",
      "contact_phone": "777888999",
      "first_name": "John",
      "last_name": "Doe",
      "line_one": "123 Main Street",
      "postcode": "10001",
      "shipping_option": "Friendly Freight Co."
    },
    "relationships": {
      "cart": {
        "data": {
          "id": "1949444",
          "type": "carts"
        }
      },
      "country": {
        "data": {
          "id": "1",
          "type": "countries"
        }
      }
    },
    "type": "cart-addresses"
  }
}