CheckoutLinks

Create checkout link

Changed on

Creates a new shareable checkout link

post/checkout_links

Request

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

Headers

Idempotency-Key, string

Makes this write safe to retry: a repeat with the same key replays the first response instead of creating a second resource. Scoped to the account, remembered for 24 hours; reusing a key with a different payload is an error.

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 created

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