Download OpenAPI specification:Download
The Outbound ASN API allows clients to be notified when a shipment is leaving the Optoro WMS. This allows clients to notify other systems so that the inventory can be received at the destination.
For very large shipments or pallets multiple ASNs may be sent. Your systems should expect to receive multiple messages for a single carton. Each message will have a unique asn number though.
When Optoro receives a 401 HTTP status, Optoro will request a new Authentication Token from the client’s services and retry the request.
When Optoro receives any other error (as described above and identified by a 4xx (not 401) or 5xx range http status code) Optoro will retry five times with the same message. The retries will happen at an exponential backoff cadence in order not to overload machines. If the failure persists, the message will be stored in a failure queue and Optoro will have a technical contact person reach out to client tech support to report a problem. When the problem has been resolved, Optoro can manually retry failed requests.
For Outbound ASN acknowledgement, all errors are handled the same since this is not in a user facing flow. However, the differentiation of status codes will help Optoro when reporting an issue.
Client endpoint to which Outbound ASN is posted to.
This endpoint along with any authentication mechanisms needed must be communicated to client's account manager.
Success. Optoro recommends client APIs respond with a JSON-structured object. This is used for debugging purposes only so this guidance is technically optional.
Bad Request
Not Authorized. A new Authentication Token from the client’s services and retry the request.
Validation Failure
Internal Server Error
Client Server Unavailable
{- "from": {
- "identifier": "16",
- "type": "warehouse"
}, - "to": {
- "identifier": "07",
- "type": "warehouse",
- "address": {
- "name": "Bliss Diamond",
- "company": "Acme",
- "street": "6001 N Dr South",
- "street2": "60 N Dr North",
- "city": "LIBERTYVILLE",
- "state": "OH",
- "zip": "43125"
}
}, - "asn_number": "1498456_7417412",
- "channel": "active_ret",
- "shipment_identifier": "WS3710296-213344",
- "tracking_number": "1ZA0000000",
- "carrier": "UPS GROUND",
- "carrier_payment_type": "collect",
- "ship_date": "2023-08-28T04:49:50.693Z",
- "status": "shipped",
- "details_type": "unit",
- "cartons": [
- {
- "identifier": "T00028546",
- "reference": {
- "type": "RA",
- "identifier": "573001000000",
- "alternate_identifier": "742769019332"
}, - "details": [
- {
- "line_identifier": "1",
- "program_identifier": "16_rma",
- "unit_identifier": "A0393197881",
- "client_unit_identifier": "B04847382",
- "inbound_received_asn": "d470a87c-4f63-4f0e-bc76-4683247bc434",
- "sku": "768983020002",
- "upc": "500097771079",
- "quantity": 1,
- "vendor_identifier": "Bradtke and Streich",
- "serial_number": "11",
- "condition": "TT",
- "eligibility_flags": [
- "64"
]
}
], - "sorting_template_name": "Disposable Items"
}
], - "bol_number": "21",
- "timestamp": "2023-08-29T03:41:16.848Z"
}
{- "message": "Success"
}