cURL
curl --request POST \ --url https://cashpay.space/api/v1/payments/create \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "cashTag": "<string>", "amount": 123, "isWhiteLabel": false, "callbackUrl": "<string>", "returnUrl": "<string>" }'
{ "id": "<string>", "paymentUrl": "<string>", "cashTag": "<string>", "note": "<string>", "amount": 123, "isWhiteLabel": true, "receiptId": "<string>", "paidAmount": 123, "status": "PENDING", "returnUrl": "<string>", "expiresAt": "2023-11-07T05:31:56Z", "createdAt": "2023-11-07T05:31:56Z" }
Creates a new payment invoice for the authenticated user
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Successfully created payment invoice
The response is of type object.
object