Choose Brand API
Welcome to the API documentation for retrieving orders and updating tracking numbers using the Choose platform. This API allows the brand to fetch their orders from the Choose platform and subsequently update tracking numbers for those orders. Please read this notion https://choose.notion.site/Brand-Open-API-ae1867a30f1e4bff94ba550f3be642da for more information.
API Endpoints
https://brand.api.appchoose.io/graphql
Headers
# Your API token from the dashboard. Must be included in all API calls.
x-api-key: <YOUR_TOKEN_HERE>
Version
1.0.0
Queries
info
Description
Gets the system information
Response
Returns a SystemInfo!
Example
Query
query info {
info {
buildVersion
version
environment
}
}
Response
{
"data": {
"info": {
"buildVersion": "abc123",
"version": "xyz789",
"environment": "xyz789"
}
}
}
order
Description
Gets the order
Example
Query
query order($id: ID!) {
order(id: $id) {
id
billingId
customerId
sellerId
saleId
initialOrderId
initialOrder {
...OrderFragment
}
reshipOrderId
reshipOrder {
...OrderFragment
}
buyer {
...BuyerFragment
}
recipient {
...RecipientFragment
}
shipping {
...OrderShippingFragment
}
isShippingEstimatedTimeExceeded
totalPriceSold {
...PriceFragment
}
items {
...ItemFragment
}
parcels {
...ParcelFragment
}
returnParcels {
...ReturnParcelFragment
}
returnSlips {
...ReturnSlipFragment
}
claims {
...ClaimFragment
}
linesRefunds {
...OrderLineRefundFragment
}
rating {
...OrderRatingFragment
}
integration {
...OrderIntegrationFragment
}
operationType
payment {
...OrderPaymentFragment
}
hasBeenExported
hasSellerError
hasSynchronizationError
isCancelled
isFullDigital
splitActionErrorReasons
createdAt
tags {
...OrderTagsFragment
}
tagging {
...OrderTaggingFragment
}
}
}
Variables
{"id": 4}
Response
{
"data": {
"order": {
"id": "4",
"billingId": 4,
"customerId": "4",
"sellerId": "4",
"saleId": 4,
"initialOrderId": 4,
"initialOrder": Order,
"reshipOrderId": 4,
"reshipOrder": Order,
"buyer": Buyer,
"recipient": Recipient,
"shipping": OrderShipping,
"isShippingEstimatedTimeExceeded": true,
"totalPriceSold": Price,
"items": [Item],
"parcels": [Parcel],
"returnParcels": [ReturnParcel],
"returnSlips": [ReturnSlip],
"claims": [Claim],
"linesRefunds": [OrderLineRefund],
"rating": OrderRating,
"integration": OrderIntegration,
"operationType": "DROP_SHIPPING",
"payment": OrderPayment,
"hasBeenExported": true,
"hasSellerError": true,
"hasSynchronizationError": true,
"isCancelled": true,
"isFullDigital": false,
"splitActionErrorReasons": ["ORDER_CANCELLED"],
"createdAt": "2007-12-03T10:15:30Z",
"tags": OrderTags,
"tagging": OrderTagging
}
}
}
orders
Description
Gets the orders
Example :
query Orders($saleId: ID!, $input: OrdersInput!) {
orders(saleId: $saleId, input: $input) {
nodes {
id
sellerId
saleId
recipient {
fullName
firstName
lastName
address {
street
streetAdditional
zipCode
city
county
state
country
countryCode
}
}
createdAt
}
paging {
hasPreviousPage
hasNextPage
startCursor
endCursor
pageSize
}
totalCount
}
}
{
"saleId": "some_sale_id",
"input": {
"filter": {
"tagging": {
"fulfillment": "UNFULFILLED"
}
},
"paging": {
"pageSize": 50
},
"sort": {
"field": "CREATION_DATE",
"order": "ASCENDING"
}
}
Response
Returns an Orders!
Arguments
Name | Description |
---|---|
saleId - ID!
|
|
input - OrdersInput!
|
Example
Query
query orders(
$saleId: ID!,
$input: OrdersInput!
) {
orders(
saleId: $saleId,
input: $input
) {
nodes {
...OrderFragment
}
paging {
...PagingFragment
}
totalCount
}
}
Variables
{
"saleId": "4",
"input": OrdersInput
}
Response
{
"data": {
"orders": {
"nodes": [Order],
"paging": Paging,
"totalCount": PositiveInteger
}
}
}
ordersPaginated
orders
instead Description
Gets the orders of a sale
Response
Returns an OrdersConnection!
Arguments
Name | Description |
---|---|
saleId - String!
|
|
input - OrdersPaginatedInput
|
Example
Query
query ordersPaginated(
$saleId: String!,
$input: OrdersPaginatedInput
) {
ordersPaginated(
saleId: $saleId,
input: $input
) {
nodes {
...OrderFragment
}
pageInfo {
...PageInfoConnectionFragment
}
}
}
Variables
{
"saleId": "abc123",
"input": OrdersPaginatedInput
}
Response
{
"data": {
"ordersPaginated": {
"nodes": [Order],
"pageInfo": PageInfoConnection
}
}
}
Mutations
createParcel
Description
Creates a parcel with some items on an order
Response
Returns a Void
Arguments
Name | Description |
---|---|
orderId - String!
|
|
trackingInfo - ParcelTrackingInfo!
|
|
itemIds - [String!]
|
Example
Query
mutation createParcel(
$orderId: String!,
$trackingInfo: ParcelTrackingInfo!,
$itemIds: [String!]
) {
createParcel(
orderId: $orderId,
trackingInfo: $trackingInfo,
itemIds: $itemIds
)
}
Variables
{
"orderId": "abc123",
"trackingInfo": ParcelTrackingInfo,
"itemIds": ["xyz789"]
}
Response
{"data": {"createParcel": null}}
Types
Address
Description
Address
Example
{
"street": "abc123",
"streetAdditional": "abc123",
"zipCode": "abc123",
"city": "abc123",
"county": "xyz789",
"state": "abc123",
"country": "abc123",
"countryCode": "abc123"
}
Boolean
Description
The Boolean
scalar type represents true
or false
.
Example
true
Buyer
Description
The buyer is the person who has been billed for the order
Example
{
"fullName": "abc123",
"firstName": "abc123",
"lastName": "xyz789",
"address": Address,
"previous": Buyer
}
Claim
Description
Claim
Fields
Field Name | Description |
---|---|
id - ID!
|
ID |
reason - ClaimReason!
|
Reason |
otherReasonLabel - String
|
Other reason label written by the support team when the reason is "OTHER" |
messageFromSupport - String
|
Message written by the support team to the seller |
reshipActionErrorReasons - [ClaimReshipActionErrorReason!]!
|
Reship action error reasons if the action is not available |
actionFromSeller - ClaimSellerAction
|
Action chose by the seller when it has accepted the claim |
items - [Item!]!
|
Items |
proofUrls - [String!]!
|
Proof URLs |
isAccepted - Boolean!
|
Is accepted ? |
acceptedMessage - String
|
Message written by the seller when it accept the claim |
isDeclined - Boolean!
|
Is declined ? |
declinedMessage - String
|
Message written by the seller when it decline the claim |
createdAt - DateTime!
|
Date of the creation |
updatedAt - DateTime!
|
Latest update date |
isOpenedByBot - Boolean!
|
Was created by automatic flow ? |
Example
{
"id": 4,
"reason": "NOT_DELIVERED_AND_RETURNED_TO_SENDER",
"otherReasonLabel": "abc123",
"messageFromSupport": "abc123",
"reshipActionErrorReasons": ["ORDER_ALREADY_RESHIPPED"],
"actionFromSeller": "DIRECTLY_HANDLED_WITH_THE_CUSTOMER",
"items": [Item],
"proofUrls": ["abc123"],
"isAccepted": true,
"acceptedMessage": "abc123",
"isDeclined": true,
"declinedMessage": "xyz789",
"createdAt": "2007-12-03T10:15:30Z",
"updatedAt": "2007-12-03T10:15:30Z",
"isOpenedByBot": false
}
ClaimReason
Description
Claim Reason
Values
Enum Value | Description |
---|---|
|
The customer has not received the parcel and has been returned to the sender |
|
The customer has not received the parcel and the tracking is blocked |
|
The customer has not received the parcel and the tracking is delivered |
|
The customer has received the parcel but is damaged |
|
The customer has received the parcel but is incomplete |
|
The customer has received the parcel but is wrong (wrong or missing items) |
|
The customer has received a digital coupon code but is not working |
|
Other |
Example
"NOT_DELIVERED_AND_RETURNED_TO_SENDER"
ClaimReshipActionErrorReason
Description
Claim reship action error reason
Values
Enum Value | Description |
---|---|
|
The order has already been reshipped |
|
The order is cancelled |
|
There is no items to reship |
|
Some of the items to reship are cancelled |
|
Some of the items to reship are digital |
Example
"ORDER_ALREADY_RESHIPPED"
ClaimSellerAction
Description
Claim seller action (action chose by the seller when it has accepted the claim)
Values
Enum Value | Description |
---|---|
|
The seller has directy handled the claim with the customer |
|
The seller decided to resend a new digital coupon code for the items |
|
The seller decided to refund the items |
|
The seller decided to reship the items |
Example
"DIRECTLY_HANDLED_WITH_THE_CUSTOMER"
CurrencyISO
Description
Currency ISO code
Values
Enum Value | Description |
---|---|
|
Euro |
|
US Dollar |
Example
"eur"
Date
Example
"2007-12-03"
DateTime
Example
"2007-12-03T10:15:30Z"
DeliveryDateRange
Description
Represents a range of date and time when the parcel is expected to arrive at the customer's location
Example
{
"start": "2007-12-03",
"end": "2007-12-03",
"createdAt": "2007-12-03T10:15:30Z"
}
FloatPercentage
Example
FloatPercentage
ID
Description
The ID
scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as "4"
) or integer (such as 4
) input value will be accepted as an ID.
Example
4
Int
Description
The Int
scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.
Example
987
Item
Description
Item
Fields
Field Name | Description |
---|---|
id - ID!
|
ID |
productId - String!
|
Product ID |
productVariantId - String
|
Product variant ID |
name - String!
|
Name |
imageUrl - String!
|
Image URL |
size - String
|
Size |
sku - String
|
SKU |
gtin - String
|
GTIN |
priceBoughtByChoose - Price!
|
Price bought by Choose |
priceSold - Price!
|
Price sold by Choose to the customer (in cents) |
digitalCouponCode - String
|
Digital coupon code |
newDigitalCouponCode - String
|
New digital coupon code |
isDigital - Boolean!
|
Is digital ? |
isOffered - Boolean!
|
Is offered ? |
isCancellable - Boolean!
|
Is cancellable ? |
isCancelled - Boolean!
|
Is cancelled ? |
isReshipped - Boolean!
|
Is reshipped ? |
isReturnable - Boolean!
|
Is returnable ? |
isReturnGenerated - Boolean!
|
A return has been generated for this item ? |
isReturnValidated - Boolean!
|
A return has been validated for this item ? |
returnReasonCode - ItemReturnReasonCode
|
Return reason code |
refundSummary - OrderLineRefundSummary!
|
Refund summary |
Example
{
"id": "4",
"productId": "abc123",
"productVariantId": "abc123",
"name": "abc123",
"imageUrl": "abc123",
"size": "abc123",
"sku": "xyz789",
"gtin": "abc123",
"priceBoughtByChoose": Price,
"priceSold": Price,
"digitalCouponCode": "xyz789",
"newDigitalCouponCode": "xyz789",
"isDigital": true,
"isOffered": true,
"isCancellable": false,
"isCancelled": true,
"isReshipped": false,
"isReturnable": true,
"isReturnGenerated": true,
"isReturnValidated": false,
"returnReasonCode": "BETTER_PRICE",
"refundSummary": OrderLineRefundSummary
}
ItemReturnReasonCode
Description
Item return reason code
Values
Enum Value | Description |
---|---|
|
Better price |
|
Damaged product |
|
Damaged shipping |
|
Delay |
|
Description |
|
Other |
|
Picture |
|
Quality |
|
Size |
|
Wrong article |
Example
"BETTER_PRICE"
NonEmptyString
Example
"string"
OperationType
Description
Operation type
Values
Enum Value | Description |
---|---|
|
The seller sell its products and ship on its own |
|
Choose has ordered the products before the operation and ship on its own |
|
Choose order the products sold after the operation and ship it on its own |
|
The reseller sell products from another seller => Not used anymore |
Example
"DROP_SHIPPING"
Order
Description
Order
Fields
Field Name | Description |
---|---|
id - ID!
|
ID |
billingId - ID!
|
Billing ID |
customerId - ID!
|
Customer ID |
sellerId - ID!
|
Seller ID |
saleId - ID!
|
Sale ID |
initialOrderId - ID
|
ID of the initial order if this is a reship order |
initialOrder - Order
|
Initial order if this is a reship order |
reshipOrderId - ID
|
ID of the reship order if this is an initial order reshipped |
reshipOrder - Order
|
Reship order if this is an initial order reshipped |
buyer - Buyer!
|
The buyer is the person who has been billed for the order |
recipient - Recipient!
|
The recipient is the person who will receive the order |
shipping - OrderShipping!
|
Shipping infos |
isShippingEstimatedTimeExceeded - Boolean!
|
Is shipping estimated time exceeded ? |
totalPriceSold - Price!
|
Total price sold (items) by Choose to the customer (in cents) |
items - [Item!]!
|
Items ordered by the customer |
parcels - [Parcel!]!
|
Parcels |
returnParcels - [ReturnParcel!]!
|
Return parcels |
returnSlips - [ReturnSlip!]!
|
Return slips |
claims - [Claim!]!
|
Claims |
linesRefunds - [OrderLineRefund!]!
|
Lines refunds |
rating - OrderRating
|
Rating |
integration - OrderIntegration!
|
Integration |
operationType - OperationType!
|
Operation type |
payment - OrderPayment!
|
Payment infos |
hasBeenExported - Boolean!
|
Has been exported by the seller ? (using a CSV from the dashboard in order to not process it twice) |
hasSellerError - Boolean!
|
Has seller error ? |
hasSynchronizationError - Boolean!
|
Has synchronization error ? |
isCancelled - Boolean!
|
Is cancelled ? |
isFullDigital - Boolean!
|
Does the order include only digital items ? |
splitActionErrorReasons - [OrderSplitActionErrorReason!]!
|
Split action error reasons if the action is not available |
createdAt - DateTime!
|
Date of the creation |
tags - OrderTags!
|
Tags |
tagging - OrderTagging!
|
Tagging Use tags instead
|
Example
{
"id": "4",
"billingId": 4,
"customerId": "4",
"sellerId": "4",
"saleId": "4",
"initialOrderId": 4,
"initialOrder": Order,
"reshipOrderId": 4,
"reshipOrder": Order,
"buyer": Buyer,
"recipient": Recipient,
"shipping": OrderShipping,
"isShippingEstimatedTimeExceeded": true,
"totalPriceSold": Price,
"items": [Item],
"parcels": [Parcel],
"returnParcels": [ReturnParcel],
"returnSlips": [ReturnSlip],
"claims": [Claim],
"linesRefunds": [OrderLineRefund],
"rating": OrderRating,
"integration": OrderIntegration,
"operationType": "DROP_SHIPPING",
"payment": OrderPayment,
"hasBeenExported": false,
"hasSellerError": true,
"hasSynchronizationError": false,
"isCancelled": true,
"isFullDigital": false,
"splitActionErrorReasons": ["ORDER_CANCELLED"],
"createdAt": "2007-12-03T10:15:30Z",
"tags": OrderTags,
"tagging": OrderTagging
}
OrderIntegration
Description
Order integration
Fields
Field Name | Description |
---|---|
orderId - ID
|
ID of the order from the integration (Shopify, StockAZ) |
errorMessage - String
|
Error message from the integration (Shopify, StockAZ) |
shopify - ShopifyOrderIntegration
|
Shopify integration |
Example
{
"orderId": "4",
"errorMessage": "xyz789",
"shopify": ShopifyOrderIntegration
}
OrderLineRefund
Description
Order line refund
Fields
Field Name | Description |
---|---|
id - ID!
|
Identifier of the refund |
planId - ID!
|
Identifier of the plan (refunds made at the same time have the same plan id) |
lineId - ID!
|
Identifier of the line (item id for "ITEM" and order id for "SHIPPING" and "LEGACY") |
lineType - OrderLineType!
|
Line type ("ITEM" or "SHIPPING") |
amountInCents - PositiveInteger!
|
Amount in cents of the refund |
createdAt - DateTime!
|
Creation date of the refund |
Example
{
"id": "4",
"planId": "4",
"lineId": 4,
"lineType": "ITEM",
"amountInCents": PositiveInteger,
"createdAt": "2007-12-03T10:15:30Z"
}
OrderLineRefundSummary
Description
Order line refund summary
Fields
Field Name | Description |
---|---|
isRefundable - Boolean!
|
Is refundable ? Is not offered and not removed and has a price greater than 0 |
isTotallyRefunded - Boolean!
|
Is totally refunded ? Has at least one refund and the refunded amount is equal to the price |
refundedAmountInCents - PositiveInteger!
|
Refunded amount of the price in cents |
refundedAmountInPercentage - FloatPercentage!
|
Refunded amount of the price in percentage Is between |
remainingToRefundAmountInCents - PositiveInteger!
|
Remaining to refund amount of the price in cents |
remainingToRefundAmountInPercentage - FloatPercentage!
|
Remaining to refund amount of the price in percentage Is between |
Example
{
"isRefundable": true,
"isTotallyRefunded": false,
"refundedAmountInCents": PositiveInteger,
"refundedAmountInPercentage": FloatPercentage,
"remainingToRefundAmountInCents": PositiveInteger,
"remainingToRefundAmountInPercentage": FloatPercentage
}
OrderLineType
Description
Order line type
Values
Enum Value | Description |
---|---|
|
Item |
|
Shipping |
|
Legacy (not associated to an item or a shipping) |
Example
"ITEM"
OrderPayment
Description
Order payment
Fields
Field Name | Description |
---|---|
transactionCurrency - CurrencyISO!
|
Currency used for the payment transaction |
processor - PaymentProcessor!
|
Processor used for the payment |
subProcessor - PaymentSubProcessor
|
Sub processor used for the payment |
processorDetailed - String!
|
Processor detailed (eg: "stripe (ios Apple Pay)") |
processorTransactionId - String!
|
Processor transaction id |
processorTransactionUrl - String!
|
Url of the transaction in the processor dashboard |
Example
{
"transactionCurrency": "eur",
"processor": "Alma",
"subProcessor": "PayPal",
"processorDetailed": "xyz789",
"processorTransactionId": "abc123",
"processorTransactionUrl": "abc123"
}
OrderRating
OrderShipping
Description
Order shipping
Fields
Field Name | Description |
---|---|
fees - Int!
|
Fees (in cents) |
feesSold - Int!
|
Fees sold by Choose to the customer (in cents) |
estimatedTime - Int!
|
Estimated time in days |
policyId - ID
|
Policy ID |
pickupPoint - PickupPoint
|
Pickup point |
deliveryDateRangeHistory - [DeliveryDateRange!]!
|
Delivery date range history (ordered by createdAt desc) |
refundSummary - OrderLineRefundSummary!
|
Refund summary |
Example
{
"fees": 987,
"feesSold": 123,
"estimatedTime": 987,
"policyId": 4,
"pickupPoint": PickupPoint,
"deliveryDateRangeHistory": [DeliveryDateRange],
"refundSummary": OrderLineRefundSummary
}
OrderShippingTag
Description
Order shipping tag
Values
Enum Value | Description |
---|---|
|
A parcel is pending for the shipping info (tracking number) |
|
A parcel has the shipping info and is waiting to be given to the carrier |
|
A parcel has been shipped and is in progress |
|
A parcel has been lost |
|
A parcel has been delivered to the customer |
Example
"PENDING_SHIPPING_INFO"
OrderSplitActionErrorReason
Description
Order split action error reason
Values
Enum Value | Description |
---|---|
|
The order is cancelled |
|
The order has been reshipped |
|
The order has all the items digital |
|
The order has some claims pending |
|
The order has some refunds |
|
The order has some return parcels |
|
The order has some return slips |
Example
"ORDER_CANCELLED"
OrderTagBrand
Description
Order tag brand
Values
Enum Value | Description |
---|---|
|
The order is available for the brand and requires an action because unfulfilled |
|
The order is available for the brand and requires an action because shipment incident |
|
The order is available for the brand and requires an action because claim |
|
The order is available for the brand and requires an action because return |
|
The order is available for the brand and requires an action |
|
The order is available for the brand |
Example
"ACTION_REQUIRED_UNFULFILLED"
OrderTagClaim
Description
Order tag claim
Values
Enum Value | Description |
---|---|
|
The order has no claim |
|
The order has some opened claims |
|
The order has some closed claims |
Example
"NONE"
OrderTagFulfillment
Description
Order tag fulfillment
Values
Enum Value | Description |
---|---|
|
The order has none of the items that are eligible to shipment in a shipment |
|
The order has all the items that are eligible to shipment in a shipment |
Example
"UNFULFILLED"
OrderTagRefund
Description
Order tag refund
Values
Enum Value | Description |
---|---|
|
The order has no refund |
|
The order has some refunds but not totally refunded |
|
The order has some refunds and totally refunded |
Example
"NONE"
OrderTagReship
Description
Order tag reship
Values
Enum Value | Description |
---|---|
|
The order has no reship |
|
The order has some reships |
Example
"NONE"
OrderTagReturn
Description
Order tag return
Values
Enum Value | Description |
---|---|
|
The order has no return |
|
The order has some canceled returns |
|
The order has some requested returns |
|
The order has some in progress returns |
|
The order has some delivered returns |
|
The order has some validated returns |
Example
"NONE"
OrderTagShipment
Description
Order tag shipment
Values
Enum Value | Description |
---|---|
|
The order has no shipment |
|
The order has some pending shipments |
|
The order has some info received shipments |
|
The order has some in transit shipments |
|
The order has some out for delivery shipments |
|
The order has some attempt fail shipments |
|
The order has some available for pickup shipments |
|
The order has some delivered shipments |
|
The order has some exception shipments |
|
The order has some expired shipments |
Example
"NONE"
OrderTagShippingMode
Description
Order tag shipping mode
Values
Enum Value | Description |
---|---|
|
The order will not be shipped (digital items) |
|
The shipments will be shipped at a pickup point |
|
The shipments will be shipped at the recipient's home |
Example
"NONE"
OrderTagShopify
Description
Order tag shopify
Values
Enum Value | Description |
---|---|
|
The order has no shopify |
|
The order has a shopify and is not synchronized |
|
The order has a shopify and is synchronized |
Example
"NONE"
OrderTagStatus
Description
Order tag status
Values
Enum Value | Description |
---|---|
|
The order has been canceled by the customer or by a member of the support team |
|
The order has been placed less than 15 minutes ago |
|
The order has been placed more than 15 minutes ago |
Example
"CANCELED"
OrderTagType
Description
Order tag type
Values
Enum Value | Description |
---|---|
|
The order has only digital items |
|
The order has only physical items |
Example
"DIGITAL"
OrderTagging
Description
Order tagging
Fields
Field Name | Description |
---|---|
shippings - [OrderShippingTag!]!
|
Shipping tags |
Example
{"shippings": ["PENDING_SHIPPING_INFO"]}
OrderTags
Description
Order tags
Fields
Field Name | Description |
---|---|
brand - [OrderTagBrand!]!
|
Brand tags |
type - OrderTagType!
|
Type tag |
status - OrderTagStatus!
|
Status tag |
shopify - OrderTagShopify!
|
Shopify tag |
shippingMode - OrderTagShippingMode!
|
Shipping mode tag |
fulfillment - OrderTagFulfillment!
|
Fulfillment tag |
shipment - [OrderTagShipment!]!
|
Shipment tags |
claim - [OrderTagClaim!]!
|
Claim tags |
refund - OrderTagRefund!
|
Refund tag |
reship - OrderTagReship!
|
Reship tag |
return - [OrderTagReturn!]!
|
Return tags |
Example
{
"brand": ["ACTION_REQUIRED_UNFULFILLED"],
"type": "DIGITAL",
"status": "CANCELED",
"shopify": "NONE",
"shippingMode": "NONE",
"fulfillment": "UNFULFILLED",
"shipment": ["NONE"],
"claim": ["NONE"],
"refund": "NONE",
"reship": "NONE",
"return": ["NONE"]
}
Orders
Description
Orders
Fields
Field Name | Description |
---|---|
nodes - [Order!]!
|
Nodes |
paging - Paging!
|
Paging |
totalCount - PositiveInteger!
|
Total count |
Example
{
"nodes": [Order],
"paging": Paging,
"totalCount": PositiveInteger
}
OrdersConnection
Description
Orders connection
Fields
Field Name | Description |
---|---|
nodes - [Order!]!
|
Nodes (orders) |
pageInfo - PageInfoConnection!
|
Page info |
Example
{
"nodes": [Order],
"pageInfo": PageInfoConnection
}
OrdersFilter
Description
Filter on orders
Fields
Input Field | Description |
---|---|
tagging - OrdersTaggingFilter
|
Filter on tagging |
Example
{"tagging": OrdersTaggingFilter}
OrdersFilterCreationDateInput
OrdersFilterInput
Description
Orders filter input
Fields
Input Field | Description |
---|---|
creationDate - OrdersFilterCreationDateInput
|
Filter with creation date |
itemSku - String
|
Filter with item SKU |
tagging - OrdersFilterTaggingInput
|
Filter with tagging |
Example
{
"creationDate": OrdersFilterCreationDateInput,
"itemSku": "xyz789",
"tagging": OrdersFilterTaggingInput
}
OrdersFilterTaggingInput
Description
Orders filter tagging input
Fields
Input Field | Description |
---|---|
brand - [OrderTagBrand!]
|
Filter on brand tags |
type - [OrderTagType!]
|
Filter on type tags |
status - [OrderTagStatus!]
|
Filter on status tags |
shopify - [OrderTagShopify!]
|
Filter on shopify tags |
shippingMode - [OrderTagShippingMode!]
|
Filter on shipping mode tags |
fulfillment - [OrderTagFulfillment!]
|
Filter on fulfillment tags |
shipment - [OrderTagShipment!]
|
Filter on shipment tags |
claim - [OrderTagClaim!]
|
Filter on claim tags |
refund - [OrderTagRefund!]
|
Filter on refund tags |
reship - [OrderTagReship!]
|
Filter on reship tags |
return - [OrderTagReturn!]
|
Filter on return tags |
Example
{
"brand": ["ACTION_REQUIRED_UNFULFILLED"],
"type": ["DIGITAL"],
"status": ["CANCELED"],
"shopify": ["NONE"],
"shippingMode": ["NONE"],
"fulfillment": ["UNFULFILLED"],
"shipment": ["NONE"],
"claim": ["NONE"],
"refund": ["NONE"],
"reship": ["NONE"],
"return": ["NONE"]
}
OrdersInput
Description
Orders input
Fields
Input Field | Description |
---|---|
filter - OrdersFilterInput
|
Filter |
search - OrdersSearchInput
|
Search |
sort - OrdersSortInput!
|
Sort |
paging - PagingInput!
|
Paging |
Example
{
"filter": OrdersFilterInput,
"search": OrdersSearchInput,
"sort": OrdersSortInput,
"paging": PagingInput
}
OrdersPaginatedInput
Description
Orders paginated input
Fields
Input Field | Description |
---|---|
limit - Int
|
Number of orders per page to retrieve |
page - Int
|
Page to retrieve |
filter - OrdersFilter
|
Filter on orders to apply |
search - String
|
Search on orders to apply |
orderBy - OrdersSort
|
Sort on orders to apply |
Example
{
"limit": 987,
"page": 123,
"filter": OrdersFilter,
"search": "abc123",
"orderBy": OrdersSort
}
OrdersSearchFieldInput
Description
Orders filter search field input
Values
Enum Value | Description |
---|---|
|
Search in all available fields (order identifier, recipient full name and item SKU) |
Example
"ALL"
OrdersSearchInput
Description
Orders search input
Fields
Input Field | Description |
---|---|
field - OrdersSearchFieldInput!
|
Field to search into |
term - NonEmptyString!
|
Term to search |
Example
{"field": "ALL", "term": "string"}
OrdersSort
Description
Orders sort
Fields
Input Field | Description |
---|---|
creationDate - Sort
|
Sort by creation date |
Example
{"creationDate": "ASCENDING"}
OrdersSortFieldInput
Description
Orders sort field input
Values
Enum Value | Description |
---|---|
|
Sort on creation date |
|
Sort on recipient full name |
|
Sort on total price sold |
|
Sort on brand tag |
|
Sort on type tag |
|
Sort on status tag |
|
Sort on shopify tag |
|
Sort on shipping mode tag |
|
Sort on fulfillment tag |
|
Sort on shipment tag |
|
Sort on claim tag |
|
Sort on refund tag |
|
Sort on reship tag |
|
Sort on return tag |
Example
"CREATION_DATE"
OrdersSortInput
Description
Orders sort input
Fields
Input Field | Description |
---|---|
field - OrdersSortFieldInput!
|
Field to sort |
order - OrdersSortOrderInput!
|
Order to sort |
Example
{"field": "CREATION_DATE", "order": "ASCENDING"}
OrdersSortOrderInput
Description
Orders sort order input
Values
Enum Value | Description |
---|---|
|
Sort in ascending order |
|
Sort in descending order |
Example
"ASCENDING"
OrdersTaggingFilter
Description
Filter on orders tagging
Fields
Input Field | Description |
---|---|
shippings - [OrderShippingTag!]
|
Filter on shipping related tags |
Example
{"shippings": ["PENDING_SHIPPING_INFO"]}
PageInfoConnection
Description
Page info connection
Example
{
"hasNextPage": true,
"totalCount": 123,
"totalPages": 123,
"currentPage": 123,
"currentLimit": 123
}
Paging
Description
Paging
Fields
Field Name | Description |
---|---|
hasPreviousPage - Boolean!
|
Has previous page ? |
hasNextPage - Boolean!
|
Has next page ? |
startCursor - ID
|
Start cursor |
endCursor - ID
|
End cursor |
pageSize - PositiveInteger!
|
Page size |
Example
{
"hasPreviousPage": true,
"hasNextPage": false,
"startCursor": 4,
"endCursor": "4",
"pageSize": PositiveInteger
}
PagingInput
Description
Paging input
Fields
Input Field | Description |
---|---|
beforeCursor - ID
|
Before cursor |
afterCursor - ID
|
After cursor |
pageSize - PositiveInteger!
|
Page size |
Example
{
"beforeCursor": "4",
"afterCursor": "4",
"pageSize": PositiveInteger
}
Parcel
Description
Parcel
Fields
Field Name | Description |
---|---|
id - ID!
|
ID |
items - [Item!]!
|
Items |
recipient - Recipient!
|
Recipient |
trackingCarrierSlug - String!
|
Tracking carrier slug |
trackingNumber - String!
|
Tracking number |
trackingStatus - TrackingStatus!
|
Tracking status |
trackingSubStatus - TrackingSubStatus
|
Tracking sub status |
trackingUrl - String!
|
Tracking URL |
trackingUpdatedAt - DateTime
|
Date of the last tracking update |
trackingDeliveredAt - DateTime
|
Date when the parcel was delivered |
hasTrackingStucked - Boolean!
|
Does the parcel has its tracking stucked or not ?
|
Example
{
"id": "4",
"items": [Item],
"recipient": Recipient,
"trackingCarrierSlug": "abc123",
"trackingNumber": "abc123",
"trackingStatus": "PENDING",
"trackingSubStatus": "PENDING_NO_INFORMATION_AVAILABLE",
"trackingUrl": "xyz789",
"trackingUpdatedAt": "2007-12-03T10:15:30Z",
"trackingDeliveredAt": "2007-12-03T10:15:30Z",
"hasTrackingStucked": true
}
ParcelTrackingInfo
PaymentProcessor
Description
Payment processor
Values
Enum Value | Description |
---|---|
|
Alma |
|
Braintree |
|
Stripe |
|
Choose |
Example
"Alma"
PaymentSubProcessor
Description
**Payment Sub-processor - Stripe Specific **
Values
Enum Value | Description |
---|---|
|
PayPal |
|
Bancontact |
|
Klarna |
Example
"PayPal"
PickupAddress
Description
Pickup point address
Example
{
"name": "abc123",
"street": "xyz789",
"streetAdditional": "abc123",
"zipCode": "xyz789",
"city": "abc123",
"countryCode": "xyz789"
}
PickupPoint
Description
Pickup point
Fields
Field Name | Description |
---|---|
id - ID!
|
Id |
countryCode - String!
|
Country code |
address - PickupAddress
|
Address |
network - PickupPointNetwork!
|
Network |
Example
{
"id": 4,
"countryCode": "abc123",
"address": PickupAddress,
"network": "COLISSIMO"
}
PickupPointNetwork
Description
Pickup point network
Values
Enum Value | Description |
---|---|
|
Colissimo |
|
Mondial relay |
Example
"COLISSIMO"
PositiveInteger
Example
PositiveInteger
Price
Description
Price
Fields
Field Name | Description |
---|---|
valueWithVat - Int!
|
Value with VAT (in cents) |
valueWithoutVat - Int!
|
Value without VAT (in cents) |
currency - CurrencyISO!
|
Currency ISO code |
Example
{"valueWithVat": 123, "valueWithoutVat": 987, "currency": "eur"}
Recipient
Description
The recipient is the person who will receive the order
Fields
Field Name | Description |
---|---|
id - ID!
|
Identifier |
fullName - String!
|
Full name ("first_name last_name") |
firstName - String!
|
First name |
lastName - String!
|
Last name |
email - String!
|
|
phoneNumber - String!
|
Phone number |
address - Address!
|
Address |
previous - Recipient
|
Previous recipient if it has been updated |
Example
{
"id": 4,
"fullName": "abc123",
"firstName": "abc123",
"lastName": "abc123",
"email": "xyz789",
"phoneNumber": "xyz789",
"address": Address,
"previous": Recipient
}
ReturnParcel
Description
ReturnParcel
Fields
Field Name | Description |
---|---|
id - ID!
|
ID |
returnSlipId - ID!
|
Return slip id |
items - [Item!]!
|
Items |
trackingCarrierSlug - String!
|
Tracking carrier slug |
trackingNumber - String!
|
Tracking number |
trackingStatus - TrackingStatus!
|
Tracking status |
trackingUrl - String!
|
Tracking URL |
trackingUpdatedAt - DateTime!
|
Date of the last tracking update |
trackingDeliveredAt - DateTime
|
Date when the parcel was delivered |
Example
{
"id": 4,
"returnSlipId": "4",
"items": [Item],
"trackingCarrierSlug": "abc123",
"trackingNumber": "abc123",
"trackingStatus": "PENDING",
"trackingUrl": "abc123",
"trackingUpdatedAt": "2007-12-03T10:15:30Z",
"trackingDeliveredAt": "2007-12-03T10:15:30Z"
}
ReturnSlip
Description
Return slip
Example
{
"id": "4",
"trackingCarrierSlug": "xyz789",
"trackingNumber": "xyz789",
"trackingUrl": "abc123",
"items": [Item],
"createdAt": "2007-12-03T10:15:30Z"
}
ShopifyOrderIntegration
Sort
Description
Sort
Values
Enum Value | Description |
---|---|
|
Sort ascending |
|
Sort descending |
Example
"ASCENDING"
String
Description
The String
scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.
Example
"xyz789"
SystemInfo
TrackingStatus
Description
Tracking status
Values
Enum Value | Description |
---|---|
|
Pending |
|
Info received |
|
In transit |
|
Out for delivery |
|
Attempt fail |
|
Available for pickup |
|
Delivered |
|
Exception |
|
Expired |
Example
"PENDING"
TrackingSubStatus
Description
Tracking sub status
Values
Enum Value | Description |
---|---|
|
No information available on the carrier website or the tracking number is yet to be tracked (Pending_001) |
|
It represents the shipments are pending due to no connection with carrier accounts (Pending_002) |
|
The order has been processed / packaged, but not scanned at a shipping location yet (Pending_003) |
|
There is no tracking info available because the carrier is wrong (Pending_004) |
|
There have been no new tracking updates in the last 120 days (Pending_005) |
|
Can’t track this type of shipment as the carrier is unrecognized (Pending_006) |
|
The carrier received a request from the shipper and is about to pick up the shipment (InfoReceived_001) |
|
Shipment on the way (InTransit_001) |
|
Shipment accepted by the carrier (InTransit_002) |
|
Shipment arrived at a hub or sorting center (InTransit_003) |
|
International shipment arrived at the destination country / region (InTransit_004) |
|
Customs clearance completed (InTransit_005) |
|
Package handed over to customs for clearance (InTransit_006) |
|
Package departed from the facility (InTransit_007) |
|
Problem resolved and shipment in transit (InTransit_008) |
|
Shipment forwarded to a different delivery address (InTransit_009) |
|
The package is out for delivery (OutForDelivery_001) |
|
The recipient is contacted before the final delivery (OutForDelivery_003) |
|
A delivery appointment is scheduled (OutForDelivery_004) |
|
The delivery of the package failed due to some reason. Courier usually leaves a notice and will try to deliver again (AttemptFail_001) |
|
Recipient not available at the given address (AttemptFail_002) |
|
Business is closed at the time of delivery (AttemptFail_003) |
|
The package arrived at a pickup point near you and is available for pickup (AvailableForPickup_001) |
|
Shipment delivered successfully (Delivered_001) |
|
Package picked up by the recipient (Delivered_002) |
|
Package delivered to and signed by the recipient (Delivered_003) |
|
Package delivered to the recipient and cash collected on delivery (Delivered_004) |
|
CUSTOM: Marked delivered by the customer (Delivered_Mark_By_Customer) |
|
CUSTOM: Marked delivered by a member of the support team (Delivered_Mark_By_Support) |
|
Delivery of the package failed due to some shipping exception (Exception_001) |
|
Delivery of the package failed as the recipient relocated (Exception_002) |
|
Delivery of the package failed as the recipient refused to take the package due to some reason (Exception_003) |
|
Package delayed due to some issues during the customs clearance (Exception_004) |
|
Package delayed due to some unforeseen reasons (Exception_005) |
|
The package being held due to pending payment from the recipient's end (Exception_006) |
|
Package not delivered due to incorrect recipient address (Exception_007) |
|
Package available for the pickup but not collected by the recipient (Exception_008) |
|
Package rejected by the carrier due to noncompliance with its guidelines (Exception_009) |
|
The package is on its way back to the sender (Exception_010) |
|
The return package has been successfully received by the sender (Exception_011) |
|
Shipment damaged (Exception_012) |
|
Delivery of the package failed as it got lost (Exception_013) |
|
No tracking information of the shipment, from the last 30 days (Expired_001) |
Example
"PENDING_NO_INFORMATION_AVAILABLE"