Update prospect
Updates one or more fields of an existing prospect.
Learn more about the Profile System and its other API endpoints.
⚠️ The Profile System is only compatible with stores using the PII data architecture from Data Protection Plus, which is in closed beta phase, only available in select regions.
This feature is part of VTEX Shield. If you are already a VTEX customer and want to adopt VTEX Shield for your business, please contact Commercial Support. Additional fees may apply. If you are not yet a customer but are interested in this solution, please complete our contact form.
Permissions
Any user or API key must have at least one of the appropriate License Manager resources to be able to successfully run this request. Otherwise they will receive a status code 403 error. These are the applicable resources for this endpoint:
| Product | Category | Resource |
|---|---|---|
| Profile System | Documents | Get Item |
| Profile System | Documents | Save and Update Item |
| Profile System | Documents | Delete Item |
There are no applicable predefined roles for this resource list. You must create a custom role and add at least one of the resources above in order to use this endpoint.To learn more about machine authentication at VTEX, see Authentication overview.
❗ To prevent integrations from having excessive permissions, consider the best practices for managing API keys when assigning License Manager roles to integrations.
Path parameters
ID of the prospect as returned by the Create prospect endpoint's response, in the id field.
Headers
Type of the content being sent.
HTTP Client Negotiation Accept Header. Indicates the types of responses the client can understand.
Request body
Example request
{
"availableAddresses": [
{
"disposable": true,
"userId": "98478f6b-d025-4f35-a560-dd1ee7a6f26e",
"addressName": "Home",
"addressType": "residential",
"postalCode": "32137",
"city": "Palm Coast",
"country": "USA",
"street": "Fifth St.",
"number": "9538",
"complement": "Apartment 2B",
"geoCoordinate": [
"49.334934"
]
}
],
"paymentData": {
"availableAccounts": [
{
"accountId": "D09F5E3F01054C959CFC4CB357961ADE",
"paymentSystem": "2",
"paymentSystemName": "Visa",
"cardNumber": "************1111",
"bin": "44443334",
"availableAddresses": [
"db267dcc53c14fb2b9a985532dd287bc"
],
"expirationDate": "01/2032"
}
],
"availableTokens": [
"12345"
],
"transactions": [
{
"isActive": true,
"transactionId": "418213DE29634837A63DD693A937A696",
"merchantName": "luxstore",
"payments": [
{
"id": "D3DEECAB3C6C4B9EAF8EF4C1FE062FF3",
"paymentSystem": "6",
"paymentSystemName": "Boleto Bancário",
"value": 4450,
"installments": 1,
"referenceValue": 4450,
"cardHolder": null,
"cardNumber": null,
"firstDigits": null,
"lastDigits": null,
"cvv2": null,
"expireMonth": null,
"expireYear": null,
"url": "https://luxstore.vtexpayments.com.br:443/BankIssuedInvoice/Transaction/418213DE29634837A63DD693A937A696/Payment/D3DEECAB3C6C4B9EAF8EF4C1FE062FF3/Installment/{Installment}",
"giftCardId": null,
"giftCardName": null,
"giftCardCaption": null,
"redemptionCode": null,
"group": "bankInvoice",
"tid": null,
"dueDate": "2019-02-02",
"connectorResponses": {}
}
]
}
],
"giftCards": [
"12345"
],
"giftCardMessages": [
"Message."
]
},
"contacts": [
{
"contactId": "0",
"email": "jane@mail.com",
"firstName": "Jane",
"lastName": "Doe",
"phone": "12345678910",
"document": "12345678910"
}
],
"invoiceSubject": {
"invoiceSubjectId": "0",
"email": "jane@mail.com",
"firstName": "Jane",
"lastName": "Doe",
"phone": "12345678910"
},
"email": "jane@mail.com",
"firstName": "Jane",
"lastName": "Doe",
"document": "5397eefef23741d4976ebdf772cc42e0",
"cellPhone": "12345678910",
"customerCode": "5397eefe-f237-41d4-976e-bdf772cc42e0"
}Response
OK
Example response
{
"document": {
"availableAddresses": [
{
"disposable": true,
"userId": "98478f6b-d025-4f35-a560-dd1ee7a6f26e",
"addressName": "Home",
"addressType": "residential",
"postalCode": "32137",
"city": "Palm Coast",
"country": "USA",
"street": "Fifth St.",
"number": "9538",
"complement": "Apartment 2B",
"geoCoordinate": [
"49.334934"
]
}
],
"paymentData": {
"availableAccounts": [
{
"accountId": "D09F5E3F01054C959CFC4CB357961ADE",
"paymentSystem": "2",
"paymentSystemName": "Visa",
"cardNumber": "************1111",
"bin": "44443334",
"availableAddresses": [
"db267dcc53c14fb2b9a985532dd287bc"
],
"expirationDate": "01/2032"
}
],
"availableTokens": [
"12345"
],
"transactions": [
{
"isActive": true,
"transactionId": "418213DE29634837A63DD693A937A696",
"merchantName": "luxstore",
"payments": [
{
"id": "D3DEECAB3C6C4B9EAF8EF4C1FE062FF3",
"paymentSystem": "6",
"paymentSystemName": "Boleto Bancário",
"value": 4450,
"installments": 1,
"referenceValue": 4450,
"cardHolder": null,
"cardNumber": null,
"firstDigits": null,
"lastDigits": null,
"cvv2": null,
"expireMonth": null,
"expireYear": null,
"url": "https://luxstore.vtexpayments.com.br:443/BankIssuedInvoice/Transaction/418213DE29634837A63DD693A937A696/Payment/D3DEECAB3C6C4B9EAF8EF4C1FE062FF3/Installment/{Installment}",
"giftCardId": null,
"giftCardName": null,
"giftCardCaption": null,
"redemptionCode": null,
"group": "bankInvoice",
"tid": null,
"dueDate": "2019-02-02",
"connectorResponses": {}
}
]
}
],
"giftCards": [
"12345"
],
"giftCardMessages": [
"Message."
]
},
"contacts": [
{
"contactId": "0",
"email": "jane@mail.com",
"firstName": "Jane",
"lastName": "Doe",
"phone": "12345678910",
"document": "12345678910"
}
],
"invoiceSubject": {
"invoiceSubjectId": "0",
"email": "jane@mail.com",
"firstName": "Jane",
"lastName": "Doe",
"phone": "12345678910"
},
"email": "jane@mail.com",
"firstName": "Jane",
"lastName": "Doe",
"document": "5397eefef23741d4976ebdf772cc42e0",
"cellPhone": "12345678910",
"customerCode": "5397eefe-f237-41d4-976e-bdf772cc42e0"
}
}Changes
Changed in 3 of the 50 revisions of this API.732
- ▲
the
/request property type changed fromstringtoarrayrequest-property-type-changed
- ▲
the
//response's property type changed fromstringtoarrayfor statusresponse-property-type-changed
- ▲
- ▲
the
//request property type changed fromstringtoobjectrequest-property-type-changed
- ▲
the
/request property type changed fromarraytostringrequest-property-type-changed
- ▲
the
///response's property type changed fromstringtoobjectfor statusresponse-property-type-changed
- ▲
the
//response's property type changed fromarraytostringfor statusresponse-property-type-changed
- ○
added the new optional request property
///new-optional-request-property
- ○
added the new optional request property
///new-optional-request-property
- ○
added the new optional request property
///new-optional-request-property
- ○
added the new optional request property
///new-optional-request-property
- ○
added the new optional request property
///new-optional-request-property
- ○
added the new optional request property
///new-optional-request-property
- ○
added the new optional request property
///new-optional-request-property
- ○
added the new optional request property
///new-optional-request-property
- ○
added the new optional request property
///new-optional-request-property
- ○
added the optional property
////to the response with the statusresponse-optional-property-added
- ○
added the optional property
////to the response with the statusresponse-optional-property-added
- ○
added the optional property
////to the response with the statusresponse-optional-property-added
- ○
added the optional property
////to the response with the statusresponse-optional-property-added
- ○
added the optional property
////to the response with the statusresponse-optional-property-added
- ○
added the optional property
////to the response with the statusresponse-optional-property-added
- ○
added the optional property
////to the response with the statusresponse-optional-property-added
- ○
added the optional property
////to the response with the statusresponse-optional-property-added
- ○
added the optional property
////to the response with the statusresponse-optional-property-added
- ▲
- ▲
the request's body type changed from no type to
objectrequest-body-type-changed
- ○
added the new optional request property
new-optional-request-property
- ○
added the new optional request property
new-optional-request-property
- ○
added the new optional request property
new-optional-request-property
- ○
added the new optional request property
new-optional-request-property
- ○
added the new optional request property
new-optional-request-property
- ○
added the new optional request property
new-optional-request-property
- ○
added the new optional request property
new-optional-request-property
- ○
added the new optional request property
new-optional-request-property
- ○
added the new optional request property
new-optional-request-property
- ○
added the new optional request property
new-optional-request-property
- ○
added the new optional request property
new-optional-request-property
- ○
added the optional property
to the response with the statusresponse-optional-property-added
- ○
added the optional property
to the response with the statusresponse-optional-property-added
- ○
added the optional property
to the response with the statusresponse-optional-property-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲