ReDoc documentation

carts/{cartId}/billing-address

carts/{cartId}/billing-address

get/V1/carts/{cartId}/billing-address

Returns the billing address for a specified quote.

Request
path Parameters
cartId
required
integer

The cart ID.

Responses
200

200 Success.

400

400 Bad Request

401

401 Unauthorized

default

Unexpected error

Response samples
{
  • "id": 0,
  • "region": "string",
  • "region_id": 0,
  • "region_code": "string",
  • "country_id": "string",
  • "street": [
    ],
  • "company": "string",
  • "telephone": "string",
  • "fax": "string",
  • "postcode": "string",
  • "city": "string",
  • "firstname": "string",
  • "lastname": "string",
  • "middlename": "string",
  • "prefix": "string",
  • "suffix": "string",
  • "vat_id": "string",
  • "customer_id": 0,
  • "email": "string",
  • "same_as_billing": 0,
  • "customer_address_id": 0,
  • "save_in_address_book": 0,
  • "extension_attributes": {
    },
  • "custom_attributes": [
    ]
}

carts/{cartId}/billing-address

post/V1/carts/{cartId}/billing-address

Assigns a specified billing address to a specified cart.

Request
path Parameters
cartId
required
integer

The cart ID.

Request Body schema:
required
object (quote-data-address-interface)

Interface AddressInterface

useForShipping
boolean
Responses
200

200 Success.

400

400 Bad Request

401

401 Unauthorized

default

Unexpected error

Request samples
{
  • "address": {
    },
  • "useForShipping": true
}
Response samples
0
0