Manage a payment batch

View a list of payment batches associated with an account, retrieve details about a specific batch, update or delete a batch, and access alerts or payments within a batch.

List payment batches

Get/v2/payment-batches

Request

Use this endpoint to retrieve a paginated list of all payment batches associated with your account. You can filter results using query parameters.

Sample requestRequest structure
Copy
Copied
curl -i -X GET \
  'https://api.equalsmoney.com/v2/payment-batches?accountId=F50091&sort=asc&offset=100&limit=200&ids=string&include=string&includeHidden=true&statuses=string' \
  -H 'Authorization: YOUR_API_KEY_HERE' \
Copy
Copied
  'https://api.equalsmoney.com/v2/payment-batches?accountId=F50091&sort=asc&offset=100&limit=200&ids=string&include=string&includeHidden=true&statuses=string' \
  -H 'Authorization: YOUR_API_KEY_HERE' \

Query parameters

Parameter Description
accountId
string
required
The ID of the account that you want to retrieve a list of payment batches for.

Allowable values:
An existing accountId (<= 36 characters)
sort
string
Sort order: ascending (asc) or descending (desc) By default, this is set to desc.

Allowable values:
asc, desc
offset
integer
The number of items to skip before returning results. For example, offset=200. By default, this is set to 0.

Allowable values:
A valid integer
limit
integer
The maximum number of results to return. For example, limit=25. By default, this is set to 100.

Allowable values:
[ 1 .. 1000 ]
ids
string
A list of payment batch IDs to filter by.

Allowable values:
A valid string
includeHidden
string
Includes hidden payment batches (true or false). By default, this is set to false.

Allowable values:
true, false
statuses
string
A list of statuses to filter by.

Allowable values:
draft, validated, confirmed, started, completed, failed, cancelled

Response

If your request is successful, you'll receive a 200 response.

Sample responseResponse structure
Copy
Copied
{
  "limit": 200,
  "offset": 100,
  "count": 67,
  "rows": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "accountId": "string",
      "name": "string",
      "createdBy": {
        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
        "type": "person"
      },
      "product": {
        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
        "name": "string"
      },
      "status": "draft",
      "visible": true,
      "visibleAt": "2019-08-24T14:15:22Z",
      "confirmedBy": {
        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
        "type": "person"
      },
      "confirmedAt": "2019-08-24T14:15:22Z",
      "passedMfaCheckAt": "2019-08-24T14:15:22Z",
      "riskCheckedAt": "2019-08-24T14:15:22Z",
      "ordersSentAt": "2019-08-24T14:15:22Z",
      "createdAt": "2019-08-24T14:15:22Z",
      "updatedAt": "2019-08-24T14:15:22Z",
      "alerts": [
        {
          "timestamp": "2019-08-24T14:15:22Z",
          "type": "Error",
          "code": "string",
          "message": "string"
        }
      ],
      "ordersSummary": {
        "numberOfOrders": 0,
        "uniqueCurrencyCodes": [
          "USD"
        ]
      },
      "input": {
        "format": "csv",
        "status": "accepted",
        "createdAt": "2019-08-24T14:15:22Z",
        "updatedAt": "2019-08-24T14:15:22Z"
      }
    }
  ]
}
Copy
Copied
{
  "limit": number,
  "offset": number,
  "count": number,
  "rows": [
    {
      "id": "string",
      "accountId": "string",
      "name": "string",
      "createdBy": {
        "id": "string",
        "type": "string"
      },
      "product": {
        "id": "string",
        "name": "string"
      },
      "status": "string",
      "visible": boolean,
      "visibleAt": "string",
      "confirmedBy": {
        "id": "string",
        "type": "string"
      },
      "confirmedAt": "string",
      "passedMfaCheckAt": "string",
      "riskCheckedAt": "string",
      "ordersSentAt": "string",
      "createdAt": "string",
      "updatedAt": "string",
      "alerts": [
        {
          "timestamp": "string",
          "type": "string",
          "code": "string",
          "message": "string"
        }
      ],
      "ordersSummary": {
        "numberOfOrders": number,
        "uniqueCurrencyCodes": [
          "string"
        ]
      },
      "input": {
        "format": "string",
        "status": "string",
        "createdAt": "string",
        "updatedAt": "string"
      }
    }
  ]
}

For more detailed information about this request and its response, see API reference.

Retrieve a specific payment batch

Get/v2/payment-batches/{paymentBatchId}

Request

Use this endpoint to retrieve details of a specific payment batch.

Sample requestRequest structure
Copy
Copied
curl -i -X GET \
  'https://api.equalsmoney.com/v2/payment-batches/{paymentBatchId}?accountId=F50091&include=string' \
  -H 'Authorization: YOUR_API_KEY_HERE' \
Copy
Copied
curl -i -X GET \
  'https://api.equalsmoney.com/v2/payment-batches/{paymentBatchId}?accountId=F50091&include=string' \
  -H 'Authorization: YOUR_API_KEY_HERE' \

Path parameters

Parameter Description
paymentBatchId
string
required
The unique ID of the Payment Batch.

Allowable values:
An existing paymentBatchId

Query parameters

Parameter Description
accountId
string
required
The ID of the account that you want to work with.

Allowable values:
An existing accountId (<= 36 characters)
include
string
optional
A list of additional data to include.

Response

If your request is successful, you'll receive a 200 response.

Sample responseResponse structure
Copy
Copied
{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "accountId": "string",
  "name": "string",
  "createdBy": {
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "type": "person"
  },
  "product": {
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "name": "string"
  },
  "status": "draft",
  "visible": true,
  "visibleAt": "2019-08-24T14:15:22Z",
  "confirmedBy": {
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "type": "person"
  },
  "confirmedAt": "2019-08-24T14:15:22Z",
  "passedMfaCheckAt": "2019-08-24T14:15:22Z",
  "riskCheckedAt": "2019-08-24T14:15:22Z",
  "ordersSentAt": "2019-08-24T14:15:22Z",
  "createdAt": "2019-08-24T14:15:22Z",
  "updatedAt": "2019-08-24T14:15:22Z",
  "alerts": [
    {
      "timestamp": "2019-08-24T14:15:22Z",
      "type": "Error",
      "code": "string",
      "message": "string"
    }
  ],
  "ordersSummary": {
    "numberOfOrders": 0,
    "uniqueCurrencyCodes": [
      "USD"
    ]
  },
  "input": {
    "format": "csv",
    "status": "accepted",
    "createdAt": "2019-08-24T14:15:22Z",
    "updatedAt": "2019-08-24T14:15:22Z"
  }
}
Copy
Copied
{
  "id": "string",
  "accountId": "string",
  "name": "string",
  "createdBy": {
    "id": "string",
    "type": "string"
  },
  "product": {
    "id": "string",
    "name": "string"
  },
  "status": "string",
  "visible": boolean,
  "visibleAt": "string",
  "confirmedBy": {
    "id": "string",
    "type": "string"
  },
  "confirmedAt": "string",
  "passedMfaCheckAt": "string",
  "riskCheckedAt": "string",
  "ordersSentAt": "string",
  "createdAt": "string",
  "updatedAt": "string",
  "alerts": [
    {
      "timestamp": "string",
      "type": "string",
      "code": "string",
      "message": "string"
    }
  ],
  "ordersSummary": {
    "numberOfOrders": number,
    "uniqueCurrencyCodes": [
      "string"
    ]
  },
  "input": {
    "format": "string",
    "status": "string",
    "createdAt": "string",
    "updatedAt": "string"
  }
}

For more detailed information about this request and its response, see API reference.

Update a payment batch

Patch/v2/payment-batches/{paymentBatchId}

Request

Use this endpoint to update specific attributes of a payment batch, such as the name or visibility. This endpoint cannot be used after a batch has been confirmed.

Sample requestRequest structure
Copy
Copied
curl -i -X PATCH \
  'https://api.equalsmoney.com/v2/payment-batches/{paymentBatchId}?accountId=F50091' \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'Content-Type: application/json' \
  -H 'requestid: string' \
  -d '{
    "name": "string",
    "visible": true
  }'
Copy
Copied
curl -i -X PATCH \
  'https://api.equalsmoney.com/v2/payment-batches/{paymentBatchId}?accountId=F50091' \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'Content-Type: application/json' \
  -H 'requestid: string' \
  -d '{
    "name": "string",
    "visible": boolean
  }'

Path parameters

Parameter Description
paymentBatchId
string
required
The unique ID of the payment batch.

Allowable values:
An existing paymentBatchId

Query parameters

Parameter Description
accountId
string
required
The ID of the account that you want to work with.

Allowable values:
An existing accountId (<= 36 characters)

Request body schema

Parameter Description
name
string
optional
The name of the payment batch.
visible
boolean
optional
Indicates whether the payment batch is visible to other API users.

Response

If your request is successful, you'll receive a 200 response containing the updated details.

Sample responseResponse structure
Copy
Copied
{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "accountId": "string",
  "name": "string",
  "createdBy": {
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "type": "person"
  },
  "product": {
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "name": "string"
  },
  "status": "draft",
  "visible": true,
  "visibleAt": "2019-08-24T14:15:22Z",
  "confirmedBy": {
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "type": "person"
  },
  "confirmedAt": "2019-08-24T14:15:22Z",
  "passedMfaCheckAt": "2019-08-24T14:15:22Z",
  "riskCheckedAt": "2019-08-24T14:15:22Z",
  "ordersSentAt": "2019-08-24T14:15:22Z",
  "createdAt": "2019-08-24T14:15:22Z",
  "updatedAt": "2019-08-24T14:15:22Z",
  "alerts": [
    {
      "timestamp": "2019-08-24T14:15:22Z",
      "type": "Error",
      "code": "string",
      "message": "string"
    }
  ],
  "ordersSummary": {
    "numberOfOrders": 0,
    "uniqueCurrencyCodes": [
      "USD"
    ]
  },
  "input": {
    "format": "csv",
    "status": "accepted",
    "createdAt": "2019-08-24T14:15:22Z",
    "updatedAt": "2019-08-24T14:15:22Z"
  }
}
Copy
Copied
{
  "id": "string",
  "accountId": "string",
  "name": "string",
  "createdBy": {
    "id": "string",
    "type": "string"
  },
  "product": {
    "id": "string",
    "name": "string"
  },
  "status": "string",
  "visible": boolean,
  "visibleAt": "string",
  "confirmedBy": {
    "id": "string",
    "type": "string"
  },
  "confirmedAt": "string",
  "passedMfaCheckAt": "string",
  "riskCheckedAt": "string",
  "ordersSentAt": "string",
  "createdAt": "string",
  "updatedAt": "string",
  "alerts": [
    {
      "timestamp": "string",
      "type": "string",
      "code": "string",
      "message": "string"
    }
  ],
  "ordersSummary": {
    "numberOfOrders": number,
    "uniqueCurrencyCodes": [
      "string"
    ]
  },
  "input": {
    "format": "string",
    "status": "string",
    "createdAt": "string",
    "updatedAt": "string"
  }
}

For more detailed information about this request and its response, see API reference.

Delete a payment batch

Delete/v2/payment-batches/{paymentBatchId}

Request

Use this request to permanently delete a payment batch. A batch can not be deleted after the batch has been confirmed.

Sample requestRequest structure
Copy
Copied
curl -i -X DELETE \
  'https://api.equalsmoney.com/v2/payment-batches/{paymentBatchId}?accountId=F50091' \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'requestid: string' \
Copy
Copied
curl -i -X DELETE \
  'https://api.equalsmoney.com/v2/payment-batches/{paymentBatchId}?accountId=F50091' \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'requestid: string' \

Path parameters

Parameter Description
paymentBatchId
string
required
The unique ID of the payment batch.

Allowable values:
An existing paymentBatchId

Query parameters

Parameter Description
accountId
string
required
The ID of the account that you want to work with.

Allowable values:
An existing accountId (<= 36 characters)

Response

If your request is successful, you'll receive a 204 No Content response.

For more detailed information about this request and its response, see API reference.

List payment batch alerts

Get/v2/payment-batches/{paymentBatchId}/alerts

Request

Use this endpoint to retrieve paginated list of all payment batch alerts associated with your account. You can filter results using query parameters.

Sample requestRequest structure
Copy
Copied
curl -i -X GET \
  'https://api.equalsmoney.com/v2/payment-batches/{paymentBatchId}/alerts?accountId=F50091&sort=asc&offset=100&limit=200&from=2019-08-24T14%3A15%3A22Z&to=2019-08-24T14%3A15%3A22Z&alertType=Error&alertCode=string' \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'requestid: string' \
Copy
Copied
curl -i -X GET \
  'https://api.equalsmoney.com/v2/payment-batches/{paymentBatchId}/alerts?accountId=F50091&sort=asc&offset=100&limit=200&from=2019-08-24T14%3A15%3A22Z&to=2019-08-24T14%3A15%3A22Z&alertType=Error&alertCode=string' \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'requestid: string' \

Path parameters

Parameter Description
paymentBatchId
string
required
The unique ID of the payment batch.

Allowable values:
An existing paymentBatchId

Query parameters

Parameter Description
accountId
string
required
The ID of the account that you want to retrieve a list of payment batches for.

Allowable values:
An existing accountId (<= 36 characters)
sort
string
Sort order: ascending (asc) or descending (desc) By default, this is set to desc.

Allowable values:
asc, desc
offset
integer
The number of items to skip before returning results. For example, offset=200. By default, this is set to 0.

Allowable values:
A valid integer
limit
integer
The maximum number of results to return. For example, limit=25. By default, this is set to 100.

Allowable values:
[ 1 .. 1000 ]
from
string
Time from.
to
string
Time to.
alertType
string
The alert type.

Allowable values:
Error Warning
alertCode
string
The alert name.

Allowable values:
Error Warning

Response

If your request is successful, you'll receive a 200 response containing the following details.

Sample responseResponse structure
Copy
Copied
{
  "limit": 200,
  "offset": 100,
  "count": 67,
  "rows": [
    {
      "timestamp": "2019-08-24T14:15:22Z",
      "type": "Error",
      "code": "string",
      "inputIndex": 0,
      "message": "string"
    }
  ]
}
Copy
Copied
{
  "limit": number,
  "offset": number,
  "count": number,
  "rows": [
    {
      "timestamp": "string",
      "type": "string",
      "code": "string",
      "inputIndex": number,
      "message": "string"
    }
  ]
}

For more detailed information about this request and its response, see API reference.

List payments in payment batch

Get/v2/payment-batches/{paymentBatchId}/payments

Request

Use this endpoint to retrieve paginated list of all payments for a given payment batch.

Sample requestRequest structure
Copy
Copied
curl -i -X GET \
  'https://api.equalsmoney.com/v2/payment-batches/{paymentBatchId}/payments?accountId=F50091&sort=asc&offset=100&limit=200&search=string&statuses=string&include=string&orderIds=string&budgetIds=string&currencies=string' \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'requestid: string' \
Copy
Copied
curl -i -X GET \
  'https://api.equalsmoney.com/v2/payment-batches/{paymentBatchId}/payments?accountId=F50091&sort=asc&offset=100&limit=200&search=string&statuses=string&include=string&orderIds=string&budgetIds=string&currencies=string' \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'requestid: string' \

Path parameters

Parameter Description
paymentBatchId
string
required
The unique ID of the Payment Batch.

Allowable values:
An existing paymentBatchId

Query parameters

Parameter Description
accountId
string
required
The ID of the account that you want to retrieve a list of payment batches for.

Allowable values:
An existing accountId (<= 36 characters)
sort
string
Sort order: ascending (asc) or descending (desc) By default, this is set to desc.

Allowable values:
asc, desc
offset
integer
The number of items to skip before returning results. For example, offset=200. By default, this is set to 0.

Allowable values:
A valid integer
limit
integer
The maximum number of results to return. For example, limit=25. By default, this is set to 100.

Allowable values:
[ 1 .. 1000 ]
include
string
statuses
string
A list of statuses to filter by.

Allowable values:
draft, validated, confirmed, started, completed, failed, cancelled
orderIds
string
The order IDs.

Allowable values:
An existing orderId (<= 36 characters)
budgetIds
string
The budget IDs.

Allowable values:
An existing budgetId (<= 36 characters)
currencies
string

Response

If your request is successful, you'll receive a 200 response containing the following details.

Sample responseResponse structure
Copy
Copied
{
  "limit": 200,
  "offset": 100,
  "count": 67,
  "rows": [
    {
      "id": "string",
      "paymentBatchId": "1bce4e75-abe0-4ebf-b151-fbdb0b7d5ed9",
      "orderId": "string",
      "status": "created",
      "amount": "string",
      "fundingBudgetId": "6ee672f6-226f-4a72-8592-0f8dc5284ab1",
      "purposeCode": "string",
      "purpose": "string",
      "reference": "string",
      "currencyCode": "USD",
      "riskCheckedAt": "2019-08-24T14:15:22Z",
      "fees": "string",
      "charges": "SHA",
      "createdAt": "2019-08-24T14:15:22Z",
      "updatedAt": "2019-08-24T14:15:22Z",
      "inputIndex": 0,
      "recipient": {
        "id": "string",
        "defaultReference": "string",
        "type": "individual",
        "name": "string",
        "displayName": "string",
        "subscribedEmails": [
          {
            "name": "string",
            "email": "user@example.com"
          }
        ],
        "accountIdentifier": "string",
        "bankIdentifier": "string",
        "intermediaryBankIdentifier": "string",
        "paymentNetwork": "SWIFT",
        "address": {
          "addressType": "ADDR",
          "streetName": "string",
          "buildingNumber": "string",
          "buildingName": "string",
          "postcode": "string",
          "city": "string",
          "region": "string",
          "countryCode": "GB"
        },
        "bankAddress": {
          "countryCode": "GB"
        }
      },
      "alerts": [
        {
          "inputIndex": 0,
          "timestamp": "2019-08-24T14:15:22Z",
          "type": "Error",
          "code": "string",
          "message": "string"
        }
      ]
    }
  ]
}
Copy
Copied
{
{
  "limit": number,
  "offset": number,
  "count": number,
  "rows": [
    {
      "id": "string",
      "paymentBatchId": "string",
      "orderId": "string",
      "status": "string",
      "amount": "string",
      "fundingBudgetId": "string",
      "purposeCode": "string",
      "purpose": "string",
      "reference": "string",
      "currencyCode": "string",
      "riskCheckedAt": "string",
      "fees": "string",
      "charges": "string",
      "createdAt": "string",
      "updatedAt": "string",
      "inputIndex": number,
      "recipient": {
        "id": "string",
        "defaultReference": "string",
        "type": "string",
        "name": "string",
        "displayName": "string",
        "subscribedEmails": [
          {
            "name": "string",
            "email": "string"
          }
        ],
        "accountIdentifier": "string",
        "bankIdentifier": "string",
        "intermediaryBankIdentifier": "string",
        "paymentNetwork": "string",
        "address": {
          "addressType": "string",
          "streetName": "string",
          "buildingNumber": "string",
          "buildingName": "string",
          "postcode": "string",
          "city": "string",
          "region": "string",
          "countryCode": "string"
        },
        "bankAddress": {
          "countryCode": "string"
        }
      },
      "alerts": [
        {
          "inputIndex": number,
          "timestamp": "string",
          "type": "string",
          "code": "string",
          "message": "string"
        }
      ]
    }
  ]
}