Once you sign up for Mylapay’s Developer Account, you will be able to access the Mylapay Sandbox. This simulation environment allows you to test the APIs by Authenticating Requests and Responses.
The following parameters are essential:
Mylapay APIs are RESTful. A REST Request message consists of four components:
This defines a set of request methods corresponding to the action performed by the resource. There are two basic HTTP methods:
The header comprises various fields and their corresponding values, delivering essential information about the message to the recipient. It also includes authentication details to verify the legitimacy of the message.
Field | Type | Description |
---|---|---|
Host | Required | API endpoint for the source (https://sandbox.mylapay.com). |
Content-Type | Required | application/json |
EntityId | Required | Unique Id will be created by Mylapay. |
The request in JSON format.
To ensure secure communication between your application and our platform, we use robust API authentication mechanisms. Proper authentication is required for accessing all API endpoints to protect data and prevent unauthorized access. Here’s how to authenticate when interacting with our API.
Our API uses header-based authentication with an assigned Entity ID. This unique identifier must be included in the header of every API request to verify the identity of the client.
If the authentication is correct, the API will return a success response. If the authentication is incorrect or missing, the API will return an error response.
Code | Status | Description |
---|---|---|
200 | Success | The request has Succeeded. |
400 | Bad Request | This error indicates that the server cannot process the request due to invalid syntax, incorrect parameters, or malformed data. |
500 | Internal Server Error | The server has encountered an unexpected condition that prevented it from fulfilling the request. |
401 | Unauthorized | The request lacks valid authentication credentials. |
403 | Forbidden | The authenticated user does not have the required permissions to access the resource. |
Make sure your API request includes the correct Entity ID and has appropriate permissions.
We are here to guide you.