PaymentRequest
Details of a payment request
Specifies how the payer is expected to complete the payment request
Possible values: [PAYMENT_LINK, HOSTED_PAGE]
System-generated unique identifier for the payment request
Client-provided identifier for the payment request, used for idempotency or external reference
Possible values: <= 36 characters
Unique identifier of the account associated with this payment request
Unique identifier of the payer
Three-letter ISO or crypto currency code for settlement
Possible values: non-empty, Value must match regular expression [A-Z]{3,5}
AEDAmount to be received in the specified currency
150Optional due date by which the payment should be made
Document reference such as an invoice number or PO reference
Possible values: non-empty
Internal document UUID associated with this payment request
List of permitted payment methods (e.g., CARD, BANK_TRANSFER, CRYPTO)
Possible values: [CARD, BANK_TRANSFER, CRYPTO], >= 1
Status of the payment request (e.g., PENDING, PAID, CANCELLED)
Possible values: [PAID, PART_PAID, UNPAID, CANCELLED]
Internal reference ID linking to the payment URL
Public URL where the payer can complete the payment
URL to redirect the payer when they have successfully completed their payment journey.
Important: This redirect does NOT confirm that funds have been received. For asynchronous payment methods like bank transfers, the payer may have successfully submitted payment instructions, but funds may not yet be received by Hubpay.
Always verify payment status via webhooks or API lookup before fulfilling orders or providing services.
Hubpay will append paymentRequestId and paymentId as query parameters to this URL
during the redirect flow only — they are not included in the API response payload.
URL to redirect the payer if they cancel the payment
Whether the payment link was automatically sent to the payer's email address upon creation
payoutDetails object
Details for payout to a beneficiary. If this is provided then evey payment made against this request will be paid out to the provided beneficiary
Unique identifier of the payout beneficiary
Reference for the payout, such as an invoice number or transaction ID
Possible values: <= 255 characters
Purpose of the payout, indicating the reason for the payment to the beneficiary
Possible values: [COMPUTER_SERVICES, FAMILY_SUPPORT, EDUCATION, MEDICAL_TREATMENT, MAINTENANCE_EXPENSES, TRAVEL, SMALL_VALUE_REMITTANCE, CONSTRUCTION_EXPENSES, HOTEL_ACCOMMODATION, ADVERTISING_EXPENSES, ADVISORY_FEES, BUSINESS_INSURANCE, INSURANCE_CLAIMS, DELIVERY_FEES, EXPORTED_GOODS, SERVICE_CHARGES, LOAN_PAYMENT, OFFICE_EXPENSES, PROPERTY_PURCHASE, PROPERTY_RENTAL, ROYALTY_FEES, SHARES_INVESTMENT, FUND_INVESTMENT, TAX_PAYMENT, TRANSPORTATION_FEES, UTILITY_BILLS, PERSONAL_TRANSFER, SALARY_PAYMENT, INFLUENCER_PAYMENT, DIVIDEND_PAYMENT, REWARD_PAYMENT, OTHER_FEES, OTHER]
Total amount paid against this payment request
50Remaining amount to be paid
100payments object[]
List of payments made against this payment request
Unique identifier for the payment
123e4567-e89b-12d3-a456-426614174000Reference for the payment
REF123Status of the payment
Possible values: [CREATED, PENDING, RECEIVED, COMPLETE, FAILED, REVERSED]
PENDINGCurrency in which the payment is made
AEDAmount to be paid
100Currency in which the payment is received
GBPAmount received after conversion
75Payment method used for the transaction
Possible values: [CARD, BANK_TRANSFER, CRYPTO]
BANK_TRANSFERUnique identifier for the account
123e4567-e89b-12d3-a456-426614174004Unique identifier for the payer
123e4567-e89b-12d3-a456-426614174001Unique identifier for the payment request
123e4567-e89b-12d3-a456-426614174002Timestamp when the payment was created
2023-10-01T12:00:00Zdetails object
Details depending on payment method
Details depending on payment method
Possible values: [PaymentRequestCardPayment, PaymentRequestCryptoPayment, PaymentRequestBankTransferPayment]
- PaymentRequestCardPayment
- PaymentRequestCryptoPayment
- PaymentRequestBankTransferPayment
Card issuer
Country of the card issuer
Card scheme
VISACard type
CREDITExchange rate at the time of payment
1.25Deposit address for the crypto payment
1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNaTransaction hash for the crypto payment
0x5c69bee701ef814a2b6a3f8d1e4f7b8c9e1f5c6d7e8f9a0b1c2d3e4f5g6h7i8jBank reference number for the payment
123456789Sender's account number
GB29NWBK60161331926819Sender's name
John Doepayout object
Possible values: [COMPUTER_SERVICES, FAMILY_SUPPORT, EDUCATION, MEDICAL_TREATMENT, MAINTENANCE_EXPENSES, TRAVEL, SMALL_VALUE_REMITTANCE, CONSTRUCTION_EXPENSES, HOTEL_ACCOMMODATION, ADVERTISING_EXPENSES, ADVISORY_FEES, BUSINESS_INSURANCE, INSURANCE_CLAIMS, DELIVERY_FEES, EXPORTED_GOODS, SERVICE_CHARGES, LOAN_PAYMENT, OFFICE_EXPENSES, PROPERTY_PURCHASE, PROPERTY_RENTAL, ROYALTY_FEES, SHARES_INVESTMENT, FUND_INVESTMENT, TAX_PAYMENT, TRANSPORTATION_FEES, UTILITY_BILLS, PERSONAL_TRANSFER, SALARY_PAYMENT, INFLUENCER_PAYMENT, DIVIDEND_PAYMENT, REWARD_PAYMENT, OTHER_FEES, OTHER]
Status of a payment payout during its lifecycle.
Possible values: [PENDING_APPROVAL, INITIATED, PAID, FAILED]
{
"executionMode": "PAYMENT_LINK",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"externalId": "string",
"accountId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"payerId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"currency": "AED",
"amount": 150,
"dueDate": "2024-07-29",
"documentReference": "string",
"documentId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"paymentMethods": [
"CARD"
],
"status": "PAID",
"paymentLinkReference": "string",
"paymentUrl": "string",
"successRedirectUrl": "string",
"cancelRedirectUrl": "string",
"autoSendPaymentLink": true,
"payoutDetails": {
"payoutBeneficiaryId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"payoutReference": "string",
"payoutPurposeOfPayment": "COMPUTER_SERVICES"
},
"amountPaid": 50,
"amountRemaining": 100,
"payments": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"reference": "REF123",
"status": "PENDING",
"paymentSymbol": "AED",
"paymentAmount": 100,
"currency": "GBP",
"amount": 75,
"method": "BANK_TRANSFER",
"accountId": "123e4567-e89b-12d3-a456-426614174004",
"payerId": "123e4567-e89b-12d3-a456-426614174001",
"paymentRequestId": "123e4567-e89b-12d3-a456-426614174002",
"createdAt": "2023-10-01T12:00:00Z",
"details": {
"issuer": "string",
"issuerCountry": "string",
"scheme": "VISA",
"cardType": "CREDIT",
"last4": "string"
},
"payout": {
"beneficiaryId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"reference": "string",
"transactionReference": "string",
"purposeOfPayment": "COMPUTER_SERVICES",
"amount": 0,
"currency": "string",
"status": "PENDING_APPROVAL"
}
}
]
}