POST
/
customers
/
{external_customer_id}
/
checkout_url
Authorization
Path
LAGO_URL="https://api.getlago.com"
API_KEY="__YOUR_API_KEY__"

curl --location --request POST "$LAGO_URL/api/v1/customers/:external_id/checkout_url" \
  --header "Authorization: Bearer $API_KEY"
{
  "checkout_url": "https://foo.bar",
  "external_customer_id": "5eb02857-a71e-4ea2-bcf9-57d3a41bc6ba",
  "lago_customer_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
  "payment_provider": "stripe"
}

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

external_customer_id
string
required

The customer external unique identifier (provided by your own application).

Response

200 - application/json
checkout_url
string

The new generated Payment Provider Checkout URL for the Customer.

external_customer_id
string

The customer external unique identifier (provided by your own application)

lago_customer_id
string

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

payment_provider
string

The Payment Provider name linked to the Customer.