Skip to content
QaydTech Beta launch

Payment vouchers

Cancel a payment voucher

post https://your-business.qaydtech.com/api/v1/payments/{id}/cancel

Reverses the voucher’s entry, and the invoices it settled are owed again.

Permission: payments.write Supports Idempotency-Key to prevent duplicates.

The user the key acts as also needs: Cancel payment vouchers

Request

Path parameters

  • id integer required

    The record’s number.

    Example: 42

Headers

  • Authorization string required

    Bearer followed by the API key.

    Example: Bearer qayd_…

  • Accept-Language string optional

    en for English error messages. Arabic by default.

    Example: en

  • Content-Type string required

    application/json with every request that has a body.

    Example: application/json

  • Idempotency-Key string optional

    A unique value so a request sent again creates nothing twice.

    Example: order-10045

Request body application/json

  • date date optional

    The date; today when not sent.

    Example: 2026-11-13

Responses

  • 200 OK
  • Errors · 401 · 403 · 429