cURL
curl --request POST \ --url https://v2.firstpromoter.com/api/v2/company/payments_batches/{id}/pay \ --header 'Account-ID: <account-id>' \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "otp": "<string>", "otp_code": "<string>" }'
{ "id": 123, "status": "<string>", "ext_reference": "<string>", "ext_id": "<string>", "scheduled_at": "2023-11-07T05:31:56Z", "processing_started_at": "2023-11-07T05:31:56Z", "completed_at": "2023-11-07T05:31:56Z", "is_payable": true, "is_retriable": true, "is_payment_otp_required": true, "total": 123, "promoters_count": 123, "error": "<string>" }
Access token passed as a Bearer token in the Authorization header
Account identifier that specifies which account is making the request
"acc_123456"
Payment batch ID
Successful operation
The response is of type object.
object