Checkouts

Returns a specific checkout session

get/checkouts/{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

Response

Checkout details

Checkout required
id, string required
object, string required
status, 'open' | 'complete' | 'abandoned' | 'expired' required
created_at, string date-time required
updated_at, string date-time required
success_url, string nullable required

Where the buyer lands after paying. Null shows Crevio's confirmation page.

metadata, object required
mode, string required
currency, string nullable required
subtotal, number required

Sum of the items at full price, before the discount.

total, number required

Sum of the items after the discount.

amount_due_today, number required

What the buyer pays at checkout: the total, minus any subscription that starts with a free trial.

purchase_url, string required
contact, union

ID by default, full object when expanded

checkout_items, CheckoutItem[] required

Changes

    • info

      added the required property success_url to the response with the status

    • warning

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

    • warning

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

    4 more changes in this revision