Skip to main content
PATCH
Set the cart tax identifier

Authorizations

x-spree-api-key
string
header
required

Publishable API key for store access

Authorization
string
header
required

JWT token for authenticated customers

Headers

x-spree-api-key
string
required
Authorization
string
x-spree-token
string

Path Parameters

cart_id
string
required

Cart prefixed ID

Body

application/json
kind
string
required

The registration the number belongs to, such as eu_vat or gb_vat. Any kind is accepted; one with a registered validator is checked by it. Built-in: eu_vat. Extensions may register more.

Example:

"eu_vat"

value
string
required
Example:

"DE123456789"

Response

201 - application/json

tax identifier set

id
string
required
kind
string
required

Tax identifier kind, keyed to a registered validator. Built-in: eu_vat. Extensions may register more.

value
string
required