Sign in

Create an address

documented

Creates a new address for a user in the platform.

POST /api/v2/platform/addressesAddressesno 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://{{$host}}/api/v2/platform/addresses" \
  -X POST \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/vnd.api+json" \
  -d '{"address": {"country_id": "{{$country_id}}", "address1": "{{$address1}}", "city": "{{$city}}", "zipcode": "{{$zipcode}}", "phone": "{{$phone}}", "firstname": "{{$firstname}}", "lastname": "{{$lastname}}", "state_id": "{{$state_id}}", "state_name": "{{$state_name}}", "address2": "{{$address2}}", "alternative_phone": "{{$alternative_phone}}", "label": "{{$label}}", "company": "{{$company}}", "user_id": "{{$user_id}}", "public_metadata": {"distance_from_nearest_city_in_km": {{$distance_from_nearest_city_in_km}}, "location_type": "{{$location_type}}"}, "private_metadata": {"close_to_shop": {{$close_to_shop}}}}}'