# Introduction

&#x31;**. Introduction**

1.1 Purpose:

This documentation provides a comprehensive guide to the merchant integration of MonayXPay Payment Gateway, helping merchants understand its features and functionalities.

1.2 Scope:

The documentation covers all aspects of the payment gateway integration, including authentication, transaction initiation, and completion through various channels.

2\. **Getting Started**

2.1 System Requirements:

To ensure optimal performance, use the latest version of popular browsers such as Chrome, Firefox, Safari, or Edge. A stable internet connection is required.

## Payment Service Login

<mark style="color:green;">`POST`</mark> `/api/account`

Login to the Payment Service

**Body**

```json
{
  "clientId": "tes0000602",
  "clientSecret": "e3837a31-9fc1-4afe-b356-6939131071ee"
}
```

**Response**

{% tabs %}
{% tab title="200" %}

```json
{
  "access_token": "eyJhbGciOiJSUzI1NiIsImtpZCI6IkU4NzcxNTMxMzU1MTRGMjhCN0M5NDE1NjY1N0REOEFCRURRTYUISUzI1NiIsInR5cCI6ImF0K2p3dCIsIng1dCI6IjZIY1ZNVFZSVHlpM3lVRldaWDNZcS0zSUtENCJ9.eyJuYmYiOjE3MDg1MjM5NDUsImV4cCI6MTcwODUyNzU0NSwiaXNzIjoiaHR0cDovLzE3OC42Mi4xMTYuMjMzIiwiYXVkIjpbInBheW1lbnRhcGkiLCJodHRwOi8vMTc4LjYyLjExNi4yMzMvcmVzb3VyY2VzIl0sImNsaWVudF9pZCI6Ik5haTAwMDAzMTkiLCJqdGkiOiI2NDA1NDVGNjgxMzdDNEQ0ODlGRTVBQUMxMTkxNzAyNCIsImlhdCI6MTcwODUyMzk0NSwic2NvcGUiOlsicGF5bWVudGFwaSJdfQ.LSnKD6h5HNnbDsv01Dn8ZhHqTAXmu24CYwF8C_0mdewKmioyXbKDZFrfSUuc4osoBucWvXBCfXjUJclHo5jhGPRpoeb18W-ptbUPS4A2fKoZilqsqI6i-DNSSE1D8dN0Lf5ZT9TFZfW2tTbdzXuoGeS6vMidM6bQ65HkIABRp47iBNzhnr7iztEWHRgck2_57uH9WQ3Jl5D9s4WuNSp-H_fZHN0j-mJbQBLXIsSsreotWrNQWy26SkXV57U8mj3-VvUbX4sT11bZTMgF69fre7vxuR3EsbcLqEdYZI1lo9ZJoFhZkvlZ_nxq3UdmCgTZ4ZQxBL0KCSfoBlfBy4sXew",
  "expires_in": 3600
}
```

{% endtab %}

{% tab title="400" %}

```json
{
  "error": "Invalid request"
}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs-payment-api.codebytesltd.com/monayxpay-payment-gateway-documentation-v1/introduction.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
