POST
/
contracts
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",
  "endDate": "2023-11-07T05:31:56Z",
  "customerId": "<string>",
  "planId": "<string>"
}'
{
  "contract": {
    "startDate": "2023-11-07T05:31:56Z",
    "endDate": "2023-11-07T05:31:56Z",
    "customerId": "<string>",
    "planId": "<string>",
    "id": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
startDate
string
required

The start date of the contract

customerId
string
required

The id of the customer that the contract is associated with

planId
string
required

The id of the plan that the contract is associated with

endDate
string

The end date of the contract

Response

200
application/json
RequestSuccess
contract
object
required