curl --request PATCH \
--url https://staging.crossmint.com/api/unstable/agent-checkouts/buyer-profiles/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"contact": {
"email": "ada.lovelace@example.com"
}
}
'{
"createdAt": "<string>",
"id": "<string>",
"shipping": {
"addressLines": [
"<string>"
],
"countryCode": "<string>",
"locality": "<string>",
"administrativeAreaCode": "<string>",
"postalCode": "<string>"
},
"updatedAt": "<string>",
"contact": {
"email": "<string>",
"phone": "<string>"
},
"label": "<string>",
"name": {
"first": "<string>",
"last": "<string>"
}
}{
"error": true,
"message": "<string>",
"code": "<string>",
"parameters": {}
}{
"error": true,
"message": "<string>",
"code": "<string>",
"parameters": {}
}{
"error": true,
"message": "<string>",
"code": "<string>",
"parameters": {}
}{
"error": true,
"message": "<string>",
"code": "<string>",
"parameters": {}
}{
"error": true,
"message": "<string>",
"code": "<string>",
"parameters": {}
}{
"error": true,
"message": "<string>",
"code": "<string>",
"parameters": {}
}{
"error": true,
"message": "<string>",
"code": "<string>",
"parameters": {}
}Buyer Profiles
Update Buyer Profile
Update a buyer profile’s writable fields (any non-empty subset).
API scope required: agent-checkouts.buyer-profiles.update
PATCH
/
unstable
/
agent-checkouts
/
buyer-profiles
/
{id}
curl --request PATCH \
--url https://staging.crossmint.com/api/unstable/agent-checkouts/buyer-profiles/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"contact": {
"email": "ada.lovelace@example.com"
}
}
'{
"createdAt": "<string>",
"id": "<string>",
"shipping": {
"addressLines": [
"<string>"
],
"countryCode": "<string>",
"locality": "<string>",
"administrativeAreaCode": "<string>",
"postalCode": "<string>"
},
"updatedAt": "<string>",
"contact": {
"email": "<string>",
"phone": "<string>"
},
"label": "<string>",
"name": {
"first": "<string>",
"last": "<string>"
}
}{
"error": true,
"message": "<string>",
"code": "<string>",
"parameters": {}
}{
"error": true,
"message": "<string>",
"code": "<string>",
"parameters": {}
}{
"error": true,
"message": "<string>",
"code": "<string>",
"parameters": {}
}{
"error": true,
"message": "<string>",
"code": "<string>",
"parameters": {}
}{
"error": true,
"message": "<string>",
"code": "<string>",
"parameters": {}
}{
"error": true,
"message": "<string>",
"code": "<string>",
"parameters": {}
}{
"error": true,
"message": "<string>",
"code": "<string>",
"parameters": {}
}Agent Checkouts uses production API keys. A staging key gets
403 with the message "Agent Checkouts is only available in production". See Test Agent Checkouts.Authorizations
apiKey & userJwtapiKey
Headers
Path Parameters
Body
application/json
Response
Returns the updated buyer profile.
Was this page helpful?

