Cancel Invoice

This functionality allows you to cancel a Sent invoice

Canceling an invoice

POST https://sandbox-api.veem.com/veem/v1.2/invoices/{{invoiceId}}/cancel

Headers

  • X-request-id: For example 48855846-628d-4177-b071-80332a116f0a
  • Authorization: Bearer bearerToken

bearerToken is the Authorization token that belongs to the account created

i.e. Bearer d49e7fd4-2600-4dd4-a572-118668febbe7

see this section to generate your bearerToken

Query params

{{invoiceId}} query param is the invoice id we want to cancel

Request Payload

{}

Response payload

{
    "requestId": "d51e8068-7931-4720-84dc-1ae7170cdb2f",
    "amount": {
        "number": 1250.50,
        "currency": "USD"
    },
    "notes": "Q3 2024 Consulting Services - Project Aurora",
    "goodFundsPayment": false,
    "extraInfo": {
        "customInfo": null,
        "isPayeeCoveringCardFee": false
    },
    "id": 166865,
    "status": "Cancelled",
    "exchangeRate": {
        "fromAmount": 1250.50,
        "fromCurrency": "USD",
        "toAmount": 1675.67,
        "toCurrency": "CAD"
    },
    "claimLink": "https://api.veem.com/CustomerApp/Dashboard/Claim/Request/PaymentC?paymentId=166865-Invoice",
    "invoiceExtraInfo": {
        "id": 28743,
        "payeeFundingMethodId": 69916,
        "payeeFundingMethodType": "Wallet"
    },
    "payeeAccountId": 419197,
    "payerAccountId": 419196
}