Accept seller lead
Changed onThis endpoint is triggered by the seller onboarding wizard, once the seller confirms their invitation. It can be used by marketplace operators to manually accept seller leads, and carry on with their onboarding process.
Note that there's no specific API call that allows status changes. The operations only allow the seller lead to move forward:
From invite > to Accept > closing on [Create seller](https://developers.vtex.com/docs/api-reference/marketplace-apis/#put-/seller-register/pvt/seller-leads/-sellerLeadId-/seller).
If you want to change the status, you can start the process again, by deleting that lead through the Delete seller lead endpoint, and resending the invite through the Resend seller lead's Invite endpoint.
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 |
|---|---|---|
| Seller Register | Seller Administration | Save Seller |
You can create a custom role with that resource or use one of the following predefined roles:
| Role | Resource |
|---|---|
| Seller manager | Save Seller |
❗ Assigning a predefined role to users or application keys usually grants permission to multiple License Manager resources. If some of these permissions are not necessary, consider creating a custom role instead. For more information regarding security, see Best practices for using application keys.
Request
- Base URLhttps://apiexamples.vtexcommercestable.com.br/api
- URLhttps://apiexamples.vtexcommercestable.com.br/api/seller-register/pvt/seller-leads/{sellerLeadId}
- AuthAPI key in header X-VTEX-API-AppKey and API key in header X-VTEX-API-AppToken
Path parameters
Name of the VTEX account that belongs to the marketplace. The notification will be posted into this account.
Environment to use. Used as part of the URL.
A string that identifies the seller in the marketplace. This ID must be created by the marketplace and informed to the seller before the integration is built.
Headers
Type of the content being sent.
Request body
Example request
{
"sellerEmail": "selleremail@email.com",
"sellerName": "Seller Name",
"sellerAccountName": "seller123",
"salesChannel": "1",
"email": "seller@email.com",
"sellerType": 1,
"accountId": "5fb38ace-d95e-45ad-970d-ee97cce9fbcd",
"document": "12345671000",
"hasAcceptedLegalTerms": true,
"address": {
"postalcode": "12345678",
"complement": "Appartment 1234",
"street": "Park Avenue",
"number": "25",
"neighborhood": "Manhattan",
"state": "RJ",
"city": "Rio de Janeiro"
},
"accountable": {
"name": "Jane Smith",
"email": "email@email.com",
"phone": "1234567890"
}
}Response
OK
Changes
- info
the
request property default value5fb38ace-d95e-45ad-970d-ee97cce9fbcdwas removed - info
the
request property default valueRio de Janeirowas removed - info
the
request property default valueAppartment 1234was removed - info
the
request property default value12345671000was removed - info
the
request property default valueemail@email.comwas removed - info
the
request property default valueseller@email.comwas removed - info
the
request property default valuetruewas removed - info
the
request property default valueJane Smithwas removed - info
the
request property default valueVTEX quarterwas removed - info
the
request property default value25was removed - info
the
request property default value1234567890was removed - info
the
request property default value12345678was removed - info
the
request property default value1was removed - info
the
request property default valueseller123was removed - info
the
request property default valueselleremail@email.comwas removed - info
the
request property default valueSeller Namewas removed - info
the
request property default value1was removed - info
the
request property default valueRJwas removed - info
the
request property default valueVTEX streetwas removed
- info
- info
the
request property default value5fb38ace-d95e-45ad-970d-ee97cce9fbcdwas removed - info
the
request property default valueRio de Janeirowas removed - info
the
request property default valueAppartment 1234was removed - info
the
request property default value12345671000was removed - info
the
request property default valueemail@email.comwas removed - info
the
request property default valueseller@email.comwas removed - info
the
request property default valuetruewas removed - info
the
request property default valueJane Smithwas removed - info
the
request property default valueVTEX quarterwas removed - info
the
request property default value25was removed - info
the
request property default value1234567890was removed - info
the
request property default value12345678was removed - info
the
request property default value1was removed - info
the
request property default valueseller123was removed - info
the
request property default valueselleremail@email.comwas removed - info
the
request property default valueSeller Namewas removed - info
the
request property default value1was removed - info
the
request property default valueRJwas removed - info
the
request property default valueVTEX streetwas removed
- info