API reference · Seller Module
Manage Portfolio in Batch
https://api.sandbox.cws.digital/sellerModule/manageBulkWallet/{attendantInfo}Description
Builds a seller's portfolio in batch: links, unlinks or replaces the customer list in a single call, instead of one request per customer.
Do not send attendantId or storeId: both are resolved by the backend, from the path and from your token.
Parameters
Path parameters
| Field | Type | Required | Description | Value |
|---|---|---|---|---|
| attendantInfo | string | Yes | Identifies the seller in three ways: the seller UUID, the CPF/CNPJ of their account holder, or the login e-mail. The route recognizes which one you sent. |
Request body
application/jsonRequired| Field | Type | Required | Description | Value |
|---|---|---|---|---|
| action | string | Yes |
Allowed values: BINDUNBINDREPLACE | |
| users | array of object | Yes | Customers of the operation. Cannot be an empty list. Fields in users[] |
users[]| Field | Type | Required | Description | Value |
|---|---|---|---|---|
| username | string | Conditional | Customer's login e-mail. Required if | |
| document | string | Conditional | Customer's CPF or CNPJ. Required if |
Business rules
Processing is asynchronous
The 200 response confirms that CWS received the list, not that the links were created.
Processing happens in the background and there is no route to check the result — check the portfolio afterwards with GET /sellerModule/listCustomers/:id.
REPLACE removes what is not in the list
With REPLACE, the portfolio becomes exactly the list sent: whoever was linked and does not appear in users is unlinked.
Responses
- 401
Missing, malformed or expired token.