Skip to main content

Check Deposits APIs

Create Check Deposit​

Creates a check deposit for an Account.

VerbPOST
URLhttps://api.s.unit.sh/check-deposits
Required Scopecheck-deposits-write
Data TypecheckDeposit
Timeout (Seconds)5

Attributes​

NameTypeDescription
amount RequiredintegerThe check amount (in cents) to deposit.
description RequiredstringDescription of the check deposit (maximum of 50 characters).
clearingDaysOverride OptionalnumberSee Dynamic Clearing Period.
tags OptionalobjectSee Tags.
idempotencyKeystringOptional, but strongly recommended . See Idempotency.

Relationships​

NameTypeDescription
account RequiredJSON:API RelationshipThe account receiving the check deposit.
Example Request:
curl -X POST 'https://api.s.unit.sh/check-deposits'
-H 'Content-Type: application/vnd.api+json'
-H 'Authorization: Bearer ${TOKEN}'
--data-raw '{
"data": {
"type": "checkDeposit",
"attributes": {
"amount": 20000,
"description": "Check deposit"
},
"relationships": {
"account": {
"data": {
"type": "depositAccount",
"id": "10001"
}
}
}
}
}'

Response​

Response is a JSON:API document.

201 Created​

NameTypeDescription
dataCheckDepositThe requested resource after the operation was completed.
Example Response:
{
"data": {
"type": "checkDeposit",
"id": "1112",
"attributes": {
"createdAt": "2021-05-27T09:29:30.828Z",
"amount": 20000,
"description": "Check deposit",
"status": "AwaitingImages"
},
"relationships": {
"account": {
"data": {
"type": "account",
"id": "10001"
}
},
"customer": {
"data": {
"type": "customer",
"id": "10000"
}
}
}
}
}

Get by Id​

Get a check deposit by id.

VerbGET
URLhttps://api.s.unit.sh/check-deposits/{id}
Required Scopecheck-deposits
Timeout (Seconds)5

Query Parameters​

NameTypeDefaultDescription
includestring(empty)Optional. A comma-separated list of related resources to include in the response. Related resources include: customer, account, transaction. See Getting Related Resources

Response​

Response is a JSON:API document.

200 OK​

NameTypeDescription
dataCheck DepositCheckDeposit resource.
includedArray of DepositAccount or Customer or TransactionArray of resources requested by the include query parameter.
curl -X GET 'https://api.s.unit.sh/check-deposits/100' \
-H "Authorization: Bearer ${TOKEN}"

List​

List check deposit resources. Filtering, paging and sorting can be applied.

VerbGET
URLhttps://api.s.unit.sh/check-deposits
Required Scopecheck-deposits
Timeout (Seconds)120

Query Parameters​

NameTypeDefaultDescription
page[limit]integer100Maximum number of resources that will be returned. Maximum is 1000 resources. See Pagination.
page[offset]integer0Number of resources to skip. See Pagination.
filter[accountId]string(empty)Optional. Filters the results by the specified account id.
filter[customerId]string(empty)Optional. Filters the results by the specified customer id.
filter[status]Check Deposit Status(empty)Optional. Filter by Check Deposit Status. Usage Example: filter[status][0]=PendingReview&filter[status][1]=AwaitingImages
filter[tags]Tags (JSON)(empty)Optional. Filter check deposits by Tags.
filter[fromAmount]integer(empty)Optional. Filters the Check Deposits that have an amount that is higher or equal to the specified amount (in cents). e.g. 5000
filter[toAmount]integer(empty)Optional. Filters the Check Deposits that have an amount that is lower or equal to the specified amount (in cents). e.g. 7000
sortstringsort=-createdAtOptional. Leave empty or provide sort=createdAt for ascending order. Provide sort=-createdAt (leading minus sign) for descending order.
includestring(empty)Optional. A comma-separated list of related resources to include in the response. Related resources include: customer, account, transaction. See Getting Related Resources
curl -X GET 'https://api.s.unit.sh/check-deposits?page[limit]=20&page[offset]=10' \
-H "Authorization: Bearer ${TOKEN}"

Response​

Response is a JSON:API document.

200 OK​

NameTypeDescription
dataArray of Check DepositArray of check deposit resources.
includedArray of DepositAccount or Customer or TransactionArray of resources requested by the include query parameter.
Example Response:
{
"data": [
{
"type": "checkDeposit",
"id": "112",
"attributes": {
"createdAt": "2021-05-27T09:29:30.828Z",
"amount": 20000,
"description": "Check deposit",
"status": "AwaitingImages"
},
"relationships": {
"account": {
"data": {
"type": "account",
"id": "10001"
}
},
"customer": {
"data": {
"type": "customer",
"id": "10000"
}
}
}
},
{
"type": "checkDeposit",
"id": "233",
"attributes": {
"createdAt": "2021-05-27T10:49:23.287Z",
"amount": 10000,
"description": "Another check deposit",
"status": "AwaitingImages"
},
"relationships": {
"account": {
"data": {
"type": "account",
"id": "10001"
}
},
"customer": {
"data": {
"type": "customer",
"id": "10000"
}
}
}
}
]
}

Update​

Update a check deposit.

VerbPATCH
URLhttps://api.s.unit.sh/check-deposits/:id
Required Scopecheck-deposits-write
Timeout (Seconds)5

Attributes​

NameTypeDescription
clearingDaysOverride OptionalnumberSee Dynamic Clearing Period.
tags RequiredobjectSee Updating Tags.

Response​

Response is a JSON:API document.

200 OK​

NameTypeDescription
dataCheckDepositThe updated CheckDeposit resource.
Update check deposit:
curl -X PATCH 'https://api.s.unit.sh/check-deposits/:id'
-H 'Content-Type: application/vnd.api+json'
-H 'Authorization: Bearer ${TOKEN}'
--data-raw '{
"data": {
"type": "checkDeposit",
"attributes": {
"tags": {
"by": "Richard Hendricks",
"id": "23033b64-38f8-4dbc-91a1-313ff0156d02"
}
}
}
}'

Cancel Check Deposit​

Cancels a check deposit before it is processed. This is supported for check deposits in status AwaitingFrontImage, AwaitingBackImage, Pending, or PendingReview.

VerbPOST
URLhttps://api.s.unit.sh/check-deposits/{id}/cancel
Required Scopecheck-deposits-write
Timeout (Seconds)5

Response​

Response is a JSON:API document.

200 OK​

NameTypeDescription
dataCheckDepositThe canceled check deposit.
curl -X POST 'https://api.s.unit.sh/check-deposits/61212/cancel' \
-H "Authorization: Bearer ${TOKEN}"

Creates a shareable link for the Check Deposit component for an Account. The link can be sent to an end user via SMS or email and used to complete a check deposit. Unless a theme is customized, the component uses the default theme. Unless an Email Domain is customized the link will be created under a default domain starting in https://application-form.sh.

Note

The link expires after 60 minutes, after which the Check Deposit component cannot be used.

VerbPOST
URLhttps://api.s.unit.sh/white-label/send-link
Required Scopecheck-deposits-write
Data TypesendLinkForCheckDepositComponent
Timeout (Seconds)5

Attributes​

NameTypeDescription
qrCode RequiredbooleanIf true, a QR code (base64 encoded PNG) will be included in the response.
idempotencyKey RequiredstringSee Idempotency.

Relationships​

NameTypeDescription
account RequiredJSON:API RelationshipThe account receiving the check deposit.
whiteLabelTheme OptionalJSON:API RelationshipThe theme to use. A default theme will be applied unless customized.
authorizedUser OptionalJSON:API RelationshipThe authorized user to send link to. Authentication will use the authorized user's phone number.
Example Request:
curl -X POST 'https://api.s.unit.sh/white-label/send-link'
-H 'Content-Type: application/vnd.api+json'
-H 'Authorization: Bearer ${TOKEN}'
--data-raw '{
"data": {
"type": "sendLinkForCheckDepositComponent",
"attributes": {
"qrCode": true,
"idempotencyKey": "3a1a33be-4e12-4603-9ed0-820922389fb8"
},
"relationships": {
"whiteLabelTheme": {
"data": {
"type": "whiteLabelTheme",
"id": "10000"
}
},
"account": {
"data": {
"type": "account",
"id": "10030"
}
},
"authorizedUser": {
"data": {
"type": "authorizedUser",
"id": "10001"
}
}
}
}
}'

Response​

Response is a JSON:API document.

201 Created​

NameTypeDescription
datasendLinkForCheckDepositComponentThe requested resource after the operation was completed.

Attributes​

NameTypeDescription
expiration OptionalstringThe expiration date and time (ISO 8601 format). Defaults to 60 minutes from creation.
qrCode OptionalobjectContains value (base64 encoded PNG) and format keys.

Relationships​

NameTypeDescription
accountJSON:API RelationshipThe account receiving the check deposit.
whiteLabelThemeJSON:API RelationshipThe white label theme used.
Example Response:
{
"data": {
"type": "sendLinkForCheckDepositComponent",
"id": "13475",
"attributes": {
"shortLink": "https://f.unit.sh/GrTow1",
"link": "https://application-form.sh/view/ZXlKaGJHY2lPaUpTVXpJMU5pSXNJblI1...",
"expiration": "2025-12-23T13:37:33.960Z",
"qrCode": {
"value": "iVBORw0KGgoAAAANSUhEUgAAAyAAAAMgAQAAAADzCzvFAAAQFElEQVR4Xu2aQZLj...",
"format": "image/png"
}
},
"relationships": {
"account": {
"data": {
"type": "account",
"id": "10030"
}
},
"whiteLabelTheme": {
"data": {
"type": "whiteLabelTheme",
"id": "10000"
}
}
}
}
}

Upload Front-Side Image​

Uploads a check front-side image file. Currently only jpeg file type is supported.

VerbPUT
URLhttps://api.s.unit.sh/check-deposits/{checkDepositId}/front
Required Scopecheck-deposits-write
Timeout (Seconds)5
Note

Maximum image size is 1.5mb.

Headers​

IndexValue
Content-TypeAlways image/jpeg.

Response​

Response is a JSON:API document.

200 OK​

NameTypeDescription
dataCheckDepositThe updated CheckDeposit resource.
curl --request PUT 'https://api.s.unit.sh/check-deposits/46/front' \
--header 'Content-Type: image/jpeg' \
--data-binary 'front.jpg'

Upload Back-Side Image​

Uploads a check back-side image file. Currently only jpeg file type is supported.

VerbPUT
URLhttps://api.s.unit.sh/check-deposits/{checkDepositId}/back
Required Scopecheck-deposits-write
Timeout (Seconds)5
Note

Maximum image size is 1.5mb.

Headers​

IndexValue
Content-TypeAlways image/jpeg.

Response​

Response is a JSON:API document.

200 OK​

NameTypeDescription
dataCheckDepositThe updated CheckDeposit resource.
curl --request PUT 'https://api.s.unit.sh/check-deposits/46/back' \
--header 'Content-Type: image/jpeg' \
--data-binary 'back.jpg'

Get front image by Id​

Get a check deposit front image by check deposit id.

VerbGET
URLhttps://api.s.unit.sh/check-deposits/{id}/front
Required Scopecheck-deposits
Timeout (Seconds)5

Query Parameters​

NameTypeDefaultDescription

Response​

Response is a IMAGE:JPEG file.

200 OK / 302 Found​

Client should support following redirects

curl -X GET 'https://api.s.unit.sh/check-deposits/100/front' \
-H "Authorization: Bearer ${TOKEN}"

Get back image by Id​

Get a check deposit back image by check deposit id.

VerbGET
URLhttps://api.s.unit.sh/check-deposits/{id}/back
Required Scopecheck-deposits
Timeout (Seconds)5

Query Parameters​

NameTypeDefaultDescription

Response​

Response is a IMAGE:JPEG file.

200 OK / 302 Found​

Client should support following redirects

curl -X GET 'https://api.s.unit.sh/check-deposits/100/back' \
-H "Authorization: Bearer ${TOKEN}"

Clear Check Deposit​

Clears a check deposit while in Clearing status. Overrides the original clearing period, making funds available immediately. Requires the Dynamic Clearing Period feature to be enabled.

VerbPOST
URLhttps://api.s.unit.sh/check-deposits/{id}/clear
Required Scopecheck-deposits-write
Timeout (Seconds)5

Response​

Response is a JSON:API document.

200 OK​

NameTypeDescription
dataCheckDepositThe cleared check deposit.
curl -X POST 'https://api.s.unit.sh/check-deposits/61212/clear'
-H 'Content-Type: application/vnd.api+json'
-H 'Authorization: Bearer ${TOKEN}'

Confirm details​

Confirms a check deposit details when it's in AwaitingCustomerConfirmation status

VerbPOST
URLhttps://api.s.unit.sh/check-deposits/{id}/confirm
Required Scopecheck-deposits
Timeout (Seconds)5

Response​

Response is a JSON:API document.

200 OK​
curl -X POST 'https://api.s.unit.sh/check-deposits/100/confirm'
-H 'Content-Type: application/vnd.api+json'
-H 'Authorization: Bearer ${TOKEN}'