Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Invoicing for Cancellations and Payouts

In terms of invoicing, there are two kinds of transactions that stand out:

Cancellations

There is no such thing as a "cancellation invoice".

When a transaction is canceled, you account for it by issuing a refund invoice that matches the original transaction invoice but is a credit rather than a debit.

Although there are separate commands for canceling and refunding (cancelDeal and refundDeal), there is only one command for document generation: refundCgInvoice.

Payouts

Payouts are credit transactions in which you pay the customer, regardless of the original payment.

For invoicing purposes, payouts are handled just like regular transactions: you use the addCgInvoice command with the payout’s transaction ID (tranId).

The refundCgInvoice command does not apply to payouts: even though a payout is a credit transaction, it does not require a refund invoice.

Last updated

Was this helpful?