Download OpenAPI specification:Download
The Inbound Advance Shipping Notice API allows clients to notify our system when a shipment is inbound. The data sent will be used to receive and reconcile against.
The ASN API will return a HTTP status code 202 to indicate that the request was processed successfully and that the provided ASN is queued for creation.
Error response will be HTTP status code 400 for other bad/unparseable requests.
Error response will be HTTP status code 401 for missing or bad api_key (these have no body).
Error response will be HTTP status code 422 for validation errors (missing or invalid fields in this case).
{- "program_identifier": "consumer_returns",
- "from": {
- "identifier": 22,
- "type": "Warehouse"
}, - "to": {
- "identifier": 1352,
- "type": "Store"
}, - "asn_number": "SO00001234",
- "shipment_identifier": "SI1ZAAAAAAZZ97764680",
- "tracking_number": "1Z123123123123",
- "carrier": "UPS",
- "ship_date": "2019-03-15T00:00:00Z",
- "status": "shipped",
- "details_type": "unit",
- "asn_type": "MR",
- "cartons": [
- {
- "identifier": "CTAA1234567",
- "reference": {
- "type": "RMA",
- "identifier": 12345,
- "alternate_identifier": "OR12345678"
}, - "details": [
- {
- "line_identifier": 123456789,
- "unit_identifier": 123456891011,
- "reference_line_identifier": 1,
- "sku": "S123456",
- "upc": 12345678905,
- "quantity": 1,
- "vendor_identifier": "vnd_3001",
- "serial_number": 12345689,
- "condition": "N",
- "eligibility_flags": [
- [
- "personalized"
]
], - "sell_date": "2021-01-10T00:00:00Z",
- "return_date": "2021-01-10T00:00:00Z",
- "labels": [
- {
- "type": "text",
- "name": "title",
- "value": "Printing this title"
}
], - "merchant": "Best Buy",
- "concept": "Insignia",
- "asin": 1234567890,
- "return_reason": "Wrong Item Sent"
}
]
}
], - "messagetimestamp": "2019-10-16T10:59:20"
}
{- "message": "Validation Failed",
- "errors": [
- {
- "field": "reference_number",
- "code": "missing_field"
}
]
}
ASNs may be updated to change the status of the ASN overall or the status of a detail line. See above for permitted status values. ASN Number should be included as part of the url. ASNs can be updated only when they are active and have no receptions.
api-version required | string There are currently two supported versions of the Inbound Advance Shipping Notice API. Version 2 adds support for the Example: 1 |
program_identifier required | string Identifies which program this ASN belongs to for operational processes, financials and reporting. The value will be provided by Optoro during implementation. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
required | object (From) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
required | object (To) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
asn_number required | string A reference number for this ASN, typically this is an RMA Number or Transfer Number. This must be unique per program identifier. This is a scannable identifier in Receiving. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
shipment_identifier | string A reference number which may be used to identify multiple ASNs which were created against a single Order, RMA, or Transfer. This may be the | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
tracking_number | string The tracking number or BOL for the shipment. This is a scannable identifier in Receiving. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
carrier | string The carrier for the shipment. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ship_date | string <date-time> An iso8601 formatted date string representing when the ASN was or will be shipped (YYYY-MM-DDT00:00:00). This value can be updated using the ASN update endpoint. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
status required | string This value can be updated using the update endpoint. Cancelled status will block receiving. *Note passing 'canceled' with one 'l' will not be recognized by our system. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
details_type required | string
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
asn_type | string Optional, the type of ASN. Blanket type ASNs remove validations around units and overages. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
required | Array of objects (Carton) Each object (carton) below represents a single box or pallet which has been shipped. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
messagetimestamp | string <date-time> Optional, a timestamp denoting when the ASN message was sent. |
The ASN API will return a HTTP status code 202 to indicate that the request was processed successfully and that the provided ASN is queued for creation.
Error response will be HTTP status code 400 for other bad/unparseable requests.
Error response will be HTTP status code 401 for missing or bad api_key (these have no body).
Error response will be HTTP status code 422 for validation errors (missing or invalid fields in this case).
{- "program_identifier": "consumer_returns",
- "from": {
- "identifier": 22,
- "type": "Warehouse"
}, - "to": {
- "identifier": 1352,
- "type": "Store"
}, - "asn_number": "SO00001234",
- "shipment_identifier": "SI1ZAAAAAAZZ97764680",
- "tracking_number": "1Z123123123123",
- "carrier": "UPS",
- "ship_date": "2019-03-15T00:00:00Z",
- "status": "shipped",
- "details_type": "unit",
- "asn_type": "MR",
- "cartons": [
- {
- "identifier": "CTAA1234567",
- "reference": {
- "type": "RMA",
- "identifier": 12345,
- "alternate_identifier": "OR12345678"
}, - "details": [
- {
- "line_identifier": 123456789,
- "unit_identifier": 123456891011,
- "reference_line_identifier": 1,
- "sku": "S123456",
- "upc": 12345678905,
- "quantity": 1,
- "vendor_identifier": "vnd_3001",
- "serial_number": 12345689,
- "condition": "N",
- "eligibility_flags": [
- [
- "personalized"
]
], - "sell_date": "2021-01-10T00:00:00Z",
- "return_date": "2021-01-10T00:00:00Z",
- "labels": [
- {
- "type": "text",
- "name": "title",
- "value": "Printing this title"
}
], - "merchant": "Best Buy",
- "concept": "Insignia",
- "asin": 1234567890,
- "return_reason": "Wrong Item Sent"
}
]
}
], - "messagetimestamp": "2019-10-16T10:59:20"
}
{- "message": "Validation Failed",
- "errors": [
- {
- "field": "reference_number",
- "code": "missing_field"
}
]
}