Update buyer shipping details
/buyers/{buyer_id}/shipping-details/{shipping_detail_id}
curl --request PUT \
--url https://api.sandbox.{gr4vy_id}.gr4vy.app/buyers/{buyer_id}/shipping-details/{shipping_detail_id} \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json'
{
"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
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
The unique ID for a buyer.
The unique ID for a buyer's shipping detail.
Body
The physical shipping address associated to this buyer.
The email address for the buyer.
The first name(s) or given name for the buyer.
The last name, or family name, of the buyer.
The phone number for the buyer which should be formatted according to the E164 number standard.
Response
The physical shipping address associated to this buyer.
The unique ID for a buyer.
The email address of the buyer.
The first name(s) or given name of the buyer.
The unique ID for a buyer's shipping detail.
The last name, or family name, of the buyer.
The phone number of the buyer. This number is formatted according to the E164 number standard.
The type of this resource. Is always shipping-details
.
shipping-details
curl --request PUT \
--url https://api.sandbox.{gr4vy_id}.gr4vy.app/buyers/{buyer_id}/shipping-details/{shipping_detail_id} \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json'
{
"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"
}