CheckInAction¶
A CheckInAction records that someone (agent) came in: a member at the gym with their
ProgramMembership, a ticket at the gate, a student at a class with their
Reservation (object). A ticket admits once: a second completed check-in of the same Reservation is
refused with 409 TICKET_ALREADY_USED, also when both arrive at the same
moment. A refused entry is a check-in with actionStatus FailedActionStatus and the reason in error. Check-ins are
records: they can't be changed, only deleted, which frees the ticket. A Reservation and a ProgramMembership list theirs
in checkIns (GraphQL). See Check-ins.
Modeled on schema.org/CheckInAction · JSON Schema · ABAC object type CheckInAction
Example¶
Create one with POST /checkinactions:
{
"agent": {
"at_id": "https://apis.objectsgrid.com/persons/7c1e2d3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f"
},
"object": {
"at_id": "https://apis.objectsgrid.com/reservations/1f2e3d4c-5b6a-4978-8a9b-0c1d2e3f4a5b"
},
"location": {
"at_id": "https://apis.objectsgrid.com/places/3b9c1d2e-4f5a-4b6c-8d7e-9f0a1b2c3d4e"
}
}
Fields¶
Required: object.
| Field | Type | Required | Description |
|---|---|---|---|
at_context |
https://schema.org |
JSON-LD @context, always https://schema.org. |
|
at_type |
CheckInAction |
JSON-LD @type, the object's type name. |
|
at_id |
URL | The object's ObjectsGrid URL, https://apis.objectsgrid.com/<path>/<id>, its JSON-LD @id: what References to it hold. Assigned by ObjectsGrid. |
|
id |
string | The object's id. Assigned by ObjectsGrid when the object is created. | |
identifier |
string | The object's id, as Schema.org identifier. Assigned by ObjectsGrid. |
|
url |
URL | The object's own URL, https://apis.objectsgrid.com/<path>/<id>. Assigned by ObjectsGrid. |
|
agent |
Reference to Person or Organization | Who came in: the URL of a Person, stored as |
|
object |
Reference to ProgramMembership or Reservation | Yes | What admitted them: a ProgramMembership, or a Reservation (an event ticket, a class, a table) |
location |
Reference to Place | Where: the Place | |
instrument |
Reference to EmployeeRole | The staff member who checked them in | |
startTime |
date-time | When; the time it was created when not given | |
actionStatus |
ActionStatusType | CompletedActionStatus (the default) when they were let in, FailedActionStatus when refused | |
error |
string | Why entry was refused, e.g. 'Membership expired' | |
additionalProperty |
list of PropertyValue | Other facts, e.g. name gate, value North | |
tags |
list of Tag | Tags your ABAC policy decides on. Created empty when not sent, kept by a PUT that leaves them out, cleared by null or []. |
|
meta |
ObjectMeta | Read-only metadata: version, type, creation and last update. |
REST API¶
Base URL https://apis.objectsgrid.com. Every request sends the X-ObjectsGrid-AccessPoint and Authorization: Bearer <access token> headers; see the REST API guide.
| Operation | Request |
|---|---|
| Create | POST /checkinactions |
| List and search | GET /checkinactions |
| Create up to 100 at once | POST /checkinactions/batch |
| Retrieve | GET /checkinactions/{id} |
| Retrieve as a JSON-LD document for your pages | GET /checkinactions/{id} with Accept: application/ld+json; see JSON-LD for your pages |
| Delete | DELETE /checkinactions/{id} |
The OpenAPI contract, with every parameter and response: CheckInActions (JSON).
GraphQL¶
Endpoint POST https://apis.objectsgrid.com/graphql; see the GraphQL guide.
| Operation | Field |
|---|---|
| Query | checkInAction(id: ID!, version: String): CheckInAction |
| Query | checkInActions(where: CheckInActionWhereInput, orderBy: [CheckInActionOrderByInput!], first: Int, after: String): CheckInActionConnection! |
| Query | checkInActionsGroupBy(by: [CheckInActionGroupByField!]!, where: CheckInActionWhereInput, having: CheckInActionHavingInput, orderBy: [CheckInActionGroupByOrderByInput!], first: Int, after: String): CheckInActionGroupByConnection! |
| Mutation | createCheckInAction(input: CreateCheckInActionInput!): CheckInAction! |
| Mutation | deleteCheckInAction(id: ID!, expectedVersion: String): Boolean! |
Webhook events¶
Subscribe to these events in your webhook configuration to be called when a CheckInAction changes:
CheckInActionCreated, CheckInActionUpdated, CheckInActionPatched, CheckInActionDeleted.