Credit Transfers
Reject credit transfer batch
Reject the batch of credit transfers.
Rejection of a batch is only applicable when the batch treatment is BATCH.
post/payments/v2beta/credit-transfer-batches/{id}:reject
Path parameters
idstring required
Atlar resource ID or External ID. Prefix External IDs with external:.
Headers
If-Matchstring
ETag (version) of resource to be updated.
Request body
Example request
{
"reason": "This has been classified as a fraudulent payment"
}Response
The request to reject the batch and all the payments it contains has been accepted.
Note that the rejection status of the individual payments may be processed asynchronous.
Example response
{
"id": "2ed9a3ee-60aa-4f9f-a858-2eed4eefbbc8",
"organizationId": "0160f6ab-5741-49e1-af46-9138927e547e",
"treatment": "INDIVIDUAL_PAYMENTS",
"input": {
"sums": [
{
"currency": "EUR",
"stringValue": "15.02",
"value": 1502
}
],
"content": {
"size": 4711,
"checksum": "sha256:08343d976a896e8563b4915c84878207199b5fa139d3edde1bd77d99339bd18c",
"filename": "batch-2022-05-07.csv"
}
},
"inputContent": {
"size": 4711,
"checksum": "sha256:08343d976a896e8563b4915c84878207199b5fa139d3edde1bd77d99339bd18c",
"filename": "batch-2022-05-07.csv"
},
"inputDetails": {
"sums": [
{
"currency": "EUR",
"stringValue": "15.02",
"value": 1502
}
]
},
"results": {
"sums": [
{
"currency": "EUR",
"stringValue": "15.02",
"value": 1502
}
]
},
"resultDetails": {
"sums": [
{
"currency": "EUR",
"stringValue": "15.02",
"value": 1502
}
]
},
"status": "COMPLETED",
"errors": [
{
"code": "invalid_value",
"error": "Must be one of [direct_debits mandates payments]",
"field": "filter.0.resource"
}
],
"approvalSteps": [
{
"id": "735c7b8c-ef29-456a-8caf-113be117d131",
"status": "APPROVED",
"approver": {
"id": "2ed9a3ee-60aa-4f9f-a858-2eed4eefbbc8",
"username": "john.smith@example.com",
"name": "John Smith",
"roleId": "2a1e16eb-2f83-4597-99e2-cffbc4311df2"
}
}
],
"externalId": "walVNuin6X5Mvte4xhg1ibTAVSACfN4Q9hl",
"creatorUserId": "2ed9a3ee-60aa-4f9f-a858-2eed4eefbbc8",
"metadata": {
"my_metadata_key": "2a9a79b9-601c-449b-aa05-432f41dbbc4a"
},
"etag": "version:3",
"version": 1,
"created": "2022-05-04T18:31:12.889104898Z",
"updated": "2022-05-04T18:47:32.213842599Z"
}