Update buyer
/buyers/{buyer_id}
curl --request PUT \
--url https://api.sandbox.{gr4vy_id}.gr4vy.app/buyers/{buyer_id} \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json'
{
"billing_details": {
"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",
"tax_id": {
"kind": "gb.vat",
"value": "12345678931"
},
"type": "billing-details"
},
"created_at": "2013-07-16T19:23:00.000+00:00",
"display_name": "John L.",
"external_identifier": "user-789123",
"id": "fe26475d-ec3e-4884-9553-f7356683f7f9",
"merchant_account_id": "default",
"type": "buyer",
"updated_at": "2013-07-16T19:23:00.000+00:00"
}
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.
Body
The billing details of the buyer.
A unique name for this buyer which is used in the Gr4vy admin panel to give a buyer a human readable name.
An external identifier that can be used to match the buyer against your own records. This value needs to be unique for all buyers.
Response
The billing details associated with a buyer.
The date and time when this buyer was created in our system.
A unique name for this buyer which is used in the Gr4vy admin panel to give a buyer a human readable name.
An external identifier that can be used to match the buyer against your own records.
The unique Gr4vy ID for this buyer.
The unique ID for a merchant account.
The type of this resource. Is always buyer
.
buyer
The date and time when this buyer was last updated in our system.
Was this page helpful?
curl --request PUT \
--url https://api.sandbox.{gr4vy_id}.gr4vy.app/buyers/{buyer_id} \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json'
{
"billing_details": {
"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",
"tax_id": {
"kind": "gb.vat",
"value": "12345678931"
},
"type": "billing-details"
},
"created_at": "2013-07-16T19:23:00.000+00:00",
"display_name": "John L.",
"external_identifier": "user-789123",
"id": "fe26475d-ec3e-4884-9553-f7356683f7f9",
"merchant_account_id": "default",
"type": "buyer",
"updated_at": "2013-07-16T19:23:00.000+00:00"
}