ข้ามไปที่เนื้อหา

LM

Get member with circulation details using member barcode

GET https://webapi.dimdata.com/api/lmmemberbycard/[UserBarcode]

Get member information

curl --location 'https://webapi.dimdata.com/api/lmmemberbycard/[UserBarcode]' \
--header 'accept: application/json' \
--header 'authorization: Bearer [accesstoken]' \
--header 'content-type: application/json'
Responses
200: OK Returns member information, including peding check-out items and fine
400: Bad Request If a member is not found

Get member with circulation details using member email

GET https://webapi.dimdata.com/api/lmmemberbyemail/[email]

Get member information

curl --location 'https://webapi.dimdata.com/api/lmmemberbyemail/[email]' \
--header 'accept: application/json' \
--header 'authorization: Bearer [accesstoken]' \
--header 'content-type: application/json'
Responses
200: OK Returns member information, including peding check-out items and fine
400: Bad Request If a member is not found

Check-out

POST https://webapi.dimdata.com/api/checkout

Check-out

curl --location --request PUT 'https://webapi.dimdata.com/api/checkout' \
--header 'accept: application/json' \
--header 'authorization: Bearer [accesstoken]' \
--header 'content-type: application/json' \
--data '{"ItemBarcode":"[ItemBarcode]","UserBarcode":"[UserBarcode]"}'
Responses
200: OK When check-out success with details, e.g. DueDate.
400: Bad Request If check-out failed

Check-in

POST https://webapi.dimdata.com/api/checkin

Check-in

curl --location --request PUT 'https://webapi.dimdata.com/api/checkin' \
--header 'accept: application/json' \
--header 'authorization: Bearer [accesstoken]' \
--header 'content-type: application/json' \
--data '{"ItemBarcode":"[ItemBarcode]"}'
Responses
200: OK When check-in success with details, e.g. Fine, overdude date
400: Bad Request If check-in failed