POST /batches
Last updated
Last updated
This operation creates a new payment Batch in DRAFT status.
When creating a new Batch:
A unique ID will be returned which can be used for subsequent calls to query and/or modify the Batch.
A Batch is created with no Payments. Payments for the batch are added by calling .
A new batch will be created in a draft status (i.e. statusCode: DRAFT). Batches in draft status are not processed until is called.
externalId
(in the request body) can be supplied to map payment identifiers in an external system. If externalId
is supplied, then it must be unique.
Creating a new Batch requires the following payload:
Authorization
Yes
name
Yes
Friendly name to give to the Batch.
externalId
No
Optional batch identifier that can be supplied by external system for tracing purposes. If supplied, the externalID
across all batches must be unique.
If successful, the operation will return a Batch response:
id
string($guid)
Unique ID for the Batch. Used for subsequent calls to other Batch operations.
name
string
Name of the batch as supplied in the request.
externalId
string
External ID of the batch as supplied in the request.
statusCode
string
Status of the Batch. A new Batch will always have a DRAFT status code.
createdAt
string($date-time)
Date and time when the Batch was created.
Bearer token from