MobiariDocs

Get a payment attempt

GET
/storefront-api/{store_slug}/api/payments/intents/{intent_id}

Poll this while a PIX charge is pending: status turns approved once paid. When the request names a cart, the intent must belong to it.

Path Parameters

store_slug*string

Store slug

intent_id*string

Payment intent id

Header Parameters

x-cart-id?|

The shopper's cart; the cart_id cookie or body field works too

Formatuuid

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/storefront-api/string/api/payments/intents/string"
{
  "amount_cents": 0,
  "currency": "string",
  "error_code": "string",
  "error_message": "string",
  "expires_at": "2019-08-24T14:15:22Z",
  "intent_id": "05704cef-194d-4987-b2cb-c2c20c9cd88a",
  "method": "pix",
  "next_action": {},
  "order_id": "93101167-9065-4b9c-b98b-5d789a3ed9fe",
  "provider_code": "string",
  "snapshot": {},
  "status": "pending"
}
{
  "code": "not_found",
  "details": {},
  "error": "Order not found"
}
{
  "code": "not_found",
  "details": {},
  "error": "Order not found"
}
{
  "code": "not_found",
  "details": {},
  "error": "Order not found"
}
{
  "code": "not_found",
  "details": {},
  "error": "Order not found"
}