post
https://sandbox-api.bxnk.com/api/v1/product-apis/payments
Create a payment.
Authentication
Requires X-Access-Key and X-Secret-Key headers.
Request body
JSON payload matching CreatePaymentDto.
Required fields:
amount(number, min 0.01)currency(string)
Common optional fields:
paymentMethods(array of strings:card|crypto|bank_transfer)paymentMethod(string:card|crypto|bank_transfer)orderReference(string)customerReference(string)successUrl(string URL)failureUrl(string URL)expiryTime(string datetime)useHostedPaymentPage(boolean)metadata(object)
Response
201: Payment created successfully. Returneddata(PaymentResponseDto) includes:paymentIdstatus(created|processing|completed|failed|expired|refunded)amountcurrencypaymentMethod(card|crypto|bank_transfer)orderReference(object in schema; may be provided by your integration)customerReference(object in schema; may be provided by your integration)hostedPaymentUrl(object)expiresAt(object)instructions(object)createdAt
400: Bad request401: Unauthorized403: Forbidden500: Internal server error