journal entries create

POST {{baseUrl}}/journal-entries

Creates a JournalEntry 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"=>{"journal_number"=>"string", "posting_status"=>"POSTED", "transaction_date"=>"2023-10-01T00:00:00", "memo"=>"string", "exchange_rate"=>"2.9", "currency"=>"USD", "company"=>"3fa85f64-5717-4562-b3fc-2c963f66afa6", "tracking_categories"=>["3fa85f64-5717-4562-b3fc-2c963f66afa6"], "lines"=>[{"account"=>"9d892439-5fab-4dbb-8bd8-34f7f96c7912", "net_amount"=>25.54, "tracking_categories"=>["d25d609b-945f-4762-b55a-1c8fb220c43c", "9b840d2-686a-465a-8a8e-7b028498f8e4", "a47e11b6-c73b-4a0c-be31-130fc48177fa"], "contact"=>"d2d5ea3c-b032-11ec-b909-0242ac120002", "description"=>"Cash payment for lunch", "exchange_rate"=>"2.9"}]}}

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":"Lorem laboris Ut veniam ut"}},{"detail":"custom_fields is a required field on model.","problem_type":"MISSING_REQUIRED_FIELD","title":"Missing Required Field","source":{"pointer":"fugiat amet est pariatur"}}],"model":{"id":"ecbe05ac-62a3-46c5-ab31-4b478b37d1b4","remote_id":"088899","transaction_date":"2020-03-31T00:00:00Z","remote_created_at":"2020-03-31T00:00:00Z","payments":["b26fd49a-cbae-470a-a8f8-bcbc119e0390"],"lines":[{"remote_id":"121222","account":"9d892439-5fab-4dbb-8bd8-34f7f96c7912","net_amount":25.54,"description":"Cash payment for lunch"},{"remote_id":"121223","account":"f963f34d-3d2f-4f77-b557-cf36bc7e6498","net_amount":10}],"memo":"Weekly Payment"},"warnings":[{"detail":"An unrecognized field, age, was passed in with request data.","problem_type":"UNRECOGNIZED_FIELD","title":"Unrecognized Field","source":{"pointer":"labore"}},{"detail":"An unrecognized field, age, was passed in with request data.","problem_type":"UNRECOGNIZED_FIELD","title":"Unrecognized Field","source":{"pointer":"est consectetur mollit ipsum"}}],"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/"}}]}