Skip to main content
POST
Cancel a pending Quick Pay

Authorizations

Authorization
string
header
required

OAuth 2.1 authorization code + PKCE (S256). Tokens are tenant-bound (company_id) and scoped. Discover endpoints via /.well-known/oauth-authorization-server.

Headers

Idempotency-Key
string

Client-chosen key; replaying the same key + body returns the original response, a different body returns 409.

Path Parameters

id
string
required

The id.

Body

application/json

Cancel a pending payment. The ledger entry id comes from the URL path; companyId is the token's tenant.

pendingPaymentId
string

Optional explicit pending-payment doc id; when omitted it is resolved from the ledger entry.

Response

Payment cancelled and the held amount refunded to the company wallet.

data
object
required