Create and manage ecommerce cart data.
crm.objects.contracts.read
crm.schemas.contracts.read
crm.objects.contracts.write
crm.schemas.contracts.read
/0-721
in the path corresponds to the objectTypeId
for the contracts object. Learn more in the Understand the CRM APIs guide.
POST
request to /crm/v4/objects/0-721/
and provide any properties
as a field in the request body.
For example, to create a contract with the following properties:
POST
request to https://api.hubapi.com/crm/v4/objects/0-721/
with the request body below:
GET
request to /crm/v4/objects/0-721
, or to retrieve a specific contract by its ID, make a GET
request to /crm/v4/objects/0-721/{contractId}
. If you want to filter which properties are included for each contract, provide them using the ?properties=
query parameter.
For example, to fetch contracts and their corresponding ID, name, and effective start date, you’d make a GET
request to https://api.hubapi.com/crm/v4/objects/0-721?properties=hs_name,hs_contract_effective_date
PATCH
request to /crm/v4/objects/0-721
and providing the properties
you want to change in the request body.
For example, to change some of the address fields on a contract with an ID of 123
, you’d make a PATCH
request to https://api.hubapiqa.com/crm/v3/objects/0-721/123` with the request body below:
PUT
request to /crm/v4/objects/0-721/{contractId}/associations/line_item/{lineItemId}
using the IDs of the contract and the line item in the URL path.
Learn more about using the associations API.
DELETE
request to /crm/v4/objects/0-721/{contractId}
with the ID of the contract.
If the request is successful, the endpoint returns a 204 No Content
response.