Skip to main content

Get orders history

Returns orders history. Each order row includes a currency field: amounts on that row (discount, totalPrice, and line price / totalPrice) use that order currency, which may be any ISO 4217 code the platform stored for the purchase (for example EUR, USD, or PLN). Placing a new order via Create order still requires currency: EUR on the request.

Endpoint: GET /export/v1/orders

Headers

HeaderRequiredDescription
AuthorizationYesBearer token obtained from the OAuth2 token endpoint. Format: Bearer <access_token>. See Authentication.

Query parameters

Date range filters on this endpoint accept RFC 3339 datetime format (dateFrom / dateTo): use YYYY-MM-DDTHH:MM:SSZ with time and time zone.

ParameterTypeRequiredDescription
pagestringNoPagination page (e.g. 2 of 10 pages). Min. 1, Max. 100000. Example: 2
itemsPerPagestringNoItems displayed per page. Possible values: 10, 20, 50 and 100. Example: 100
statusstringNoFilter orders by status (pending, processing, complete, canceled, closed, held). Example: complete
orderIdstringNoFilter by specified order identifier (e.g. from create order response). Example: 92000000289147
dateFromstring (datetime)NoInclusive lower bound on order creation datetime. Format: YYYY-MM-DDTHH:MM:SSZ (RFC 3339). Example: 2026-01-01T00:00:00Z
dateTostring (datetime)NoInclusive upper bound on order creation datetime. Format: YYYY-MM-DDTHH:MM:SSZ (RFC 3339). Example: 2026-03-01T23:59:59Z
sortstringNoSort order for results. Possible values: ASC (ascending), DESC (descending). Example: DESC

Order statuses

StatusDescription
pendingOrder is waiting for payment to be completed
processingOrder is waiting for shipment
heldOrder is on hold because it is being verified
completeOrder is complete, all items have been sent
canceledOrder canceled due to rejected payment
closedOrder is complete, all items have been returned

Sandbox

curl --location 'https://sandboxapi.g2a.com/export/v1/orders?orderId=92000000316793' \
--header 'Authorization: Bearer rfC3vIi6zoVqZSHAlhTXslTfvMZYwWPZ'

Success response (200)

Each order in data contains a transactions array. A transaction groups items sold by one seller and includes:

  • transaction id,
  • seller (id, name),
  • items (order lines with product, offer, quantity and prices).

Note: Fields discount, totalPrice, and each item's price and totalPrice are decimal strings in the order currency (currency).

{
"data": [
{
"id": "92000000305593",
"status": "complete",
"createdAt": "2026-03-19T09:11:39Z",
"discount": "0",
"totalPrice": "112.17",
"currency": "EUR",
"transactions": [
{
"id": "fee9010d-e0cb-4f13-a712-3c84f964c167",
"seller": {
"id": "fe96c938-0550-47cd-a639-84c80e483573",
"name": "Razer_gold"
},
"items": [
{
"id": "405332",
"product": {
"id": "10000017423002",
"name": "Trials Evolution: Gold Edition Steam Key GLOBAL"
},
"offer": {
"id": "cc3de0a1-b363-44f6-9e0f-0a401e8d5d47"
},
"quantity": {
"ordered": 1,
"invoiced": 1,
"shipped": 1,
"refunded": 0
},
"price": "112.17",
"totalPrice": "112.17"
}
]
}
]
},
{
"id": "92000000306503",
"status": "complete",
"createdAt": "2026-03-20T11:53:09Z",
"discount": "0",
"totalPrice": "58.84",
"currency": "EUR",
"transactions": [
{
"id": "9637f7ef-9bd8-4079-a620-20c4577350c3",
"seller": {
"id": "c2d4f6a8-b0c1-4234-9567-890123456789",
"name": "KeysVendorEU"
},
"items": [
{
"id": "406419",
"product": {
"id": "10000003340014",
"name": "Sherlock Holmes: Crimes and Punishments Steam Key CZECH REPUBLIC"
},
"offer": {
"id": "83a7d4b9-64cc-4535-8a52-343b5aa8e94b"
},
"quantity": {
"ordered": 1,
"invoiced": 1,
"shipped": 1,
"refunded": 0
},
"price": "46.04",
"totalPrice": "46.04"
}
]
},
{
"id": "1384984d-9314-4a34-b2be-d63d0f431989",
"seller": {
"id": "fe96c938-0550-47cd-a639-84c80e483573",
"name": "Razer_gold"
},
"items": [
{
"id": "406421",
"product": {
"id": "10000017423002",
"name": "Trials Evolution: Gold Edition Steam Key GLOBAL"
},
"offer": {
"id": "cc3de0a1-b363-44f6-9e0f-0a401e8d5d47"
},
"quantity": {
"ordered": 2,
"invoiced": 2,
"shipped": 2,
"refunded": 0
},
"price": "6.40",
"totalPrice": "12.80"
}
]
}
]
}
],
"meta": {
"page": 1,
"itemsPerPage": 4,
"totalResults": 1112,
"hasNext": true,
"hasPrevious": false
}
}
FieldTypeDescription
dataarrayList of orders history
data[].idstringOrder identifier
data[].statusstringOrder status (pending, processing, complete, canceled, closed, held, pending_payment)
data[].createdAtstringOrder creation date in ISO 8601 format
data[].discountstringDiscount amount in currency
data[].totalPricestringTotal order amount in currency
data[].currencystringOrder currency code (ISO 4217), e.g. USD, PLN, COP - all monetary strings on the row use this currency
data[].transactionsarrayTransactions in the order
data[].transactions[].idstringTransaction identifier
data[].transactions[].sellerobjectSeller for transaction (id required; name when available)
data[].transactions[].seller.idstringSeller identifier UUID
data[].transactions[].seller.namestringSeller store name (may be omitted if not available)
data[].transactions[].itemsarrayItems in the transaction
data[].transactions[].items[].idstringOrder item identifier
data[].transactions[].items[].productobjectProduct information
data[].transactions[].items[].product.idstringProduct identifier (e.g. 10000004439009).
data[].transactions[].items[].product.namestringProduct name
data[].transactions[].items[].offerobjectOffer information
data[].transactions[].items[].offer.idstringOffer identifier (UUID)
data[].transactions[].items[].quantityobjectQuantity information
data[].transactions[].items[].quantity.orderedintegerQuantity ordered
data[].transactions[].items[].quantity.invoicedintegerQuantity invoiced
data[].transactions[].items[].quantity.shippedintegerQuantity shipped
data[].transactions[].items[].quantity.refundedintegerQuantity refunded
data[].transactions[].items[].pricestringUnit price in currency
data[].transactions[].items[].totalPricestringLine total in currency
metaobjectPagination metadata
meta.pageintegerCurrent page number
meta.itemsPerPageintegerNumber of items per page
meta.totalResultsintegerTotal number of results
meta.hasNextbooleanWhether there is a next page
meta.hasPreviousbooleanWhether there is a previous page

Responses

StatusDescriptionPossible error codes
200SuccessReturns paginated list of user's orders with metadata
400Bad requestvalidation-error — Invalid query parameters (e.g. invalid status, invalid date format, dateFrom after dateTo, missing required headers)
401Unauthorizedunauthorized — Invalid or missing credentials, or the user could not be resolved for this request
500Internal server errorinternal-server-error — Failed to retrieve orders from the system