API Documentation

Welcome to the GMK API documentation.

POST Stock Query by SKU

Query stock levels for specific products using their SKU numbers. Supports both single and multiple SKU queries.

Key Features:
  • Single or multiple SKU lookup
  • Real-time stock levels
  • Multiple response formats (JSON, XML, CSV, Text)
  • Includes product descriptions and status

Endpoint: /stock-query-by-sku/ View Documentation
POST Stock Query by Category

Retrieve stock information for all products within a specific category.

Key Features:
  • Category-based product lookup
  • Bulk stock information
  • Multiple response formats (JSON, XML, CSV, Text)

Endpoint: /stock-query-by-cat/ View Documentation
POST Stock Query by Brand

Retrieve stock information for all products within a specific category.

Key Features:
  • Brand-based product lookup
  • Bulk stock information
  • Multiple response formats (JSON, XML, CSV, Text)

Endpoint: /stock-query-by-brand/ View Documentation
GET COMING SOON Dealer Lookup

Retrieve live dealer information

Key Features:
  • Retrieve dealer name, address and other contact details
  • Retrieve dealer map coordinates
  • Retrieve dealer opening times where available
  • Multiple response formats (JSON, XML, CSV, Text)

Endpoint: /dealer-lookup/
Getting Started

To use our APIs, you'll need an API key. You can find your API key in your GMK Online account settings. If you do not have one you will need to contact the GMK sales office to set one up.

Authentication

All APIs use Bearer token authentication. Include your API key in the Authorization header:

Authorization: Bearer your-api-key-here
Response Formats

All our APIs support the following response formats:

  • JSON - Default format, best for most applications
  • XML - Available for legacy system compatibility
  • CSV - Useful for spreadsheet imports
  • Text - Simple plain text response
Code examples

Code examples are provided as a guide only and may not be up-to-date or accurate. They are not tested and GMK takes no responsibility for any issues that may arise from their use. Please ensure you thoroughly test any code examples before using them in a production environment.