Create a Line Item
curl --request POST \
--url https://api.whop.com/api/v5/app/line_items \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"allow_multiple_quantity": true,
"amount": 123,
"base_currency": "usd",
"company_id": "<string>",
"description": "<string>",
"metadata": {},
"name": "<string>"
}'
{
"allow_multiple_quantity": true,
"amount": 123,
"base_currency": "usd",
"created_at": 123,
"description": "<string>",
"id": "<string>",
"metadata": {},
"name": "<string>"
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
Whether or not the line item can be purchased as multiple quantity.
The amount (price) for the line item.
A three letter currency code for the line item.
usd
, sgd
, inr
, aud
, brl
, cad
, dkk
, eur
, nok
, gbp
, sek
, chf
, hkd
, huf
, jpy
, mxn
, myr
, pln
, czk
, nzd
, aed
, cop
, ron
, thb
The ID of the company to create the line item for, which will look like biz_*************
A textual description for the line item.
A JSON object containing any additional metadata for the line item.
The name of the line item.
Response
Whether or not the line item can be purchased as multiple quantity.
The amount (price) for the line item.
A three letter currency code for the line item.
usd
, sgd
, inr
, aud
, brl
, cad
, dkk
, eur
, nok
, gbp
, sek
, chf
, hkd
, huf
, jpy
, mxn
, myr
, pln
, czk
, nzd
, aed
, cop
, ron
, thb
The date the line item was created as a unix timestamp.
A textual description for the line item.
The ID of the line item, which will look like li_*************
A JSON object containing any additional metadata for the line item.
The name of the line item.
Was this page helpful?
curl --request POST \
--url https://api.whop.com/api/v5/app/line_items \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"allow_multiple_quantity": true,
"amount": 123,
"base_currency": "usd",
"company_id": "<string>",
"description": "<string>",
"metadata": {},
"name": "<string>"
}'
{
"allow_multiple_quantity": true,
"amount": 123,
"base_currency": "usd",
"created_at": 123,
"description": "<string>",
"id": "<string>",
"metadata": {},
"name": "<string>"
}