Validate Amount
Validate Amount.
Request
Request header:
POST https://api.ipaymy.com/v2/validate/amount
Host: api.ipaymy.com
Accept: application/json
Request body:
{
"currency_id": 0,
"paid_currency_id": 0,
"amount": 0,
"field_name": ""
}
currency_id:
- Type: number
- Validate: required
paid_currency_id:
- Type: number
- Validate: required
amount:
- Type: number
- Validate: required
field_name:
- Type: string
Response
Response body:
{
"data": "",
"error": 0
}
Response codes:
- 200: Good stuff, and the response body should be easy to parse.
- 422: Typically malformed JSON, such as an integer in place of the required alphanumeric string, or a missing key. Check the response body for further details.