Purolator Authentication Virtual Sandbox
Securely obtain Bearer tokens for Purolator shipping API integrations.
The Purolator Authentication API provides a secure mechanism to obtain access tokens using Basic Authentication. Developers can exchange client credentials for a Bearer token, which is required to authorize subsequent requests to the Purolator shipping and logistics ecosystem.
Use this hosted sandbox to simulate Purolator Authentication APIs without authentication, API keys, or extra dependencies. Point your code or SDK to the Beeceptor base URL, preferably through an environment variable or feature flag, and switch back to the production API when ready.
This keeps your integration code consistent across local development, QA, demos, and production.
Use cases:
Use this sandbox to validate the Basic Authentication handshake, verify Base64-encoded credential formatting, test token expiration handling, and ensure your application correctly parses the Bearer token response before initiating production shipping requests.
Authentication
POST
{
"grant_type": "password",
"scope": "write"
}{
"access_token": "eyJhbGciOiJSUzM4NCIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE3ODI5MzIzMTgsImV4cCI6MTc4MjkzNTU2MiwibmJmIjoxNzk1OTkyMDYxLCJpc3MiOiJHcmVlbmhvbHQsIENhcnRlciBhbmQgQW5rdW5kaW5nIiwic3ViIjoiNDY2MGM0MmMtNTJmMC00MDE2LTlmYWUtNGViMTIxYTI2OWE4IiwiYXVkIjoiZDk3ZGJkZjAtYzBlNS00ODU5LTg4YTItNmM1YjU1MzBjOWRkIiwianRpIjoiZjRmZTcxZWEtMTlhOC00MWJiLWI2Y2YtZDg5M2M3Y2YzNTJjIn0.g9Y9TfVQeQtXgRLwuMXWXPJXpSxCzFjgralIwwSOcLbXTSutBsyfzKKZRRkGVKMq",
"expires_in": 55770,
"scope": "portal_api",
"token_type": "Bearer"
}{
"error": "invalid_request",
"error_description": "Authorization ID is missing from header"
}{
"errorCauses": [],
"errorCode": "invalid_client",
"errorId": "89dc0aa1-60a2-4dde-a12f-e3e0e2c1d9fe",
"errorLink": "https://incomplete-mixture.biz",
"errorSummary": "Authentication failed"
}General
Missing schema or example in the OpenAPI spec.
Update the definition and recreate the mock server.Service Homepage: developer.purolator.com/
purolatorauthenticationshippinglogisticsoauth