Create
POST {{baseUrl}}/crm/v3/objects/discounts
Create a discount with the given properties and return a copy of the object, including the ID. Documentation and examples for creating standard discounts is provided.
Request Body
{"associations"=>[{"to"=>{"id"=>"<string>"}, "types"=>[{"associationCategory"=>"HUBSPOT_DEFINED", "associationTypeId"=>"<integer>"}, {"associationCategory"=>"INTEGRATOR_DEFINED", "associationTypeId"=>"<integer>"}]}, {"to"=>{"id"=>"<string>"}, "types"=>[{"associationCategory"=>"INTEGRATOR_DEFINED", "associationTypeId"=>"<integer>"}, {"associationCategory"=>"INTEGRATOR_DEFINED", "associationTypeId"=>"<integer>"}]}], "properties"=>{"nostrudcf"=>"<string>"}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: Created
{"createdAt":"\u003cdateTime\u003e","id":"\u003cstring\u003e","properties":{"in_5f8":"\u003cstring\u003e"},"updatedAt":"\u003cdateTime\u003e","propertiesWithHistory":{"labore26":[{"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"}]},"archived":"\u003cboolean\u003e","archivedAt":"\u003cdateTime\u003e"}