PATCH
/
v5
/
company
/
billing_items
/
{id}
Authorization
Path
Body
curl --request PATCH \
  --url https://api.whop.com/api/v5/company/billing_items/{id} \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "status": "active"
}'
{
  "app_id": "<string>",
  "billing_type": "structured",
  "created_at": 123,
  "currency": "usd",
  "id": "<string>",
  "identifier": "<string>",
  "name": "<string>",
  "product_id": "<string>",
  "status": "active",
  "unit_amount": 123,
  "unit_name": "<string>",
  "unit_price": 123
}

Authorizations

Authorization
string
headerrequired

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

Path Parameters

id
string
required

The ID of the billing item, which will look like bi_*************

Body

application/json
status
enum<string>
required

The status of the billing item.

Available options:
active,
archived

Response

200 - application/json
app_id
string
required

The ID of the app, which will look like app_*************

billing_type
enum<string>
required

The billing type of the billing item.

Available options:
structured,
variable
created_at
integer
required

The date the billing item was created as a unix timestamp.

currency
enum<string>
required

The three letter currency code for the billing item.

Available options:
usd,
sgd,
inr,
aud,
brl,
cad,
dkk,
eur,
nok,
gbp,
sek,
chf,
hkd,
huf,
jpy,
mxn,
myr,
pln,
czk,
nzd,
aed,
cop,
ron,
thb
id
string
required

The ID of the billing item, which will look like bi_*************

identifier
string

An identifier for the billing item that is unique across all billing items for the product in respect to the app.

name
string
required

The name of the billing item.

product_id
string
required

The ID of the product, which will look like prod_*************

status
enum<string>
required

The status of the billing item.

Available options:
active,
archived
unit_amount
integer

The unit amount for the billing item.

unit_name
string

The name of the unit for the billing item.

unit_price
number

The unit price for the billing item.