Skip to main content

Normalize Margin.ownerId to always be a User id (maintenance)

POST 

/api/v1/margin/normalize

One-time maintenance operation: for each Margin whose ownerId currently points to a Branch, Client or Commercial id instead of a User id, resolves and corrects it. Processes one batch at a time — call again with the returned nextOffset until it comes back null.

Request​

Responses​

Batch processed successfully