payments create
POST {{baseUrl}}/payments
Creates a Payment
object with the given values.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
is_debug_mode | boolean | Whether to include debug fields (such as log file links) in the response. | |
run_async | boolean | Whether or not third-party updates should be run asynchronously. |
Request Body
{"model"=>{"transaction_date"=>"2020-03-31T00:00:00", "contact"=>"5b3c1341-a20f-4e51-b72c-f3830a16c97b", "account"=>"d6e687d6-0c36-48a1-8114-35324b5cb38f", "currency"=>"FKP", "exchange_rate"=>"2.9", "company"=>"595c8f97-2ac4-45b7-b000-41bdf43240b5", "total_amount"=>50, "tracking_categories"=>["b38c59b0-a9d7-4740-b1ee-5436c6751e3d", "9b840d2-686a-465a-8a8e-7b028498f8e4", "a47e11b6-c73b-4a0c-be31-130fc48177fa"], "applied_to_lines"=>[{"remote_id"=>"234", "applied_amount"=>25, "related_object_id"=>"a47e11b6-c73b-4a0c-be31-130fc48177fa", "related_object_type"=>"INVOICE", "applied_date"=>"2020-03-31T00:00:00"}, {"remote_id"=>"235", "applied_amount"=>25, "related_object_id"=>"9b96a886-29a5-452b-8733-2a1e03497cf4", "related_object_type"=>"INVOICE", "applied_date"=>"2020-03-31T00:00:00"}]}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
X-Account-Token | string | (Required) Token identifying the end user. | |
Content-Type | string | ||
Accept | string |
RESPONSES
status: Created
{"errors":[{"detail":"custom_fields is a required field on model.","problem_type":"MISSING_REQUIRED_FIELD","title":"Missing Required Field","source":{"pointer":"nisi te"}},{"detail":"custom_fields is a required field on model.","problem_type":"MISSING_REQUIRED_FIELD","title":"Missing Required Field","source":{"pointer":"eiusmod Lorem elit voluptate"}}],"model":{"id":"b26fd49a-cbae-470a-a8f8-bcbc119e0390","remote_id":"987300","remote_data":[{"path":"","data":{"ut_1":{},"dolore_0":{},"ut_52":{},"irure_7_e":{}}},{"path":"laboris","data":{"non_29f":{}}}],"transaction_date":"2020-03-31T00:00:00Z","contact":"5b3c1341-a20f-4e51-b72c-f3830a16c97b","account":"d6e687d6-0c36-48a1-8114-35324b5cb38f","currency":"UAK","exchange_rate":"2.9","company":"595c8f97-2ac4-45b7-b000-41bdf43240b5","total_amount":50,"remote_updated_at":"2020-03-31T00:00:00Z","remote_was_deleted":false},"warnings":[{"detail":"An unrecognized field, age, was passed in with request data.","problem_type":"UNRECOGNIZED_FIELD","title":"Unrecognized Field","source":{"pointer":"anim laboris ipsum sint"}},{"detail":"An unrecognized field, age, was passed in with request data.","problem_type":"UNRECOGNIZED_FIELD","title":"Unrecognized Field","source":{"pointer":"irure velit commodo Duis"}}],"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/"}}]}