ASCI API

| Home | Swagger | All Forms | Documentation | HTS →

BL (Billing) module page - how it works, an interactive test form, and the endpoint reference, all in one place. Set your tenant API Key in the Setup block below; every request sends the ApiKey header. See All Forms for the combined surface or Home for the module index.

How it works

Import billing invoice (BL) end to end.

BL (Billing)

BL is the import billing invoice: an invoice header plus a multi-row charge-lines repeater. header.invoice_no and header.customer_code are required.

Submit posts to POST /api/Bl/Submit. reference_no defaults to NEW (legacy assigns the real reference at insert); the response carries the submission_id. The customer field resolves your master data live.

Setup

API key + base URL used by every request below.

Credentials

Leave Base URL blank to call this same server with relative paths (the normal case). Set it (e.g. https://asci-api.asciofmiami.com) to point the forms at another host. Every request below sends the ApiKey header.

Sent on every create / submit POST. Click Generate for a fresh one, or a new one is auto-generated per submit if blank.

Test form

Interactive form - POSTs to the API and shows the JSON response + HTTP status.

Maps to POST /api/Bl/Submit. Full field-by-field BL (Import Billing Invoice) form with the invoice header plus a multi-row charge lines repeater. header.invoice_no and header.customer_code are required. reference_no defaults to NEW - the real reference is auto-assigned by legacy at insert time. The customer lookup resolves your master data live.

Invoice Header
Charge Lines
Check status

Calls GET /api/Bl/Status/{id}.

Endpoints

BL endpoint family (api/Bl). Full request schema below.

BL endpoints

MethodPathPurpose
POST/api/Bl/SubmitSubmit a billing invoice. Returns submission_id.
POST/api/Bl/{submissionId}/TransmitTransmit a built BL.
GET/api/BlList BL submissions.
GET/api/Bl/{submissionId}Fetch one submission.
GET/api/Bl/Status/{submissionId}Lifecycle status (used by the form's Check Status button).

Schema

Request body for POST /api/Bl/Submit. Field shape mirrors the legacy outbound JSON (IPJSONBL), so the same contract is used in both directions. Envelope: { "document": { … } }.

document (root)

FieldTypeReq?MaxDescription
reference_nostringYes15Reference number. Send NEW to auto-generate; else up to 15 alphanumeric/dash chars.
metadataobjectNoClient-supplied key/value bag (string→string, ≤50 entries), echoed on status / webhooks.
additional_invoice_codestringNo1Additional invoice code.
headerobjectYes-Invoice header (see below).
charge_linesarrayNo-Charge line rows (see below).
header (object)
FieldTypeReq?MaxDescription
invoice_nostringYes6Invoice number.
customer_codestringYes6Customer code.
customer_refstringNo11Customer reference.
transaction_codestringNo1Transaction code.
invoice_datestringNo8Julian (7) or YYYYMMDD (8).
invoice_descriptionstringNo20Invoice description.
shipper_consigneestringNo30Shipper / consignee.
origin_destinationstringNo15Origin / destination.
entry_numberstringNo12Customs entry number.
entry_datestringNo8Entry date.
airline_steamshipstringNo17Airline / steamship line.
arrival_departure_datestringNo8Arrival / departure date.
awb_bl_numberstringNo16AWB / BL number.
house_awbstringNo16House AWB.
gl_divisionstringNo2GL division.
num_piecesstringNo8Number of pieces.
invoice_valuenumberNo-Invoice value.
weightnumberNo-Weight.
remarksarray<string>No-Free-text remark lines.
charge_lines[] (array)
FieldTypeReq?MaxDescription
seq_nostringNo3Line sequence number.
company_codestringNo1Company code.
vendor_codestringNo6Vendor code.
transaction_codestringNo1Transaction code.
log_type_codestringNo1Log type code.
charge_codestringNo3Charge code.
gl_numberstringNo12GL number.
ap_gl_numberstringNo12AP GL number.
prepaid_indicatorstringNo1Prepaid indicator.
charge_descriptionstringNo28Charge description.
awb_bl_numberstringNo11AWB / BL number.
pending_charge_indstringNo1Pending-charge indicator.
charge_amountnumberNo-Charge (AR) amount.
ap_amountnumberNo-AP amount.