Create
POST {{baseUrl}}/crm/v3/objects/orders
Create a order with the given properties and return a copy of the object, including the ID. Documentation and examples for creating standard orders is provided.
Request Body
{"associations"=>[{"to"=>{"id"=>"<string>"}, "types"=>[{"associationCategory"=>"HUBSPOT_DEFINED", "associationTypeId"=>"<integer>"}, {"associationCategory"=>"HUBSPOT_DEFINED", "associationTypeId"=>"<integer>"}]}, {"to"=>{"id"=>"<string>"}, "types"=>[{"associationCategory"=>"HUBSPOT_DEFINED", "associationTypeId"=>"<integer>"}, {"associationCategory"=>"USER_DEFINED", "associationTypeId"=>"<integer>"}]}], "properties"=>{"quis4"=>"<string>", "sunt__91"=>"<string>"}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: Created
{"createdAt":"\u003cdateTime\u003e","id":"\u003cstring\u003e","properties":{"utf_e":"\u003cstring\u003e"},"updatedAt":"\u003cdateTime\u003e","archived":"\u003cboolean\u003e","archivedAt":"\u003cdateTime\u003e","propertiesWithHistory":{"commodo2c":[{"sourceType":"\u003cstring\u003e","timestamp":"\u003cdateTime\u003e","value":"\u003cstring\u003e","sourceId":"\u003cstring\u003e","sourceLabel":"\u003cstring\u003e","updatedByUserId":"\u003cinteger\u003e"},{"sourceType":"\u003cstring\u003e","timestamp":"\u003cdateTime\u003e","value":"\u003cstring\u003e","sourceId":"\u003cstring\u003e","sourceLabel":"\u003cstring\u003e","updatedByUserId":"\u003cinteger\u003e"}]}}