Checkmate Health API

The Health API from Checkmate — 1 operation(s) for health.

OpenAPI Specification

checkmate-health-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  version: 1.0.0
  title: OpenStock Health API
  description: 'API provided by Checkmate to partners to provide access to merchant codes and shopper purchase history. All endpoints are POST with batched request/response shapes. Authenticate with `Authorization: Bearer <api_key>`. Ask partner representative for the API key.'
servers:
- url: https://api.openstock.sh
  description: Current environment
tags:
- name: Health
paths:
  /health:
    get:
      tags:
      - Health
      summary: Health check
      description: Returns the current health status of the Openstock API.
      responses:
        '200':
          description: Service is healthy
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HealthResponse'
components:
  schemas:
    HealthResponse:
      type: object
      properties:
        ok:
          type: boolean
          example: true
          description: Whether the service is healthy
        environment:
          type: string
          example: local
          description: Deployment environment name
      required:
      - ok
      - environment