guest-carts/{cartId}/billing-address

guest-carts/{cartId}/billing-address

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

Return the billing address for a specified quote.

Request
path Parameters
cartId
required
string

The cart ID.

Responses
200

200 Success.

400

400 Bad Request

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": [
    ]
}

guest-carts/{cartId}/billing-address

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

Assign a specified billing address to a specified cart.

Request
path Parameters
cartId
required
string

The cart ID.

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

Interface AddressInterface

useForShipping
boolean
Responses
200

200 Success.

400

400 Bad Request

default

Unexpected error

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