Hex Pay Docs
Api

Get Payment

Get payment details for a specific store payment

GET
/v1/payments/{paymentID}
AuthorizationBearer <token>

JWT token with EdDSA signature. Use Bearer scheme.

In: header

Path Parameters

paymentIDstring

Payment identifier

Response Body

curl -X GET "https://api.hexpay.io/v1/payments/019327c6-2058-7901-b234-56789abcdeff"

Payment created, awaiting payment method selection

{
  "id": "019327c6-2058-7901-b234-56789abcdeff",
  "status": "PENDING",
  "fiat": {
    "amount": "100.5",
    "currency": "USD"
  },
  "storeName": "Example Store",
  "timer": {
    "createdAt": "2024-01-20T10:00:00Z",
    "timeToPay": 900,
    "expiresAt": "2024-01-20T10:15:00Z"
  }
}

{
  "error": "Invalid authentication token",
  "code": "AUTH_INVALID"
}

{
  "error": "Payment not found",
  "code": "PAYMENT_NOT_FOUND"
}

{
  "error": "Internal server error",
  "code": "INTERNAL_ERROR"
}