---
title: "Link integration mapping"
method: POST
path: "/integrations/link"
tags: ["Integrations"]
---

# Link integration mapping

`POST /integrations/link`

Link a FlexPrice entity to provider entity with provider-specific side effects.

## Request body

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

## Response `200`

OK

- LinkIntegrationMappingResponse
  - `mapping` EntityIntegrationMappingResponse
    - `created_at` string, date-time
    - `created_by` string
    - `entity_id` string
    - `entity_type` 'customer' | 'plan' | 'invoice' | 'subscription' | 'payment' | 'credit_note' | 'addon' | 'item' | 'item_price' | 'price' | 'invoice_line_item'
    - `environment_id` string
    - `id` string
    - `metadata` object
    - `provider_entity_id` string
    - `provider_type` string
    - `status` 'published' | 'deleted' | 'archived'
    - `tenant_id` string
    - `updated_at` string, date-time
    - `updated_by` string

## Other responses

- `400` — Bad Request
- `500` — Internal Server Error

---

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