Skip to main content
POST
Void an invoice
Voiding is irreversible. There’s no “un-void.” An already-voided invoice returns 400 on a repeat call.

Authorizations

x-api-key
string
header
required

Your secret key, from app.agentaos.ai -> Settings -> Developers -> API Keys. The key's prefix is both its identity and its environment: sk_test_... (sandbox, free, no verification) or sk_live_... (real money, requires business verification). A missing or invalid key returns 401.

Path Parameters

invoiceId
string<uuid>
required

Invoice UUID.

Response

The invoice was voided.

success
boolean
required