ASCI API

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

Tally In 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

FTZ warehouse receipt (Tally In) end to end.

Tally In (FTZ warehouse receipt)

Tally In records an FTZ warehouse receipt (DOC_TYPE TI, channel tally.in.create), with a receipt header plus a multi-row lines repeater (each line needs product_code + pieces). receipt_no follows the NEW convention - blank / NEW means ASCI assigns the next receipt number at insert.

Submit rides the generic inbound pipeline via POST /api/TallyIn/Submit; the response carries the submission_id. There is no dedicated per-submission Tally status endpoint - use the Outbound listing to confirm processing. Supplier / shipper / consignee lookups resolve your customer master 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/TallyIn/Submit (DOC_TYPE TI, channel tally.in.create). Field-by-field Tally In (FTZ warehouse receipt) form with a receipt header plus a multi-row lines repeater (each line: product_code + pieces required). receipt_no follows the NEW convention - blank / NEW means ASCI assigns the next receipt number at insert time. Supplier / shipper / consignee lookups resolve your customer master live.

Receipt Header
e214 / CBP Admission (optional)

Optional CBP e214 (FTZ admission) fields. These are read by the CBP builder when you Transmit to CBP (POST /api/Ftz/{id}/TransmitCbp). Every field here is OPTIONAL and omitted from the JSON when left blank, so a plain inventory Tally In still submits unchanged. Header fields go into document.header; per-line e214 fields (HTS, country of origin, values, etc.) live on each Receipt Line below.

Status change / Replace / Delete (action R/S/D)

Extra header fields used only when Action is R (Replace), S (Status change) or D (Delete). All OPTIONAL and omitted from the JSON when blank, so a plain add (action A) or plain inventory submit is unchanged.

Receipt Lines
Transmit to CBP (e214)

Tally In rides the generic inbound pipeline; the Submit response carries the submission_id + status_url. (There is no dedicated per-submission Tally status endpoint - the run-locked IPAPIGET consumer drains the queue.) Transmit to CBP calls POST /api/Ftz/{id}/TransmitCbp (scope cbp.submit) to build and file the FTZ e214 admission.

Endpoints

Tally In endpoint family (api/TallyIn). Full request schema below.

Tally In endpoints

MethodPathPurpose
POST/api/TallyIn/SubmitSubmit an FTZ receipt. Returns submission_id.
GET/api/TallyIn/OutboundList processed outbound Tally In records.
GET/api/TallyIn/Outbound/{submissionId}Fetch one processed record.

Note: Tally In / Out ride the generic inbound pipeline; there is no dedicated per-submission status endpoint.

Schema

Request body for POST /api/TallyIn/Submit. Envelope: { "document": { "header": { … }, "lines": [ … ] } }. receipt_no follows the "NEW" convention (blank / NEW => ASCI assigns it). Dates are ISO YYYY-MM-DD (empty = none). Header maps to legacy WPHMS, lines to WPHDT.

document (root)

FieldTypeReq?MaxDescription
metadataobjectNoClient-supplied key/value bag (string→string, ≤50 entries), echoed on status / webhooks.
headerobjectYes-Warehouse-receipt header (see below).
linesarrayNo-Detail lines (see below).
header (object) - WPHMS
FieldTypeReq?MaxDescription
bonded_indstringNo1Foreign (Y) / Domestic (N).
receipt_nostringNo11Receipt number. Blank / NEW => ASCI assigns it.
supplier_codestringNo6Supplier code.
supplier_namestringNo30Supplier name.
shipper_codestringNo6Shipper code.
consignee_codestringNo6Consignee code.
carrier_namestringNo30Carrier name.
pro_nostringNo25Pro / freight bill number.
po_numberstringNo10Purchase-order number.
reference_nostringNo6Reference number.
destinationstringNo17Destination.
import_datestringNo-Import date (ISO YYYY-MM-DD).
remarksstringNo50Remarks.
date_instringNo-Date received (ISO YYYY-MM-DD).
locationstringNo2Warehouse location (validated vs LOCATN/WPTB).
lines[] (array) - WPHDT
FieldTypeReq?MaxDescription
line_nostringNo4Line number. Blank => writer assigns max+1.
product_codestringYes20Product code = item(16) + pack(4).
piecesnumberYes-Pieces received.
weightnumberNo-Weight.
descriptionstringNo40Line description.
invoice_nostringNo15Invoice number.
po_nostringNo7Purchase-order number (line level).
binstringNo8Bin.
unit_pricenumberNo-Unit price.
midstringNo16Manufacturer id.
htsstringNo10HTS number.
date_instringNo-Date in (ISO YYYY-MM-DD); FIFO sort key at tally-out.
zone_lot_nostringNo6SERVER-ASSIGNED FTZ lot; may be blank inbound.
statusstringNo2SERVER-ASSIGNED (writer forces AV); may be blank inbound.