curl --location 'https://api.hub2.io/payment-links' \
--header 'environment: sandbox' \
--header 'merchantId: [REDACTED]' \
--header 'Content-Type: application/json' \
--header 'ApiKey: [REDACTED]' \
--data '{
"purchaseReference": "<YOUR_INTERNAL_CUSTOMER_REFERENCE>",
"description":"Payment Links are the fastest way to start accepting payments from your customers.",
"amount": 500,
"currency": "XOF",
"type":"single_use",
"expirationDate": "2025-10-28T20:30:00",
"paymentMethods": [
"mobile_money"
],
"country": "CI",
"providers": [
"Orange",
"Wave",
"MTN",
"Moov"
],
"successUrl":"pay.hub2.io/success",
"failureUrl":"pay.hub2.io/failure"
}'