Represents payments and their corresponding attempts for completion initiated by Check on behalf of a company
See the Payments guide for more information
{
"id": "pyt_uzasLBvddSm6aJkHGwQw",
"status": "paid",
"amount": "4522.0400",
"type": "company_cash_requirement",
"parent_type": "payroll",
"parent_id": "pay_aPKCtxqbi1jDNEWRrz9w",
"payment_attempts": [
{
"id": "pya_LUHvXtQBhkNM22xIk8K1",
"created_at": "2022-02-18T20:17:13.033205Z",
"expected_completion_date": "2022-02-23",
"status": "paid",
"failure_code": null,
"payment_method": "ach",
"payment_instrument": "bnk_W7hjDGn6sU1d3U8dr9bq",
"wire_details": null,
"ach_details": {
"ach_trace_id": "ABC12300080",
"description": "PAYMENT",
"transaction_type_code": "PCR"
},
"retry": null,
}
],
"can_retry": false,
"can_refund": false,
"can_cancel": false,
"cancel_deadline": "2022-02-19T17:00:00.000Z",
"direction": "debit",
"company": "com_ENA4k8LMHbgpV07GLGSv"
}Attribute | Description |
|---|---|
id string | Unique identifier for the payment. |
status | Status of the payment in its lifecycle. One of |
amount | The amount of the payment, expressed as a decimal. |
type | The type of payment. One of |
parent_type | The parent type of the payment One of |
parent_id | The id of the parent of the payment (refer to the An id can be one of |
payment_attempts | A list of associated attempts to fulfill the payment. Described in detail below. |
can_retry | Boolean representing whether a particular payment can be retried. A payment must be in a failed state to be eligible for retry. |
can_refund | Boolean representing whether a particular payment can be refunded. Only credit payments in a failed state are eligible for refunds. |
can_cancel | Boolean representing whether a particular payment can be canceled. Only credit payments in a pending state are eligible for cancel. |
cancel_deadline | Datetime by which the payment can be canceled by. |
direction | String describing the direction of the payment from the caller's perspective. Direction can be either |
company | Unique identifier for the company associated with this payment |
Objects in the payment_attempts array
Attribute | Description |
|---|---|
id string | Id of the payment attempt |
created_at | Datetime at which the payment attempt was created |
expected_completion_date | The date on which the payment is expected to settle. |
status | Status of the payment attempt in its lifecycle. One of |
failure_code | A code describing the reason for a payment attempt failure. One of |
payment_method | A field describing the method of which the payment attempt was executed. One of |
payment_instrument | If relevant, the id of the corresponding instrument used to complete a payment attempt. When payment_method is set to |
wire_details | An object describing the relevant details to wire Check for a payment. Present if |
ach_details | An object describing the relevant details regarding an ACH payment. Present if |
retry | Field indicating whether the PaymentAttempt is a retry. Can be one of
|
The wire_details object
Attribute | Description |
|---|---|
account_number string | Account number for a Check-controlled bank account for wiring purposes |
routing_number | Routing number used for wiring purposes. |
bank_name | Name of the bank used for wiring purposes. |
account_name | Name of the bank account used for wiring purposes. |
account_address | Address of the bank account used for wiring purposes. |
amount | Decimal-quoted amount of money to wire Check. |
The ach_details object
Attribute | Description |
|---|---|
ach_trace_id string | Trace ID associated with Payment Attempt. Present after attempt is processed if |
description | Human-friendly description of Payment |
transaction_type_code | Arbitrary descriptive codes that will show up alongside the transaction in the |
