Browse Documentation
POST Update organisation

Update Organisation

POST /organisations/:id

Update an existing organisations

Parameters

  Parameter
  Type
 Description
 name   String
 Business Name
 invoice_prefix
  String
 Invoice Prefix
 offer_prefix
  String
 Offer Prefix
 credit_note_in_prefix
  String
 Credit Note-In Prefix
 credit_note_out_prefix
  String
 Credit Note-Out Prefix
 purchase_order_prefix
  String
 Purchase Order Prefix
 purchase_bill_prefix
  String
 Purchase Bill Prefix
 timezone
  String
 Time zone
country  String 2-letter ISO country code

Only parameters supplied will be updated. Parameters not part of the request will be left unchanged.

Request

   
curl -s -H "Content-Type: application/json"
-H "Authorization: Bearer token" \
-XPUT \
-d '{  
   "business":{  
      "name":"Business Name",
      "timezone":"Europe/Brussels"
   }
}
' \
https://dev.accounteer.com/api/v0.1/organisations/6dfa1113f3373a681d6e264d3397ddfc00efdbc6

Response

{  
   "id":"6dfa1113f3373a681d6e264d3397ddfc00efdbc6",
   "name":"Business Name",
   "timezone":"Europe/Brussels",
   "language":"nl",
   "currency":"USD",
   "address":"Koolmijnlaan 458",
   "city":"Hasselt",
   "zip_code":"3560",
   "country_code":"BE",
   "email":null,
   "fax":"03/87654321",
   "phone":"03/012345678",
   "tax_number":"BE012345678",
   "logo_url": "https://f.accounteer.com/logo.jpg",
   "gl_account_receivable":"10ff89bae1e9c4e9ebee9efa720716923525b34e",
   "gl_account_payable":"be096c3b5b07484fa796b0d8fa696ea7162b6f23",
   "invoice_prefix":"INV",
   "credit_note_out_prefix":"CN",
   "purchase_order_prefix":"PO",
   "fixed_asset_prefix":"FA",
   "default_invoice_template":"35ca55c621923f4c94d9cded8d0beab611cdea06"
}