Skip to main content
GET
/
api
/
payment
/
{paymentId}
Get payment details
curl --request GET \
  --url https://api.suby.fi/api/payment/{paymentId} \
  --header 'X-Suby-Api-Key: <api-key>'
{
  "success": true,
  "data": {
    "id": "pay_abc123",
    "txHash": "<string>",
    "customerEmail": "jsmith@example.com",
    "method": "CRYPTO",
    "tokenAmount": "<string>",
    "valueUsd": "<string>",
    "priceCents": "999",
    "currency": "USD",
    "status": "INITIATED",
    "subscriptionId": "<string>",
    "asset": {
      "symbol": "USDC",
      "address": "<string>",
      "decimals": 6,
      "chainId": 8453
    },
    "productId": "<string>",
    "metadata": {},
    "externalRef": "<string>",
    "successUrl": "<string>",
    "cancelUrl": "<string>",
    "grossAmountCents": 123,
    "merchantNetCents": 123,
    "vatAmountCents": 123,
    "createdAt": "2023-11-07T05:31:56Z"
  }
}

Authorizations

X-Suby-Api-Key
string
header
required

API key authentication

Path Parameters

paymentId
string
required

Response

Payment details

success
boolean
Example:

true

data
object