CheckoutLinks

Update checkout link

Changed on

Updates an existing checkout link

patch/checkout_links/{id}

Request

  • Base URL
    https://api.crevio.co/v1
  • Auth
    API key in header Authorization

Path parameters

id, string required

The resource's ID, as returned in its id field

Request body

CheckoutLinkRequest required
name, string nullable
discount, string nullable

Discount ID

allow_discount_codes, boolean
success_url, string nullable
price_variants, string[]
metadata, object

Set of key-value pairs you can attach to the object — store your own system's IDs or grouping labels. Keys max 40 chars (up to 50 keys), values stored as strings max 500 chars. On update, keys merge individually; set a key to null or "" to remove it. Echoed back on reads and in webhook payloads.

Response

Checkout link updated

CheckoutLink required
id, string required
object, string required
name, string nullable required
success_url, string nullable required
allow_discount_codes, boolean required
created_at, string date-time required
updated_at, string date-time required
metadata, object nullable required
url, string required
discount, union

ID by default, full object when expanded

price_variants, PriceVariant[]

Changes

    • warning

      added the new expired enum value to the discount/oneOf[#/components/schemas/Discount]/status response property for the response status

    • info

      added the required property price_variants/items/cross_sells to the response with the status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    6 more changes in this revision