POST /batches
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
POST /batches/{id}/payments
.A new batch will be created in a draft status (i.e. statusCode: DRAFT). Batches in draft status are not processed until
POST /batch/{id}/submit
is called.externalId
(in the request body) can be supplied to map payment identifiers in an external system. IfexternalId
is supplied, then it must be unique.
When a batch is in DRAFT status, it can be updated (e.g. name and payment details can be updated) as well as cancelled.
Request
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.
Response
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.
Last updated