> For the complete documentation index, see [llms.txt](https://docs.hos.accessacloud.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hos.accessacloud.com/atreemo-api/api-reference/atreemo-api-reference/visit.md).

# Visit

Api Methods for Visit

## PostVisit

> Validates the supplied location/customer context and records visit/spend data through the visit helper. Depending on the instance's loyalty settings and configured real-time actions, it can also process earning and invoke triggers. Check ResponseStatus and Errors; there is no general idempotency or notification-free guarantee for replaying a visit submission.

```json
{"openapi":"3.0.3","info":{"title":"Atreemo API","version":"0.1.0"},"tags":[{"name":"Visit","description":"Api Methods for Visit"}],"servers":[{"url":"https://apim-hospitality-dev-uksouth.azure-api.net/atreemo-api","description":"Local DEV APIM import draft only; not a deployed endpoint announcement."}],"security":[{"AtreemoBearer":[]}],"components":{"securitySchemes":{"AtreemoBearer":{"type":"http","scheme":"bearer","description":"Atreemo access token obtained by the caller from the Atreemo instance `POST /token` endpoint (OAuth2 password grant) and sent as `Authorization: Bearer <token>`. See the Authorisation guide."}},"schemas":{"VisitPayload":{"type":"object","properties":{"ActeolSiteID":{"type":"integer","format":"int32","description":"the ID of the site visited (Acteol id)"},"BookingDate":{"type":"string","format":"date-time","description":"the date and time of the booking"},"CustomerIDDetails":{"allOf":[{"$ref":"#/components/schemas/CustomerIDDetails"}],"description":"Ids to find the customer visited."},"CustomField1":{"type":"string","description":"Custom field"},"CustomField2":{"type":"string","description":"Custom field"},"CustomField3":{"type":"string","description":"Custom field"},"CustomField4":{"type":"string","description":"Custom field"},"EstimatedSpendAmount":{"type":"number","format":"double","description":"The estimated monetary amount linked to the visit"},"Source":{"type":"string","description":"The source of the visit"},"SpendAmount":{"type":"number","format":"double","description":"The monetary amount linked to the visit"},"VisitDateTime":{"type":"string","format":"date-time","description":"the start date and time of the visit"},"VisitEndDateTime":{"type":"string","format":"date-time","description":"the end date and time of the visit"}},"required":["ActeolSiteID","CustomerIDDetails","Source","VisitDateTime"]},"CustomerIDDetails":{"type":"object","properties":{"CardToken":{"type":"string","description":"The Card token used to identify customers returning with the same token sent to us in xxxxxxxxxxxxxx (Info to find CtcID if it's empty)"},"CtcID":{"type":"integer","format":"int32","description":"Ctcid of the Customer"},"ExternalIdentifier":{"allOf":[{"$ref":"#/components/schemas/CustomerExtenalIdentifier"}],"description":"The combination of the external id and External Source (Info to find CtcID if it's empty)"},"MemberNumber":{"type":"string","description":"the customer member number (Info to find CtcID if it's empty)"}}},"CustomerExtenalIdentifier":{"type":"object","properties":{"ExternalID":{"type":"string","description":"External unique ID"},"ExternalSource":{"type":"string","description":"External Source"}}},"ApiCallResponse":{"type":"object","properties":{"Errors":{"type":"array","items":{"$ref":"#/components/schemas/APICallError"},"description":"Collection of errors if exist"},"ResponseStatus":{"type":"boolean","description":"True: if the action was succsessfully treated False: if there is an error"}}},"APICallError":{"type":"object","properties":{"ErrorCode":{"type":"integer","format":"int32","description":"The error code"},"ErrorDescription":{"type":"string","description":"The error description"}}}}},"paths":{"/api/Visit/PostVisit":{"post":{"operationId":"VisitPostVisit","summary":"PostVisit","tags":["Visit"],"description":"Validates the supplied location/customer context and records visit/spend data through the visit helper. Depending on the instance's loyalty settings and configured real-time actions, it can also process earning and invoke triggers. Check ResponseStatus and Errors; there is no general idempotency or notification-free guarantee for replaying a visit submission.","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VisitPayload"}}}},"responses":{"200":{"description":"OK (sample status in the public collection).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiCallResponse"}}}}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.hos.accessacloud.com/atreemo-api/api-reference/atreemo-api-reference/visit.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
