Create Ledger Account
POST {{baseUrl}}/accounting/ledger-accounts?raw=false
Create Ledger Account
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
raw | boolean | Include raw response. Mostly used for debugging purposes |
Request Body
{"display_id"=>"1-654321", "nominal_code"=>"{{$timestamp}}", "code"=>"453", "classification"=>"asset", "type"=>"current_asset", "sub_type"=>"CHECKING_ACCOUNT", "name"=>"Asset-{{$timestamp}}", "fully_qualified_name"=>"Asset.Bank.Checking_Account", "description"=>"Main checking account", "opening_balance"=>0, "current_balance"=>20000, "tax_rate"=>{"id"=>"{{primaryTaxRateId}}"}, "level"=>1, "active"=>true, "status"=>"active", "header"=>true, "bank_account"=>{"bank_name"=>"Monzo", "account_number"=>"123465", "account_name"=>"SPACEX LLC", "account_type"=>"credit_card", "iban"=>"CH2989144532982975332", "bic"=>"AUDSCHGGXXX", "routing_number"=>"012345678", "bsb_number"=>"062-001", "branch_identifier"=>"001", "bank_code"=>"BNH", "currency"=>"USD"}, "parent_account"=>{"id"=>"{{primaryLedgerAccountId}}"}, "sub_account"=>false, "last_reconciliation_date"=>"2020-09-30", "subsidiaries"=>[{"id"=>"culpa aliqua quis"}, {"id"=>"consequat cupidatat"}], "custom_fields"=>[{"id"=>"2389328923893298", "name"=>"employee_level", "description"=>"Employee Level", "value"=>"Uses Salesforce and Marketo"}, {"id"=>"2389328923893298", "name"=>"employee_level", "description"=>"Employee Level", "value"=>"Uses Salesforce and Marketo"}]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
x-apideck-consumer-id | string | (Required) ID of the consumer which you want to get or push data from | |
x-apideck-app-id | string | (Required) The ID of your Unify application | |
x-apideck-service-id | string | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | |
Content-Type | string | ||
Accept | string |
RESPONSES
status: Created
{"status_code":200,"status":"OK","service":"xero","resource":"ledger-accounts","operation":"add","data":{"id":"12345"}}