---
title: "An error was encountered while syncing a customer to a CRM provider"
method: POST
path: "customer_crm_provider_error"
---

# An error was encountered while syncing a customer to a CRM provider

`POST customer_crm_provider_error` (webhook)

An error was encountered while syncing a customer to a CRM provider

## Headers

- `X-Lago-Signature` string, required
- `X-Lago-Signature-Algorithm` 'jwt' | 'hmac', required
- `X-Lago-Unique-Key` string, uuid, required

## Payload

- object
  - `webhook_type` 'customer.crm_provider_error', required
  - `object_type` 'crm_provider_customer_error', required
  - `organization_id` string, uuid, required: Unique identifier of the organization, created by Lago.
  - `crm_provider_customer_error` CustomerIntegrationErrorObject, required
    - `lago_customer_id` string, uuid, required: Unique identifier assigned to the customer within the Lago application. This ID is exclusively created by Lago and serves as a unique identifier for the customer's record within the Lago system.
    - `external_customer_id` string, required: The customer external unique identifier (provided by your own application)
    - `accounting_provider` 'anrok' | 'hubspot' | 'netsuite' | 'xero', required: The type of provider that failed. The CRM error webhook sends `hubspot` under this same key.
    - `accounting_provider_code` string, required: Code of the accounting provider
    - `provider_error` union, required
      - string
      - object

## Acknowledgement `200`

Return a 200 status to indicate that the data was received successfully

---

[API](https://skmtc.dev/getlago/apis/lago-api-documentation.md) - [All operations](https://skmtc.dev/getlago/apis/lago-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/getlago/apis/lago-api-documentation/revisions/b216574b9612?raw)
