Create loyalty wallet
POST/api/v2/loyalty-wallets
Creates a new loyalty wallet. Business logic runs in the legacy WAR. code is optional: when omitted the WAR assigns the next sequential company-scoped code (same rule as POST /loyalty-wallets/new). Optional members links customers on creation (null leaves empty; [] clears; list replaces). counterpartyAccountId sets the owner when members is omitted. Optional pointsBalance seeds an initial manual movement.
Request
Responses
- 201
- 400
- 401
- 403
- 500
Loyalty wallet created
Validation error ÔÇö the request body or a query parameter failed constraint validation. The response payload includes a errors array with field-level details.
Missing or invalid JWT (Bearer token).
Authenticated user is missing the CREAR_CARTERAPUNTOS permission
Unexpected server error. Includes legacy WAR failures that are not classified as 502 / 503 / 504.