ffl_integrations.fastbound.pos_4473¶
Source: apps/ffl_integrations/ffl_integrations/fastbound/pos_4473.py · 5 endpoint(s)
Generated by
make api-docs— do not edit by hand.
attest_paper_4473¶
POST /api/method/ffl_integrations.fastbound.pos_4473.attest_paper_4473
Auth (derived from code): Roles: Sales User / Sales Manager / System Manager
Record that this order's 4473s were completed on PAPER, and book the
bound-book Disposition for every gun on the ticket.
What the counter's "Paper 4473 completed" checkbox calls. A store with no FastBound account keeps paper 4473s and runs NICS by phone or the FBI portal; nothing will ever arrive to stamp this order Completed, so the cashier states it instead and the sale can be finished.
Not manager-gated, unlike manager_override_4473, and that difference is
deliberate. The override exists because something went WRONG and a manager is
accountable for the exception. This is the store's ordinary, configured way of
working: the same cashier who filled the paper form in says it is filled in.
Making it a manager action would put a manager behind every single gun sale.
The two share a booking path, so the record is identically audited either way —
manual_override with the attesting user and a reason naming paper mode.
Available ONLY while FFL Settings → Paper 4473 Mode is on. With FastBound running, a cashier must not be able to click past a pending 4473: that is what the manager override is for.
Recording the attestation is all this can do. Whether the form was actually completed and the background check actually cleared is a fact about the real world (27 CFR 478.102 / 478.124) that no software can verify — hence storing WHO said so, and when.
Idempotent per (invoice, serial): a double-tapped checkbox books one disposition per gun, not two.
| arg | type | required | default | description |
|---|---|---|---|---|
invoice_name |
string | yes | — | Draft POS Invoice docname. |
Returns: {ok, dispositions: [names], n_firearms}
Permissions: POS 4473 roles (_check_perm).
apps/ffl_integrations/ffl_integrations/fastbound/pos_4473.py:360
manager_override_4473¶
POST /api/method/ffl_integrations.fastbound.pos_4473.manager_override_4473
Auth (derived from code): Roles: Sales Manager / System Manager
Manager force-complete a stuck firearm POS sale.
The escape hatch for when FastBound is the problem, not us: the 4473 was
genuinely completed in FastBound but never synced back (a serial edited in
the shared account so the webhook couldn't match, the disposition deleted by
a partner FFL, FastBound down). Normally the sale can't submit — the gate
needs a Retail Sale FFL Disposition (4473 Completed / NICS Proceed) for each
gun. This mints exactly that, marked manual_override with WHO + WHY, so the
bound book stays honest and the override is auditable.
Manager-gated (Sales Manager / System Manager) and reason-required. Idempotent per (invoice, serial). Does NOT push to FastBound — the operator reconciles the FastBound bound book separately.
| arg | type | required | default | description |
|---|---|---|---|---|
invoice_name |
string | yes | — | Draft POS Invoice docname. |
reason |
string | yes | — | free-text justification (required, stored on each disposition). |
Returns: {ok, dispositions: [names], n_firearms}
apps/ffl_integrations/ffl_integrations/fastbound/pos_4473.py:203
start_4473_for_pos_invoice¶
POST /api/method/ffl_integrations.fastbound.pos_4473.start_4473_for_pos_invoice
Auth (derived from code): Roles: Sales User / Sales Manager / System Manager
Hold a POS / Sales Invoice in Draft while the cashier completes a 4473
in FastBound's UI.
| arg | type | required | default | description |
|---|---|---|---|---|
invoice_name |
string | yes | — | POS Invoice or Sales Invoice docname. |
serial_by_item_row |
dict | str | yes | — |
Returns: {ok: True, fastbound_url, n_firearms}
apps/ffl_integrations/ffl_integrations/fastbound/pos_4473.py:87
start_transfer_for_pos_invoice¶
POST /api/method/ffl_integrations.fastbound.pos_4473.start_transfer_for_pos_invoice
Auth (derived from code): Roles: Sales User / Sales Manager / System Manager
Build a customer-transfer POS Invoice (N $0 firearm lines + one Transfer
Fee line) then hand off to the 4473 kickoff.
A transfer starts from an EMPTY POS cart: there's no saved invoice to mutate, and ERPNext won't let the cart save empty client-side. So the whole invoice is built server-side — get_item_details fills item_name / uom / income_account (a client add_child leaves those blank → mandatory-field error), and is_free_item=1 makes ERPNext SKIP the price-list fetch so each gun stays $0 (get_item_details.py:1217). A second save then pins the economics (guns free, fee = configured amount) so no price-list lookup can override them. The customer is charged only the per-gun Transfer Fee; the guns are already theirs.
| arg | type | required | default | description |
|---|---|---|---|---|
serials |
array | yes | — | Firearm serials to transfer — list or JSON string. |
fee_item |
string | yes | — | The Transfer Fee service Item code. |
fee_amount |
float | str | yes | — |
customer |
string | yes | — | Buyer Customer name. |
pos_profile |
string | null | no | None |
Optional POS Profile override. |
invoice_name |
string | null | no | None |
Optional existing draft to reuse. |
Returns: The 4473 kickoff result from start_4473_for_pos_invoice.
Permissions: POS 4473 roles (_check_perm).
apps/ffl_integrations/ffl_integrations/fastbound/pos_4473.py:432
view_4473_pdf¶
GET /api/method/ffl_integrations.fastbound.pos_4473.view_4473_pdf
Auth (derived from code): Roles: Sales User / Sales Manager / System Manager
Show a 4473's signed PDF (a Form 4473 Log row) inline in the browser tab.
Served from the row's private copy when it has one. Otherwise it is fetched live from this site's own FastBound account — by the stored form id only, so nothing stored can point the server anywhere else — and a copy is queued. Every view is written to Access Log.
| arg | type | required | default | description |
|---|---|---|---|---|
log |
string | yes | — | Form 4473 Log name whose PDF to show. |
Returns: None — the response body is the PDF (Content-Type: application/pdf, shown inline).
apps/ffl_integrations/ffl_integrations/fastbound/pos_4473.py:612