Receiptcamera.fi API documentation

Resources

Accounts

Resource Description
GET /api/accounts Get accounts list
POST /api/accounts Create account

Attachments

Resource Description
PUT /api/attachments/:id Rotate image
POST /api/attachments Upload new image
DELETE /api/attachments/:id Delete image

Authentication

Resource Description
POST /api/auth/token Authenticate user

Bill lines

Resource Description
POST /api/bills/:bill_id/lines Add new bill line
PUT /api/bills/:bill_id/lines/:id Edit existing bill line
DELETE /api/bills/:bill_id/lines/:id Delete existing bill line

Bills

Resource Description
GET /api/bills Show list of credit card bills
GET /api/bills/:id Show individual credit card bills
POST /apibills/:id Update credit card bill
DELETE /api/bills Delete credit card bills
POST /api/bills/import Import credit card bills

Companies

Resource Description
GET /api/api/company Get information about current user's company

Cost centers

Resource Description
GET /api/cost_centers Get cost centers list
POST /api/cost_centers Create cost center
PUT /api/cost_centers/:id Update cost center

Home

Resource Description
GET /api/home Get the grouped transactions and other data

Transactions

Resource Description
GET /api/transactions Get the list of receipts
POST /api/transactions Create receipt
PUT /api/transactions/:id/approve Approve Receipt
POST /api/transactions/:id/disapprove Disapprove receipt

Users

Resource Description
GET /api/users Get users list
POST /api/users Add new user
PUT /api/users/:id Edit existing user
PUT /api/users/:id/change_company/:company_id Change user's current company id