Skip to main content
POST
/
customer-relations
Create Customer relation
curl --request POST \
  --url https://connect.withvayu.com/customer-relations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "vayuParentCustomerId": "<string>",
  "vayuChildCustomerId": "<string>"
}'
{
  "customerRelation": {
    "vayuParentCustomerId": "<string>",
    "vayuChildCustomerId": "<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
vayuParentCustomerId
string
required

Identifier of the parent customer in Vayu.

vayuChildCustomerId
string
required

Identifier of the child customer in Vayu.

Response

RequestSuccess

customerRelation
object
required