Skip to main content

API Client Documentation

Welcome to The Marketer API Client docs.

This documentation is for teams integrating the PHP package themarketer/api-client.

Official theMarketer API Reference — HTTP endpoints, parameters, and flows for the same platform APIs this client wraps: developers.themarketer.com/reference (the developer portal home redirects here). Use it alongside these docs for staging setup, endpoint details, and topics such as testing on a staging environment.

Most integrations start with:

  • authenticating the client
  • initializing the modules you use (orders(), events(), etc.)
  • handling validation and API errors

The Client is constructed with an associative array (customerId, restKey, trackingKey, plus optional URLs and maxRetryAttempts). See Authentication.

Common first call

$ok = $client->checkApiCredentials();

if (!$ok) {
// handle invalid credentials
}

Start Here

Reading Order

  1. Overview
  2. Quickstart
  3. Authentication
  4. API Reference (Orders, Events, and more)
  5. Errors and Troubleshooting
  6. Claude Skill (AI assistant)
  7. Framework Integrations (Laravel)