Set up a batch of intrabank transfers to send and/or receive funds between accounts on your program. Follow these guidelines:
- sd-person-id header should have access to all accountId passed in the request body
- contactId should already be created and contain the Intrabank sub-object
- specify "send" or "receive" in the "api" field
- specify the order of the transfers by setting the "sequence" field. Sequences can be any integer and are not correlated between different batches
- maximum 500 objects or 256KB can be sent per API call
ENDPOINT
- POST /v1/batch/intrabank
REQUEST
- {
- "data": [
- {
- "api": "send",
- "accountId": "{{accountId}}",
- "contactId": "{{contactId}}",
- "amount": "25.00",
- "title": "Batch intrabank 1",
- "sequence": "1",
- "description": "Funding"
- },
- {
- "api": "receive",
- "accountId": "{{accountId}}",
- "contactId": "{{contactId}}",
- "amount": "25.00",
- "title": "Batch intrabank 2",
- "sequence": "2",
- "description": "Pull"
- }
- ]
- }
RESPONSE
- {
- "batchId": "bch-d8b8825a-baa9-469c-9d32-8f6677031350",
- "status": "submitted",
- "transferType": "intrabank",
- "totalCount": 2,
- "successCount": 0,
- "failedCount": 0,
- "createdAt": "2023-07-17T16:50:03Z",
- "completedAt": "",
- "modifiedAt": "2023-07-17T16:50:03Z"
- }
The response is a batch object. You can retrieve an intrabank batch after it is sent to view its status, and you can retrieve a specific transaction by including the sequence number in the call.