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

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

`POST customer_payment_provider_error` (webhook)

An error was encountered while syncing a customer to a payment 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.payment_provider_error', required
  - `object_type` 'payment_provider_customer_error', required
  - `organization_id` string, uuid, required: Unique identifier of the organization, created by Lago.
  - `payment_provider_customer_error` CustomerPaymentProviderErrorObject, 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).
    - `payment_provider` 'adyen' | 'cashfree' | 'flutterwave' | 'gocardless' | 'moneyhash' | 'stripe', required: The type of payment provider the customer is attached to.
    - `payment_provider_code` string, nullable, required: Code of the payment provider connection. It is `null` when no payment provider connection is recorded on the customer, for example when the connection could not be created.
    - `provider_error` union, required: The error returned by the payment provider. It carries a `message` and an `error_code` key.
      - 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)
