Admin Billing

Create a new product

Changed on
post/v1/admin/products

Request

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

Request body

namestring required

Product name

descriptionstring required

Product description

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

Product category

stripePriceIdstring required

Stripe price ID

stripeProductIdstring nullable

Stripe product ID

priceinteger required

Product price in cents

currencystring

Currency code

billingType'one_time' | 'recurring' required

Billing type

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

Billing interval

billingIntervalCountinteger nullable

Number of intervals between billings

Response

Product created 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