Check Credit API

This endpoint allows users to check their credit information by providing a registered email address. This service returns the user's credit details associated with the provided email.

POST https://ai.iapp.co.th/check-credit


Headers

Name
Type
Required
Description

Content-Type

String

Yes

Specifies the format of the request body. Must be set to application/json.

Request Body

The request body should contain the following parameters in JSON format:

Name
Type
Required
Description

email

String

Yes

The email address used to identify the user’s credit information.

Example JSON Body:

{
  "email": "user@example.com"
}

Response

The response will contain the user’s credit balance if the email is valid and associated with an account. If the email is not found, an error message will be returned.

Successful Response

On success, the API returns a JSON object with the user's credit balance.

Example Response:

{
  "email": "user@example.com",
  "creditBalance": 123456.78
}
Field
Type
Description

email

String

The email address associated with the credit information.

creditBalance

Number

The current credit balance available to the user, with decimal precision.

Last updated