GET /api/bills
Show list of credit card bills

Returns list of credit card bills accessible by the user

Params

Param name Description
page
optional

Page number

Validations:

  • Must be Integer

per_page
optional

Number of records per page. Default: 50

Validations:

  • Must be Integer


GET /api/bills/:id
Show individual credit card bills

Shows individual credit card bill by its id. Bill lines are embedded into bill's JSON


POST /apibills/:id
Update credit card bill

Update credit card bill

Params

Param name Description
bill
required

Bill hashtable

Validations:

  • Must be a Hash

bill[asset_account_id]
optional

Asset account (credit account, payment method) id

Validations:

  • Must be Integer


DELETE /api/bills
Delete credit card bills

Deletes credit card bills by provided IDs and all of their bill lines. Returns the number of deleted bills.

Params

Param name Description
ids
optional

IDs of bills to delete

Validations:

  • Must be an array of Integer


POST /api/bills/import
Import credit card bills

Import credit card bills from XML file in a specific format.

Params

Param name Description
files
optional

Array consisting of one FILE object

Validations:

  • Must be an array of File

file
optional

Either a FILE object or base64-encoded string

Validations:

  • Must be one of: File, String.