ticketing > Tickets

Validate Departure

Changed on

Validates a ticket for departure from an admission, marking the ticket as departed. Used when tracking both entry and exit of customers, this endpoint helps manage capacities and ensures that the ticket is correctly processed upon leaving. Similar to arrival validation, it can include admissionCode and scannerStation.

post/{tenant}/{environment}/{company}/ticket/{ticketId}/validateDeparture

Request

  • Base URL
    https://api.npretail.app
  • Auth
    API key in header x-np-api-key

Path parameters

tenantstring required

Your Entra Tenant ID. More details.

environmentstring required

Your Business Central Environment. More details.

companystring required

Your Business Central Company. More details.

ticketIdstring uuid required

The unique identifier of a ticket

Headers

x-api-versionstring date

Used for API versioning. More details.

Request body

admissionCodestring

A unique code that identifies a specific admission.

scannerStationstring

Response

Response with status 200

ticketIdstring uuid required

The unique identifier of a ticket

ticketNumberstring required

The unique identifier of a ticket

departedboolean required

Indicates whether the ticket has been registered as departed from the admission

codestring

A code that identifies the reason of the action result

messagestring

A message that describes the result of the action

Changes

    • breaking

      the request's body type changed from no type to object

    • breaking

      the response's body type changed from no type to object for status

    • warning

      deleted the header request parameter x-np-api-key

    • info

      the endpoint scheme security NPApiKeyAuthScheme was added to the API

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      for the path request parameter ticketId, the type was generalized from no type to string, and format from no format to uuid

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      api operation id validate-departure removed and replaced with ticketing_serviceTicket_validateDeparture