Close
logo

Creating a Reseller Account

Git RepositoryEdit on Github
Last update: 2 years ago by luigi mangaReading time: 2 min

Onport offers a comprehensive Reseller Platform, including a dedicated Reseller Portal and a respective API.

After the Reseller functionality is activated in the Onport account, it is possible to create Reseller Accounts programmatically.

This can be carried out with the following cURL request:

curl --request POST \
--url https://api.jetti.io/api/resellers.json \
--header 'Authorization: Bearer {{token}}' \
--header 'Content-Type: application/json' \
--data '{
"country": "IT",
"name": "Reseller Co",
"firstName": "John",
"lastName": "Doe",
"addressLineOne": "Addr 1",
"city": "Rome",
"zip": "10001",
"accountType": "reseller",
"customersScope": "global"
}'

After doing so, the Reseller id will be returned from the response.

The next step is to create one or more Reseller Users, by making the following request:

curl --request POST \
--url https://api.jetti.io/api/users.json \
--header 'Authorization: Bearer {{token}}' \
--header 'Content-Type: application/json' \
--data '{
"bypass": false,
"resellerId": id,
"role": "reseller",
"shippingNotifications": true,
"email": "username@domain.com"
}'

The id will need to be replaced, as well as the {{token}}.

๐Ÿ”ƒ Reseller โ€” Previous
Creating a Reseller Order
Next โ€” ๐Ÿ”ƒ Reseller
Creating a Reseller Customer