Browse Documentation
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/
                                        



  1. 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"
}