---
title: "An error was raised by a payment provider"
method: POST
path: "payment_provider_error"
---

# An error was raised by a payment provider

`POST payment_provider_error` (webhook)

An error was raised by 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` 'payment_provider.error', required
  - `object_type` 'payment_provider_error', required
  - `organization_id` string, uuid, required: Unique identifier of the organization, created by Lago.
  - `payment_provider_error` PaymentProviderErrorObject, required
    - `lago_payment_provider_id` string, uuid, required: Unique identifier assigned to the payment provider within the Lago application. This ID is exclusively created by Lago and serves as a unique identifier for the payment provider's record within the Lago system.
    - `payment_provider_name` string, required: The name of the payment provider connection.
    - `payment_provider_code` string, required: Code of the payment provider connection.
    - `source` 'stripe', required: The payment provider that raised the error.
    - `action` 'payment_provider.register_webhook', required: The action that was being performed when the error occurred.
    - `provider_error` union, required: The error returned by the payment provider. It carries a `message` and a `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)
