List orders
Retrieve a paginated list of orders for the authenticated store. Requires both customerEmail and orderNameOrNumber to filter orders. Optionally filter by sourceOrderId.
Query Parameters
- customerEmail string
Required with orderNameOrNumber. The email address of the customer to filter orders by.
- orderNameOrNumber string
Required with customerEmail. The source order name or number to filter orders by.
- sourceOrderId string
The order identifier from the source platform to filter by.
- after string
Cursor for forward pagination. Pass the
endCursorfrom a previous response to fetch the next page. - before string
Cursor for backward pagination. Pass the
startCursorfrom a previous response to fetch the previous page. - first number
Number of items to return when paginating forward (used with
after). Defaults to 50. - last number
Number of items to return when paginating backward (used with
before). - orderBy string
Possible values: [
asc,desc]Sort order for results. Defaults to descending.
- 200
- 400
- 401
- 403
- 429
OK
- application/json
- Schema
- Example (from schema)
Schema
orders object[] required
Array [orderId numberThe ID of the order in Corso, used to interact with Corso systems.
currencyConversionRate numberThe conversion rate between store and customer
storeId number requiredThe 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 booleanWhether or not the order is protected with Corso Green Shipping Protection.
sourceOrderId string requiredThe order identifier from the source platform. Is unique across the store, and typically across the entire platform used by the merchant.
orderNumber stringThe order number from the source platform, if none is provided. sourceOrderId will be used
orderName stringCustomer-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 in E-164 format.
email stringCustomer email address.
phone string requiredCustomer phone number in E-164 format.
sourceCustomerId string requiredThe customer ID from the source system.
firstName string requiredFirst name.
lastName string requiredLast name.
lineItems object[] required
Possible values:
>= 1Array of objects representing the line items on the order.
Array [orderId number requiredThe ID of the order the line item belongs to in Corso systems.
lineItemId number requiredThe ID of the line item in Corso systems.
sourceCanceledOn date-timeDate/time when the order was canceled in Corso systems.
createdOn date-timeDate/time when the line item was created in Corso systems.
updatedOn date-timeDate/time when the line item was last updated in Corso systems.
sourceLineItemId string requiredThe line item ID (from the source system).
productId stringThe product ID for the line item (from the source system).
variantId stringThe 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
imgUrl stringURL of the product image, if available.
options object[]
Product variant options from the platform.
Array [name string requiredThe option name (e.g., "Size", "Color").
value string requiredThe option value (e.g., "Large", "Blue").
]]createdOn date-timeDate/time when the order was created in Corso systems.
updatedOn date-timeDate/time when the order was most recently updated in Corso systems.
sourceCanceledOn date-timeDate/time when the order was canceled in the source system.
sourceCreatedOn date-timeDate/time when the order was created in the source system.
sourceUpdatedOn date-timeDate/time when the order was most recently updated in the source system
shippingMoney currency requiredThe cost of shipping the order as charged to the customer.
subtotalMoney currency requiredThe 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 requiredThe amount of all tax applied to the order as included in the order total.
totalMoney currency requiredThe 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.
firstName stringThe first name for the address.
lastName stringThe last name for the address.
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-1 alpha-2 country code
latitude numberLatitude coordinate of the address.
longitude numberLongitude coordinate of the address.
shippingAddress object required
name stringThe name line on an address. Often the name of the customer, or the business name something is shipped to.
firstName stringThe first name for the address.
lastName stringThe last name for the address.
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-1 alpha-2 country code
latitude numberLatitude coordinate of the address.
longitude numberLongitude coordinate of the address.
grams numberThe weight of the order, in grams.
carbonGrams numberThe amount of carbon offset for the order, in grams. Only available after fulfillment (when the shipping origin can be determined).
carbonCalculationMethod stringHow the carbon was calculated, depending on the accuracy of the input data such as weight and distance.
shippingTitle stringThe name of the shipping plan used.
canceledReason stringThe reason the order was canceled.
notes stringAny notes on the order
channel stringThe name of the channel the order was created on.
channelId stringThe ID of the sales channel the order was created from.
customerCurrencyCode stringThe 3 letter currency code used by the customer in ISO 4217 format
]pageInfo object required
Information about the pagination of a list.
hasNextPage boolean requiredWhether there are more items after the last returned item.
hasPreviousPage boolean requiredWhether there are more items before the first returned item.
startCursor string nullable requiredAn opaque cursor pointing to the first item in the current page. Pass as
beforeto paginate backwards.endCursor string nullable requiredAn opaque cursor pointing to the last item in the current page. Pass as
afterto paginate forwards.
{
"orders": [
{
"orderId": 18372912,
"currencyConversionRate": 0,
"storeId": 9359,
"isShippingProtected": true,
"sourceOrderId": "842810",
"orderNumber": "string",
"orderName": "RDR-12345",
"customer": {
"email": "[email protected]",
"phone": "+16643443554"
},
"lineItems": [
{
"orderId": 18372912,
"lineItemId": 18372912,
"sourceCanceledOn": "2022-01-01T17:32:28Z",
"createdOn": "2022-01-01T17:32:28Z",
"updatedOn": "2022-01-01T17:32:28Z",
"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,
"imgUrl": "https://cdn.example.com/products/widget-blue.jpg",
"options": [
{
"name": "Size",
"value": "Large"
},
{
"name": "Color",
"value": "Blue"
}
]
}
],
"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",
"firstName": "John",
"lastName": "Doe",
"line1": "1901 W Madison St",
"line2": "Ste 101",
"city": "Chicago",
"stateOrProvinceCode": "IL",
"postalCode": "60612-2459",
"countryCode": "US",
"latitude": 41.8807,
"longitude": -87.6742
},
"shippingAddress": {
"name": "Michael Jordan, c/o Chicago Bulls",
"firstName": "John",
"lastName": "Doe",
"line1": "1901 W Madison St",
"line2": "Ste 101",
"city": "Chicago",
"stateOrProvinceCode": "IL",
"postalCode": "60612-2459",
"countryCode": "US",
"latitude": 41.8807,
"longitude": -87.6742
},
"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"
}
],
"pageInfo": {
"hasNextPage": true,
"hasPreviousPage": false,
"startCursor": "eyJpZCI6MTIzNDU2fQ",
"endCursor": "eyJpZCI6Nzg5MDEyfQ"
}
}
Bad Request
Unauthorized
Forbidden
Too Many Requests
Response Headers
RateLimit-Limit integer
The maximum number of requests allowed in the current window.
RateLimit-Remaining integer
The number of requests remaining in the current window.
RateLimit-Reset integer
The number of seconds until the current rate limit window resets.
Retry-After integer
The number of seconds to wait before retrying (only present when rate limited).