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
- Overview
- Quickstart
- Authentication
- Errors and Troubleshooting
- Claude Skill (AI assistant)
- Framework Integrations (Laravel)
Reading Order
- Overview
- Quickstart
- Authentication
- API Reference (Orders, Events, and more)
- Errors and Troubleshooting
- Claude Skill (AI assistant)
- Framework Integrations (Laravel)