curl --location --request POST '/api/v1/payment-links' \
--header 'x-business-id;' \
--header 'Idempotency-Key;' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"title": "Premium Subscription",
"description": "Monthly premium subscription with advanced features",
"amount": 25000,
"currency": "NGN",
"slug": "premium-subscription",
"expiresAt": "2025-12-31T23:59:59Z"
}'
{
"success": true,
"message": "Payment link created successfully",
"data": {
"id": "pl_123456",
"businessId": "biz_123",
"title": "Premium Subscription",
"description": "Monthly premium subscription with advanced features",
"slug": "premium-subscription",
"amount": "25000",
"currency": "NGN",
"status": "ACTIVE",
"paymentUrl": "https://payment.rayswap.exchange/pay/premium-subscription",
"isActive": true,
"transactionCount": 0,
"expiresAt": "2025-12-31T23:59:59Z",
"createdAt": "2025-01-01T12:00:00Z",
"updatedAt": "2025-01-01T12:00:00Z"
}
}