---
title: "Create entity integration mapping"
method: POST
path: "/entity-integration-mappings"
tags: ["Entity Integration Mappings"]
---

# Create entity integration mapping

`POST /entity-integration-mappings`

Use when linking a FlexPrice entity to an external system (e.g. CRM or payment provider) so you can sync or reconcile by external ID.

## Request body

- DtoCreateEntityIntegrationMappingRequest
  - `entity_id` string, required
  - `entity_type` 'customer' | 'plan' | 'invoice' | 'subscription' | 'payment' | 'credit_note' | 'addon' | 'item' | 'item_price' | 'price', required
  - `metadata` object
  - `provider_entity_id` string, required
  - `provider_type` string, required

## Response `201`

Created

- DtoEntityIntegrationMappingResponse
  - `created_at` string
  - `created_by` string
  - `entity_id` string
  - `entity_type` 'customer' | 'plan' | 'invoice' | 'subscription' | 'payment' | 'credit_note' | 'addon' | 'item' | 'item_price' | 'price'
  - `environment_id` string
  - `id` string
  - `provider_entity_id` string
  - `provider_type` string
  - `status` 'published' | 'deleted' | 'archived'
  - `tenant_id` string
  - `updated_at` string
  - `updated_by` string

## Other responses

- `400` — Invalid request
- `401` — Unauthorized
- `409` — Conflict
- `500` — Server error

---

[API](https://skmtc.dev/flexprice/apis/flexprice-api.md) · [All operations](https://skmtc.dev/flexprice/apis/flexprice-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/flexprice/flexprice-api/revisions/97b15ca35ebf/schema)
