accounts create

POST {{baseUrl}}/accounts

Creates an Account object with the given values.

Request Params

KeyDatatypeRequiredDescription
is_debug_modebooleanWhether to include debug fields (such as log file links) in the response.
run_asyncbooleanWhether or not third-party updates should be run asynchronously.

Request Body

{"model"=>{"name"=>"Cash", "description"=>"Cash", "classification"=>"ASSET", "type"=>"Asset", "status"=>"ACTIVE", "current_balance"=>0, "currency"=>"USD", "account_number"=>"X12Y9AB", "parent_account"=>"22d92d6c-22f9-11ed-861d-0242ac120002", "company"=>"595c8f97-2ac4-45b7-b000-41bdf43240b5"}}

HEADERS

KeyDatatypeRequiredDescription
X-Account-Tokenstring(Required) Token identifying the end user.
Content-Typestring
Acceptstring

RESPONSES

status: Created

{"errors":[{"detail":"custom_fields is a required field on model.","problem_type":"MISSING_REQUIRED_FIELD","title":"Missing Required Field","source":{"pointer":"sint mollit aliqua non"}},{"detail":"custom_fields is a required field on model.","problem_type":"MISSING_REQUIRED_FIELD","title":"Missing Required Field","source":{"pointer":"qui proident Lorem exercitation veniam"}}],"model":{"id":"ecbe05ac-62a3-46c5-ab31-4b478b37d1b4","remote_id":"21","remote_data":[{"path":"nulla eu commodo","data":{"elit_270":{}}},{"path":"pariatur eu nulla labore officia","data":{"dolore_5e":{}}}],"name":"Cash","description":"Cash","classification":"ASSET","type":"Asset","status":"PENDING","current_balance":94127324.72897223,"currency":"PEN","account_number":"X12Y9AB","parent_account":"22d92d6c-22f9-11ed-861d-0242ac120002","company":"595c8f97-2ac4-45b7-b000-41bdf43240b5","remote_was_deleted":true},"warnings":[{"detail":"An unrecognized field, age, was passed in with request data.","problem_type":"UNRECOGNIZED_FIELD","title":"Unrecognized Field","source":{"pointer":"sunt"}},{"detail":"An unrecognized field, age, was passed in with request data.","problem_type":"UNRECOGNIZED_FIELD","title":"Unrecognized Field","source":{"pointer":"sed Ut irure"}}],"logs":[{"dashboard_view":"https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832","log_id":"99433219-8017-4acd-bb3c-ceb23d663832","log_summary":{"method":"POST","status_code":200,"url":"https://harvest.greenhouse.io/v1/candidates/"}},{"dashboard_view":"https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832","log_id":"99433219-8017-4acd-bb3c-ceb23d663832","log_summary":{"method":"POST","status_code":200,"url":"https://harvest.greenhouse.io/v1/candidates/"}}]}