Check Credit API
Last updated
Last updated
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 |
---|---|---|---|
Request Body
The request body should contain the following parameters in JSON format:
Name | Type | Required | Description |
---|---|---|---|
Example JSON Body:
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:
Field | Type | Description |
---|---|---|
Content-Type
String
Yes
Specifies the format of the request body. Must be set to application/json
.
String
Yes
The email address used to identify the user’s credit information.
String
The email address associated with the credit information.
creditBalance
Number
The current credit balance available to the user, with decimal precision.