curl --request POST \
--url https://connect.withvayu.com/contracts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"startDate": "2023-11-07T05:31:56Z",
"customerId": "<string>",
"name": "<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",
"cloudProviderSettings": {
"cloudProvider": "AWS",
"cloudProviderMarketplaceId": "<string>",
"dimension": "<string>"
}
}
],
"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",
"cloudProviderSettings": {
"cloudProvider": "AWS",
"cloudProviderMarketplaceId": "<string>",
"dimension": "<string>"
}
}
],
"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"
}
'{
"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",
"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",
"cloudProviderSettings": {
"cloudProvider": "AWS",
"cloudProviderMarketplaceId": "<string>",
"dimension": "<string>"
}
}
],
"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",
"cloudProviderSettings": {
"cloudProvider": "AWS",
"cloudProviderMarketplaceId": "<string>",
"dimension": "<string>"
}
}
],
"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"
}
}Create a new Contract.
curl --request POST \
--url https://connect.withvayu.com/contracts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"startDate": "2023-11-07T05:31:56Z",
"customerId": "<string>",
"name": "<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",
"cloudProviderSettings": {
"cloudProvider": "AWS",
"cloudProviderMarketplaceId": "<string>",
"dimension": "<string>"
}
}
],
"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",
"cloudProviderSettings": {
"cloudProvider": "AWS",
"cloudProviderMarketplaceId": "<string>",
"dimension": "<string>"
}
}
],
"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"
}
'{
"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",
"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",
"cloudProviderSettings": {
"cloudProvider": "AWS",
"cloudProviderMarketplaceId": "<string>",
"dimension": "<string>"
}
}
],
"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",
"cloudProviderSettings": {
"cloudProvider": "AWS",
"cloudProviderMarketplaceId": "<string>",
"dimension": "<string>"
}
}
],
"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"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
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 signature date of the contract
The products that the contract is associated with
Show child attributes
Product groups are list of products that can be grouped as a single line item with shared settings like ERP settings, commitment settings, etc.
Show child attributes
The name of the account manager of the contract
Whether to pro rate the invoices for the contract. If not provided, it will default to false
Whether the contract is set to auto renew. If not provided, it will be treated as true
Custom fields from CRM systems (Salesforce, HubSpot, etc.)
Show child attributes
The stored custom field values associated with the contract
Show child attributes
The status of the contract
InReview, Active, Inactive, Expired, Terminated, PendingTermination, Error RequestSuccess
Show child attributes