Skip to main content
Cancel an invoice
curl --request POST \
  --url https://app.cryptoprocessing.com/api/v2/invoices/{foreign_id}/cancel/ \
  --header 'X-processing-key: <api-key>' \
  --header 'X-processing-signature: <api-key>'
{
  "errors": {
    "error": "Invoice cannot be failed in its current state.",
    "code": "invalid_invoice_state"
  }
}

Authorizations

X-processing-key
string
header
required

Your API key.

X-processing-signature
string
header
required

The request body, signed with HMAC-SHA512 with your secret key. You can find the secret key in your account.

Path Parameters

foreign_id
string
required

The unique identifier of the invoice you need to cancel.

Response

OK