PayNow

CreateCartCheckoutSessionDto

Request to create a new checkout session from a cart

affiliate_codestringOptional
Optional affiliate code to track referrals. An invalid affiliate code will NOT cause an error.
auto_redirectbooleanOptional
Whether to automatically redirect the customer (return_url must be set)
cancel_urlstringOptional
Optional URL to redirect to if checkout is canceled
coupon_idFlakeIdOptional
promo_codesstring[]Optional
Optional array of promo codes (coupons, gift cards, affiliates) to apply. An invalid promo code will cause an error.
return_urlstringOptional
Optional URL to redirect to after successful checkout
Example
{
  "coupon_id": "411486491630370816",
  "promo_codes": [
    "string"
  ],
  "affiliate_code": "string",
  "return_url": "string",
  "cancel_url": "string",
  "auto_redirect": true
}