Create an address
documentedCreates a new address for the current user.
POST /api/v2/storefront/account/addressesAccountno implementation yet0 runsNo 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://demo.spreecommerce.org/api/v2/storefront/account/addresses" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/vnd.api+json" \
-H "Accept: application/vnd.api+json" \
-d '{"address": {"firstname": "{{$firstname}}", "lastname": "{{$lastname}}", "company": "{{$company}}", "address1": "{{$address1}}", "address2": "{{$address2}}", "city": "{{$city}}", "phone": "{{$phone}}", "zipcode": "{{$zipcode}}", "state_name": "{{$state_name}}", "country_iso": "{{$country_iso}}", "label": "{{$label}}"}}'