Skip to content

Verify Truemoney Wallet Slip By Image

Send a image for verification

  • URL: /verify/truewallet
  • Method: POST
  • Headers:
    • Content-Type: multipart/form-data
    • Authorization: Bearer YOUR_ACCESS_TOKEN
  • Form Data:
    • file (file, required): Slip or QR Code image from bank

Request Example

bash
curl --location 'https://developer.easyslip.com/api/v1/verify/truewallet' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
--form 'file=@"slip.jpg"

Response Type

typescript
type Data = {
    status: number
    data: {
        transactionId: string
        date: string
        amount: number
        sender: {
            name: string
        }
        receiver: {
            name: string
            phone: string
        }
    }
}

Response Example

Success (HTTP 200)

json
{
  "status": 200,
  "data": {
    "transactionId": "00000000000000",
    "date": "2023-01-01T00:00:00+07:00",
    "amount": 1000,
    "sender": {
      "name": "อีซี่ สลิป"
    },
    "receiver": {
      "name": "อีซี่ สลิป",
      "phone": "098-***-4321"
    }
  }
}

Error (HTTP 400)

invalid_image

json
{
  "status": 400,
  "message": "invalid_image"
}

image_size_too_large

json
{
  "status": 400,
  "message": "image_size_too_large"
}

invalid_transaction_id

json
{
  "status": 400,
  "message": "invalid_transaction_id"
}

invalid_amount

json
{
  "status": 400,
  "message": "invalid_amount"
}

invalid_sender_name

json
{
  "status": 400,
  "message": "invalid_sender_name"
}

invalid_receiver_name

json
{
  "status": 400,
  "message": "invalid_receiver_name"
}

invalid_receiver_phone

json
{
  "status": 400,
  "message": "invalid_receiver_phone"
}

Error (HTTP 401)

unauthorized

json
{
  "status": 401,
  "message": "unauthorized"
}

Error (HTTP 403)

access_denied

json
{
  "status": 403,
  "message": "access_denied"
}

account_not_verified

json
{
  "status": 403,
  "message": "account_not_verified"
}

application_expired

json
{
  "status": 403,
  "message": "application_expired"
}

application_deactivated

json
{
  "status": 403,
  "message": "application_deactivated"
}

quota_exceeded

json
{
  "status": 403,
  "message": "quota_exceeded"
}

Error (HTTP 404)

slip_not_found

json
{
  "status": 404,
  "message": "slip_not_found"
}

qrcode_not_found

json
{
  "status": 404,
  "message": "qrcode_not_found"
}

Error (HTTP 500)

server_error

json
{
  "status": 500,
  "message": "server_error"
}

api_server_error

json
{
  "status": 500,
  "message": "api_server_error"
}