Load supply side transactions (excludes split/delivery data)

Loads supply transactions (purchase, transfer and work orders) into GAINS X; one record is one order with its LineItems. Header values apply to every line; a value sent on a line overrides it for that line. Orders whose lines are split across dates or statuses go to POST /api/v1/supply-transactions-splits. Records that pass validation are loaded asynchronously; follow the returned task. See Inventory & Supply.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required
length between 1 and 80

Order number identifying PO, TO or WO

string
length between 0 and 80

Vendor number or parent warehouse/distribution center code. Required here unless it is supplied on every line item

date
required

Date order is entered for item to be processed (YYYY-MM-DD)

int32
≥ 0

Supplier/vendor invoice number for supply transaction

string
length between 0 and 65

Supplier/vendor tracking number for the order

string
length between 0 and 9

The GAINS tracking number of the order (up to 9 characters)

LineItems
array of objects
required
length ≥ 1

The line items belonging to this supply transaction

LineItems*

The line items belonging to this supply transaction

string
required
length between 1 and 8

Line specific number

string
required
length between 1 and 65

Part number or Item/SKU code

string
required
length between 1 and 80

Location code or number

date

Date the order is expected to be received (YYYY-MM-DD)

date

Date order is actually received to stock and ready for processing (YYYY-MM-DD)

int32
≥ 0

Quantity of item requested in units

int32
≥ 0

Quantity of item actually received in units

string
enum
required
length between 1 and 2

'00' for planned, '01' for in-transit, '02' for in-process, '03' for closed, '04' for cancelled

Allowed:
string
length between 1 and 2

The order status as held in the customer's own system

string
length between 1 and 2

The supply status as held in the customer's own system

string
length between 0 and 80

(Line Override) Vendor number or parent warehouse/distribution center code. Overrides the header value; required on every line when the header does not supply it

int32
≥ 0

(Line Override) Supplier/vendor invoice number for supply transaction

string
length between 0 and 65

(Line Override) Supplier/vendor tracking number for the order

double
≥ 0

Unit cost

date

Date received at dock for clients that wish to differentiate when an item reaches the dock versus when it is in stock (YYYY-MM-DD)

ComponentDetails
object

The kit and component this line belongs to, for a work order line

string
length between 0 and 39

Additional notes

string
length between 0 and 20

Lot specific supply

ExtendedData
object

Customer-defined extended data attributes for this record, keyed by the API label configured for the payload (see GET /api/v1/extended-data). Labels configured as required must be present. If no extended data is configured for this payload, a record carrying ExtendedData is rejected.

ExtendedData
object

Customer-defined extended data attributes for this record, keyed by the API label configured for the payload (see GET /api/v1/extended-data). Labels configured as required must be present. If no extended data is configured for this payload, a record carrying ExtendedData is rejected.

Headers
string
length ≤ 255

Optional key that makes a retry safe. A request repeating a key already used on this endpoint within the last 24 hours is refused with 400 and nothing is submitted again. A UUID is recommended; at most 255 characters

string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
*/*
application/json