Commit Invoice
curl --request POST \
--url https://rest.taxes.provider.com/api/v1/invoices/{invoiceId}/commit \
--header 'Authorization: <api-key>'{
"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"
}Invoice
Commit Invoice
This endpoint is used to commit an invoice for a given invoice id. Once committed, the invoice is considered to be finalized.
POST
/
invoices
/
{invoiceId}
/
commit
Commit Invoice
curl --request POST \
--url https://rest.taxes.provider.com/api/v1/invoices/{invoiceId}/commit \
--header 'Authorization: <api-key>'{
"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
The json of all the parameters specified in authentication configuration of tax app will be sent by Chargebee.
Headers
Merchant's domain name will be sent by Chargebee
Unique id of the request will be sent by Chargebee
Path Parameters
The unique identifier of the invoice at the Tax Service Adapter or Tax Service Provider.
Response
Invoice committed successfully.