A_orderAction
Returns the processing status of a single order placed through the API. It
reports the same state as A_action and, when the order has FAILED, a
failureReason explaining what went wrong. Pass the orderId returned by
S_purchaseWholesaleAuctions
— the same value is also returned there as actionId.
The possible states are:
NEW: Order started and is being processedCOMPLETED: Order successful, changes made to Eneba systemFAILED: Order unsuccessful, no changes made to Eneba system
A_orderAction covers only orders placed through the API, and
only for the API consumer who placed them. Results are available for
24 hours. The query returns null when the order is unknown,
has not started processing yet, has expired, or was placed by a different
API consumer — exactly as if the order did not exist. For durable order
history, use
O_orders.
Supported arguments
The following arguments are supported by A_orderAction query:
| Field | Type | Description |
|---|---|---|
orderId | A_Uuid! | The order ID (equal to the actionId returned at purchase) |
Return type
The query returns theA_OrderAction type.
Failure reason
failureReason is set only when state is FAILED; for NEW and
COMPLETED orders it is null.
| Value | Meaning | What to do |
|---|---|---|
REJECTED | The order was rejected during validation or policy checks. | Don't retry automatically; contact support. |
BALANCE | Insufficient EUR wallet balance. | Top up and retry. |
STOCK | Not enough stock for the requested quantity. | Reduce the quantity or re-check offers. |
RESERVATION | Keys couldn't be reserved or delivered. | Retry later; contact support if it persists. |
TEMPORARY | A temporary condition prevented the purchase. | Retry later. |
UNKNOWN | The failure was recorded but couldn't be classified. | Contact support. |
NOT_RECORDED | The order failed without a recorded reason. | Contact support. |
BALANCE is being rolled out; until then, insufficient-balance
failures appear as UNKNOWN.
New values may be added over time. Treat an unrecognized failureReason
value as a failure without further classification rather than assuming the
list above is closed.
Example usage
Query
In the following query we ask for the status of the order returned at purchase.
query {
A_orderAction(orderId: "c3d4e5f6-3456-11ee-be56-0242ac120002") {
orderId
state
failureReason
}
}Result
Here the order has failed because there was not enough stock for the requested quantity.
{
"data": {
"A_orderAction": {
"orderId": "c3d4e5f6-3456-11ee-be56-0242ac120002",
"state": "FAILED",
"failureReason": "STOCK"
}
}
}