ASCI API

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

Customers 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

Customer master record create / find.

Customers

The Customers module is a find-or-create write-through master: POST /api/Customers performs a synchronous upsert into the API store and enqueues a legacy CU write. The 6-char code is client-supplied (broker codes are meaningful). Use Find existing to GET /api/Customers?code=&name= and click a row to load it into the form before editing.

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.

Create a customer master record: POST /api/Customers (find-or-create write-through: sync upsert to the API store + enqueue legacy CU write). The 6-char code is client-supplied (broker codes are meaningful).

Find existing

GETs /api/Customers?code=&name=. Click a row to load it into the form.

Create

Endpoints

Customers endpoint family (api/Customers). Full request schema below.

Customers endpoints

MethodPathPurpose
POST/api/CustomersCreate / upsert a customer (body keyed by code).
GET/api/CustomersSearch (?q= or ?code=&name=). Returns {count, rows}.
GET/api/Customers/{code}Fetch one customer by code.
DELETE/api/Customers/{code}Delete a customer.

Schema

Request body for POST /api/Customers (customer profile). The same object is returned by the GET endpoints; GET /api/Customers wraps the rows as { "count": n, "rows": [ … ] }.

Customer profile

FieldTypeReq?MaxDescription
codestringYes10Customer / importer code. Primary key (per tenant).
id_qualifierstringNo2Importer ID qualifier (e.g. EI / SS / CN).
id_numberstringNo15Importer ID number (IRS/EIN/SSN/CBP-assigned).
namestringNo35Customer name.
citystringNo20City.
statestringNo2State / province.
zipstringNo10Postal code.
irs_nostringNo15IRS number.
suretystringNo35Surety company.
bond_typestringNo2Bond type.
continuous_bond_nostringNo15Continuous bond number.
manufacturer_nostringNo15Linked manufacturer / MID number.
address_1stringNo35Address line 1.
address_2stringNo35Address line 2.
countrystringNo2Country (ISO 2-char).
defaultsobjectNo-Opaque JSON of per-customer ISF default overrides; stored verbatim, not interpreted.