logoAccess

Void invoice

POST
/api/v1/invoices/{id}/void

Void an unpaid invoice. Paid invoices cannot be voided.

Authorization

apiKeyHeader
headerx-api-key<token>

API key for authentication. Generate from the dashboard or via POST /v1/api-keys.

Path Parameters

id*string

Unique invoice ID

Header Parameters

x-api-key*string

API key for authentication

Length1 <= length

Response Body

Response for status 200

application/json
  1. response
id*string
amount*number
status*string
currency*string
curl -X POST 'https://api.tryaccess.xyz/api/v1/invoices/inv_01J9Z8K2P3Q4R5S6T7U8V9W0X1/void' \  -H 'x-api-key: string'
{  "id": "string",  "amount": 0,  "status": "string",  "currency": "string"}

How is this guide?