ffl_integrations.payments.si_reversal¶
Source: apps/ffl_integrations/ffl_integrations/payments/si_reversal.py · 4 endpoint(s)
Generated by
make api-docs— do not edit by hand.
card_charges¶
POST /api/method/ffl_integrations.payments.si_reversal.card_charges
Auth (derived from code): Roles: Sales Manager / System Manager
The card charges on a Sales Invoice that a manager can void or refund, for the form.
| arg | type | required | default | description |
|---|---|---|---|---|
sales_invoice |
string | yes | — | The Sales Invoice. |
Returns: {charges: [{name, amount, refunded_amount, left, status, unique_reference, card_summary, locked, lock, can_void}], membership, return_blocked}.
apps/ffl_integrations/ffl_integrations/payments/si_reversal.py:453
refund_sales_invoice_charge¶
POST /api/method/ffl_integrations.payments.si_reversal.refund_sales_invoice_charge
Auth (derived from code): Roles: Sales Manager / System Manager
Refund part or all of a card charge on a counter Sales Invoice to the card it came from.
Return: a credit note takes the amount back from the sale, pro rata over its lines and tax, and a Pay Payment Entry settles it (only for invoices that never touched stock or the bound book; membership lines once the membership has ended). Collect again: a Journal Entry puts the amount back on the invoice to be collected another way.
| arg | type | required | default | description |
|---|---|---|---|---|
terminal_payment |
string | yes | — | The Card Terminal Payment row of the charge. |
amount |
— | yes | — | How much to give back, at most what is left on the charge. A Return refunds the credit note's total, which can differ from this by a cent of rounding. |
refund_type |
string | yes | — | "Return" or "Collect again". |
reason |
string | yes | — | Why (kept on the invoice timeline and the bookings). |
Returns: {ok, amount, gateway_reference, entry_type, entry, credit_note, outstanding}.
apps/ffl_integrations/ffl_integrations/payments/si_reversal.py:332
resolve_card_reversal¶
POST /api/method/ffl_integrations.payments.si_reversal.resolve_card_reversal
Auth (derived from code): Roles: Sales Manager / System Manager
Settle a void or refund the card processor never confirmed, after looking in its portal.
| arg | type | required | default | description |
|---|---|---|---|---|
terminal_payment |
string | yes | — | The locked Card Terminal Payment row. |
went_through |
— | yes | — | 1 when the portal shows the void/refund happened (it is booked now, exactly as an approval would have been); 0 when it did not (the charge is unlocked, nothing is booked). |
note |
string | yes | — | What was checked in the portal. |
portal_reference |
string | null | no | None |
The portal's reference for the void/refund (required when it went through). |
Returns: {ok, booked, ...the booking when booked}.
apps/ffl_integrations/ffl_integrations/payments/si_reversal.py:410
void_sales_invoice_charge¶
POST /api/method/ffl_integrations.payments.si_reversal.void_sales_invoice_charge
Auth (derived from code): Roles: Sales Manager / System Manager
Void a card charge on a counter Sales Invoice: the processor reverses the whole capture
(before it settles) and the invoice owes the amount again.
The charge's Payment Entry is cancelled when it was posted today, settles only this charge and is not bank-cleared; otherwise a Journal Entry today books the reversal. Membership invoices are refunded instead (type Return).
| arg | type | required | default | description |
|---|---|---|---|---|
terminal_payment |
string | yes | — | The Card Terminal Payment row of the charge. |
reason |
string | yes | — | Why (kept on the invoice timeline and the booking). |
Returns: {ok, status, entry_type, entry, outstanding}.
apps/ffl_integrations/ffl_integrations/payments/si_reversal.py:298