Skip to Content

Get Checkout

GET/checkouts/:checkoutId

Description

Retrieve the details of an existing checkout by its unique identifier. This is useful for checking the current status of a checkout or retrieving transaction details after completion.

Headers

HeaderDescriptionRequired
AuthorizationBearer token with your API keyyes

Path Parameters

NameTypeDescriptionRequired
checkoutIdstringThe unique identifier of the checkout.yes

Example Request

const response = await fetch('https://checkout.exodus.com/checkouts/chk_1234567890abcdef', {
  headers: {
    Authorization: 'Bearer sk_live_xxxxxxxxxxxxxxxx',
  },
});

Response

SUCCESSFUL RESPONSE
{
  "id": "chk_1234567890abcdef",
  "object": "checkout",
  "amount": 5000,
  "currency": "USD",
  "description": "Premium Plan - Monthly",
  "status": "completed",
  "checkout_url": "https://checkout.exodus.com/pay/chk_1234567890abcdef",
  "success_url": "https://yoursite.com/success",
  "cancel_url": "https://yoursite.com/cancel",
  "customer_email": "[email protected]",
  "payment_id": "pay_0987654321fedcba",
  "stablecoin": "USDC",
  "network": "ethereum",
  "wallet_address": "0x742d35Cc6634C0532925a3b844Bc9e7595f8fE21",
  "tx_hash": "0x8a9c67b2d1e3f4a5b6c7d8e9f0a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9",
  "metadata": {
    "order_id": "12345",
    "product_name": "Premium Plan"
  },
  "expires_at": "2024-01-16T12:00:00Z",
  "created_at": "2024-01-15T12:00:00Z",
  "completed_at": "2024-01-15T12:30:00Z"
}

Error Responses

NOT FOUND
{
  "error": {
    "type": "not_found",
    "message": "Checkout not found"
  }
}

Start building

XO

Request Demo

Schedule a call with our team

Select a product
Arrow right

Start building
Grateful

Contact Us

We're here to help