API reference
Batches
Payments API operations for Batches.
These operations are generated from the Payments API Swagger document. Use the sandbox host https://api.dhangodemo.com while testing and https://api.dhango.com in production.
GET /v1/batches/{id}
Gets the summary details of a single batch.
| Parameter | In | Required | Description |
|---|---|---|---|
id |
path | yes | The unique identifier of the batch. |
accountKey |
header | Used to make API calls on behalf of another account. | |
culture |
header | The culture to be used when setting the language for error messages. |
Responses:
| Status | Description | Schema |
|---|---|---|
| 200 | The batch was found and the details are in the response body. | GetBatchResponse |
| 403 | The caller holds only the public accountKey; an API key and secret are required. | ProblemDetails |
| 404 | The batch could not be found. |
GET /v1/batches
Returns a list of batches.
| Parameter | In | Required | Description |
|---|---|---|---|
accountKey |
header | Used to make API calls on behalf of another account. | |
culture |
header | The culture to be used when setting the language for error messages. | |
page |
query | The current page of the search results starting at 1. | |
pageSize |
query | The number of records per page. The default is 25 and the maximum is 50. |
Responses:
| Status | Description | Schema |
|---|---|---|
| 200 | The page of batches. | GetBatchResponseSearchResults |
| 403 | The caller holds only the public accountKey; an API key and secret are required. | ProblemDetails |