Void Invoice
curl --request POST \
--url https://rest.taxes.provider.com/api/v1/invoices/{invoiceId}/void \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"documentDateTime": "2022-11-01T05:12:08.131Z"
}
'{
"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
Void Invoice
This endpoint is used to mark a specific invoice as void. Voiding cancels the invoice without deleting it.
POST
/
invoices
/
{invoiceId}
/
void
Void Invoice
curl --request POST \
--url https://rest.taxes.provider.com/api/v1/invoices/{invoiceId}/void \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"documentDateTime": "2022-11-01T05:12:08.131Z"
}
'{
"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
Headers
Path Parameters
Body
application/json
The request to void an invoice or credit note.
The date and time at which the credit note was created in Chargebee. For example, if the value is 2022-10-28T15:36:28.129+05:30, then the timestamp represents October 28, 2022, at 15:36:28.129, with an offset of +05:30. This means that the time represented is 5 hours and 30 minutes ahead of UTC/GMT. In the case of a merchant site located in UTC, these data types would send a timestamp in the format 2022-11-11T15:40:44.65Z. This timestamp represents November 11, 2022, at 15:40:44.65, with the 'Z' indicating that the time is in UTC.
Response
Invoice voided successfully.