PUT
/
buyers
/
{buyer_id}
/
shipping-details
/
{shipping_detail_id}
curl --request PUT \
  --url https://api.{gr4vy_id}.gr4vy.app/buyers/{buyer_id}/shipping-details/{shipping_detail_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "address": {
    "city": "London",
    "country": "GB",
    "house_number_or_name": "10",
    "line1": "10 Oxford Street",
    "line2": "New Oxford Court",
    "organization": "Gr4vy",
    "postal_code": "789123",
    "state": "Greater London",
    "state_code": "GB-LND"
  },
  "email_address": "john@example.com",
  "first_name": "John",
  "last_name": "Lunn",
  "phone_number": "+1234567890"
}'
{
  "address": {
    "city": "London",
    "country": "GB",
    "house_number_or_name": "10",
    "line1": "10 Oxford Street",
    "line2": "New Oxford Court",
    "organization": "Gr4vy",
    "postal_code": "789123",
    "state": "Greater London",
    "state_code": "GB-LND"
  },
  "buyer_id": "8724fd24-5489-4a5d-90fd-0604df7d3b83",
  "email_address": "john@example.com",
  "first_name": "John",
  "id": "8724fd24-5489-4a5d-90fd-0604df7d3b83",
  "last_name": "Lunn",
  "phone_number": "+1234567890",
  "type": "shipping-details"
}

This endpoint requires the buyers.write scope.

Authorizations

Authorization
string
headerrequired

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

Path Parameters

buyer_id
string
required

The unique ID for a buyer.

shipping_detail_id
string
required

The unique ID for a buyer's shipping detail.

Body

application/json
address
object

The physical shipping address associated to this buyer.

email_address
string | null

The email address for the buyer.

first_name
string | null

The first name(s) or given name for the buyer.

last_name
string | null

The last name, or family name, of the buyer.

phone_number
string | null

The phone number for the buyer which should be formatted according to the E164 number standard.

Response

200 - application/json
address
object

The physical shipping address associated to this buyer.

buyer_id
string

The unique ID for a buyer.

email_address
string | null

The email address of the buyer.

first_name
string | null

The first name(s) or given name of the buyer.

id
string

The unique ID for a buyer's shipping detail.

last_name
string | null

The last name, or family name, of the buyer.

phone_number
string | null

The phone number of the buyer. This number is formatted according to the E164 number standard.

type
enum<string>

The type of this resource. Is always shipping-details.

Available options:
shipping-details