UPS OAuth Authorization Code API Virtual Sandbox

Securely integrate UPS services using OAuth 2.0 Authorization Code and PKCE flows.

The UPS OAuth Authorization Code API enables secure integration of UPS services into business applications. It supports standard Authorization Code and PKCE-enhanced flows, allowing applications to obtain access and refresh tokens without exposing user credentials. This ensures secure, long-term access to protected UPS resources while maintaining operational efficiency through token management.

Use this hosted sandbox to simulate UPS OAuth Authorization Code API 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 endpoint to validate OAuth 2.0 handshake flows, including authorization code exchange, PKCE code verifier/challenge verification, and token refresh logic. Developers can simulate successful authentication responses, handle token expiration scenarios, and test the integration of client-side redirect URIs before connecting to the production UPS identity provider.

UPS OAuth Authorization Code API virtual sandbox is up and running!

Use this sandbox URL as the API base in your code to simulate UPS OAuth Authorization Code API responses instantly.

https://ups-oauth-auth-code.mock.beeceptor.com



OAuth Auth Code(3 operations)

Query Parameter NameExample
client_id*officia commodo in
redirect_uri*proident voluptate
response_type*labore Lorem reprehenderit
stateexercitation sit dolore occaecat in
scopedolore esse
code_challengeeiusmod aute non in
Missing schema or example in the OpenAPI spec.
Update the definition and recreate the mock server.
{
  "response": {
    "errors": [
      {
        "code": "500",
        "message": "Server error"
      },
      {
        "code": "500",
        "message": "Token expired"
      },
      {
        "code": "403",
        "message": "Invalid client ID"
      }
    ]
  }
}
{
  "response": {
    "errors": [
      {
        "code": "401",
        "message": "Unauthorized request"
      },
      {
        "code": "403",
        "message": "Invalid client ID"
      },
      {
        "code": "403",
        "message": "Server error"
      }
    ]
  }
}
{
  "response": {
    "errors": [
      {
        "code": "500",
        "message": "Invalid client ID"
      },
      {
        "code": "400",
        "message": "Server error"
      },
      {
        "code": "401",
        "message": "Unauthorized request"
      },
      {
        "code": "403",
        "message": "Unauthorized request"
      },
      {
        "code": "403",
        "message": "Token expired"
      }
    ]
  }
}
{
  "response": {
    "errors": [
      {
        "code": "500",
        "message": "Unauthorized request"
      },
      {
        "code": "400",
        "message": "Token expired"
      },
      {
        "code": "401",
        "message": "Invalid client ID"
      }
    ]
  }
}
{
  "client_id": "3b0aaa7b-23ce-4f7c-a010-209b3e799d85",
  "code": "tEXmxltoZgT6lBSe31Yp",
  "code_verifier": "9H6go2BZ8MkEEIUUkXUVaaUzBwFmiAVaumYM1HLOATw2oGKG",
  "grant_type": "authorization_code",
  "redirect_uri": "https://rigid-hepatitis.net/"
}
{
  "access_token": "oG7vpDXX24JEdP2BqBW3MuoxDJIJXe2mmlWvZNMXyRBQaJPQYshJh7VaZJEOMhfF",
  "client_id": "31553ed0-909f-4f39-bfaa-d2010ae2c787",
  "expires_in": "4",
  "issued_at": "1773500636815",
  "refresh_count": "0",
  "refresh_token": "czYNMrLITJTmsMAcQePQAfJhwkyfMeVy2oQEnuDUNU2rtt1RlPaiuOiUtO3jzvfS",
  "refresh_token_expires_in": "5",
  "refresh_token_issued_at": "1780986668222",
  "refresh_token_status": "pending",
  "scope": "shipping",
  "status": "approved",
  "token_type": "Bearer"
}
{
  "response": {
    "errors": [
      {
        "code": "403",
        "message": "Server error"
      },
      {
        "code": "401",
        "message": "Server error"
      },
      {
        "code": "403",
        "message": "Unauthorized request"
      }
    ]
  }
}
{
  "response": {
    "errors": [
      {
        "code": "400",
        "message": "Server error"
      },
      {
        "code": "500",
        "message": "Invalid client ID"
      },
      {
        "code": "400",
        "message": "Invalid client ID"
      },
      {
        "code": "500",
        "message": "Unauthorized request"
      },
      {
        "code": "500",
        "message": "Token expired"
      }
    ]
  }
}
{
  "response": {
    "errors": [
      {
        "code": "500",
        "message": "Server error"
      },
      {
        "code": "400",
        "message": "Invalid client ID"
      },
      {
        "code": "400",
        "message": "Server error"
      },
      {
        "code": "400",
        "message": "Unauthorized request"
      },
      {
        "code": "400",
        "message": "Server error"
      }
    ]
  }
}
{
  "response": {
    "errors": [
      {
        "code": "400",
        "message": "Server error"
      },
      {
        "code": "500",
        "message": "Unauthorized request"
      }
    ]
  }
}
{
  "grant_type": "authorization_code",
  "refresh_token": "qI8fwJyQt0Ful9MNtREG5vbjHd4TwszfQzUv1cl18yR3wyfPbsR93NYRh3IIk3ss"
}
{
  "access_token": "ZjU3LQKqRYRKcafIxhCvLRzrThSGCzvwQtcKOklTxkRQdgIDVlxsVPpgBBz0ALv1",
  "client_id": "1fd99e59-78cf-4d71-8e5b-caa6320f3190",
  "expires_in": "1",
  "issued_at": "1773054561227",
  "refresh_count": "6",
  "refresh_token": "hdIRsCTDTt1VtTpPKNDAJf3WsoBATC6Y6kNZM0ljcU0p4hUbApDpN6KnPG4uEPqw",
  "refresh_token_expires_in": "6",
  "refresh_token_issued_at": "1774642246398",
  "refresh_token_status": "approved",
  "scope": "read",
  "status": "approved",
  "token_type": "Bearer"
}
{
  "response": {
    "errors": [
      {
        "code": "403",
        "message": "Server error"
      },
      {
        "code": "400",
        "message": "Server error"
      }
    ]
  }
}
{
  "response": {
    "errors": [
      {
        "code": "400",
        "message": "Token expired"
      },
      {
        "code": "401",
        "message": "Unauthorized request"
      },
      {
        "code": "401",
        "message": "Token expired"
      },
      {
        "code": "500",
        "message": "Server error"
      }
    ]
  }
}
{
  "response": {
    "errors": [
      {
        "code": "403",
        "message": "Unauthorized request"
      }
    ]
  }
}
{
  "response": {
    "errors": [
      {
        "code": "500",
        "message": "Unauthorized request"
      },
      {
        "code": "403",
        "message": "Unauthorized request"
      }
    ]
  }
}
upsoauthauthenticationshippingsecurity