Skip to main content
Add Customer Address
curl --request POST \
  --url https://api.revolv3.com/api/Customers/{customerId}/address \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json-patch+json' \
  --data '
{
  "addressType": "Billing",
  "addressLine1": "100 Main Street",
  "addressLine2": null,
  "city": "Santa Ana",
  "state": "CA",
  "postalCode": "90000",
  "phoneNumber": null,
  "email": null,
  "country": "US"
}
'
{
  "customerId": 1,
  "merchantCustomerRefId": "1234-5678-9101",
  "firstName": "John",
  "lastName": "Doe",
  "billingAddresses": [
    {
      "addressId": 0,
      "addressLine1": "100 Main Street",
      "addressLine2": null,
      "city": "Santa Ana",
      "state": "CA",
      "postalCode": "90000",
      "phoneNumber": null,
      "email": null,
      "country": "US"
    }
  ],
  "shippingAddresses": [],
  "taxAddresses": [],
  "subscriptions": []
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

customerId
integer<int64>
required

Body

addressLine1
string | null

Address.

addressLine2
string

Supplemental information for the address.

city
string | null

City.

state
string | null

State.

Maximum string length: 2
postalCode
string | null

Postal Code.

Required string length: 2 - 20
phoneNumber
string

The phone number associated with a payment method that is used for billing purposes.

Required string length: 2 - 20
email
string

The email associated with a billing address.

country
string

The input must be a valid Alpha2 code, Alpha3 code, UN code, or full country name.

addressType
string | null

Response

Created

customerId
integer<int64>
merchantCustomerRefId
string | null
firstName
string | null
lastName
string | null
billingAddresses
object[] | null
shippingAddresses
object[] | null
taxAddresses
object[] | null
subscriptions
object[] | null