Queries
checkoutByCartID
Returns a Checkout object by cart ID. This query can be used to retrieve information about the checkout status for an already submitted cart as well as order details for all orders associated with the checkout
When called for a not submitted cart,
Checkout.status
will always be PENDING
. After cart submission Checkout.status
will change according to the current checkout state.Sometimes, when using the checkoutByCartID
query, the returned status may be ACTION_REQUIRED
. In this case, you should check the requiredActions
field for each order with this status and perform the necessary actions. Currently, there is only one required action: CompletePaymentChallenge
, also known as 3D-S Challenge. You can learn more about this use casse in the 3D-S Challenge guide.
Arguments
Returns
Example - request
Query arguments
GraphQL
Example - response
Response
Errors
If the cart is not found then a corresponding error is returned
JSON
If the cart is expired (older than 10 days) then a corresponding error is returned
JSON