On sandbox environment, you can create the account by yourself. To do that, you should call the endpoint partners / create, in our collection. Below we have an CURL example:
CURL:
curl --location 'https://partners-sandbox-api.olist.com/v1/partners/' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"name": "Fake name",
"client_id": "fake_name",
"password": "123456",
"redirect_uris": [
"http://localhost:8001/event"
],
"notification_webhook": "http://localhost:8001/event"
}'
Response:
{
"name": "Fake name",
"client_id": "fake_name",
"email": "fake_name@partners-sandbox-api.olist.com",
"redirect_uris": [
"http://localhost:8001/event"
],
"notification_webhook": "http://localhost:8001/event",
"client_secret": "ABC123def456"
}
With you account created, save your client_id, client_secret, email and password in a safeplace.
In sandbox, the email and password are used to simulate the seller authentication. When you create a new account, we create a seller account associated to the partner account. In other words, at the sandbox environment, each partner have only one seller.
What's Next
OAuth2 and Token