Payment Requests
Request Payment
post/payment_requests
Request
- Base URLhttps://api.sandbox.zeptopayments.com
- URLhttps://api.sandbox.zeptopayments.com/payment_requests
- AuthOAuth 2Authorization code: /oauth/authorizeToken URL: /oauth/token
Headers
Idempotency-Keystring required
Idempotency key to support safe retries for 24h
Request body
Example request
{
"description": "Visible to both initiator and authoriser",
"matures_at": "2016-12-19 02:10:56 UTC",
"amount": 99000,
"authoriser_contact_id": "de86472c-c027-4735-a6a7-234366a27fc7",
"your_bank_account_id": "9c70871d-8e36-4c3e-8a9c-c0ee20e7c679",
"metadata": {
"custom_key": "Custom string",
"another_custom_key": "Maybe a URL"
}
}Response
Created
Example response
{
"data": {
"ref": "PR.39p1",
"initiator_id": "ca7bc5b3-e47f-4153-96fb-bbe326b42772",
"your_bank_account_id": "9c70871d-8e36-4c3e-8a9c-c0ee20e7c679",
"authoriser_id": "970e4526-67d9-4ed9-b554-f5cf390ab775",
"authoriser_contact_id": "de86472c-c027-4735-a6a7-234366a27fc7",
"contact_initiated": false,
"schedule_ref": null,
"status": "approved",
"status_reason": null,
"matures_at": "2021-12-25T00:00:00Z",
"responded_at": null,
"created_at": "2021-12-19T02:10:56Z",
"credit_ref": null,
"payout": {
"amount": 99000,
"description": "Premium Package for 4",
"matures_at": "2021-12-25T00:00:00Z"
},
"metadata": {
"custom_key": "Custom string",
"another_custom_key": "Maybe a URL"
}
}
}Changes
No recorded changes to this operation across all 2 revisions of this API.