Request Check Deposit
POST /pieces/{piece_id}/check-deposit-requests
Requests a deposit of the checks in a piece to one of the inbox’s bank accounts. A deposit needs human action, so the response describes the new request, not a completed deposit: the mailroom extracts the checks and ships them to the bank, and the request’s status follows those steps.
Get the bank account ID from Get Check Deposit Bank Accounts. Use post_operation_action to shred the rest of the piece once the checks are out. Without it, the piece is kept.
Returns 409 if another operation is in progress for the piece or its checks have already been requested for deposit, and 400 if the account is not active.
Authorizations
Section titled “Authorizations”Send your API key in the x-api-key header.
See Authentication.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Request Body required
Section titled “Request Body required ”object
Ship the checks to the bank overnight instead of by standard mail, for a fee; see Virtual Mail detailed pricing. Overnight deposits typically reach the bank in 1 business day; allow one more for requests made after 5 PM.
Skip it when the bank account’s financial_institution.expedited is true: those banks get overnight delivery for free on every deposit. When the bank has no street address a courier can deliver to, the checks go by the fastest postal service instead.
Examples
{ "check_deposit_bank_account_id": 500}{ "check_deposit_bank_account_id": 500, "expedited": true, "post_operation_action": { "type": "shred" }}Responses
Section titled “ Responses ”Success
object
check-depositOpened while the request is in progress, then Shipped once the checks are on their way to the bank. Cancelled and Error end a request without a deposit.
ShippedWhether overnight delivery to the bank was requested. See expedited in Request Check Deposit.
object
121000248********4510Business Checkingcheckingobject
First National BankWhen true, every deposit to this bank ships overnight at no extra cost, so there’s no need to request expedited.
object
123456Molly Smith1004 S Mt Olive StPHOENIXAZArizonaUSUnited States72761[ "domestic"]object
150000008451object
1_1_2_0_0image/jpg[ "color", "large", "enclosure", "front"]object
1_1_2_0_0image/jpg[ "color", "large", "enclosure", "front"]object
14460059975990000000101 0016615290433808312186object
122028Bruce Wayne97599[ "unscanned", "read", "inbox", "stored"][ "unscanned", "read", "inbox", "stored"]0.1623.90.18.88object
UnknownUnknownobject
1_1_2_0_0image/jpg[ "color", "large", "enclosure", "front"]144600591mailletterobject
object
3001Urgent12Example
{ "id": 100001, "created_at": "2020-05-10T09:41:00Z", "updated_at": "2020-05-10T09:41:00Z", "operation_action": "check-deposit", "operation_status": "pending", "status": "Opened", "check_deposit_bank_account_id": 500, "piece_id": 100002, "inbox_id": 100003, "expedited": true, "post_operation_action": { "type": "shred" }, "checks": [], "piece": { "id": 100002 }}The request could not be processed, for example an international shipment without customs information.
Error envelope returned with 4xx and 5xx responses.
object
object
Usually the HTTP status code. It can differ; a request to an unknown path returns HTTP 400 with code 500.
401Human-readable description of the error.
The kind of error, for example Authorization or REST.
RESTReturned only with 422 responses. It may give more details about what failed validation, as lists of messages keyed by the name of the input.
object
The x-api-key header is missing or the key is not valid, or the caller can’t access an ID in the request. IDs that don’t exist return the same response as IDs the caller can’t access.
Error envelope returned with 4xx and 5xx responses.
object
object
Usually the HTTP status code. It can differ; a request to an unknown path returns HTTP 400 with code 500.
401Human-readable description of the error.
The kind of error, for example Authorization or REST.
RESTReturned only with 422 responses. It may give more details about what failed validation, as lists of messages keyed by the name of the input.
object
Examples
{ "error": { "code": 401, "message": "The request does not include a valid access token. Please provide a valid access token.", "type": "Authorization" }}{ "error": { "code": 401, "message": "x-api-key: x-api-key is invalid", "type": "REST" }}{ "error": { "code": 401, "message": "User does not have access to requested resource.", "type": "Authorization" }}Actions are blocked for a piece in the request. When an account’s mail actions are blocked, for example because the account wasn’t reverified or an identity document expired, pieces received after that can’t be changed. These pieces have actions-blocked-no-reverification or actions-blocked-document-expired in their attributes.
Error envelope returned with 4xx and 5xx responses.
object
object
Usually the HTTP status code. It can differ; a request to an unknown path returns HTTP 400 with code 500.
401Human-readable description of the error.
The kind of error, for example Authorization or REST.
RESTReturned only with 422 responses. It may give more details about what failed validation, as lists of messages keyed by the name of the input.
object
Examples
{ "error": { "code": 403, "message": "piece: Mail actions for piece with ID 123456 has been blocked.", "type": "REST" }}The request conflicts with the current state of the resource.
Error envelope returned with 4xx and 5xx responses.
object
object
Usually the HTTP status code. It can differ; a request to an unknown path returns HTTP 400 with code 500.
401Human-readable description of the error.
The kind of error, for example Authorization or REST.
RESTReturned only with 422 responses. It may give more details about what failed validation, as lists of messages keyed by the name of the input.
object
The request body failed validation. The message names the invalid field.
Error envelope returned with 4xx and 5xx responses.
object
object
Usually the HTTP status code. It can differ; a request to an unknown path returns HTTP 400 with code 500.
401Human-readable description of the error.
The kind of error, for example Authorization or REST.
RESTReturned only with 422 responses. It may give more details about what failed validation, as lists of messages keyed by the name of the input.
object
Example
{ "error": { "code": 422, "message": "label: must have a value", "type": "REST", "fields": {} }}