Add Payments to your Batch

Used to submit payments for a batch to WUBS.

Table - Submit payments for a batch

Resource Template
/customers/{id}/batches/{id}/payments
Http Method PUT
Description

Used to submit payments for a batch to WUBS. WUBS will return call immediately and will continue to process submitted payments asynchronously.

Payments should have all the required fields specified in order to be accepted.

Payment identifier (paymentId) is created and assigned by a caller and that value will be used to reference a payment for all other calls.

'PUT' will be limited for total of 10000 payments per one request or 2Mb in size (whatever comes first). Requests exceeding those limits will be rejected. '

'Bolded' fields depict 'required for release' fields( they will include all 'core' fields). All other fields are optional. There are conditional fields:

  1. If beneficiary 'type' is 'individual': 'firstName' and 'lastName' should be provided

  2. If beneficiary 'type' is' business': 'businessName' should be provided

  3. Either a "bankCode" or "bankBranchCode" values should be provided.

Input
{
"payments":[{payment fields as defined in
 the Payment Fields Definitions]
}
Output
200 OK
{
"receivedPayments":"<total Number of received payments>"
}
Output (errors)
404 Not Found - if specified resource location 
is not found (invalid customer or batch)
400 Bad Request - any other error with defined error code, 
for example if payment is missing a required field