Permanently voids a bill, making it uncollectable. A voided bill cannot be paid or updated.
This operation is irreversible and should be used when a bill needs to be cancelled.
Authentication using Bearer tokens. Include your API key in the Authorization header.
Key Types:
sk_test_* for development and testingsk_* for production environmentspk_test_* or pk_* for client-side operations📩 Need access? Contact Support to request your API keys.
Usage:
Authorization: Bearer sk_test_4eC39HqLyjWDarjtT1zdp7dcA unique key to prevent duplicate operations. Use the same key for retries to ensure idempotent behavior.
Best Practices:
Idempotent-Replayed header for cache hits1 - 255Bill identifier - either the unique ID provided by Moment or the external reference provided by the merchant.
The unique ID provided by Moment to identify this bill
"bill_H4jp6KnU5cPw263v1jyz4"
Bill voided successfully
A bill represents a payment request that can be associated with a customer or specific account.
Unique identifier for a bill
"bill_H4jp6KnU5cPw263v1jyz4"
External reference for reconciliation or tracking purposes. Must be unique within your merchant account.
255"INV-2024-001"
Unique identifier for a customer
"bcus_H4jp6KnU5cPw263v1jyz4"
Current status of the bill
unpaid, paid, voided "unpaid"
The ISO 4217 currency code for the payment.
"ZAR"
Payment amount due at the time of bill creation.
The value is in the smallest currency unit (e.g., cents for ZAR).
1 <= x <= 999999992000
The amount that has been paid against this bill.
The value is in the smallest currency unit (e.g., cents for ZAR).
Note: If amount_paid is specified, the currency field must also be provided.
0 <= x <= 999999991500
The amount remaining to be paid against this bill.
The value is in the smallest currency unit (e.g., cents for ZAR).
Note: If amount_remaining is specified, the currency field must also be provided.
0 <= x <= 99999999500
Unique identifier for an account
"bacc_H4jp6KnU5cPw263v1jyz4"
The date the bill was raised in ISO 8601 format (YYYY-MM-DD). Defaults to current date if not provided.
"2025-01-01"
The due date for bill payment in ISO 8601 format (YYYY-MM-DD)
"2025-01-31"
Payment rules associated with the entity. If not specified, the entity cannot be paid against.
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. NEW Limitations:
{
"customer_id": "cust_123456",
"order_id": "ord_789012"
}