Create payment request
/requestsCreates a new one-off or recurring payment request that can be shared or presented to a customer/s.
Authorization
bearer Your Volley API key as a bearer token
In: header
Request Body
application/json
Request payload for creating a payment request.
Response Body
application/json
application/json
application/json
application/json
const body = JSON.stringify({ "bank_account_id": "bankaccount_ZYm2YeJXZ8Vzx3jjMLyp6", "amount": "10.00 NZD", "message": "Invoice"})fetch("https://example.com/requests", { method: "POST", headers: { "Content-Type": "application/json", "Authorization": "Bearer $VOLLEY_API_KEY" }, body}){ "request": { "id": "request_8GbnJK6WrxGvPobCylFDO", "bank_account_id": "bankaccount_ZYm2YeJXZ8Vzx3jjMLyp6", "user_id": "user_cEwCTcXyxhdFbJLyune6x", "amount": { "value": "10.00 NZD", "formatted": "$10.00" }, "message": "Invoice #1234 - Website Development", "status": "active", "url": "https://app.volley.nz/pay/8GbnJK6WrxGvPobCylFDO", "qr_data": "data:image/svg;...", "type": "multi", "flow": "link", "merchant_identifier": "merchant_abc123", "pcr": { "code": "Volley", "particulars": "V-78A14T", "reference": "INV-1234" }, "banner_image_url": "https://example.com/banner.jpg", "logo_image_url": "https://example.com/logo.jpg", "allow_dynamic_amount": true, "min_payment_amount": 1000, "max_payment_amount": 100000, "require_customer_basic_info": true, "collect_customer_phone": false, "require_customer_phone": false, "require_customer_address": false, "allow_marketing_opt_in": false, "is_test_mode": false, "success_redirect_url": "https://example.com/success", "failure_redirect_url": "https://example.com/failure", "created_at": "2025-02-12T08:30:00Z", "expires_at": "2025-03-12T08:30:00Z", "updated_at": "2025-02-12T08:30:00Z", "deleted_at": null }}{ "code": "bad_request.invalid_param.amount", "message": "Invalid format for amount (valid: '10.00 NZD')", "params": {}}{ "code": "bad_request.invalid_param.amount", "message": "Invalid format for amount (valid: '10.00 NZD')", "params": {}}{ "code": "bad_request.invalid_param.amount", "message": "Invalid format for amount (valid: '10.00 NZD')", "params": {}}