API reference
Checks
Payments API operations for Checks.
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.
POST /v1/checks/files/{transactionFileCategory}
Accepts a check file (typically in the form of an image) to be used in validation and further processing.
| Parameter | In | Required | Description |
|---|---|---|---|
transactionFileCategory |
path | yes | The category of file being uploaded: CheckFront or CheckBack. |
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. |
Request body: multipart form data.
Responses:
| Status | Description | Schema |
|---|---|---|
| 201 | The response represents the newly created check file identifier. | PostCheckFileResponse |
| 400 | The file was not created successfully (including a category other than CheckFront or CheckBack). Error messages can be found in the body of the response. | ValidationProblemDetails |
POST /v1/checks/validate
Validates the previously uploaded files.
| 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. |
Request body: PostCheckValidateRequest.
PostCheckValidateRequest
| Field | Type | Required | Description |
|---|---|---|---|
fileIds |
array of string | A collection of file identifiers to be used for check processing. |
Responses:
| Status | Description | Schema |
|---|---|---|
| 200 | The validation was successful and the response contains details from the scanned check. | PostCheckValidateResponse |
| 400 | The session was not created successfully. Error messages can be found in the body of the response. | ValidationProblemDetails |