LogoLogo
System Status
2021-03-23
2021-03-23
  • 2021-03-23
  • Charges
  • Checkouts
  • Country specifications
  • Customers
  • Events
  • Fees
  • File links
  • Files
  • Fulfillment cancellations
  • Fulfillment orders
  • Fulfillment returns
  • Fulfillments
  • Inventory items
  • Inventory levels
  • Invoices
  • Orders
  • Payouts
  • Plans
  • Refunds
  • Reservations
  • Returns
  • Sales summaries
  • Sales transactions
  • Shipments
  • Shipping quotes
  • SKUs
  • SKU groups
  • Sources
  • Subscriptions
  • Tax identifiers
  • Webhooks
Powered by GitBook
On this page

Tax identifiers

PreviousSubscriptionsNextWebhooks

Last updated 6 months ago

The Tax identifier object represents a customer's tax identifier.

Gets a tax identifier by ID.

get

Retrieves the details of a tax identifier. You must supply the unique identifier of the tax identifier.

Authorizations
Path parameters
idstringRequired

Tax identifier ID

Responses
200
OK.
application/json
400
400 Bad Request
application/json
401
401 Unauthorized
application/json
403
403 Forbidden
application/json
404
404 Not Found
application/json
405
405 Method Not Allowed
application/json
406
406 Not Acceptable
application/json
408
408 Request Timeout
application/json
429
429 Too Many Requests
application/json
500
500 Internal Server Error
application/json
502
502 Bad Gateway Error
application/json
503
503 Service Unavailable Error
application/json
504
504 Gateway Timeout Error
application/json
get
GET /tax-identifiers/{id} HTTP/1.1
Host: api.digitalriver.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "id": "5774321009",
  "createdTime": "2025-05-09T06:26:52.253Z",
  "customerId": "5774321009",
  "type": "de",
  "value": "DE123456789",
  "state": "pending",
  "stateTransitions": {
    "pending": "2025-05-09T06:26:52.253Z",
    "verified": "2025-05-09T06:26:52.253Z",
    "not_valid": "2025-05-09T06:26:52.253Z"
  },
  "verifiedName": ".",
  "verifiedAddress": ".",
  "updatedTime": "2025-05-09T06:26:52.253Z",
  "applicability": [
    {
      "country": "FR",
      "entity": "DR_Ireland-Entity",
      "customerType": "business"
    }
  ]
}

Deletes a tax identifier by ID.

delete

Permanently deletes a tax identifier. You must supply the unique identifier of the tax identifier.

Authorizations
Path parameters
idstringRequired

Tax identifier ID

Responses
204
204 No Content
400
400 Bad Request
application/json
401
401 Unauthorized
application/json
403
403 Forbidden
application/json
404
401 Not Found
application/json
405
405 Method Not Allowed
application/json
406
406 Not Acceptable
application/json
408
408 Request Timeout
application/json
409
409 Conflict
application/json
429
429 Too Many Requests
application/json
500
500 Internal Server Error
application/json
502
502 Bad Gateway Error
application/json
503
503 Service Unavailable Error
application/json
504
504 Gateway Timeout Error
application/json
delete
DELETE /tax-identifiers/{id} HTTP/1.1
Host: api.digitalriver.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content

  • GETReturns a list of tax identifiers
  • POSTCreates a new tax identifier
  • GETGets a tax identifier by ID.
  • DELETEDeletes a tax identifier by ID.

Returns a list of tax identifiers

get

Get all tax identifiers.

Authorizations
Query parameters
endingBeforestringOptional

A cursor for use in pagination. The endingBefore parameter is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with xyz your subsequent calls can include endingBefore=xyz in order to fetch the previous page of the list.

startingAfterstringOptional

A cursor for use in pagination. The startingAfter parameter is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with xyz, your subsequent calls can include startingAfter=xyz in order to fetch the next page of the list.

limitinteger · min: 1 · max: 100Optional

A limit on the number of objects returned. Limit can range between 1 and 100, and the default is 10.

idsstring[]Optional

Only return objects with these IDs.

customerIdstringOptional

Only return tax identifiers for this customer.

typestringOptional

Only return tax identifiers of this type.

valuestringOptional

Only return tax identifiers with this value.

statestringOptional

Only return tax identifiers in this state.

pendingstring · date-timeOptional

A filter on the list based on the tax identifier stateTransitions pending field. The value can be a string with an ISO-601 UTC format datetime or it can be a dictionary with the following options:

  • gt - return values where the stateTransitions pending field is after this timestamp
  • gte - return values where the stateTransitions pending field is after or equal to this timestamp
  • lt - return values where the stateTransitions pending field is before this timestamp
  • lte - return values where the stateTransitions pending field is before or equal to this timestamp
verifiedstring · date-timeOptional

A filter on the list based on the tax identifier stateTransitions verified field. The value can be a string with an ISO-601 UTC format datetime or it can be a dictionary with the following options:

  • gt - return values where the stateTransitions verified field is after this timestamp
  • gte - return values where the stateTransitions verified field is after or equal to this timestamp
  • lt - return values where the stateTransitions verified field is before this timestamp
  • lte - return values where the stateTransitions verified field is before or equal to this timestamp
not_validstring · date-timeOptional

A filter on the list based on the tax identifier stateTransitions not_valid field. The value can be a string with an ISO-601 UTC format datetime or it can be a dictionary with the following options:

  • gt - return values where the stateTransitions not_valid field is after this timestamp
  • gte - return values where the stateTransitions not_valid field is after or equal to this timestamp
  • lt - return values where the stateTransitions not_valid field is before this timestamp
  • lte - return values where the stateTransitions not_valid field is before or equal to this timestamp
Responses
200
200 OK
application/json
400
400 Bad Request
application/json
401
401 Unauthorized
application/json
403
403 Forbidden
application/json
404
404 Not Found
application/json
405
405 Method Not Allowed
application/json
406
406 Not Acceptable
application/json
408
408 Request Timeout
application/json
429
429 Too Many Requests
application/json
500
500 Internal Server Error
application/json
502
502 Bad Gateway Error
application/json
503
503 Service Unavailable Error
application/json
504
504 Gateway Timeout Error
application/json
get
GET /tax-identifiers HTTP/1.1
Host: api.digitalriver.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "hasMore": true,
  "data": [
    {
      "id": "5774321009",
      "createdTime": "2025-05-09T06:26:52.253Z",
      "customerId": "5774321009",
      "type": "de",
      "value": "DE123456789",
      "state": "pending",
      "stateTransitions": {
        "pending": "2025-05-09T06:26:52.253Z",
        "verified": "2025-05-09T06:26:52.253Z",
        "not_valid": "2025-05-09T06:26:52.253Z"
      },
      "verifiedName": ".",
      "verifiedAddress": ".",
      "updatedTime": "2025-05-09T06:26:52.253Z",
      "applicability": [
        {
          "country": "FR",
          "entity": "DR_Ireland-Entity",
          "customerType": "business"
        }
      ]
    }
  ]
}

Creates a new tax identifier

post

Creates a new tax identifier object.

Authorizations
Body
typestringRequired

The type of tax identifier.

Example: de
valuestringRequired

The tax identifier.

Example: DE123456789
Responses
201
201 Created
application/json
400
400 Bad Request
application/json
401
401 Unauthorized
application/json
403
403 Forbidden
application/json
405
405 Method Not Allowed
application/json
406
406 Not Acceptable
application/json
408
408 Request Timeout
application/json
409
409 Conflict
application/json
429
429 Too Many Requests
application/json
500
500 Internal Server Error
application/json
502
502 Bad Gateway Error
application/json
503
503 Service Unavailable Error
application/json
504
504 Gateway Timeout Error
application/json
post
POST /tax-identifiers HTTP/1.1
Host: api.digitalriver.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 35

{
  "type": "de",
  "value": "DE123456789"
}
{
  "id": "5774321009",
  "createdTime": "2025-05-09T06:26:52.253Z",
  "customerId": "5774321009",
  "type": "de",
  "value": "DE123456789",
  "state": "pending",
  "stateTransitions": {
    "pending": "2025-05-09T06:26:52.253Z",
    "verified": "2025-05-09T06:26:52.253Z",
    "not_valid": "2025-05-09T06:26:52.253Z"
  },
  "verifiedName": ".",
  "verifiedAddress": ".",
  "updatedTime": "2025-05-09T06:26:52.253Z",
  "applicability": [
    {
      "country": "FR",
      "entity": "DR_Ireland-Entity",
      "customerType": "business"
    }
  ]
}