ASCI API

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

QP (In-Bond) 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

QP / In-Bond (QP301) end to end.

QP (In-Bond)

QP is the in-bond (QP301) movement filing: an in-bond header plus multi-row repeaters for conveyances, bills of lading and parties. header.customer_code is the only required field.

Submit posts to POST /api/Qp/Submit. reference_no defaults to NEW (legacy assigns the real reference at insert); the response carries the submission_id. Customer / carrier / port fields resolve your master + reference data live. Deeply nested container / harmonized / marks detail is not exposed in this form - post the full JSON for those.

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/Qp/Submit. Full field-by-field QP (In-Bond / QP301) data-entry form with the in-bond header, plus multi-row repeaters for conveyances, bills of lading and parties. header.customer_code is the only required field. reference_no defaults to NEW - the real reference is auto-assigned by legacy at insert time. The customer / carrier / port lookups resolve your master + reference data live. (Deeply nested container/harmonized/marks detail is not exposed here; post the full JSON body for those.)

In-Bond Header
Carrier & Ports
Values & Misc
Conveyances
Bills of Lading
Parties
Check status

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

Endpoints

QP endpoint family (api/Qp). Full request schema below.

QP endpoints

MethodPathPurpose
POST/api/Qp/SubmitSubmit a QP / in-bond document. Returns submission_id.
POST/api/Qp/{submissionId}/TransmitTransmit a built QP to CBP.
GET/api/QpList QP submissions.
GET/api/Qp/{submissionId}Fetch one submission.
GET/api/Qp/Status/{submissionId}Lifecycle status (used by the form's Check Status button).
GET/api/Qp/{submissionId}/DetailFull typed detail.

Schema

Request body for POST /api/Qp/Submit. Field shape mirrors the legacy outbound JSON (IPJSONQP). Envelope: { "document": { … } }. Numeric *_date fields are Julian; string dates as noted.

document (root)

FieldTypeReq?MaxDescription
reference_nostringYes15Reference number. Send NEW to auto-generate.
metadataobjectNoClient-supplied key/value bag (string→string, ≤50 entries), echoed on status / webhooks.
headerobjectYes-In-bond header (see below).
conveyancesarrayNo-Conveyance rows (see below).
bills_of_ladingarrayNo-BL rows, each with nested containers + additional_references (see below).
partiesarrayNo-Party rows (see below).
all_additional_referencesarrayNo-Document-level additional references (same shape as the per-BL refs).
abi_statusarrayNo-ABI status rows (lifecycle; see below).
header (object)
FieldTypeReq?MaxDescription
in_bond_nostringNo12In-bond number.
in_bond_typestringNo2In-bond type.
internal_datestringNo7Internal date (Julian).
previous_in_bond_nostringNo12Previous in-bond number.
initiation_port_codestringNo4Initiation port code.
ftz_indicatorstringNo1FTZ indicator.
customer_codestringYes6Customer code.
air_in_bond_pedimentostringNo1Air in-bond / pedimento indicator.
scac_firms_indicatorstringNo1SCAC / FIRMS indicator.
mode_of_transportstringNo3Mode of transport.
inward_indicatorstringNo1Inward indicator.
first_delivering_truckingstringNo4First delivering / trucking carrier.
ibec_codestringNo4IBEC code.
vessel_supplies_indicatorstringNo1Vessel-supplies indicator.
in_bond_valuenumberNo-In-bond value.
num_conveyancesnumberNo-Number of conveyances.
previous_in_bond_datenumberNo-Previous in-bond date (Julian).
carrier_codestringNo4Carrier code.
carrier_irsstringNo12Carrier IRS number.
us_port_of_destinationstringNo4US port of destination.
foreign_port_of_destinationstringNo5Foreign port of destination.
canada_mexico_non_seaportstringNo1Canada/Mexico non-seaport indicator.
operator_codestringNo2Operator code.
printed_indicatorstringNo1Printed indicator.
bta_indicatorstringNo1BTA indicator.
go_numberstringNo12G.O. number.
previous_in_bond_typestringNo2Previous in-bond type.
previous_in_bond_portstringNo4Previous in-bond port.
log_numberstringNo11Log number.
commentsarray<string>No-Free-text comment lines.
Mode of Transportation Codes - header.mode_of_transport
CodeLabel
10Vessel, non-container
11Vessel, container
20Rail, non-container
21Rail, container
30Truck, non-container
31Truck, container
32Auto
33Pedestrian
40Air, non-container
41Air, container
60Passenger, hand-carried
70Fixed Transport Installations (pipeline / powerhouse)

Values accepted by header.mode_of_transport. Labels follow CBP CATAIR Appendix B.

conveyances[] (array)
FieldTypeMaxDescription
seq_nostring2Sequence number.
importing_carrierstring4Importing carrier.
country_of_carrierstring2Country of carrier.
transportation_modestring2Transportation mode.
vessel_codestring7Vessel code.
conveyance_namestring23Conveyance name.
voyage_flight_trip_nostring5Voyage / flight / trip number.
location_of_goodsstring4Location of goods.
port_of_unladingstring4Port of unlading.
export_countrystring2Export country.
viastring12Via.
num_blsnumber-Number of bills of lading.
est_date_of_arrivalnumber-Estimated date of arrival (Julian).
export_datenumber-Export date (Julian).
bills_of_lading[] (array)
FieldTypeMaxDescription
conveyance_nostring2Owning conveyance number.
bl_linestring4BL line.
awb_bl_nostring16AWB / BL number.
house_awb_bl_nostring12House AWB / BL number.
foreign_port_of_ladingstring5Foreign port of lading.
qty_unit / weight_unit / measurement_unitstring5 / 2 / 2Quantity, weight, measurement units.
canada_mexico_non_seaportstring1Canada/Mexico non-seaport indicator.
place_of_receiptstring17Place of receipt.
sub_house_awb_bl_nostring12Sub-house AWB / BL number.
foreign_shipper_code / consignee_code / notify_party_codestring6Party codes.
secondary_notify_1_4string9Secondary notify parties.
quantity / weight / measurementnumber-Quantity, weight, measurement.
num_containersnumber-Number of containers.
sailing_datenumber-Sailing date (Julian).
exporting_conveyancestring23Exporting conveyance.
log_book_referencestring6Log-book reference.
warehouse_entry_balancestring8Warehouse entry balance.
in_bond_viastring70In-bond via.
containersarray-Nested containers (see below).
additional_referencesarray-Per-BL additional references (see additional-reference shape below).
bills_of_lading[].containers[] (nested)
FieldTypeMaxDescription
container_linestring3Container line.
container_numberstring14Container number.
seal_number_1 / seal_number_2string15Seal numbers.
equipment_codestring2Equipment code.
harmonized_linesarray-HTS lines: item_line, seq, harmonized_tariff(10), weight_unit, more_indicator, item_from_hts, value, weight, rate, duty (numbers) , item_code(20).
pieces_descriptionsarray-Pieces: item_line, seq, pieces(number), description(45), more_indicator, manifest_unit_code.
marks_numbersarray-Marks: item_line, seq, marks_and_numbers(45), more_indicator.
hazardous_materialsarray-Hazmat: item_line, seq, hazmat_code, class, qualifier, description, contact_name_phone, flashpoint_temperature, flashpoint_unit, negative_indicator, description_instructions(+_2), classification(+_2), more_indicator.
parties[] (array)
FieldTypeMaxDescription
conveyance_no / bl_linestring2 / 4Owning conveyance / BL line.
record_typestring1Record / party type.
namestring32Party name.
address_line_1_3string30Address lines.
phonestring10Phone.
party_codestring6Party code.
additional references (all_additional_references[] and bills_of_lading[].additional_references[])
FieldTypeMaxDescription
conveyance_no / bl_linestring2 / 4Owning conveyance / BL line.
seqstring2Sequence.
qualifierstring3Reference qualifier.
descriptionstring30Reference value / description.
abi_status[] (array)
FieldTypeDescription
in_bond_no / awb_bl_no / containerstringKeys for the status row.
in_bond_status / arrival_status / export_status / transfer_status / diversion_statusstring (1)Per-event status codes, each with a paired *_date and *_time (numbers).
port_of_unlading / port_of_arrival / port_of_exportation / new_port_of_arrival / port_of_entrystring (4)Associated ports.
carrier_assuming_liabilitystring (4)Carrier assuming liability.
entry_number / entry_typestringEntry number (15) and type (2).
location_of_goodsstring (4)Location of goods.
disposition_code / disposition_date / disposition_timestring / numberDisposition code (3) plus date / time.