Get an order
Retrieve the current representation of an order from Corso systems
Path Parameters
- orderId number required
The Corso ID for an order record.
Example: 428334
- 200
- 400
- 401
- 403
- 404
OK
- application/json
- Schema
- Example (from schema)
Schema
- orderId number
The ID of the order in the Corso, used to interact with Corso systems.
- currencyConversionRate number
The conversion rate between store and customer
- storeId number required
The ID of the store in Corso systems. Some merchants may have multiple stores under a single API client_id, so this value should always be specified. Please contact Corso if you do not have this value for your integration.
- isShippingProtected boolean
Whether or not the order is protected with Corso Green Shipping Protection.
- sourceOrderId string required
The order identifier from the source platform. Is unique across the store, and typically across the entire platform used by the merchant.
- orderNumber string
The order number from the source platform, if none is provided. sourceOrderId will be used
- orderName string
Customer-facing identifier for the order the source platform. Often composed of the store-unique order number plus some modifying prefixes and suffixes.
customer object
- anyOf
- MOD1
- MOD2
email string requiredCustomer email address.
phone stringCustomer phone number is E-164 format.
email stringCustomer email address.
phone string requiredCustomer phone number is E-164 format.
sourceCustomerId string requiredThe customer ID (the source system).
firstName string requiredFirst name.
lastName string requiredLast name.
- anyOf
lineItems object[] required
Possible values:
>= 1
Array of objects representing the line items on the order.
Array [sourceLineItemId string requiredThe line item ID (from the source system).
productId string requiredThe product ID for the line item (from the source system).
variantId string requiredThe variant ID for the line item (from the source system). For the line item that represents the Corso Green Shipping Product (if purchased on the order), this should match the corresponding variant ID stored by Corso in our system, so that we can identify the order as protected.
name string requiredThe line item name, typically the value shown to the customer representing the product/variant combination purchased.
quantity number requiredThe quantity purchased for the line item.
sku string requiredThe SKU of product/variant of the line item.
tax currency requiredAny tax applied to the line item.
vendor stringThe vendor of the line item
price currency requiredThe price of the line item
]- createdOn date-time
Date/time when the order was created in Corso systems.
- updatedOn date-time
Date/time when the order was most recently updated in Corso systems.
- sourceCanceledOn date-time
Date/time when the order was canceled in the source system.
- sourceCreatedOn date-time
Date/time when the order was created in the source system.
- sourceUpdatedOn date-time
Date/time when the order was most recently updated in the source system
- shippingMoney currency required
The cost of shipping the order as charged to the customer.
- subtotalMoney currency required
The subtotal of the order in the merchant's currency; typically equal to the cost of all product line items in the order totalled together.
- taxMoney currency required
The amount of all tax applied to the order as included in the order total.
- totalMoney currency required
The total amount charged to the customer. Must be equal to the sum of shippingMoney, subtotalMoney, and taxMoney, or the request will fail.
billingAddress object required
name stringThe name line on an address. Often the name of the customer, or the business name something is shipped to.
line1 string requiredAddress line 1, generally the street number and name.
line2 stringAddress line 2. Not mandatory, but often used for an apartment or suite number.
city string requiredCity of the Address
stateOrProvinceCode string requiredState or province code, typically 2 characters.
postalCode string requiredPostal Code
countryCode string requiredISO 3166 country code
latitude numberlongitude numbershippingAddress object required
name stringThe name line on an address. Often the name of the customer, or the business name something is shipped to.
line1 string requiredAddress line 1, generally the street number and name.
line2 stringAddress line 2. Not mandatory, but often used for an apartment or suite number.
city string requiredCity of the Address
stateOrProvinceCode string requiredState or province code, typically 2 characters.
postalCode string requiredPostal Code
countryCode string requiredISO 3166 country code
latitude numberlongitude number- grams number
The weight of the order, in grams.
- carbonGrams number
The amount of carbon offset for the order, in grams. Only available after fulfillment (when the shipping origin can be determined).
- carbonCalculationMethod string
How the carbon was calculated, depending on the accuracy of the input data such as weight and distance.
- shippingTitle string
The name of the shipping plan used.
- canceledReason string
The reason the order was canceled.
- notes string
Any notes on the order
- channel string
The name of the channel the order was created on.
- channelId string
The ID of the sales channel the order was created from.
- customerCurrencyCode string
The 3 letter currency code used by the customer in ISO 4217 format
{
"orderId": 18372912,
"currencyConversionRate": 0,
"storeId": 9359,
"isShippingProtected": true,
"sourceOrderId": "842810",
"orderNumber": "string",
"orderName": "RDR-12345",
"customer": {
"email": "[email protected]",
"phone": "+16643443554"
},
"lineItems": [
{
"sourceLineItemId": "990986",
"productId": "pro-33320",
"variantId": "var-4569876332",
"name": "Shorts - color: blue, size: small",
"quantity": 1,
"sku": "ITEM-12345",
"tax": 1.23,
"vendor": "Nike",
"price": 129.53
}
],
"createdOn": "2022-01-01T17:32:28Z",
"updatedOn": "2022-01-01T17:32:28Z",
"sourceCanceledOn": "2022-01-01T17:32:28Z",
"sourceCreatedOn": "2022-01-01T17:32:28Z",
"sourceUpdatedOn": "2022-01-01T17:32:28Z",
"shippingMoney": 1,
"subtotalMoney": 10,
"taxMoney": 1,
"totalMoney": 12,
"billingAddress": {
"name": "Michael Jordan, c/o Chicago Bulls",
"line1": "1901 W Madison St",
"line2": "Ste 101",
"city": "Chicago",
"stateOrProvinceCode": "IL",
"postalCode": "60612-2459",
"countryCode": "USA",
"latitude": 0,
"longitude": 0
},
"shippingAddress": {
"name": "Michael Jordan, c/o Chicago Bulls",
"line1": "1901 W Madison St",
"line2": "Ste 101",
"city": "Chicago",
"stateOrProvinceCode": "IL",
"postalCode": "60612-2459",
"countryCode": "USA",
"latitude": 0,
"longitude": 0
},
"grams": 8783,
"carbonGrams": 1338,
"carbonCalculationMethod": "Calculated",
"shippingTitle": "FedEx 2nd Day Air",
"canceledReason": "Order was created by mistake",
"notes": "Please use your red gift wrap, thank you!",
"channel": "web",
"channelId": "d2d3d4d5",
"customerCurrencyCode": "USD"
}
Bad Request
Unauthorized
Forbidden
Not Found