Check a sale rate against tolerance
Any signed in user. Guards an offline sale that arrives with a locally cached rate. A deviation beyond tolerance_percent is refused with 409, so the till flags the sale for review.
POST
/api/v1/currency/rates/checkAuthorization
AuthorizationBearer token (JWT) · headerrequiredJWT from POST /api/v1/auth/login sent as Authorization Bearer.
Request body
requiredapplication/jsonsale_ratenumberrequiredserver_ratenumberrequiredtolerance_percentnumberResponses
200
The rate is within tolerance
okbooleanrequired400
The sale rate is not a positive number
detailstringrequired401
Not authenticated
detailstringrequired409
The rate moved beyond tolerance, so the sale has to be marked for review
detailstringrequired