Check Slip

Version 1.7 (อัพเดทล่าสุด 26 มีนาคม 2024)

Check Slip Request

Method

POST

Url

  https://api.slipok.com/api/line/apikey/<YOUR_BRANCH_ID>

Header

{ x-authorization : <YOUR_API_KEY> }

Body (Required)

  1. ข้อมูล Slip

 { data: string } = ค่าที่อ่านได้จาก qr code ขวาล่างของสลิป

 { files: File  } =  รูปภาพสลิป รองรับแค่นามสกุล JPEG, PNG หรือ JPG

 { url: string } = url ของรูปภาพสลิป (ถ้าหากเป็น link google drive / signed s3 อาจจะไม่สามรถใช้ได้)

 ** ส่งได้แค่อย่างใดอย่างหนึ่งจากสามรูปแบบข้างต้น **

  1. เช็คสลิปให้ตรงกับธนาคารที่ผูกไว้ใน LIFF และตรวจสอบสลิปซ้ำ

 { log: boolean } = ระบุเป็น true ถ้าต้องการเช็คธนาคารรับเงินที่ผูกไว้กับสาขา API และเก็บยอดไว้ดูใน Line LIFF ของร้านค้าเพื่อตรวจสลิปซ้ำได้ ถ้าหากระบุเป็น false หรือไม่ส่งจะเป็นการตรวจสลิปเฉย ๆ ไม่มีการเก็บค่า และไม่ตรวจสลิปซ้ำ

Body

(Optional)

{ amount: number } = ระบุยอดเงินไว้สำหรับเช็คกับยอดเงินในสลิป

Check Slip Response

Field

Type

Description

Example

Mandatory

success

boolean

Request success

true

Y

data

object

 

 

Y

 

success

boolean

Valid QR code

true

Y

 

message

string(50)

Verification Message

Y

 

language

string(2)

Language (EN, TH)

TH

 

 

receivingBank

string(3)

Receiving bank code

006

Y

 

sendingBank

string(3)

Sender bank code

004

Y

 

transRef

string(25)

Transaction reference number contains reference number of the transaction required to verify the payslip

010092101507665143

Y

 

transDate

string(8)

Transaction date text. This field contains the date on the payslip in ‘yyyyMMdd’ format

20200401

Y

 

transTime

string(8)

Transaction time text. This field contains time on the payslip in ‘HH:mm:ss’ format

10:15:07

Y

 

transTimestamp

timestamp

Transaction timestamp text. This field contains the timestamp on the payslip in ‘YYYY-MM-DDTHH:mm:ss.sssZ’ format which is ISO 8601

2020-04-01T03:15:07.000Z

Y

 

sender

object

 

 

 

 

 

displayName

string(50)

The name to display in Thai or English depends on the issuer bank payslip

นาย กสิกร ร

** The data might not be complete need partial match

Y

 

 

name

string(50)

The name to display in English

Mr. Kasikorn R

** The data might not be complete need partial match

Y

 

 

proxy

object

 

 

Y

 

 

 

type

string(12)

From proxy type (NATID, MSISDN, EWALLETID, EMAIL, BILLERID)

MSISDN

Y

 

 

 

value

string(128)

From proxy value

**The value is always masked.

Masking format is depend on bank’s slip.

086xxx7894

Y

 

 

account

object

 

 

Y

 

 

 

type 

string(12)

From account type (BANKAC, TOKEN, DUMMY)

BANKAC

Y

 

 

 

  value

string(40)

From account value

**The value is always masked.

Masking format is depend on bank’s slip.

xxx-x-x0209-x

Y

 

receiver

object

 

 

Y

 

 

displayName

string(50)

Receiver name to display in Thai or English depends on issuer bank payslip

ธนาทร ร

** The data might not be complete need partial match

Y

 

 

name

string(50)

Receiver name in English.

THANATORN R

** The data might not be complete need partial match

Y

 

 

proxy

object

 

 

Y

 

 

 

type

string(12)

To proxy type (NATID, MSISDN, EWALLETID, EMAIL, BILLERID)

MSISDN

Y

 

 

 

value

string(128)

To proxy value

**The value is always masked.

Masking format is depend on bank’s slip.

086xxx0000

Y

 

 

account

object

 

 

Y

 

 

 

type

string(12)

To account type (BANKAC, TOKEN, DUMMY)

BANKAC

Y

 

 

 

value

string(40)

To account value

**The value is always masked.

Masking format is depend on bank’s slip.

xxx-x-x3109-x

Y

 

amount

decimal(12)

This field contains amount on the payslip

50

Y

 

paidLocalAmount

decimal(12)

Paid local amount

1

 

 

paidLocalCurrency

string(3)

Paid local currency

764

 

 

countryCode

string(2)

Country code

TH

Y

 

transFeeAmount

string(12)

Transaction fee amount

0

 

 

ref1

string(20)

1st Reference number on the payslip

 

 

 

ref2

string(20)

2nd Reference number on the payslip

 

 

 

ref3

string(20)

3rd Reference number on the payslip

 

 

 

toMerchantId

string(15)

To merchant ID