Prices

Add a price to a product. Prices never change; archive and add a new one instead.

post/prices

Request

  • Base URL: https://shieldz.cash/api/v1
  • URL: https://shieldz.cash/api/v1/prices
  • Auth: HTTP bearer

Request body

unit_amount_usd_centsinteger

Fixed price per unit in USD cents: 4999 is $49.99. A checkout's total must come to $1 or more.

Example request

{
  "unit_amount_usd_cents": 4999,
  "custom_unit_amount": {
    "minimum_usd_cents": 300,
    "maximum_usd_cents": 50000,
    "preset_usd_cents": 1000
  }
}

Response

Created

idstring
object'price'
productstring

The product (prod_…) this price belongs to.

activeboolean

false once archived. An archived price can't be added to new carts or links.

unit_amount_usd_centsinteger nullable

Fixed price per unit in USD cents; null when the customer chooses the amount.

created_atinteger

Unix milliseconds.

Example response

{
  "id": "price_9fK2LmQx7Rt4Vb1N"
}

Changes

No recorded changes to this operation across all 1 revision of this API.