curl --request POST \
--url https://rest.taxes.provider.com/api/v1/trn/validate/batch \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"trns": [
{
"trn": 40303265045,
"country": {
"code": "FR"
}
},
{
"trn": 50303265045,
"country": {
"code": "UK"
}
}
]
}
'{
"batchId": "qwerty12345",
"batchName": "x-trn-batch",
"status": "COMPLETED",
"limit": 100,
"offset": 0,
"completionPercentage": 100,
"trns": [
{
"trn": 40303265045,
"trnStatus": "VALID",
"country": {
"name": "France",
"code": "FR"
}
},
{
"trn": 50303265045,
"trnStatus": "VALID",
"country": {
"name": "The united kingdom",
"code": "UK"
}
}
]
}{
"errors": [
{
"code": "INVALID_OPERATION",
"message": "Tax registration number is missing.",
"field": "trn",
"helpUrl": "https://apidocs.chargebee.com#Authentication"
}
]
}{
"message": "Unexpected error during processing the request."
}{
"status": "DOWN",
"version": "1.0.0",
"description": "The service is unhealthy. Several components are down.",
"components": [
{
"id": "app-db-memory",
"name": "Application Database Memory Usage",
"type": "DATABASE",
"status": "UP"
},
{
"id": "adapter-server",
"name": "Adapter API Server",
"type": "ADAPTER",
"status": "DOWN"
},
{
"id": "service-server",
"name": "API Server",
"type": "API",
"status": "DOWN"
}
],
"time": "2022-11-01T05:12:08.131Z"
}Tax Registration Number Validation
Validate the tax registration numbers in batch
This endpoint takes the batch of tax registration numbers and validate.
POST
/
trn
/
validate
/
batch
curl --request POST \
--url https://rest.taxes.provider.com/api/v1/trn/validate/batch \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"trns": [
{
"trn": 40303265045,
"country": {
"code": "FR"
}
},
{
"trn": 50303265045,
"country": {
"code": "UK"
}
}
]
}
'{
"batchId": "qwerty12345",
"batchName": "x-trn-batch",
"status": "COMPLETED",
"limit": 100,
"offset": 0,
"completionPercentage": 100,
"trns": [
{
"trn": 40303265045,
"trnStatus": "VALID",
"country": {
"name": "France",
"code": "FR"
}
},
{
"trn": 50303265045,
"trnStatus": "VALID",
"country": {
"name": "The united kingdom",
"code": "UK"
}
}
]
}{
"errors": [
{
"code": "INVALID_OPERATION",
"message": "Tax registration number is missing.",
"field": "trn",
"helpUrl": "https://apidocs.chargebee.com#Authentication"
}
]
}{
"message": "Unexpected error during processing the request."
}{
"status": "DOWN",
"version": "1.0.0",
"description": "The service is unhealthy. Several components are down.",
"components": [
{
"id": "app-db-memory",
"name": "Application Database Memory Usage",
"type": "DATABASE",
"status": "UP"
},
{
"id": "adapter-server",
"name": "Adapter API Server",
"type": "ADAPTER",
"status": "DOWN"
},
{
"id": "service-server",
"name": "API Server",
"type": "API",
"status": "DOWN"
}
],
"time": "2022-11-01T05:12:08.131Z"
}Authorizations
Body
application/json
Contains required properties for batch of tax registration numbers validation request
Response
Request to validate the batch of tax registration numbers being processed.
Contains the required properties for batch of tax registration numbers validation response