Skip to main content

Update add-on

Route

PUT
/api/v1/add_ons/:code

Usage

LAGO_URL="https://api.getlago.com"
API_KEY="__YOUR_API_KEY__"

curl --location --request PUT "$LAGO_URL/api/v1/add_ons/:code" \
--header "Authorization: Bearer $API_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
"add_on": {
"name": "add_on_name",
"code": "add_on_code",
"amount_cents": 5000,
"amount_currency": "USD",
"description": "desc"
}
}'

Arguments

{
"add_on": {
"name": "add_on_name",
"code": "add_on_code",
"amount_cents": 5000,
"amount_currency": "USD",
"description": "time_limit"
}
}
AttributesTypeDescription
nameString      OptionalAdd-on name
codeString      OptionalCode identifying the add-on
amount_centsInteger      OptionalAmount of the add-on
amount_currencyString      OptionalCurrency of the amount
descriptionString      OptionalAdd-on description

Responses

The add-on was successfully updated

Returns an add-on object.