The Bank Transaction object
Attributes
Unique identifier for the object.
ISO 8601 timestamp of when the object was created.
ISO 8601 timestamp of when the object was last updated.
Default: draft
{
"id": "bank-transaction_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"date": "2024-01-15",
"bank_account": "bank_account_example",
"company": "Example Corp",
"currency": "USD",
"description": "description_example",
"reference_number": "reference_number_example",
"transaction_id": "transaction_id_example",
"allocated_amount": 0,
"unallocated_amount": 0,
"party_type": "party_type_example",
"party": "party_example",
"deposit": 0,
"withdrawal": 0,
"transaction_type": "transaction_type_example",
"bank_party_name": "bank_party_name_example",
"bank_party_iban": "bank_party_iban_example",
"bank_party_account_number": "bank_party_account_number_example",
"included_fee": 0,
"excluded_fee": 0
} /api/accounts/bank-transaction/{id} Retrieve a bank transaction
Retrieves the details of an existing bank transaction. Supply the unique bank transaction ID that was returned from a previous request.
Path parameters
The identifier of the bank transaction to retrieve.
Returns
Returns the bank transaction object if a valid identifier was provided.
curl https://api.overplane.dev/api/accounts/bank-transaction/bank-transaction_abc123 \
-H "Authorization: Bearer sk_test_..." {
"id": "bank-transaction_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"date": "2024-01-15",
"bank_account": "bank_account_example",
"company": "Example Corp",
"currency": "USD",
"description": "description_example",
"reference_number": "reference_number_example",
"transaction_id": "transaction_id_example",
"allocated_amount": 0,
"unallocated_amount": 0,
"party_type": "party_type_example",
"party": "party_example",
"deposit": 0,
"withdrawal": 0,
"transaction_type": "transaction_type_example",
"bank_party_name": "bank_party_name_example",
"bank_party_iban": "bank_party_iban_example",
"bank_party_account_number": "bank_party_account_number_example",
"included_fee": 0,
"excluded_fee": 0
} /api/accounts/bank-transaction List all bank transactions
Returns a list of bank transactions. The results are sorted by creation date, with the most recently created appearing first.
Query parameters
Maximum number of objects to return. Default: 20.
Number of objects to skip for pagination. Default: 0.
Returns
A paginated list of bank transaction objects.
curl https://api.overplane.dev/api/accounts/bank-transaction \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "bank-transaction_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"date": "2024-01-15",
"bank_account": "bank_account_example",
"company": "Example Corp",
"currency": "USD",
"description": "description_example",
"reference_number": "reference_number_example",
"transaction_id": "transaction_id_example",
"allocated_amount": 0,
"unallocated_amount": 0,
"party_type": "party_type_example",
"party": "party_example",
"deposit": 0,
"withdrawal": 0,
"transaction_type": "transaction_type_example",
"bank_party_name": "bank_party_name_example",
"bank_party_iban": "bank_party_iban_example",
"bank_party_account_number": "bank_party_account_number_example",
"included_fee": 0,
"excluded_fee": 0
}
],
"has_more": false,
"total": 1
} /api/accounts/bank-transaction Create a bank transaction
Creates a new bank transaction object.
Body parameters
Default: draft
Returns
Returns the newly created bank transaction object if the call succeeded.
curl https://api.overplane.dev/api/accounts/bank-transaction \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" {
"id": "bank-transaction_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"date": "2024-01-15",
"bank_account": "bank_account_example",
"company": "Example Corp",
"currency": "USD",
"description": "description_example",
"reference_number": "reference_number_example",
"transaction_id": "transaction_id_example",
"allocated_amount": 0,
"unallocated_amount": 0,
"party_type": "party_type_example",
"party": "party_example",
"deposit": 0,
"withdrawal": 0,
"transaction_type": "transaction_type_example",
"bank_party_name": "bank_party_name_example",
"bank_party_iban": "bank_party_iban_example",
"bank_party_account_number": "bank_party_account_number_example",
"included_fee": 0,
"excluded_fee": 0
} /api/accounts/bank-transaction/{id} Update a bank transaction
Updates the specified bank transaction by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the bank transaction to update.
Body parameters
Default: draft
Returns
Returns the updated bank transaction object.
curl https://api.overplane.dev/api/accounts/bank-transaction/bank-transaction_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"status":"draft","date":"2024-01-15"}' {
"id": "bank-transaction_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"date": "2024-01-15",
"bank_account": "bank_account_example",
"company": "Example Corp",
"currency": "USD",
"description": "description_example",
"reference_number": "reference_number_example",
"transaction_id": "transaction_id_example",
"allocated_amount": 0,
"unallocated_amount": 0,
"party_type": "party_type_example",
"party": "party_example",
"deposit": 0,
"withdrawal": 0,
"transaction_type": "transaction_type_example",
"bank_party_name": "bank_party_name_example",
"bank_party_iban": "bank_party_iban_example",
"bank_party_account_number": "bank_party_account_number_example",
"included_fee": 0,
"excluded_fee": 0
} /api/accounts/bank-transaction/{id} Delete a bank transaction
Permanently deletes a bank transaction. This cannot be undone.
Path parameters
The identifier of the bank transaction to delete.
Returns
Returns a confirmation that the bank transaction has been deleted.
curl https://api.overplane.dev/api/accounts/bank-transaction/bank-transaction_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "bank-transaction_abc123",
"deleted": true
} /api/accounts/bank-transaction/{id}/submit Submit a bank transaction
Submits a draft bank transaction, transitioning its status from draft to submitted.
Path parameters
The identifier of the bank transaction to act on.
Returns
Returns the bank transaction object with updated status.
curl https://api.overplane.dev/api/accounts/bank-transaction/bank-transaction_abc123/submit \
-H "Authorization: Bearer sk_test_..." \
-X POST {
"id": "bank-transaction_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"date": "2024-01-15",
"bank_account": "bank_account_example",
"company": "Example Corp",
"currency": "USD",
"description": "description_example",
"reference_number": "reference_number_example",
"transaction_id": "transaction_id_example",
"allocated_amount": 0,
"unallocated_amount": 0,
"party_type": "party_type_example",
"party": "party_example",
"deposit": 0,
"withdrawal": 0,
"transaction_type": "transaction_type_example",
"bank_party_name": "bank_party_name_example",
"bank_party_iban": "bank_party_iban_example",
"bank_party_account_number": "bank_party_account_number_example",
"included_fee": 0,
"excluded_fee": 0
} /api/accounts/bank-transaction/{id}/cancel Cancel a bank transaction
Cancels a submitted bank transaction, transitioning its status to cancelled.
Path parameters
The identifier of the bank transaction to act on.
Returns
Returns the bank transaction object with updated status.
curl https://api.overplane.dev/api/accounts/bank-transaction/bank-transaction_abc123/cancel \
-H "Authorization: Bearer sk_test_..." \
-X POST {
"id": "bank-transaction_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"date": "2024-01-15",
"bank_account": "bank_account_example",
"company": "Example Corp",
"currency": "USD",
"description": "description_example",
"reference_number": "reference_number_example",
"transaction_id": "transaction_id_example",
"allocated_amount": 0,
"unallocated_amount": 0,
"party_type": "party_type_example",
"party": "party_example",
"deposit": 0,
"withdrawal": 0,
"transaction_type": "transaction_type_example",
"bank_party_name": "bank_party_name_example",
"bank_party_iban": "bank_party_iban_example",
"bank_party_account_number": "bank_party_account_number_example",
"included_fee": 0,
"excluded_fee": 0
} Line items
Child objects that belong to this bank transaction. These are accessed via the parent's ID.
Bank Transaction Payments
Attributes
Endpoints
/api/accounts/bank-transaction-payments?parent_id={id} /api/accounts/bank-transaction-payments /api/accounts/bank-transaction-payments/{id} /api/accounts/bank-transaction-payments/{id} /api/accounts/bank-transaction-payments/reorder {
"id": "bank-transaction-payments_abc123",
"idx": 1,
"bank_transaction_id": "bank_transaction_id_example",
"payment_document": "payment_document_example",
"payment_entry": "payment_entry_example",
"allocated_amount": 0,
"clearance_date": "2024-01-15"
}