---
title: OAuth2.0 Testing API 
date: 2025-12-10T06:19:12Z
modified: 2026-06-15T07:18:20Z
permalink: "https://ezintegrations.ai/docs/how-to-use-oauth2-0-pagination/"
type: docs
status: publish
excerpt: ""
wpid: 3770
doc_category:
  - AI Workflow Testing APIs
author: Automation Hub
---

The OAuth 2.0 Testing API enables users to validate data retrieval using
**standard OAuth 2.0 authentication** with **refresh token support**.
This API demonstrates how OAuth 2.0 secured endpoints can be integrated with eZintegrations.

This API is intended for **testing and validation purposes** when configuring
OAuth 2.0 based source systems in eZintegrations.

---

## Overview

The OAuth 2.0 Testing API is a sample endpoint provided by eZintegrations to demonstrate
OAuth 2.0 authentication flows, including access token generation and refresh token handling.

### When to Use This API

This API is typically used when configuring OAuth 2.0 based integrations in eZintegrations to:

- Validate OAuth 2.0 authentication and access token generation
- Test refresh token handling during access token expiration
- Verify secure access to OAuth 2.0 protected endpoints
- Troubleshoot authentication or token-related issues before production deployment

---

## API Details

### Method

GET

### Endpoint

{{base_url}}/partner/orderdetails-OAuth2.0
This endpoint returns sample order details protected by OAuth 2.0 authentication.

---

## Authentication

### Authentication Type

OAuth 2.0

The OAuth 2.0 Testing API uses OAuth 2.0 authentication. Access tokens and refresh tokens
are generated using the OAuth 2.0 token endpoint and are required for all API requests.

### **Refresh Token Endpoint Method:**

POST

### Token Endpoint

{{base_url}}/partner/api/oauth2/token
---

## OAuth 2.0 Token Configuration

### Request Headers

{
  "Content-Type": "application/x-www-form-urlencoded"
}
### Request Body

{
  "grant_type": "password",
  "client_id": "{{client_id}}",
  "client_secret": "{{client_secret}}",
  "username": "training@bizdata360.com",
  "password": "B!zdata@360"
}
This configuration is used by eZintegrations to generate access tokens and refresh tokens.
Token refresh is handled automatically by the platform when access tokens expire.

---

## Numeric Parameters



| Parameter | Value | Description |
| --- | --- | --- |
| Minimum Number | Minimum records per request |  |
| Maximum Number | 1000 | Maximum records per request |

---

## How to Retrieve Data Using OAuth 2.0 in eZintegrations

1. Retrieve the **Base URL** from the **My Profile** section in your eZintegrations account.
2. Configure the **OAuth 2.0 Testing API** as a **source system** within eZintegrations.
3. Provide the required OAuth 2.0 credentials, including client ID and client secret.
4. Configure the OAuth 2.0 token endpoint and grant details during source setup.
5. eZintegrations automatically generates, refreshes, and manages OAuth 2.0 access tokens.
6. Execute the integration to retrieve data securely, with authentication handled internally by eZintegrations.

This approach allows users to retrieve data without manually generating or refreshing OAuth tokens.

---

## Frequently Asked Questions

 ### 1. What is the purpose of the OAuth 2.0 Testing API?

 The API is used to test OAuth 2.0 authentication and refresh token handling when configuring OAuth 2.0 based integrations in eZintegrations.

 

 

  ### 2. Does this API support refresh tokens?

 Yes. The API demonstrates OAuth 2.0 authentication with refresh token support.

 

 

  ### 3. Are pagination parameters required for this API?

 No. Pagination is not applicable for this API.

 

 

  ### 4. Where can I obtain the Base URL and OAuth credentials?

 They can be generated from the My Profile section in your eZintegrations account.

 

 

 ---

## Notes

- OAuth 2.0 authentication is mandatory for all requests
- No pagination is implemented for this endpoint
- Authentication and token refresh are handled internally by eZintegrations
- This API is intended for testing and validation purposes only

## Topics

**Docs Categories:** [AI Workflow Testing APIs](https://ezintegrations.ai/wp-content/uploads/wp-mfa-exports/taxonomy/doc_category/ai-workflow-testing-apis.md)