---
title: "Submit payouts using batch file"
method: POST
path: "/payout/v3/batch"
tags: ["Payouts"]
---

# Submit payouts using batch file

`POST /payout/v3/batch`

## Request

- Base URL: `https://api.nexiopaysandbox.com`
- URL: `https://api.nexiopaysandbox.com/payout/v3/batch`
- Auth: HTTP basic

Allows you to submit one or more payouts using a batch file as input for the API request.

Use this endpoint to make payouts to existing or new recipients.

<!-- theme: warning -->
> 🛑 Important
>
> Ensure the following for this endpoint:<ul style='margin-top: -5px; margin-bottom: -5px'><li>The header content-type must be `multipart/form-data`.</li><li>The batch file must be in a location that is accessible by the server making this API request.</li></ul>

<!-- theme: info -->
> 📘 Note 
> 
> For the payout provider Interchecks, if you pass a value for one of the `recipientIdNumbers` parameters when creating a new recipient, you cannot update any recipient information with [Update recipient](ref:updaterecipient) endpoint.

<!-- theme: warning -->
> ⚠️ Try It
> 
> Due to technical limitations, it is not possible to use the Try It feature with this endpoint. Instead, use Postman or your own server (along with the credentials for your [Sandbox API user](doc:sandbox-environments)) to make the request.

 
## Batch file parameters
The following table shows the required and optional parameters for making payouts using a batch file.
For more information about each parameter, see the [Submit payouts](ref:submitpayouts) endpoint.

To use your own field headers from your batch file, contact [Integrations Support](page:contact-us) for assistance.

<table>
<tr>
<th align='center'>Parameter</th>
<th align='center'>Name in batch file</th>
<th align='center'>Notes</th>
</tr>
<tr>
<td><span style='font-family: monospace; font-size: 11px; border: solid 1px; padding: 5px; background-color: rgb(250,251,252); border-color: rgb(216,222,235);'>batchRef</span></td>
<td>batchRef</td>
<td>If you include this parameter, the system only uses the first instance of it in the batch file. Other instances are ignored. If you want multiple batches to display as a single group in a report, specify the same value for each batch. Using this option allows you to easily view money sent to different payout providers so that you can properly fund those accounts.</td>
</tr>
<tr>
<td><span style='font-family: monospace; font-size: 11px; border: solid 1px; padding: 5px; background-color: rgb(250,251,252); border-color: rgb(216,222,235);'>currency</span></td>
<td>currency</td>
<td>Required for each payout.</td>
</tr>
<tr>
<td><span style='font-family: monospace; font-size: 11px; border: solid 1px; padding: 5px; background-color: rgb(250,251,252); border-color: rgb(216,222,235);'>amount</span></td>
<td>amount</td>
<td>Required for each payout.</td>
</tr>
<tr>
<td><span style='font-family: monospace; font-size: 11px; border: solid 1px; padding: 5px; background-color: rgb(250,251,252); border-color: rgb(216,222,235);'>description</span></td>
<td>description</td>
<td>Optional.</td>
</tr>
<tr>
<td><span style='font-family: monospace; font-size: 11px; border: solid 1px; padding: 5px; background-color: rgb(250,251,252); border-color: rgb(216,222,235);'>payoutRef</span></td>
<td>payoutRef</td>
<td>Optional.</td>
</tr>
<tr>
<td><span style='font-family: monospace; font-size: 11px; border: solid 1px; padding: 5px; background-color: rgb(250,251,252); border-color: rgb(216,222,235);'>recipient.recipientId</span></td>
<td>recipientId</td>
<td>Conditionally required for payout to an existing recipient when neither `recipientRef` nor `email` is included. This parameter is prioritized if more than one of those is included.<br/><br/>Not allowed for payout to a new recipient.</td>
</tr>
<tr>
<td><span style='font-family: monospace; font-size: 11px; border: solid 1px; padding: 5px; background-color: rgb(250,251,252); border-color: rgb(216,222,235);'>recipient.recipientRef</span></td>
<td>recipientRef</td>
<td>Conditionally required for payout to an existing recipient when neither `recipientId` nor `email` is included. This parameter is prioritized over email if that value is included. Otherwise, it is ignored if `recipientId` is included.<br/><br/>Required for payout to a new recipient.<br/><br/><b>Important:</b> We strongly recommend that you include this value in your request instead of <span style='font-family: monospace; font-size: 11px; border: solid 1px; padding: 5px; background-color: rgb(250,251,252); border-color: rgb(216,222,235);'>recipientId</span> in order to facilitate payment reconciliation.</td>
</tr>
<tr>
<td><span style='font-family: monospace; font-size: 11px; border: solid 1px; padding: 5px; background-color: rgb(250,251,252); border-color: rgb(216,222,235);'>recipient.email</span></td>
<td>email</td>
<td>Conditionally required for payout to an existing recipient when neither `recipientId` nor `recipientRef` is included. This parameter is only prioritized if neither of the other two are included. Otherwise, it is ignored.<br/><br/>Required for payout to a new recipient.</td>
</tr>
<tr>
<td><span style='font-family: monospace; font-size: 11px; border: solid 1px; padding: 5px; background-color: rgb(250,251,252); border-color: rgb(216,222,235);'>recipient.firstName</span></td>
<td>firstName</td>
<td>Required for payout to a new recipient.<br/><br/>Ignored for payout to an existing recipient.</td>
</tr>
<tr>
<td><span style='font-family: monospace; font-size: 11px; border: solid 1px; padding: 5px; background-color: rgb(250,251,252); border-color: rgb(216,222,235);'>recipient.lastName</span></td>
<td>lastName</td>
<td>Required for payout to a new recipient.<br/><br/>Ignored for payout to an existing recipient.</td>
</tr>
<tr>
<td><span style='font-family: monospace; font-size: 11px; border: solid 1px; padding: 5px; background-color: rgb(250,251,252); border-color: rgb(216,222,235);'>recipient.country</span></td>
<td>country</td>
<td>Required for payout to a new recipient.<br/><br/>Ignored for payout to an existing recipient.</td>
</tr>
<tr>
<td><span style='font-family: monospace; font-size: 11px; border: solid 1px; padding: 5px; background-color: rgb(250,251,252); border-color: rgb(216,222,235);'>recipient.providerId</span></td>
<td>providerId</td>
<td>Optional for payout to a new recipient.<br/><br/>Ignored for payout to an existing recipient.</td>
</tr>
<tr>
<td><span style='font-family: monospace; font-size: 11px; border: solid 1px; padding: 5px; background-color: rgb(250,251,252); border-color: rgb(216,222,235);'>recipient.userType</span></td>
<td>userType</td>
<td>Optional for payout to a new recipient.<br/><br/>Ignored for payout to an existing recipient.</td>
</tr>
<tr>
<td><span style='font-family: monospace; font-size: 11px; border: solid 1px; padding: 5px; background-color: rgb(250,251,252); border-color: rgb(216,222,235);'>recipient.gender</span></td>
<td>gender</td>
<td>Optional for payout to a new recipient.<br/><br/>Ignored for payout to an existing recipient.</td>
</tr>
<tr>
<td><span style='font-family: monospace; font-size: 11px; border: solid 1px; padding: 5px; background-color: rgb(250,251,252); border-color: rgb(216,222,235);'>recipient.birthDate</span></td>
<td>birthDate</td>
<td>Optional for payout to a new recipient.<br/><br/>Ignored for payout to an existing recipient.</td>
</tr>
<tr>
<td><span style='font-family: monospace; font-size: 11px; border: solid 1px; padding: 5px; background-color: rgb(250,251,252); border-color: rgb(216,222,235);'>recipient.countryOfBirth</span></td>
<td>countryOfBirth</td>
<td>Optional for payout to a new recipient.<br/><br/>Ignored for payout to an existing recipient.</td>
</tr>
<tr>
<td><span style='font-family: monospace; font-size: 11px; border: solid 1px; padding: 5px; background-color: rgb(250,251,252); border-color: rgb(216,222,235);'>recipient.countryOfNationality</span></td>
<td>countryOfNationality</td>
<td>Optional for payout to a new recipient.<br/><br/>Ignored for payout to an existing recipient.</td>
</tr>
<tr>
<td><span style='font-family: monospace; font-size: 11px; border: solid 1px; padding: 5px; background-color: rgb(250,251,252); border-color: rgb(216,222,235);'>recipient.addressType</span></td>
<td>addressType</td>
<td>Optional for payout to a new recipient.<br/><br/>Ignored for payout to an existing recipient.</td>
</tr>
<tr>
<td><span style='font-family: monospace; font-size: 11px; border: solid 1px; padding: 5px; background-color: rgb(250,251,252); border-color: rgb(216,222,235);'>recipient.addressLine1</span></td>
<td>addressLine1</td>
<td>Optional for payout to a new recipient.<br/><br/>Ignored for payout to an existing recipient.</td>
</tr>
<tr>
<td><span style='font-family: monospace; font-size: 11px; border: solid 1px; padding: 5px; background-color: rgb(250,251,252); border-color: rgb(216,222,235);'>recipient.addressLine2</span></td>
<td>addressLine2</td>
<td>Optional for payout to a new recipient.<br/><br/>Ignored for payout to an existing recipient.</td>
</tr>
<tr>
<td><span style='font-family: monospace; font-size: 11px; border: solid 1px; padding: 5px; background-color: rgb(250,251,252); border-color: rgb(216,222,235);'>recipient.city</span></td>
<td>city</td>
<td>Optional for payout to a new recipient.<br/><br/>Ignored for payout to an existing recipient.</td>
</tr>
<tr>
<td><span style='font-family: monospace; font-size: 11px; border: solid 1px; padding: 5px; background-color: rgb(250,251,252); border-color: rgb(216,222,235);'>recipient.region</span></td>
<td>region</td>
<td>Optional for payout to a new recipient.<br/><br/>Ignored for payout to an existing recipient.</td>
</tr>
<tr>
<td><span style='font-family: monospace; font-size: 11px; border: solid 1px; padding: 5px; background-color: rgb(250,251,252); border-color: rgb(216,222,235);'>recipient.postalCode</span></td>
<td>postalCode</td>
<td>Optional for payout to a new recipient.<br/><br/>Ignored for payout to an existing recipient.</td>
</tr>
<tr>
<td><span style='font-family: monospace; font-size: 11px; border: solid 1px; padding: 5px; background-color: rgb(250,251,252); border-color: rgb(216,222,235);'>recipient.phoneNumber</span></td>
<td>phoneNumber</td>
<td>Optional for payout to a new recipient.<br/><br/>Ignored for payout to an existing recipient.</td>
</tr>
<tr>
<td><span style='font-family: monospace; font-size: 11px; border: solid 1px; padding: 5px; background-color: rgb(250,251,252); border-color: rgb(216,222,235);'>recipient.phoneNumberCountry</span></td>
<td>phoneNumberCountry</td>
<td>Optional for payout to a new recipient.<br/><br/>Ignored for payout to an existing recipient.</td>
</tr>
<tr>
<td><span style='font-family: monospace; font-size: 11px; border: solid 1px; padding: 5px; background-color: rgb(250,251,252); border-color: rgb(216,222,235);'>recipient.mobileNumber</span></td>
<td>mobileNumber</td>
<td>Optional for payout to a new recipient.<br/><br/>Ignored for payout to an existing recipient.</td>
</tr>
<tr>
<td><span style='font-family: monospace; font-size: 11px; border: solid 1px; padding: 5px; background-color: rgb(250,251,252); border-color: rgb(216,222,235);'>recipient.mobileNumberCountry</span></td>
<td>mobileNumberCountry</td>
<td>Optional for payout to a new recipient.<br/><br/>Ignored for payout to an existing recipient.</td>
</tr>
<tr>
<td><span style='font-family: monospace; font-size: 11px; border: solid 1px; padding: 5px; background-color: rgb(250,251,252); border-color: rgb(216,222,235);'>recipient.governmentIdType</span></td>
<td>governmentIdType</td>
<td>Optional for payout to a new recipient.<br/><br/>Ignored for payout to an existing recipient.</td>
</tr>
<tr>
<td><span style='font-family: monospace; font-size: 11px; border: solid 1px; padding: 5px; background-color: rgb(250,251,252); border-color: rgb(216,222,235);'>governmentId</span><br/>(in <span style='font-family: monospace; font-size: 11px; border: solid 1px; padding: 5px; background-color: rgb(250,251,252); border-color: rgb(216,222,235);'>recipient.recipientIdNumbers</span>)</td>
<td>governmentId</td>
<td>Optional for payout to a new recipient.<br/><br/>Ignored for payout to an existing recipient.</td>
</tr>
<tr>
<td><span style='font-family: monospace; font-size: 11px; border: solid 1px; padding: 5px; background-color: rgb(250,251,252); border-color: rgb(216,222,235);'>passportId</span><br/>(in <span style='font-family: monospace; font-size: 11px; border: solid 1px; padding: 5px; background-color: rgb(250,251,252); border-color: rgb(216,222,235);'>recipient.recipientIdNumbers</span>)</td>
<td>passportId</td>
<td>Optional for payout to a new recipient.<br/><br/>Ignored for payout to an existing recipient.</td>
</tr>
<tr>
<td><span style='font-family: monospace; font-size: 11px; border: solid 1px; padding: 5px; background-color: rgb(250,251,252); border-color: rgb(216,222,235);'>driversLicenseId</span><br/>(in <span style='font-family: monospace; font-size: 11px; border: solid 1px; padding: 5px; background-color: rgb(250,251,252); border-color: rgb(216,222,235);'>recipient.recipientIdNumbers</span>)</td>
<td>driversLicenseId</td>
<td>Optional for payout to a new recipient.<br/><br/>Ignored for payout to an existing recipient.</td>
</tr>
<tr>
<td><span style='font-family: monospace; font-size: 11px; border: solid 1px; padding: 5px; background-color: rgb(250,251,252); border-color: rgb(216,222,235);'>employerId</span><br/>(in <span style='font-family: monospace; font-size: 11px; border: solid 1px; padding: 5px; background-color: rgb(250,251,252); border-color: rgb(216,222,235);'>recipient.recipientIdNumbers</span>)</td>
<td>employerId</td>
<td>Optional for payout to a new recipient.<br/><br/>Ignored for payout to an existing recipient.</td>
</tr>
</table>

## Batch file format and examples
The batch file needs to be in CSV format. The first line contains a comma-separated list of the parameters to use. Each subsequent line must have the same number of commas as the first line but does not have to have content for each parameter (except where the parameter is required for the payout request). 
For the possible required, conditionally required, and optional parameters to include, see the previous section.

To use your own field headers from your batch file, contact [Integrations Support](page:contact-us) for assistance.

### Simple batch file example
```
firstName,lastName,recipientRef,email,country,amount,currency
Yiseme,Gordman,9348rwf2,ygordman@testdata123.com,US,15,USD
John,Johnson,123456r3,jj@123.com,CA,140,CAD
,,,,,,
```
[Download sample file (in ZIP)](https://drive.google.com/file/d/1rR_knD7aBeCUnTvbHATOrPsW5lsuz-BI/view?usp=sharing)<br/>(To download, click the link and then select the option to "download".)
### Batch file with all parameters example
```
batchRef,currency,amount,description,payoutRef,recipientId,recipientRef,email,firstName,lastName,country,providerId,userType,gender,birthDate,countryOfBirth,countryOfNationality,addressType,addressLine1,addressLine2,city,region,postalCode,phoneNumber,phoneNumberCountry,mobileNumber,mobileNumberCountry,governmentIdType,governmentId,passportId,driversLicenseId,employerId
batch006,USD,1314.27,June commission payment,113e9ee19a-9c5f-49ca-9a92-3e39e64219c01,98198452,DS1125345,recipientemail112@payoutnow.com,Judith,Callie,US,12695,INDIVIDUAL,FEMALE,12/5/90,US,US,RESIDENTIAL,123 Somewhere St,,Somewhere,AK,99885,801111111,US,8012222222,US,NATIONALIDCARD,999999999,,DL12343234,
batch006,USD,125,June commission payment,Z12345 June 15th  compensation  pay1,98468985,Z11223456,recipientemai1l21@payoutnow.com,Merchnat,LLC,ES,12686,BUSINESS,MALE,11/19/91,ES,ES,BUSINESS,"C. del Pozo, 8",,Madrid,,28012,34915223894,ES,34915223895,ES,NATIONALIDCARD,,,,111111111
batch006,CAD,161.13,June commission payment,11a5ff4a13d4381,,RR12234346,recipientemail132@payoutnow.com,Wilimina,Manning,CA,12696,INDIVIDUAL,FEMALE,1/15/93,CA,CA,RESIDENTIAL,800 Benevenuto Ave,,Brentwood Bay,BC,V8M 1J8,2506524422,CA,2506524421,CA,PASSPORT,,789546512,,
```
[Download sample batch file (in ZIP)](https://drive.google.com/file/d/1JYmaQCyfQRy6ioMn5mZPVvFTGk2xgySC/view?usp=sharing)<br/>(To download, click the link and then select the option to "download".)

## Request body `multipart/form-data`

- object
  - `file` string, binary, required: Directory location and name for the batch file. Must be accessible from the server that runs this API endpoint.

## Response `200`

OK

- object
  - `message` string: Message indicates success or failure for processing the batch file.

## Other responses

- `401`: Unauthorized. For help with this error and other error codes, see [Common errors](doc:common-errors) in the Guides area.

---

[API](https://skmtc.dev/nexiopay/apis/payouts-api-reference.md) - [All operations](https://skmtc.dev/nexiopay/apis/payouts-api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/nexiopay/apis/payouts-api-reference/revisions/36c088967d63?raw)
