purchase orders create

POST {{baseUrl}}/purchase-orders

Creates a PurchaseOrder 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"=>{"issue_date"=>"2023-10-01T00:00:00", "delivery_date"=>"2023-10-15T00:00:00", "vendor"=>"3fa85f64-5717-4562-b3fc-2c963f66afa6", "memo"=>"string", "company"=>"3fa85f64-5717-4562-b3fc-2c963f66afa6", "exchange_rate"=>"2.9", "currency"=>"USD", "tracking_categories"=>["3fa85f64-5717-4562-b3fc-2c963f66afa6"], "line_items"=>[{"description"=>"Pickleball paddles", "unit_price"=>25, "quantity"=>10, "item"=>"0958cbc6-6040-430a-848e-aafacbadf4ae", "account"=>"3fa85f64-5717-4562-b3fc-2c963f66afa6", "tracking_category"=>"f1214c24-2702-4617-b74b-3ddecfc0d384", "tracking_categories"=>["f1214c24-2702-4617-b74b-3ddecfc0d384", "9b840d2-686a-465a-8a8e-7b028498f8e4", "a47e11b6-c73b-4a0c-be31-130fc48177fa"], "total_line_amount"=>260, "currency"=>"USD", "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":"culpa veniam est"}},{"detail":"custom_fields is a required field on model.","problem_type":"MISSING_REQUIRED_FIELD","title":"Missing Required Field","source":{"pointer":"Lorem a"}}],"model":{"id":"0048ea5b-911e-4dff-9364-92070dea62ff","remote_id":"239741","remote_data":[{"path":"velit sunt consequat est","data":{"dolore_9d0":{},"eiusmod_5":{},"exf50":{}}},{"path":"proident ex in tempor","data":{"aliquad":{},"labore80":{}}}],"status":"DELETED","issue_date":"2018-03-18T17:05:55.002Z","delivery_date":"2020-04-15T00:00:00Z","delivery_address":"urn:uuid:3f9473f7-b806-39d1-fa5e-b5e08c194ff1","customer":"3e442c5d-8f51-4103-b5c9-dcee39c30a08","vendor":"2c22ce34-5c6e-4fc7-a594-7f26bb4cf78b","memo":"private note","total_amount":260,"currency":"SLL","exchange_rate":"2.9","line_items":[{"description":"Pickleball paddles","unit_price":25,"quantity":10,"item":"0958cbc6-6040-430a-848e-aafacbadf4ae","account":"005468dc-abea-20aa-4861-b7fe2da754e9","tracking_category":"f1214c24-2702-4617-b74b-3ddecfc0d384","tax_amount":"71499642367539.97442849","total_line_amount":"96530181896231525","currency":"ESB","exchange_rate":"2.9","company":"595c8f97-2ac4-45b7-b000-41bdf43240b5"},{"description":"Pickleball paddles","unit_price":25,"quantity":10,"item":"0958cbc6-6040-430a-848e-aafacbadf4ae","account":"urn:uuid:509a8e13-23a4-e133-f892-a0743f3e7f5f","tracking_category":"f1214c24-2702-4617-b74b-3ddecfc0d384","tax_amount":"0217364617709863.679891685982","total_line_amount":"02637165660544170230043.03085263917509","currency":"HRK","exchange_rate":"2.9","company":"595c8f97-2ac4-45b7-b000-41bdf43240b5"}],"remote_created_at":"2020-03-31T00:00:00Z","remote_updated_at":"2020-03-31T00:00:00Z","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":"irure cupidatat esse non"}},{"detail":"An unrecognized field, age, was passed in with request data.","problem_type":"UNRECOGNIZED_FIELD","title":"Unrecognized Field","source":{"pointer":"anim occaecat"}}],"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/"}}]}