Close
logo

Creating a Reseller Customer

Git RepositoryEdit on Github
Last update: 6 months ago by Francesco de LorenziReading time: 2 min

Jetti makes it possible to create Reseller Customers from the UI as well as via the API. Alternatively to creating an order directly, it is also possible to create users

The following cURL request creates a customer in the system:

curl --request POST \
--url https://api.jetti.io/api/customers.json \
--header 'Authorization: Bearer {{token}}' \
--header 'Content-Type: application/json' \
--data '{
"email": "email@domain.com"
"firstName": "first"
"lastName": "last"
"phone": "123123123"
"status": "active"
}'

After obtaining the customer id, it is possible to create one or more customer addresses:

curl --request POST \
--url https://api.jetti.io/api/customer-addresses.json \
--header 'Authorization: Bearer {{token}}' \
--header 'Content-Type: application/json' \
--data '{
addressLineOne: "Address"
addressLineTwo: "Address"
city: "City"
country: "IT"
customerId: 123123
name: "Company"
state: "BA"
zip: "10011"
}'

It is important to make sure the customerId has the respective value.

๐Ÿ”ƒ Reseller โ€” Previous
Creating a Reseller Account
Next โ€” ๐Ÿ”ƒ Returns
Creating Returns from a Sale