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

Members

List member

GET https://webapi.dimdata.com/api/user-memberlist?name=&size=20&page=1

List member information

curl --location 'https://webapi.dimdata.com/api/user-memberlist?name=&size=20&page=1' \
     --header 'accept: application/json' \
     --header 'authorization: Bearer [accesstoken]' \
     --header 'content-type: application/json'
Responses
200: OK Returns members list
400: Bad Request

Get member

GET https://webapi.dimdata.com/api/userdetails/[memberid]

Get member information

curl --location 'https://webapi.dimdata.com/api/userdetails/[memberid]' \
--header 'accept: application/json' \
--header 'authorization: Bearer [accesstoken]' \
--header 'content-type: application/json'
Responses
200: OK Returns member information
400: Bad Request If a member is not found

List branch

GET https://webapi.dimdata.com/api/listbranch

List all branch information

curl --location 'https://webapi.dimdata.com/api/listbranch' \
     --header 'accept: application/json' \
     --header 'authorization: Bearer [accesstoken]' \
     --header 'content-type: application/json'
Responses
200: OK Returns branch list
400: Bad Request

List member type

GET https://webapi.dimdata.com/api/listusertype

List all member type information

curl --location 'https://webapi.dimdata.com/api/listusertype' \
     --header 'accept: application/json' \
     --header 'authorization: Bearer [accesstoken]' \
     --header 'content-type: application/json'
Responses
200: OK Returns member type list
400: Bad Request

Update member

PUT https://webapi.dimdata.com/api/user-member

Update member information

curl --location --request PUT 'https://webapi.dimdata.com/api/user-member' \
--header 'accept: application/json' \
--header 'authorization: Bearer [accesstoken]' \
--header 'content-type: application/json' \
--data '{"Id":"[memberid]","userbarcode":"12345678","branchid":"[branchid]","usertype":"[usertype]","GivenName":"[MemberName]","Surname":"","UserName":"[UserName]","PhoneNo":"","address1":"","address2":"","city":"","country":"","postcode":"","NameTitle":"","userstatus":""}'
Responses
200: OK If update success
400: Bad Request If update failed