Create a retailer with its users
POST
/v1/retailersFactory API keyBase URL api.skuflo.ioThe only way a retailer can exist.
Try it nowBody parameters#
| Name | Type | Description |
|---|---|---|
namerequired | string | · |
coderequired | string | · |
emailrequired | string (email) | · |
delivery_daysoptional | string | · |
can_orderoptional | boolean | · |
show_pricesoptional | boolean | · |
usersrequired | object[] | · |
namerequired | string | · |
emailrequired | string (email) | · |
rolerequired | string | · One of "owner", "buyer", "viewer", "accounts", "integrations" |
Responses#
| Status | Meaning |
|---|---|
| 200 | Success. An example body is in the column on the right. |
Other errors#
| Status | Meaning |
|---|---|
| 401 | No key, or the key is not recognised. |
| 402 | billing_required. Reading always works, but this is a write and stops once a trial ends or a plan is cancelled. |
| 403 | The key is valid but its role cannot do this. |
| 422 | The body failed validation. The response lists every problem at once. |
| 429 | More than 600 requests a minute. Wait retry-after seconds. |