Skip to main content
PUT
/
organizations
/
{id}
/
billing-addresses
/
{billingAddressId}
Update Organization Billing Address
curl --request PUT \
  --url https://{deploymentHost}/organizations/{id}/billing-addresses/{billingAddressId} \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "company": "<string>",
  "address_line_1": "<string>",
  "address_line_2": "<string>",
  "city": "<string>",
  "state": "<string>",
  "postal_code": "<string>",
  "country": "<string>",
  "is_default": true
}'
{
  "status": 200,
  "message": "",
  "data": {
    "billing_address": {
      "id": "billing_123456789",
      "name": "Updated Office Location",
      "company": "Acme Corporation Ltd",
      "address_line_1": "789 Updated Street",
      "address_line_2": "Floor 5",
      "city": "Los Angeles",
      "state": "CA",
      "postal_code": "90210",
      "country": "US",
      "is_default": true,
      "created_at": "2024-01-15T19:30:00Z",
      "updated_at": "2024-01-15T20:00:00Z"
    }
  },
  "session": {
    "signin_attempts": [],
    "signins": [
      {
        "id": "signin_987654321",
        "user_id": "user_456789123",
        "created_at": "2024-01-01T12:00:00Z"
      }
    ],
    "signup_attempts": [],
    "active_signin": {
      "id": "signin_987654321",
      "user_id": "user_456789123",
      "created_at": "2024-01-01T12:00:00Z"
    }
  },
  "errors": []
}

Authorizations

__session
string
cookie
required

Session cookie authentication for production deployments. The session token is automatically set as an HTTP-only, secure cookie.

Path Parameters

id
string
required

Organization ID

billingAddressId
string
required

Billing Address ID to update

Body

application/json
name
string

Display name for the billing address

company
string

Company name

address_line_1
string

Primary address line

address_line_2
string

Secondary address line (optional)

city
string

City

state
string

State or province

postal_code
string

Postal or ZIP code

country
string

Country code (ISO 3166-1 alpha-2)

is_default
boolean

Whether this should be the default billing address

Response

Billing address updated successfully

status
integer
required

HTTP status code

message
string
required

Response message (empty for success)

data
any
required

Response data (can be any type)

session
object
required
errors
object[]
required

Array of error objects (empty for success)