Order by lookup key
GET/orders/:lookupKey/:lookupValue
Retrieve order details by a specific lookupKey / lookupId combination
lookupKeys |
---|
id |
sourceId |
Request
Path Parameters
Use id
or externalId
id
- Integer
The id
or externalId
of the order
Query Parameters
Optional. Use orderitems
to retrieve the orderitems of the order. Use orderitems.product
to retrive product details for each orderitem.
Responses
- 200
- 400
- 404
Get Order by Id - 200
Response Headers
Alt-Svc
string
Via
string
alt-svc
string
content-length
string
date
string
return-format
string
server
string
x-request-id
string
- application/json
- Schema
- Example (from schema)
- Get Order by Id - 200
Schema
Array [
]
data
object
clientData
object
invoiceData
object
address
object
items
object[]
paymentData
object
postageData
object
shippingData
object
address
object
shop
object
total
object
tax
object
{
"data": {
"channelId": 1,
"clientData": {},
"date": "2022-03-16T15:00:55",
"debtorId": "753953",
"email": "",
"externalId": "",
"extraInfo": "",
"firstName": "Julien",
"id": 195,
"invoiceData": {
"address": {
"active": "Y",
"city": "Apeldoorn",
"code": "",
"company": "",
"country": "NL",
"email": "julien@propel.us",
"fax": "",
"firstName": "Julien",
"gender": "U",
"icp": "N",
"id": 81902,
"isDefault": "N",
"lastName": "Serres",
"middleName": "",
"mobile": "",
"name": "",
"notes": "",
"number": "",
"numberExtension": "",
"phone": "+31206717171",
"postalCode": "7323 KE",
"region": "",
"street": "Mazurkastraat 20",
"type": "invoice",
"url": ""
}
},
"itemCount": 1,
"items": [
{
"childItems": [],
"discountAmount": 0,
"discountAmountNet": 0,
"discountAmountTotal": 0,
"discountAmountTotalNet": 0,
"discountPercentage": 0,
"name": "Gallagher MBS400 fence energiser (230V/12V/Solar)",
"notes": "",
"price": 292.94,
"quantity": 1,
"sku": "390307",
"supplier": "INTERN",
"supplierCode": "390307",
"taxCode": "L",
"taxPercentage": 11,
"type": "product",
"unit": 1
}
],
"language": "EN-US",
"lastName": "Serres",
"middleName": "",
"paymentData": {
"grossAmount": 0,
"netAmount": 0,
"payMethod": "",
"payStatus": "",
"paystatusdate": "",
"tax": 0,
"taxPercentage": 21,
"transactionId": ""
},
"postageData": {
"carrier": "",
"partialDeliveryAllowed": "Y",
"pickUpLocationId": 0,
"postage": 0,
"postageNet": 0,
"postageTaxPercentage": 21,
"requestDate": "",
"shippingMethod": ""
},
"reference": "",
"remarks": "",
"shippingData": {
"address": {
"active": "Y",
"city": "Apeldoorn",
"code": "",
"company": "",
"country": "NL",
"email": "",
"fax": "",
"firstName": "Julien",
"gender": "U",
"icp": "N",
"id": 81903,
"isDefault": "N",
"lastName": "Serres",
"middleName": "",
"mobile": "",
"name": "",
"notes": "",
"number": "20",
"numberExtension": "",
"phone": "",
"postalCode": "7323 KE",
"region": "",
"street": "Mazurkastraat",
"type": "delivery",
"url": ""
}
},
"shop": {
"id": 1,
"name": "Propellor Sonar"
},
"shopId": 1,
"source": "intern",
"status": "CONFIRMED",
"total": {
"discountPercentage": 0,
"discountValue": 0,
"tax": {
"11": 32.2234,
"21": 0
},
"totalGross": 292.94,
"totalNet": 325.1634
},
"type": "dropshipment",
"userId": 14718
},
"messages": [],
"total": 1
}
{
"data": {
"channelId": 1,
"clientData": {},
"date": "2022-03-16T15:00:55",
"debtorId": "753953",
"email": "",
"externalId": "",
"extraInfo": "",
"firstName": "Julien",
"id": 195,
"invoiceData": {
"address": {
"active": "Y",
"city": "Apeldoorn",
"code": "",
"company": "",
"country": "NL",
"email": "julien@propel.us",
"fax": "",
"firstName": "Julien",
"gender": "U",
"icp": "N",
"id": 81902,
"isDefault": "N",
"lastName": "Serres",
"middleName": "",
"mobile": "",
"name": "",
"notes": "",
"number": "",
"numberExtension": "",
"phone": "+31206717171",
"postalCode": "7323 KE",
"region": "",
"street": "Mazurkastraat 20",
"type": "invoice",
"url": ""
}
},
"itemCount": 1,
"items": [
{
"childItems": [],
"discountAmount": 0,
"discountAmountNet": 0,
"discountAmountTotal": 0,
"discountAmountTotalNet": 0,
"discountPercentage": 0,
"name": "Gallagher MBS400 fence energiser (230V/12V/Solar)",
"notes": "",
"price": 292.94,
"quantity": 1,
"sku": "390307",
"supplier": "INTERN",
"supplierCode": "390307",
"taxCode": "L",
"taxPercentage": 11,
"type": "product",
"unit": 1
}
],
"language": "EN-US",
"lastName": "Serres",
"middleName": "",
"paymentData": {
"grossAmount": 0,
"netAmount": 0,
"payMethod": "",
"payStatus": "",
"paystatusdate": "",
"tax": 0,
"taxPercentage": 21,
"transactionId": ""
},
"postageData": {
"carrier": "",
"partialDeliveryAllowed": "Y",
"pickUpLocationId": 0,
"postage": 0,
"postageNet": 0,
"postageTaxPercentage": 21,
"requestDate": "",
"shippingMethod": ""
},
"reference": "",
"remarks": "",
"shippingData": {
"address": {
"active": "Y",
"city": "Apeldoorn",
"code": "",
"company": "",
"country": "NL",
"email": "",
"fax": "",
"firstName": "Julien",
"gender": "U",
"icp": "N",
"id": 81903,
"isDefault": "N",
"lastName": "Serres",
"middleName": "",
"mobile": "",
"name": "",
"notes": "",
"number": "20",
"numberExtension": "",
"phone": "",
"postalCode": "7323 KE",
"region": "",
"street": "Mazurkastraat",
"type": "delivery",
"url": ""
}
},
"shop": {
"id": 1,
"name": "Propellor Sonar"
},
"shopId": 1,
"source": "intern",
"status": "CONFIRMED",
"total": {
"discountPercentage": 0,
"discountValue": 0,
"tax": {
"11": 32.2234,
"21": 0
},
"totalGross": 292.94,
"totalNet": 325.1634
},
"type": "dropshipment",
"userId": 14718
},
"messages": [],
"total": 1
}
Get Order by Id - 400 (invalid lookupKey)
Response Headers
Alt-Svc
string
Via
string
alt-svc
string
content-length
string
date
string
return-format
string
server
string
x-request-id
string
- application/json
- Schema
- Example (from schema)
- Get Order by Id - 400 (invalid lookupKey)
Schema
error
object
{
"error": {
"code": 10006,
"messages": [
"Invalid lookup key [id1], key must contain one of the following values: [id,externalId]"
],
"moreInfo": "https://www.propel.us/docs/errors/10006",
"status": 400,
"type": "InvalidLookupKey"
}
}
{
"error": {
"code": 10006,
"messages": [
"Invalid lookup key [id1], key must contain one of the following values: [id,externalId]"
],
"moreInfo": "https://www.propel.us/docs/errors/10006",
"status": 400,
"type": "InvalidLookupKey"
}
}
Get Order by Id - 404
Response Headers
Alt-Svc
string
Via
string
alt-svc
string
content-length
string
date
string
return-format
string
server
string
x-request-id
string
- application/json
- Schema
- Example (from schema)
- Get Order by Id - 404
Schema
error
object
{
"error": {
"code": 15001,
"messages": [
"Order with id [162222] not found"
],
"moreInfo": "https://www.propel.us/docs/errors/15001",
"status": 404,
"type": "OrderNotFound"
}
}
{
"error": {
"code": 15001,
"messages": [
"Order with id [162222] not found"
],
"moreInfo": "https://www.propel.us/docs/errors/15001",
"status": 404,
"type": "OrderNotFound"
}
}