Skip to content

ffl_integrations.payroc.api

Source: apps/ffl_integrations/ffl_integrations/payroc/api.py · 11 endpoint(s)

Generated by make api-docs — do not edit by hand.

cancel_pos_charge

POST /api/method/ffl_integrations.payroc.api.cancel_pos_charge

Auth (derived from code): Roles: Sales User / Sales Manager / System Manager

Old path of ffl_integrations.payments.api.cancel_pos_charge (cancel an in-flight charge).

arg type required default description
invoice_name string yes — POS Invoice being tendered.
instruction_id string yes — The charge handle to cancel.

Returns: The new endpoint's answer.

apps/ffl_integrations/ffl_integrations/payroc/api.py:57

cancel_sales_invoice_charge

POST /api/method/ffl_integrations.payroc.api.cancel_sales_invoice_charge

Auth (derived from code): Roles: Sales User / Sales Manager / System Manager

Old path of ffl_integrations.payments.api.cancel_sales_invoice_charge.

arg type required default description
sales_invoice string yes — The Sales Invoice being charged.
instruction_id string yes — The charge handle to cancel.

Returns: The new endpoint's answer.

apps/ffl_integrations/ffl_integrations/payroc/api.py:106

charge_pos_invoice

POST /api/method/ffl_integrations.payroc.api.charge_pos_invoice

Auth (derived from code): Roles: Sales User / Sales Manager / System Manager

Old path of ffl_integrations.payments.api.charge_pos_invoice (start a card charge).

arg type required default description
invoice_name string yes — POS Invoice being tendered.
terminal string | null no None Optional terminal id; defaults to the configured one.
amount — no None Optional charge amount; defaults to the card-tender target.
description string | null no None Optional statement descriptor.
reader string | null no None The card reader to charge on (its name); required when the store lists card readers, as on the new endpoint.

Returns: The new endpoint's answer: {ok, instruction_id, reader, status, amount} or {"skip": True}.

apps/ffl_integrations/ffl_integrations/payroc/api.py:20

charge_sales_invoice

POST /api/method/ffl_integrations.payroc.api.charge_sales_invoice

Auth (derived from code): Roles: Sales User / Sales Manager / System Manager

Old path of ffl_integrations.payments.api.charge_sales_invoice (card charge on a counter order).

arg type required default description
sales_invoice string yes — Submitted Sales Invoice with an outstanding balance.
amount — no None Charge amount, at most the outstanding balance (blank = the whole balance).
terminal string | null no None Optional terminal id; defaults to the configured one.
reader string | null no None The card reader to charge on (its name); required when the store lists card readers, as on the new endpoint.

Returns: The new endpoint's answer.

apps/ffl_integrations/ffl_integrations/payroc/api.py:72

confirm_out_of_band_refund

POST /api/method/ffl_integrations.payroc.api.confirm_out_of_band_refund

Auth (derived from code): Roles: Sales Manager / System Manager

Old path of ffl_integrations.payments.api.confirm_out_of_band_refund.

arg type required default description
return_invoice_name string yes — The POS RETURN invoice being confirmed.
portal_reference string yes — The refund's reference from the processor's portal.
reason string yes — Why the refund went out of band (audited, mandatory).

Returns: The new endpoint's answer.

apps/ffl_integrations/ffl_integrations/payroc/api.py:179

discover_terminals

POST /api/method/ffl_integrations.payroc.api.discover_terminals

Auth (derived from code): Roles: Sales Manager / System Manager

Old path of ffl_integrations.payments.api.list_terminals (connectivity smoke test).

Returns: The new endpoint's answer: the processor's terminal list, {"error": ...} or {"skip": True}.

apps/ffl_integrations/ffl_integrations/payroc/api.py:121

poll_pos_charge

POST /api/method/ffl_integrations.payroc.api.poll_pos_charge

Auth (derived from code): Roles: Sales User / Sales Manager / System Manager

Old path of ffl_integrations.payments.api.poll_pos_charge (poll a card charge once).

arg type required default description
invoice_name string yes — POS Invoice being tendered.
instruction_id string yes — The charge handle returned by charge_pos_invoice.
expected_amount — no None Optional approval-amount check.

Returns: The new endpoint's answer.

apps/ffl_integrations/ffl_integrations/payroc/api.py:41

poll_sales_invoice_charge

POST /api/method/ffl_integrations.payroc.api.poll_sales_invoice_charge

Auth (derived from code): Roles: Sales User / Sales Manager / System Manager

Old path of ffl_integrations.payments.api.poll_sales_invoice_charge.

arg type required default description
sales_invoice string yes — The Sales Invoice being charged.
instruction_id string yes — The charge handle returned by charge_sales_invoice.

Returns: The new endpoint's answer.

apps/ffl_integrations/ffl_integrations/payroc/api.py:91

refund_pos_invoice

POST /api/method/ffl_integrations.payroc.api.refund_pos_invoice

Auth (derived from code): Roles: Sales Manager / System Manager

Old path of ffl_integrations.payments.api.refund_pos_invoice (refund a POS return's card portion).

arg type required default description
return_invoice_name string yes — The POS RETURN invoice.
reason string | null no None Optional audit reason.

Returns: The new endpoint's answer.

apps/ffl_integrations/ffl_integrations/payroc/api.py:149

unlock_refund_lock

POST /api/method/ffl_integrations.payroc.api.unlock_refund_lock

Auth (derived from code): Roles: Sales Manager / System Manager

Old path of ffl_integrations.payments.api.unlock_refund_lock (manager unlock of a refund lock).

arg type required default description
return_invoice_name string yes — The locked POS RETURN invoice.
reason string yes — Required attestation — what the manager verified in the processor's portal.

Returns: The new endpoint's answer.

apps/ffl_integrations/ffl_integrations/payroc/api.py:164

void_pos_invoice

POST /api/method/ffl_integrations.payroc.api.void_pos_invoice

Auth (derived from code): Roles: Sales Manager / System Manager

Old path of ffl_integrations.payments.api.void_pos_invoice (reverse an unsettled charge).

arg type required default description
invoice_name string yes — POS Invoice carrying the charge.
reason string | null no None Optional audit reason.
unique_reference string | null no None The specific charge row to void (required when several live captures exist).

Returns: The new endpoint's answer.

apps/ffl_integrations/ffl_integrations/payroc/api.py:132