curl --request DELETE \
--url https://www.withvayu.org/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",
"signatureDate": "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>",
"commitment": {
"units": 1,
"price": 1,
"scheduling": {
"duration": {
"unit": "MONTH",
"value": 500
},
"billingDay": 1
},
"overageStrategy": "IGNORE"
},
"paymentTerm": "Prepayment"
}
],
"productGroups": [
{
"displayName": "<string>",
"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>",
"commitment": {
"units": 1,
"price": 1,
"scheduling": {
"duration": {
"unit": "MONTH",
"value": 500
},
"billingDay": 1
},
"overageStrategy": "IGNORE"
},
"paymentTerm": "Prepayment"
}
],
"description": "<string>",
"productErpId": "<string>",
"nsClass": "<string>",
"nsClassId": "<string>",
"baseAmount": 123,
"commitment": {
"units": 1,
"price": 1,
"scheduling": {
"duration": {
"unit": "MONTH",
"value": 500
},
"billingDay": 1
},
"overageStrategy": "IGNORE"
}
}
],
"accountManager": "<string>",
"shouldProRateInvoices": true,
"autoRenewContract": true,
"customFields": [
{
"vayuCustomFieldName": "<string>",
"valueType": "String",
"integrationSource": "NetSuite",
"integrationEntityType": "<string>",
"fieldPath": "<string>",
"value": "<unknown>"
}
],
"customFieldValues": [
{
"customFieldDefinitionId": "<string>",
"value": "<string>",
"fieldName": "<string>"
}
],
"status": "InReview"
}
}Delete a Contract by id.
curl --request DELETE \
--url https://www.withvayu.org/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",
"signatureDate": "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>",
"commitment": {
"units": 1,
"price": 1,
"scheduling": {
"duration": {
"unit": "MONTH",
"value": 500
},
"billingDay": 1
},
"overageStrategy": "IGNORE"
},
"paymentTerm": "Prepayment"
}
],
"productGroups": [
{
"displayName": "<string>",
"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>",
"commitment": {
"units": 1,
"price": 1,
"scheduling": {
"duration": {
"unit": "MONTH",
"value": 500
},
"billingDay": 1
},
"overageStrategy": "IGNORE"
},
"paymentTerm": "Prepayment"
}
],
"description": "<string>",
"productErpId": "<string>",
"nsClass": "<string>",
"nsClassId": "<string>",
"baseAmount": 123,
"commitment": {
"units": 1,
"price": 1,
"scheduling": {
"duration": {
"unit": "MONTH",
"value": 500
},
"billingDay": 1
},
"overageStrategy": "IGNORE"
}
}
],
"accountManager": "<string>",
"shouldProRateInvoices": true,
"autoRenewContract": true,
"customFields": [
{
"vayuCustomFieldName": "<string>",
"valueType": "String",
"integrationSource": "NetSuite",
"integrationEntityType": "<string>",
"fieldPath": "<string>",
"value": "<unknown>"
}
],
"customFieldValues": [
{
"customFieldDefinitionId": "<string>",
"value": "<string>",
"fieldName": "<string>"
}
],
"status": "InReview"
}
}