BINKDocs
HelpDashboard

Payments

/docs/global/api-reference/paymentsGlobal

Create, list, retrieve, and cancel payments. A payment is the core object behind both Hosted Checkout and Payment Links.

Authenticated by dashboard session, not an API key

This resource currently authorizes calls with your dashboard session bearer token, not an sk_ key — see Authentication. Every path below is shown relative to the base URL; the full path is https://binkpay.net/api/v1 + the path shown.

Create a payment

POST/api/v1/merchant/payments
ParameterTypeRequiredDescription
amountMinorstringRequiredAmount in minor units (e.g. "5000" = EGP 50.00).
currencystringRequiredCurrency code your account supports.
descriptionstringOptionalShown to the customer at checkout. Max 200 characters.
customerEmailstringOptionalPrefills the checkout form.
customerPhonestringOptionalPrefills the checkout form.
expiresInSecintegerOptionalSeconds until the link expires. 60–7,776,000 (90 days).
noExpirybooleanOptionalCreate a permanent link. Overrides expiresInSec.
allowMultiplePaymentsbooleanOptionalKeep the link active after each payment.
successUrl / cancelUrlstring (url)OptionalRedirect targets after checkout.
webhookUrlstring (url)OptionalPer-payment webhook override.
customMetadataobjectOptionalArbitrary key-value data stored with the payment.
bash
curl -X POST https://binkpay.net/api/v1/merchant/payments \
 -H "Authorization: Bearer <dashboard session token>"
 -d '{ "amountMinor": "5000", "currency": "EGP" }'

Response

json
{
 "id": "pay_8f2a1c",
 "reference": "BINK-8F2A1C",
 "payUrl": "https://pay.binkpay.net/BINK-8F2A1C",
 "status": "PENDING",
 "amountMinor": "5000",
 "currency": "EGP",
 "createdAt": "2026-07-08T14:20:11.000Z"
}

List payments

GET/api/v1/merchant/payments
ParameterTypeRequiredDescription
cursorstringOptionalPagination cursor from a previous response's nextCursor.
statusstringOptionalFilter by PENDING, PAID, EXPIRED, CANCELLED, REFUNDED, PARTIAL_REFUND, or REVERSED.
currencystringOptionalFilter to a single currency.
from / tostring (ISO date)OptionalFilter by createdAt range.

Retrieve a payment

GET/api/v1/merchant/payments/:id

Cancel a payment

POST/api/v1/merchant/payments/:id/cancel

Only valid while the payment is PENDING.

Related resources

  • Refunds — reverse a paid payment, in full or in part.
  • Webhooks — get notified on payment.completed, payment.expired, and payment.cancelled instead of polling.
  • Rate Limits & Idempotency — make retries of this endpoint safe with an Idempotency-Key.

Was this page helpful?