Tranzakt APIs
  1. Invoices
Tranzakt APIs
  • Introduction
  • Collections
    • Get Collection by ID
      GET
    • Get Collection Invoices
      GET
  • Invoices
    • Create Invoice
      POST
    • Get Invoice by ID
      GET
    • Invalidate Invoice
      POST
  • Webhooks
    • Webhooks 🔔
  1. Invoices

Invalidate Invoice

POST
https://api.tranzakt.finance/api/v1/invoices/{id}/invalidate
Marks an unpaid invoice as invalid, preventing it from being paid.
Validation Rules
1.
Invoice Exists: Invoice must exist
Error Message: "Invoice with the given Id does not exist"
2.
Invoice Status: Must be unpaid
Error Message: "The invoice has already been paid or is no longer valid"

Request

Path Params
id
string 
required
Invoice ID
Header Params
x-api-key
string 
required
Example:
{{secretKey}}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.tranzakt.finance/api/v1/invoices//invalidate' \
--header 'x-api-key: Your secret key'

Responses

🟢200OK
application/json
Body
object {0}
Examples
{
    "status": "success",
    "message": "Invoice invalidated successfully"
}
Modified at 2024-11-07 01:27:52
Previous
Get Invoice by ID
Next
Webhooks 🔔
Built with