Approve Age Check
Records that the age check of the sale has been passed, covering the limit the sale requires right now.
With method staff, the credential is the POS unit password of a salesperson, typed as a PIN or scanned from a badge. The salesperson must not be blocked, and when they are assigned a POS Unit Group it must include the sale’s POS unit.
Returns 403 with code age_check_rejected when the credential is not accepted, and 400 for an unsupported method. Returns the sale with its lines and the updated ageCheck.
A sale without restricted lines is returned unchanged, with no approval recorded.
Authentication
Path parameters
Your Entra Tenant ID. More details.
Your Business Central Environment. More details.
Your Business Central Company. More details.
Headers
Used for API versioning. More details.
Request
For staff, the salesperson’s POS unit password. A badge scan sends the same value.
Response
Whether the sale needs an age check and whether it has one. requiredLimit is the highest ageLimit among the sale lines, 0 when nothing is restricted.
approved is true when requiredLimit is 0 or an approval covering at least that limit is recorded on the sale. An approval covers the limit required when it was given, so a line with a higher limit added later needs a new approval, while removing lines never revokes it.
The approval does not survive park and resume.
Total amount of all sale lines including VAT (only present when withLines=true)
Total amount of all payment lines (only present when withLines=true)
