Browse Documentation
- Report
- Overview
- Organizations
- GET Get Organisation
- POST Update Organisation
- Invoices
- POST Create Invoice
- GET Get Invoice
- PUT Update Invoice
- DELETE Delete Invoice
- POST Approve Invoice
- POST Add Attachment
- DELETE Delete Attachment from Invoice
- POST Send Invoice
- POST Pay Invoice
- Purchases
- POST Create Purchase
- GET Get Purchase
- PUT Update Purchase
- DELETE Delete Purchase
- POST Approve Purchase
- POST Add Attachment to Purchase
- DELETE Delete Attachment from Purchase
- POST Pay Purchase
- Pos sales
- GET Get POS Sales
- POST Create POS Sale
- PUT Update POS Sale
- DELETE Delete POS Sale
- POST Add POSSales Payment
- Offers
- POST Create Offer
- GET Get Offer
- PUT Update Offer
- DELETE Delete Offer
- POST Add Attachment to Offer
- DELETE Delete Attachment from Offer
- POST Send Offer
- POST Convert to Invoice
- Items
- POST Create Item
- GET Get Item
- POST Update Item
- POST Add Item Picture
- DELETE Delete Item Picture
- Item categories
- Contacts
- POST Create Contact
- GET Get Contact
- PUT Update Contact
- Account types
- GET Account Types
- Accounts
- POST Create Account
- GET Get Account
- Financial accounts
- Taxes
- POST Create Tax
- GET Get Tax
- Invoice template
- GET Get Template
- POST Update Invoice Template
- POST Upload Template Logo
- POST Create New Invoice Template
- DELETE Delete Invoice Temaplate
- Inbox
- POST Upload Attachment
- GET Get Attachments
- DELETE Delete Attachment
- Payments
- DELETE Delete Payment
- Journals
- GET Get journals
- Banks
- GET List banks
- Team
- POST Create Team Member
- GET List Team Members
- DELETE Remove Team Members
POST Create account
Create a new Account
NOTE: You cannot create account with account type of "BANK" with this endpoint.Use the financial account endpoint to create account of BANK type.
POST /accounts
To create accounts you will need an access token, for questions regarding how to obtain an access token click on this link.
Parameters
Parameter | Type | Description |
account_name | required | String | The name of the account |
account_number | required | Float|Int | Account number attached |
account_type | required | String | Account Types [ account_type cannot be "BANK"] |
allow_payment | required | Int | Assing 1 if you want to allow payment to this account otherwise 0 |
show_invoices | required | Int | Assing 1 if you want to allow account on sales invoice otherwise 0 |
show_purchases | required | Int | Assing 1 if you want to allow account to show on purchases otherwise 0 |
A POST request is expected to be sent to the above endpoint where the content body must be JSON string containing all parameters that are needed to create a new account. The below example demonstrates how to create a new Account.
curl - s - H "Content-Type: application/json" - H "Authorization: Bearer token"\ - XPOST\ - d '{ "account":{ "account_name":"Test Account", "account_number":"123458", "account_type":"INVENTORY", "show_invoices":"true", "show_purchases": "true", "allow_payment":"true", "description":"Account Description" } }' https://app.accounteer.com/api/v0.1/accounts/
- Response
{ "id":"c55815ac442431fef190fe1bd25385b9520e39c3", "organization_id":"73931691552e7f5290c37994ee4190eda2d86509", "account_number":"1289", "account_name":"Test Account", "description":"Account Description", "show_invoices":"true", "show_purchases":"true", "allow_payment":"true", "account_type":"INVENTORY" }