Skip to main content

Create add-on

Route

POST
/api/v1/add_ons

Usage

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

curl --location --request POST "$LAGO_URL/api/v1/add_ons" \
--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": "desc"
}
}
AttributesTypeDescription
nameString      RequiredAdd-on name
codeString      RequiredCode identifying the add-on
amount_centsInteger      RequiredAmount of the add-on
amount_currencyString      RequiredCurrency of the amount
descriptionString      OptionalAdd-on description.

Responses

The add-on was created

Returns an add-on object.