Skip to main content

Resources

Book Payment

BookPayment is a JSON:API resource, top-level fields:

NameTypeDescription
idstringIdentifier of the book payment resource.
typestringType of the payment resource. The value is always bookPayment.
attributesJSON ObjectJSON object representing the payment resource.
relationshipsJSON:API RelationshipsDescribes relationships between the Book payment and the originating deposit account and customer.

Attributes

NameTypeDescription
createdAtRFC3339 Date stringThe date the resource was created.
statusstringEither Sent or Rejected (see Error Codes for details).
reason OptionalstringOptional. More information about the status.
directionstringThe direction in which the funds flow (always Credit for book payments).
descriptionstringPayment description (maximum of 80 characters), this will show up on statement of the counterparty.
transactionSummaryOverridestringIf this field is populated, its contents will be returned as the bookTransaction's summary field (maximum of 100 characters).
amountstringThe amount (cents) of the payment.
tagsobjectSee Tags.

Relationships

NameTypeDescription
accountJSON:API RelationshipThe Deposit Account creating the payment.
customerOptional, JSON:API RelationshipThe Customer the deposit account belongs to. This relationship is only available if the account belongs to a single customer, business or individual.
customersOptional, Array of JSON:API RelationshipThe list of Customers the deposit account belongs to. This relationship is only available if the account belongs to multiple individual customers.
counterpartyAccountJSON:API RelationshipThe Counterparty account the payment to be made to.
counterpartyCustomerJSON:API RelationshipThe Customer the counterparty account belongs to. The customer is either a business or an individual, might be empty if there is more than one associated customer.
transactionJSON:API RelationshipThe Book Transaction generated by this payment.
recurringPaymentOptional, JSON:API RelationshipThe recurring payment belonging to this payment.
Example BookPayment resource:
{
"data": {
"type": "bookPayment",
"id": "1232",
"attributes": {
"createdAt": "2021-02-21T13:03:19.025Z",
"amount": 1500,
"direction": "Credit",
"description": "Funding",
"status": "Sent"
},
"relationships": {
"account": {
"data": {
"type": "account",
"id": "555"
}
},
"customer": {
"data": {
"type": "customer",
"id": "10000"
}
},
"counterpartyAccount": {
"data": {
"type": "account",
"id": "99821"
}
},
"counterpartyCustomer": {
"data": {
"type": "customer",
"id": "10000"
}
},
"transaction": {
"data": {
"type": "transaction",
"id": "1413"
}
}
}
}
}

Book Transaction

BookTransaction is a JSON:API resource, top-level fields:

NameTypeDescription
idstringIdentifier of the transaction resource.
typestringType of the transaction resource. The value is always bookTransaction.
attributesJSON ObjectJSON object representing the transaction data.
relationshipsJSON:API RelationshipsDescribes relationships between the transaction resource and other resources (account and customer).

Attributes

NameTypeDescription
createdAtRFC3339 Date stringThe date the transaction was created. Common to all transaction types.
directionstringThe direction in which the funds flow. Common to all transaction types.
amountintegerThe amount (cents) of the transaction. Common to all transaction types.
balanceintegerThe account balance (cents) after the transaction. Common to all transaction types.
summarystringSummary of the transaction. Common to all transaction types.
counterpartyCounterpartyThe party on the other end of the transaction.
tagsobjectSee Tags. Inherited from the payment tags (see Tag Inheritance).

Relationships

NameTypeDescription
accountJSON:API RelationshipThe Deposit Account of the customer.
customerOptional, JSON:API RelationshipThe Customer the deposit account belongs to. This relationship is only available if the account belongs to a single customer, business or individual.
customersOptional, Array of JSON:API RelationshipThe list of Customers the deposit account belongs to. This relationship is only available if the account belongs to multiple individual customers.
counterpartyAccountJSON:API RelationshipThe account of the counterparty.
counterpartyCustomerJSON:API RelationshipThe counterparty customer.
paymentOptional, JSON:API RelationshipThe payment belonging to this transaction.
recurringPaymentOptional, JSON:API RelationshipThe recurring payment belonging to this transaction.
Example BookTransaction resource:
{
"type": "bookTransaction",
"id": "9547",
"attributes": {
"createdAt": "2020-07-05T15:49:36.864Z",
"direction": "Credit",
"amount": 1000,
"balance": 12000,
"summary": "Counterparty: Jane Smith | Description: Gift",
"counterparty": {
"name": "Jane Smith",
"routingNumber": "812345678",
"accountNumber": "10039",
"accountType": "Checking"
}
},
"relationships": {
"account": {
"data": {
"type": "depositAccount",
"id": "10035"
}
},
"customer": {
"data": {
"type": "customer",
"id": "5"
}
},
"counterpartyAccount": {
"data": {
"type": "account",
"id": "10036"
}
},
"counterpartyCustomer": {
"data": {
"type": "customer",
"id": "7"
}
},
"payment": {
"data": {
"type": "payment",
"id": "10000"
}
}
}
}