Admin Billing

Update a product

Changed on
patch/v1/admin/products/{id}

Request

  • Base URL
    http://localhost:3000
  • URL
    http://localhost:3000/v1/admin/products/{id}
  • Auth
    none declared

Path parameters

idstring required

ID of the product to update

Request body

namestring

Product name

descriptionstring

Product description

category'homeowner_plan' | 'pro_plan' | 'generation_credits_pack' | 'marketplace_template'

Product category

stripePriceIdstring

Stripe price ID

priceinteger

Product price in cents

currencystring

Currency code

billingType'one_time' | 'recurring'

Billing type

billingInterval'day' | 'week' | 'month' | 'year' nullable

Billing interval

billingIntervalCountinteger nullable

Number of intervals between billings

activeboolean

Active status of product

Response

Product updated successfully

successboolean required

Indicates if the request was successful

messagestring required

Human readable message

timestampstring date-time required

Timestamp of the response

Changes

    • breaking

      added subschema #2 subschema #3 to the response property oneOf list for the response status

    • info

      added the new custom_furniture_collections enum value to the request property ///

    • info

      removed subschema #2 subschema #3 from the response property oneOf list for the response status

    • breaking

      added subschema #2 subschema #3 to the response property oneOf list for the response status

    • info

      added the new canvas_high_thinking enum value to the request property ///

    • info

      added the new infinite_canvas enum value to the request property ///

    • info

      removed subschema #2 subschema #3 from the response property oneOf list for the response status