Skip to main content

Resources

BatchRelease

BatchRelease is a JSON:API resource, top-level fields:

NameTypeDescription
idstringIdentifier of the batch-release resource.
typestringType of the batch-release resource. The value is always batchRelease.
attributesJSON ObjectJSON object representing the batch-release data.
relationshipsJSON:API RelationshipsDescribes relationships between the batch-release resource and other resources (accounts).

Attributes

NameTypeDescription
amountintegerThe amount (in cents) to move from the batch account to the receiver account.
descriptionstringDescription of the payment.
senderNamestringName of the sender, before combining the payments.
senderAddressAddressAddress of the sender, before combining the payments.
senderAccountNumberstringAccount number of the sender, before combining the payments.

Relationships

NameTypeDescription
batchAccountJSON:API RelationshipThe batch account to release the funds from.
receiverJSON:API RelationshipThe account to release the funds to.
Example BatchRelease resource:
{
"type": "batchRelease",
"id": "100123",
"attributes": {
"amount": 3000,
"description": "Gift",
"senderName": "Sherlock Holmes",
"senderAccountNumber": "4581133972",
"senderAddress": {
"street": "221B Baker Street",
"city": "London",
"postalCode": "NW1 6XE",
"country": "UK"
}
},
"relationships": {
"batchAccount": {
"data": {
"type": "batchAccount",
"id": "10104"
}
},
"receiver": {
"data": {
"type": "depositAccount",
"id": "10097"
}
}
}
}

Release Transaction

A Release Transaction is created when funds are released from a batch account to a receiver account. See the Release Transaction in the central Resources documentation for the full schema.