post
https://production-api.shoutaboutus.com/api/v1/billing-address/save
Create or updates (on the user's latest row) the billing address for user_id. The stored name comes from the user's person firstname + lastname (client-supplied names are ignored). Side effect: when you supply signup_business_id and that signup business has update_address_user_notify = 1, the linked store's location-account company address (phone/address/city/zip) is synced to the same values.
Auth
- Bearer account / partner token.
user_idvalidated by an ownership check (must be in the caller's hierarchy).
Rate limit
- No rate limit.
Body
| Field | Type | Required | Notes |
|---|---|---|---|
user_id | integer | Required | Must be an existing user and must belong to caller's hierarchy (an ownership check). |
company | string | Required | max:255; no angle brackets (NameNoAngleBrackets). Stored as company_name. |
billing_email | string | Required | Valid email (email:rfc,dns). Stored as email. |
mobile | string | Optional | max:20. Stored as phone. |
billing_address | string | Required | max:255; no angle brackets. Stored as address. |
zipcode | string | Required | min:3, max:10. Stored as postal_code. |
city_id | integer | Required | Must be an existing city. |
signup_business_id | integer | Optional | Must be an existing record. When set and its update_address_user_notify = 1, syncs the store's company address. |
Behaviour
200—{ data: {.} }with the persistedBillingAddressmodel (fields:email,phone,postal_code,address,company_name,id, timestamps).422— validation failure (invalid email, out-of-scopeuser_id, angle brackets in text fields, etc.).
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
