Welcome to the OrderMesh Developer Portal. Our API is organized around REST, featuring predictable resource-oriented URLs and standard HTTP methods. We support cross-origin resource sharing (CORS), allowing you to interact securely with our API from client-side applications.
The OrderMesh API leverages OAuth 2.0 for secure authentication. To interact with protected resources, you must include a Bearer Token in your API request headers.There are two distinct ways to obtain an access token. Choosing the correct method is critical for the stability and security of your integration.
Using your OrderMesh Platform Username and Password is intended strictly for manual testing, initial development, and using the "Try It Out" console in this documentation portal.
Endpoint:POST /user/v1/login
Authentication Flow: Ideal for rapid prototyping and exploring endpoints manually.
⚠️ IMPORTANT: Never use Username/Password for production integrations. These credentials expire and are subject to security rotations, which will cause your production integration to break.
For secure, machine-to-machine communication in a production environment, you must use a Client ID and Client Secret.
Setup: Log in to the OrderMesh Portal, navigate to Merchants → Authentication → Create Client.
Endpoint:POST /user/v1/clients/token
Access Control: The client secret is displayed only once. Store it securely (e.g., in a secret manager). Only production-level personnel should have access to these credentials.
Token expiry behavior differs depending on the authentication method used:
Client Credentials – Client access tokens have a lifespan of 24 hours and do not support a refresh flow. Your integration must automatically reauthenticate using your Client ID and Secret when the token expires.
User Credentials – When your access token expires, use the refresh token to obtain a new one without re-entering credentials.