Skip to Content

Get Payment

GET/payments/:paymentId

Description

Retrieve the details of an existing payment by its unique identifier. This is useful for checking the current status of a payment, including whether it has been authorized, captured, or refunded.

Headers

HeaderDescriptionRequired
AuthorizationBearer token with your API keyyes

Path Parameters

NameTypeDescriptionRequired
paymentIdstringThe unique identifier of the payment.yes

Example Request

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

Response

SUCCESSFUL RESPONSE
{
  "id": "pay_0987654321fedcba",
  "object": "payment",
  "amount": 5000,
  "currency": "USD",
  "status": "authorized",
  "payment_mode": "two_step",
  "checkout_id": "chk_1234567890abcdef",
  "stablecoin": "USDC",
  "network": "ethereum",
  "wallet_address": "0x742d35Cc6634C0532925a3b844Bc9e7595f8fE21",
  "tx_hash": "0x8a9c67b2d1e3f4a5b6c7d8e9f0a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9",
  "customer_email": "[email protected]",
  "metadata": {
    "order_id": "12345"
  },
  "created_at": "2024-01-15T12:30:00Z"
}

Error Responses

NOT FOUND
{
  "error": {
    "type": "not_found",
    "message": "Payment 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