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 is available in production only. A staging API key gets
403 with the message "Agent Checkouts is only available in production". See Test in Production.Authorizations
apiKey & userJwtapiKey
API key required for authentication
The end user's JWT, sent as Authorization: Bearer <JWT> together with a client-side API key. Validated against the project's external JWT configuration.
Headers
Server-side auth only: the subject to act on behalf of, namespaced under the key's project. Defaults to a fixed service subject when omitted. Ignored for client-side (JWT) auth, where the subject comes from the token.
Path Parameters
Pattern:
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Body
application/json
Response
Returns the updated buyer profile.
Minimum string length:
1Pattern:
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Show child attributes
Show child attributes
Minimum string length:
1Show child attributes
Show child attributes
Required string length:
1 - 120Show child attributes
Show child attributes
Was this page helpful?

