Sign in

Begin checkout

documented

Start the checkout process for a cart.

POST /api/v2/cart/{cart_id}/checkoutCartno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://{{WHMCS_BASE_URL}}/api/v2/cart/{{$cart_id}}/checkout" \
  -X POST \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "X-Api-State: {{$X_API_STATE}}" \
  -d '{"identifier": "{{WHMCS_API_IDENTIFIER}}", "secret": "{{WHMCS_SECRET}}", "customer": {"name": "{{$customer_name}}", "email": "{{$customer_email}}"}, "billing_address": {"line1": "{{$billing_line1}}", "city": "{{$billing_city}}", "state": "{{$billing_state}}", "postcode": "{{$billing_postcode}}", "country_code": "{{$billing_country}}"}, "payment": {"method": "{{$payment_method}}"}, "promo_code": "{{$promo_code}}", "accept_terms": true }'"