Sign in

Set cart geolocation

documented

Set the geolocation for a cart.

POST /api/v2/cart/{cart_id}/geolocationCartno 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://{{$base_url}}/api/v2/cart/{{$cart_id}}/geolocation" \
  -X POST \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "X-Api-State: {{$api_state}}" \
  -d '{"country_code": "{{$country_code}}", "state": "{{$state}}"}'
Set cart geolocation · whmcs · OpenIntegrations