curl --request DELETE \
--url https://connect.withvayu.com/contracts/{contractId} \
--header 'Authorization: Bearer <token>'{
"contract": {
"startDate": "2023-11-07T05:31:56Z",
"customerId": "<string>",
"name": "<string>",
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"deletedAt": "<string>",
"salesForceOpportunityId": "<string>",
"endDate": "2023-11-07T05:31:56Z",
"products": [
{
"displayName": "<string>",
"scheduling": {
"duration": {
"unit": "MONTH",
"value": 500
},
"billingDay": 1
},
"pricing": {
"type": "ONE_TIME",
"price": 1
},
"description": "<string>",
"catalogProductId": "<string>",
"productErpId": "<string>",
"nsClass": "<string>",
"nsClassId": "<string>"
}
],
"accountManager": "<string>"
}
}Delete a Contract by id.
curl --request DELETE \
--url https://connect.withvayu.com/contracts/{contractId} \
--header 'Authorization: Bearer <token>'{
"contract": {
"startDate": "2023-11-07T05:31:56Z",
"customerId": "<string>",
"name": "<string>",
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"deletedAt": "<string>",
"salesForceOpportunityId": "<string>",
"endDate": "2023-11-07T05:31:56Z",
"products": [
{
"displayName": "<string>",
"scheduling": {
"duration": {
"unit": "MONTH",
"value": 500
},
"billingDay": 1
},
"pricing": {
"type": "ONE_TIME",
"price": 1
},
"description": "<string>",
"catalogProductId": "<string>",
"productErpId": "<string>",
"nsClass": "<string>",
"nsClassId": "<string>"
}
],
"accountManager": "<string>"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
RequestSuccess
Show child attributes
The start date of the contract
The id of the customer that the contract is associated with
The name of the contract
The id of the sales force opportunity that the contract is associated with
The end date of the contract
The products that the contract is associated with
Show child attributes
The display name of the product
The scheduling of the product
Show child attributes
The day of the month that the product is billed
1 <= x <= 31The description of the product
The id of the a product from the catalog to connect the contract product to
The id of the product in NetSuite ERP
The class of the product in NetSuite ERP
The id of the class of the product in NetSuite ERP
The name of the account manager of the contract