---
title: "Generate a Customer Payment Provider Checkout URL"
method: POST
path: "/customers/{external_customer_id}/checkout_url"
tags: ["customers"]
---

# Generate a Customer Payment Provider Checkout URL

`POST /customers/{external_customer_id}/checkout_url`

This endpoint regenerates the Payment Provider Checkout URL of a Customer.

## Path parameters

- `external_customer_id` string, required

## Response `200`

Customer Checkout URL

- object
  - `customer` CustomerCheckoutUrl, required
    - `lago_customer_id` string, 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` string, required — The Payment Provider name linked to the Customer.
    - `payment_provider_code` string — Code of the payment provider
    - `checkout_url` string — The new generated Payment Provider Checkout URL for the Customer.

## Other responses

- `401` — Unauthorized error
- `404` — Not Found error
- `422` — Unprocessable entity error

---

[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-service-production.skmtc.workers.dev/v1/apis/getlago/lago-api-documentation/revisions/6e969ef3bb45/schema)
