POST
Add statement lines
Organization space Accounting module For: Accountant · Permission: bank_statements.update Conditions
  • The accounting module must be active for the organization.
  • The caller must have been granted access to the book in the URL.
  • Only the organization’s own book is accepted; a company book or a client book is refused.
  • The statement must still be open; a reconciled statement is refused.
  • The lines array is required with 1 to 500 lines.
  • Every line date must fall between the statement start date and end date, inclusive; one line outside refuses the whole request.
  • Each line needs a date, a label, a direction (debit or credit) and a positive integer amount.
What else happens
  • Creates the sent lines on the statement, all unmatched. Nothing is changed on the statement itself and no journal entry is created.
Part of Reconcile bank statements.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

bankStatement
string
required

Identifier of the book segment of the URL (the organization's book); see book.

bank_statement
string
required

Identifier of the open bank statement to add lines to (27-character KSUID string).

Query Parameters

response
enum<string>
default:none

Response mode. Default none; none answers 204 No Content.

Available options:
none,
resource
fields
string

Comma-separated JSON keys of the root resource (id is always rendered). Available: id, bank_statement_id, line_date, label, reference, direction, amount, bank_match_id.

include
string

Comma-separated include paths, each optionally followed by its fields in parentheses: units(id,sku),units.uomUnit(id,name). Max depth 6, max 40 paths. Available: .

Body

application/json
lines
object[]
required

Statement lines to add. At least 1 and at most 500 are required here.

Required array length: 1 - 500 elements

Response

Resource (only with response=resource).

data
BankStatementLineResource · object[]
required

Items of this page.