curl -X GET "https://olp-api.nipuntheekshana.com/v1/payments/pay_abc123def456" \
-H "Authorization: Bearer <your_jwt_token>"
{
"id": "pay_abc123def456",
"status": "paid",
"amount": 25.00,
"currency": "USD",
"cryptoAmount": "25.032500",
"cryptoAddress": "0x1a2b3c4d5e6f7890abcdef1234567890abcdef12",
"qrCodeUrl": "https://olp-api.nipuntheekshana.com/qr/pay_abc123def456.png",
"checkoutUrl": "https://olp-checkout.nipuntheekshana.com/pay/pay_abc123def456",
"description": "Order #1234 - Premium Plan",
"customerEmail": "customer@example.com",
"metadata": {
"orderId": "order_1234",
"plan": "premium"
},
"txHash": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",
"paidAt": "2026-03-26T14:55:12Z",
"expiresAt": "2026-03-26T15:30:00Z",
"createdAt": "2026-03-26T14:30:00Z"
}
Payments
Get Payment
Retrieve the details and current status of a specific payment
GET
/
v1
/
payments
/
{id}
curl -X GET "https://olp-api.nipuntheekshana.com/v1/payments/pay_abc123def456" \
-H "Authorization: Bearer <your_jwt_token>"
{
"id": "pay_abc123def456",
"status": "paid",
"amount": 25.00,
"currency": "USD",
"cryptoAmount": "25.032500",
"cryptoAddress": "0x1a2b3c4d5e6f7890abcdef1234567890abcdef12",
"qrCodeUrl": "https://olp-api.nipuntheekshana.com/qr/pay_abc123def456.png",
"checkoutUrl": "https://olp-checkout.nipuntheekshana.com/pay/pay_abc123def456",
"description": "Order #1234 - Premium Plan",
"customerEmail": "customer@example.com",
"metadata": {
"orderId": "order_1234",
"plan": "premium"
},
"txHash": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",
"paidAt": "2026-03-26T14:55:12Z",
"expiresAt": "2026-03-26T15:30:00Z",
"createdAt": "2026-03-26T14:30:00Z"
}
Authentication
This endpoint supports two authentication methods:- Bearer token via the
Authorizationheader - HMAC signature via
X-API-KeyandX-Signatureheaders
Authorization: Bearer <your_jwt_token>
X-API-Key: <your_api_key>
X-Signature: <hmac_sha256_signature>
Path Parameters
Response
curl -X GET "https://olp-api.nipuntheekshana.com/v1/payments/pay_abc123def456" \
-H "Authorization: Bearer <your_jwt_token>"
{
"id": "pay_abc123def456",
"status": "paid",
"amount": 25.00,
"currency": "USD",
"cryptoAmount": "25.032500",
"cryptoAddress": "0x1a2b3c4d5e6f7890abcdef1234567890abcdef12",
"qrCodeUrl": "https://olp-api.nipuntheekshana.com/qr/pay_abc123def456.png",
"checkoutUrl": "https://olp-checkout.nipuntheekshana.com/pay/pay_abc123def456",
"description": "Order #1234 - Premium Plan",
"customerEmail": "customer@example.com",
"metadata": {
"orderId": "order_1234",
"plan": "premium"
},
"txHash": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",
"paidAt": "2026-03-26T14:55:12Z",
"expiresAt": "2026-03-26T15:30:00Z",
"createdAt": "2026-03-26T14:30:00Z"
}