Create, query, update, and delete the child accounts of your dealer account. The same ones you manage in SW Portal › Clients (Clientes), from your code.
- 1Get a Bearer Token using your SW username and password. We recommend using an infinite (non-expiring) token. All operations require it in the
Authorizationheader. - 2Create the child account with Create. The response returns its
idUser. - 3Update and Delete require that
userIdin the path. If you didn’t save it, retrieve it with Query.
URLs
Select your active environment. The copy buttons and the code examples below are built with the base URL you choose here.
🔗 Endpoint
Four actions on child accounts. Pick one and its full reference is built below: endpoint, headers, parameters, example, and response.
Creates a child account from your dealer account, with its initial stamps. You can then manage it in SW Portal › Clients (Clientes).
Returns the users linked to your token, paginated 10 per page. With no filters, it returns all your child accounts.
Filters the list by the RFC linked to the user.
Returns a specific user by its GUID. Useful to check its status and balance before updating it.
Combine filters with “&”. In the example: a specific email, only if the account is active.
Updates a child account’s data: name, RFC, notification email, phone, or unlimited stamps.
Changes a child account’s password from your dealer account. No other data is modified.
Activates or deactivates a child account. This is the recommended way to pause an account temporarily.
Permanently deletes a child account you no longer need.
Request Example
Response
In SW® we strive to be the best for You, which is why your opinion is very important. Please help us by rating this article and leaving your comments.