---
title: "Create customer relationship"
method: POST
path: "/v1/CustomerRelationships"
tags: ["CustomerRelationships"]
---

# Create customer relationship

`POST /v1/CustomerRelationships`

Create a new customer relationship.

## Request body

- RevAppModelsCustomerRelationship
  - `customer_relationship_id` integer — Primary identifier for this customer relationship.
  - `customer_id` integer, required — Primary customer that has a relationship with another customer.
  - `related_customer_id` integer, required — Customer that is related to the primary customer.
  - `customer_relationship_type_id` integer, required — Foreign identifier for the type of relationship between the two customers.
  - `links` RevAppComponentsLink[]
    - `rel` string
    - `href` string

## Response `201`

Created

- RevWebAPIModelsCreate
  - `ok` boolean
  - `id` integer

## Other responses

- `400` — BadRequest
- `500` — InternalServerError

---

[API](https://skmtc.net/rev-io/apis/rev-io-api.md) · [All operations](https://skmtc.net/rev-io/apis/rev-io-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/rev-io/rev-io-api/revisions/135571434f6c/schema)
