Tax registration

Get cart tax registrations

get

Gets all tax regitrations data to the customer's cart.

Notes: Below path has been deprecated.
GET /carts/{cartId}/tax-registrations

Query parameters
apiKeystringOptional

The client identifier used to authorize the request. You must specify either an apiKey or a token.

tokenstringOptional

Authorized or anonymous token for a customer. You must specify either an apiKey or a token.

Responses
200
Successful response.
application/json
get
GET /v1/shoppers/me/carts/active/tax-registrations HTTP/1.1
Host: api.digitalriver.com
Accept: */*
[
  {
    "key": "UK_VAT",
    "value": "GB698588737"
  }
]

Update tax registration on cart

post

Updates the tax regitrations data to the customer's cart.

Notes: Below path has been deprecated.
POST /carts/{cartId}/tax-registrations

Query parameters
tokenstringRequired

Authorized or anonymous token for a customer.

Body
keystringOptional

Tax Registration Key

Example: UK_VAT
valuestringOptional

Tax ID value

Example: GB698588737
Responses
200
Successful response.
application/json
post
POST /v1/shoppers/me/carts/active/tax-registrations HTTP/1.1
Host: api.digitalriver.com
Content-Type: application/json
Accept: */*
Content-Length: 40

[
  {
    "key": "UK_VAT",
    "value": "GB698588737"
  }
]
[
  {
    "key": "UK_VAT",
    "value": "GB698588737"
  }
]

Remove tax registration on cart

delete

Remove the tax regitrations data from customer's cart.

Query parameters
tokenstringRequired

Authorized or anonymous token for a customer.

Responses
204
Successful response.
delete
DELETE /v1/shoppers/me/carts/active/tax-registrations HTTP/1.1
Host: api.digitalriver.com
Accept: */*

No content

Last updated