The Bank Clearance 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: false
Default: false
{
"id": "bank-clearance_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"account": "account_example",
"account_currency": "USD",
"from_date": "2024-01-15",
"to_date": "2024-01-15",
"bank_account": "bank_account_example",
"include_reconciled_entries": false,
"include_pos_transactions": false
} /api/accounts/bank-clearance/{id} Retrieve a bank clearance
Retrieves the details of an existing bank clearance. Supply the unique bank clearance ID that was returned from a previous request.
Path parameters
The identifier of the bank clearance to retrieve.
Returns
Returns the bank clearance object if a valid identifier was provided.
curl https://api.overplane.dev/api/accounts/bank-clearance/bank-clearance_abc123 \
-H "Authorization: Bearer sk_test_..." {
"id": "bank-clearance_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"account": "account_example",
"account_currency": "USD",
"from_date": "2024-01-15",
"to_date": "2024-01-15",
"bank_account": "bank_account_example",
"include_reconciled_entries": false,
"include_pos_transactions": false
} /api/accounts/bank-clearance List all bank clearances
Returns a list of bank clearances. 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 clearance objects.
curl https://api.overplane.dev/api/accounts/bank-clearance \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "bank-clearance_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"account": "account_example",
"account_currency": "USD",
"from_date": "2024-01-15",
"to_date": "2024-01-15",
"bank_account": "bank_account_example",
"include_reconciled_entries": false,
"include_pos_transactions": false
}
],
"has_more": false,
"total": 1
} /api/accounts/bank-clearance Create a bank clearance
Creates a new bank clearance object.
Body parameters
Default: false
Default: false
Returns
Returns the newly created bank clearance object if the call succeeded.
curl https://api.overplane.dev/api/accounts/bank-clearance \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" \
-d '{"account":"account_example","from_date":"2024-01-15","to_date":"2024-01-15"}' {
"id": "bank-clearance_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"account": "account_example",
"account_currency": "USD",
"from_date": "2024-01-15",
"to_date": "2024-01-15",
"bank_account": "bank_account_example",
"include_reconciled_entries": false,
"include_pos_transactions": false
} /api/accounts/bank-clearance/{id} Update a bank clearance
Updates the specified bank clearance by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the bank clearance to update.
Body parameters
Default: false
Default: false
Returns
Returns the updated bank clearance object.
curl https://api.overplane.dev/api/accounts/bank-clearance/bank-clearance_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"account":"account_example","account_currency":"USD"}' {
"id": "bank-clearance_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"account": "account_example",
"account_currency": "USD",
"from_date": "2024-01-15",
"to_date": "2024-01-15",
"bank_account": "bank_account_example",
"include_reconciled_entries": false,
"include_pos_transactions": false
} /api/accounts/bank-clearance/{id} Delete a bank clearance
Permanently deletes a bank clearance. This cannot be undone.
Path parameters
The identifier of the bank clearance to delete.
Returns
Returns a confirmation that the bank clearance has been deleted.
curl https://api.overplane.dev/api/accounts/bank-clearance/bank-clearance_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "bank-clearance_abc123",
"deleted": true
} Line items
Child objects that belong to this bank clearance. These are accessed via the parent's ID.
Bank Clearance Detail
Attributes
Endpoints
/api/accounts/bank-clearance-detail?parent_id={id} /api/accounts/bank-clearance-detail /api/accounts/bank-clearance-detail/{id} /api/accounts/bank-clearance-detail/{id} /api/accounts/bank-clearance-detail/reorder {
"id": "bank-clearance-detail_abc123",
"idx": 1,
"bank_clearance_id": "bank_clearance_id_example",
"payment_document": "payment_document_example",
"payment_entry": "payment_entry_example",
"against_account": "against_account_example",
"amount": "amount_example",
"posting_date": "2024-01-15",
"cheque_number": "cheque_number_example",
"cheque_date": "2024-01-15",
"clearance_date": "2024-01-15"
}