Documente Academic
Documente Profesional
Documente Cultură
Release 1.4
May, 3 2018
Page 1 of 23
HEADQUARTER: Jl. Bukit Gading Raya BRANCH OFFICE: Jl. Pengiyasan Raya No.2B
Perkantoran Gading Bukit Indah Blok O No. 3-5 Sanur, South Denpasar
Jakarta 14240 - Indonesia Bali 80227- Indonesia
Phone : +62 21 4513678 (Hunting) Phone : +62 361 849 7960 (Hunting)
Fax : +62 21 4513845 Fax : +62 361 8234 335
E-mail : info@sindata.net E-mail : vhpbali@sindata.net
Website : www.sindata.net Wesite : www.sindata.net
Content
1.4 Examples.......................................................................................................................... 20
2. Register Membership.............................................................................................................. 22
2.4 Examples.......................................................................................................................... 23
Page 2 of 23
HEADQUARTER: Jl. Bukit Gading Raya BRANCH OFFICE: Jl. Pengiyasan Raya No.2B
Perkantoran Gading Bukit Indah Blok O No. 3-5 Sanur, South Denpasar
Jakarta 14240 - Indonesia Bali 80227- Indonesia
Phone : +62 21 4513678 (Hunting) Phone : +62 361 849 7960 (Hunting)
Fax : +62 21 4513845 Fax : +62 361 8234 335
E-mail : info@sindata.net E-mail : vhpbali@sindata.net
Website : www.sindata.net Wesite : www.sindata.net
Transaction API
1.1 Request
Parameter Required Description
token Yes Authentication String
Email Address / Member ID Indicating
user Yes Customer. Leaving this empty creates an
open transaction.
A number (id) indicating store where
store Yes
transaction is created
POS Transaction number (must be unique
invoice_number Yes
daily)
A number indicating transaction's grand
total_value Yes
total
An integer indicating the number of people
number_of_people Yes
involved in transaction
ISO 8601 date time format to indicate
created Yes transaction's created date (e.g 2013-02-
15T13:01:01+07)
subtotal No A number indicating transaction's subtotal
A number indicating transaction's discount
discount No
(in Rp)
service_charge No A number indicating service charge (in Rp)
tax No A number indicating transaction tax (in Rp)
List of items containing product name or
items Yes category name, quantity & price. Price is the
combined price of product (qty * unit_price)
Page 3 of 23
HEADQUARTER: Jl. Bukit Gading Raya BRANCH OFFICE: Jl. Pengiyasan Raya No.2B
Perkantoran Gading Bukit Indah Blok O No. 3-5 Sanur, South Denpasar
Jakarta 14240 - Indonesia Bali 80227- Indonesia
Phone : +62 21 4513678 (Hunting) Phone : +62 361 849 7960 (Hunting)
Fax : +62 21 4513845 Fax : +62 361 8234 335
E-mail : info@sindata.net E-mail : vhpbali@sindata.net
Website : www.sindata.net Wesite : www.sindata.net
Request by item detail:
"total_transaction": 3,
"transaction": [{
"token": "87d4ae35c99104c81a539933c5ae1624cbdb3806",
"user": "458347",
"store": 801,
"invoice_number": "22901-15-03",
"total_value": 54450,
"number_of_people": 2,
"tax": 0,
"discount": 0,
"created": "2017-11-20-T09:30:01",
"items": [{
"quantity": 1,
"price": 54450
}]
},
"token": "87d4ae35c99104c81a539933c5ae1624cbdb3806",
"user": "455076",
"store": 801,
"invoice_number": "22902-15-03",
"total_value": 82280,
Page 4 of 23
HEADQUARTER: Jl. Bukit Gading Raya BRANCH OFFICE: Jl. Pengiyasan Raya No.2B
Perkantoran Gading Bukit Indah Blok O No. 3-5 Sanur, South Denpasar
Jakarta 14240 - Indonesia Bali 80227- Indonesia
Phone : +62 21 4513678 (Hunting) Phone : +62 361 849 7960 (Hunting)
Fax : +62 21 4513845 Fax : +62 361 8234 335
E-mail : info@sindata.net E-mail : vhpbali@sindata.net
Website : www.sindata.net Wesite : www.sindata.net
"number_of_people": 2,
"tax": 0,
"discount": 0,
"created": "2017-11-20-T09:30:01",
"items": [{
"quantity": 1,
"price": 82280
}]
},
"token": "87d4ae35c99104c81a539933c5ae1624cbdb3806",
"user": "279117",
"store": 801,
"invoice_number": "22903-15-03",
"total_value": 90750,
"number_of_people": 2,
"tax": 0,
"discount": 0,
"created": "2017-11-20-T09:30:01",
Page 5 of 23
HEADQUARTER: Jl. Bukit Gading Raya BRANCH OFFICE: Jl. Pengiyasan Raya No.2B
Perkantoran Gading Bukit Indah Blok O No. 3-5 Sanur, South Denpasar
Jakarta 14240 - Indonesia Bali 80227- Indonesia
Phone : +62 21 4513678 (Hunting) Phone : +62 361 849 7960 (Hunting)
Fax : +62 21 4513845 Fax : +62 361 8234 335
E-mail : info@sindata.net E-mail : vhpbali@sindata.net
Website : www.sindata.net Wesite : www.sindata.net
"items": [{
"quantity": 1,
"price": 90750
}]
Page 6 of 23
HEADQUARTER: Jl. Bukit Gading Raya BRANCH OFFICE: Jl. Pengiyasan Raya No.2B
Perkantoran Gading Bukit Indah Blok O No. 3-5 Sanur, South Denpasar
Jakarta 14240 - Indonesia Bali 80227- Indonesia
Phone : +62 21 4513678 (Hunting) Phone : +62 361 849 7960 (Hunting)
Fax : +62 21 4513845 Fax : +62 361 8234 335
E-mail : info@sindata.net E-mail : vhpbali@sindata.net
Website : www.sindata.net Wesite : www.sindata.net
Request by item category:
"total_transaction": 3,
"Transaction": [{
"token": "87d4ae35c99104c81a539933c5ae1624cbdb3806",
"user": "458347",
"store": 801,
"invoice_number": "22901-15-03",
"total_value": 54450,
"number_of_people": 2,
"tax": 0,
"discount": 0,
"created": "2017-11-20-T09:30:01",
"items": [{
"product_name": "Food",
"quantity": 1,
"price": 54450
}]
},
"token": "87d4ae35c99104c81a539933c5ae1624cbdb3806",
"user": "455076",
"store": 801,
"invoice_number": "22902-15-03",
"total_value": 82280,
Page 7 of 23
HEADQUARTER: Jl. Bukit Gading Raya BRANCH OFFICE: Jl. Pengiyasan Raya No.2B
Perkantoran Gading Bukit Indah Blok O No. 3-5 Sanur, South Denpasar
Jakarta 14240 - Indonesia Bali 80227- Indonesia
Phone : +62 21 4513678 (Hunting) Phone : +62 361 849 7960 (Hunting)
Fax : +62 21 4513845 Fax : +62 361 8234 335
E-mail : info@sindata.net E-mail : vhpbali@sindata.net
Website : www.sindata.net Wesite : www.sindata.net
"number_of_people": 2,
"tax": 0,
"discount": 0,
"created": "2017-11-20-T09:30:01",
"items": [{
"product_name": "Food",
"quantity": 1,
"price": 82280
}]
},
"token": "87d4ae35c99104c81a539933c5ae1624cbdb3806",
"user": "279117",
"store": 801,
"invoice_number": "22904-15-03",
"total_value": 205610,
"number_of_people": 2,
"tax": 0,
"discount": 0,
"created": "2017-11-20-T09:30:01",
"items": [{
"product_name": "Food",
"quantity": 1,
"price": 90750
},
Page 8 of 23
HEADQUARTER: Jl. Bukit Gading Raya BRANCH OFFICE: Jl. Pengiyasan Raya No.2B
Perkantoran Gading Bukit Indah Blok O No. 3-5 Sanur, South Denpasar
Jakarta 14240 - Indonesia Bali 80227- Indonesia
Phone : +62 21 4513678 (Hunting) Phone : +62 361 849 7960 (Hunting)
Fax : +62 21 4513845 Fax : +62 361 8234 335
E-mail : info@sindata.net E-mail : vhpbali@sindata.net
Website : www.sindata.net Wesite : www.sindata.net
{
"product_name": "Beverage",
"quantity": 1,
"price": 89540
},
"product_name": "Other",
"quantity": 1,
"price": 25320
Page 9 of 23
HEADQUARTER: Jl. Bukit Gading Raya BRANCH OFFICE: Jl. Pengiyasan Raya No.2B
Perkantoran Gading Bukit Indah Blok O No. 3-5 Sanur, South Denpasar
Jakarta 14240 - Indonesia Bali 80227- Indonesia
Phone : +62 21 4513678 (Hunting) Phone : +62 361 849 7960 (Hunting)
Fax : +62 21 4513845 Fax : +62 361 8234 335
E-mail : info@sindata.net E-mail : vhpbali@sindata.net
Website : www.sindata.net Wesite : www.sindata.net
1.2 Responses
Depending on the request, responses may return these status codes:
Code Description
200 Everything worked as expected
400 Bad Request, usually missing a required parameter
500,
502,
Server Errors - Something is wrong on Loyalty Program's end
503,
504
HTTP/1.1 200 OK
Date: Wed, 21 Feb 2018 07:20:43 GMT
Content-Type: application/json
Transfer-Encoding: chunked
Connection: keep-alive
Vary: Accept-Encoding
Allow: POST, OPTIONS
Success
Failed
Page 10 of 23
HEADQUARTER: Jl. Bukit Gading Raya BRANCH OFFICE: Jl. Pengiyasan Raya No.2B
Perkantoran Gading Bukit Indah Blok O No. 3-5 Sanur, South Denpasar
Jakarta 14240 - Indonesia Bali 80227- Indonesia
Phone : +62 21 4513678 (Hunting) Phone : +62 361 849 7960 (Hunting)
Fax : +62 21 4513845 Fax : +62 361 8234 335
E-mail : info@sindata.net E-mail : vhpbali@sindata.net
Website : www.sindata.net Wesite : www.sindata.net
If HTTP is used instead of HTTPS
Page 11 of 23
HEADQUARTER: Jl. Bukit Gading Raya BRANCH OFFICE: Jl. Pengiyasan Raya No.2B
Perkantoran Gading Bukit Indah Blok O No. 3-5 Sanur, South Denpasar
Jakarta 14240 - Indonesia Bali 80227- Indonesia
Phone : +62 21 4513678 (Hunting) Phone : +62 361 849 7960 (Hunting)
Fax : +62 21 4513845 Fax : +62 361 8234 335
E-mail : info@sindata.net E-mail : vhpbali@sindata.net
Website : www.sindata.net Wesite : www.sindata.net
2. Adding FO’s Transaction
Method: POST
2.1 Request
Parameter Required Description
token Yes Authentication String
Email Address / Member ID Indicating
user Yes Customer. Leaving this empty creates an
open transaction.
A number (id) indicating store where
store Yes
transaction is created
POS Transaction number (must be unique
invoice_number Yes
daily)
A number indicating transaction's grand
total_value Yes
total
An integer indicating the number of people
number_of_people Yes
involved in transaction
ISO 8601 date time format to indicate
created Yes transaction's created date (e.g 2013-02-
15T13:01:01+07)
subtotal No A number indicating transaction's subtotal
A number indicating transaction's discount
discount No
(in Rp)
service_charge No A number indicating service charge (in Rp)
tax No A number indicating transaction tax (in Rp)
List of items containing product name or
items Yes category name, quantity & price. Price is the
combined price of product (qty * unit_price)
Page 12 of 23
HEADQUARTER: Jl. Bukit Gading Raya BRANCH OFFICE: Jl. Pengiyasan Raya No.2B
Perkantoran Gading Bukit Indah Blok O No. 3-5 Sanur, South Denpasar
Jakarta 14240 - Indonesia Bali 80227- Indonesia
Phone : +62 21 4513678 (Hunting) Phone : +62 361 849 7960 (Hunting)
Fax : +62 21 4513845 Fax : +62 361 8234 335
E-mail : info@sindata.net E-mail : vhpbali@sindata.net
Website : www.sindata.net Wesite : www.sindata.net
Request by Item Category:
{
"total_transaction": 3,
"transaction": [{
"token": "d93c621909aae27ac8b51b9e2a5fb4c15c5e1f68",
"user": "458347",
"store": 800,
"invoice_number": "86359-15-03",
"total_value": 997500,
"number_of_people": 1,
"tax": 0,
"discount": 0,
"created": "2017-11-20-T10:00:59",
"items": [{
"product_name": "Room",
"quantity": 1,
"price": 997500
}]
},
{
"token": "d93c621909aae27ac8b51b9e2a5fb4c15c5e1f68",
"user": "279117",
"store": 800,
"invoice_number": "86360-15-03",
"total_value": 1904000,
"number_of_people": 1,
"tax": 0,
"discount": 0,
"created": "2017-11-20-T10:00:59",
"items": [{
"product_name": "Room",
"quantity": 1,
"price": 1179000
},
{
"product_name": "Halfday Meeting Package
Promo",
"quantity": 1,
"price": 250000
},
{
"product_name": "Fullday Meeting Package Promo",
"quantity": 1,
"price": 300000
},
Page 13 of 23
HEADQUARTER: Jl. Bukit Gading Raya BRANCH OFFICE: Jl. Pengiyasan Raya No.2B
Perkantoran Gading Bukit Indah Blok O No. 3-5 Sanur, South Denpasar
Jakarta 14240 - Indonesia Bali 80227- Indonesia
Phone : +62 21 4513678 (Hunting) Phone : +62 361 849 7960 (Hunting)
Fax : +62 21 4513845 Fax : +62 361 8234 335
E-mail : info@sindata.net E-mail : vhpbali@sindata.net
Website : www.sindata.net Wesite : www.sindata.net
{
"product_name": "Beverage",
"quantity": 1,
"price": 50000
},
{
"product_name": "Other",
"quantity": 1,
"price": 125000
}
]
},
{
"token": "d93c621909aae27ac8b51b9e2a5fb4c15c5e1f68",
"user": "455076",
"store": 800,
"invoice_number": "86361-15-03",
"total_value": 1083000,
"number_of_people": 1,
"tax": 0,
"discount": 0,
"created": "2017-11-20-T10:00:59",
"items": [{
"product_name": "Room",
"quantity": 1,
"price": 1058000
},
{
"product_name": "Food",
"quantity": 1,
"price": 25000
},
{
"product_name": "Other",
"quantity": 1,
"price": 15000
}
]
}
]
}
Page 14 of 23
HEADQUARTER: Jl. Bukit Gading Raya BRANCH OFFICE: Jl. Pengiyasan Raya No.2B
Perkantoran Gading Bukit Indah Blok O No. 3-5 Sanur, South Denpasar
Jakarta 14240 - Indonesia Bali 80227- Indonesia
Phone : +62 21 4513678 (Hunting) Phone : +62 361 849 7960 (Hunting)
Fax : +62 21 4513845 Fax : +62 361 8234 335
E-mail : info@sindata.net E-mail : vhpbali@sindata.net
Website : www.sindata.net Wesite : www.sindata.net
Request by Item Category with Room Type
{
"total_transaction": 3,
"transaction": [{
"token": "d93c621909aae27ac8b51b9e2a5fb4c15c5e1f68",
"user": "458347",
"store": 800,
"invoice_number": "86359-15-03",
"total_value": 997500,
"number_of_people": 1,
"tax": 0,
"discount": 0,
"created": "2017-11-20-T10:00:59",
"items": [{
"product_name": "Room - Twin",
"quantity": 1,
"price": 997500
}]
},
{
"token": "d93c621909aae27ac8b51b9e2a5fb4c15c5e1f68",
"user": "279117",
"store": 800,
"invoice_number": "86360-15-03",
"total_value": 1904000,
"number_of_people": 1,
"tax": 0,
"discount": 0,
"created": "2017-11-20-T10:00:59",
"items": [{
"product_name": "Room - Deluxe",
"quantity": 1,
"price": 1179000
},
{
"product_name": "Halfday Meeting Package Promo",
"quantity": 1,
"price": 250000
},
{
"product_name": "Fullday Meeting Package Promo",
"quantity": 1,
"price": 300000
},
Page 15 of 23
HEADQUARTER: Jl. Bukit Gading Raya BRANCH OFFICE: Jl. Pengiyasan Raya No.2B
Perkantoran Gading Bukit Indah Blok O No. 3-5 Sanur, South Denpasar
Jakarta 14240 - Indonesia Bali 80227- Indonesia
Phone : +62 21 4513678 (Hunting) Phone : +62 361 849 7960 (Hunting)
Fax : +62 21 4513845 Fax : +62 361 8234 335
E-mail : info@sindata.net E-mail : vhpbali@sindata.net
Website : www.sindata.net Wesite : www.sindata.net
{
"product_name": "Beverage",
"quantity": 1,
"price": 50000
},
{
"product_name": "Other",
"quantity": 1,
"price": 125000
}
]
},
{
"token": "d93c621909aae27ac8b51b9e2a5fb4c15c5e1f68",
"user": "455076",
"store": 800,
"invoice_number": "86361-15-03",
"total_value": 1083000,
"number_of_people": 1,
"tax": 0,
"discount": 0,
"created": "2017-11-20-T10:00:59",
"items": [{
"product_name": "Room - Superior",
"quantity": 1,
"price": 1058000
},
{
"product_name": "Food",
"quantity": 1,
"price": 25000
},
{
"product_name": "Other",
"quantity": 1,
"price": 15000
}
]
}
]
}
Page 16 of 23
HEADQUARTER: Jl. Bukit Gading Raya BRANCH OFFICE: Jl. Pengiyasan Raya No.2B
Perkantoran Gading Bukit Indah Blok O No. 3-5 Sanur, South Denpasar
Jakarta 14240 - Indonesia Bali 80227- Indonesia
Phone : +62 21 4513678 (Hunting) Phone : +62 361 849 7960 (Hunting)
Fax : +62 21 4513845 Fax : +62 361 8234 335
E-mail : info@sindata.net E-mail : vhpbali@sindata.net
Website : www.sindata.net Wesite : www.sindata.net
2.2 Response
Depending on the request, response may return these status code:
Code Description
200 Everything worked as expected
400 Bad Request, usually missing a required parameter
500,
502,
Server Errors - Something is wrong on Loyalty Program's end
503,
504
HTTP/1.1 200 OK
Date: Wed, 21 Feb 2018 07:20:43 GMT
Content-Type: application/json
Transfer-Encoding: chunked
Connection: keep-alive
Vary: Accept-Encoding
Allow: POST, OPTIONS
Success
Failed
Page 17 of 23
HEADQUARTER: Jl. Bukit Gading Raya BRANCH OFFICE: Jl. Pengiyasan Raya No.2B
Perkantoran Gading Bukit Indah Blok O No. 3-5 Sanur, South Denpasar
Jakarta 14240 - Indonesia Bali 80227- Indonesia
Phone : +62 21 4513678 (Hunting) Phone : +62 361 849 7960 (Hunting)
Fax : +62 21 4513845 Fax : +62 361 8234 335
E-mail : info@sindata.net E-mail : vhpbali@sindata.net
Website : www.sindata.net Wesite : www.sindata.net
If HTTP is used instead of HTTPS
Page 18 of 23
HEADQUARTER: Jl. Bukit Gading Raya BRANCH OFFICE: Jl. Pengiyasan Raya No.2B
Perkantoran Gading Bukit Indah Blok O No. 3-5 Sanur, South Denpasar
Jakarta 14240 - Indonesia Bali 80227- Indonesia
Phone : +62 21 4513678 (Hunting) Phone : +62 361 849 7960 (Hunting)
Fax : +62 21 4513845 Fax : +62 361 8234 335
E-mail : info@sindata.net E-mail : vhpbali@sindata.net
Website : www.sindata.net Wesite : www.sindata.net
Membership API
1.1 Request
You can query for a guest’s data on Loyalty Program Side
#Please note that for cURL command you need to escape special character $
cURL:
‘https://loyaltyprogram.com/token=abc&user=customer@sindata.net&merchant=14’
500,
502,
Server Errors - Something is wrong on Loyalty Program's end
503,
504
Page 19 of 23
HEADQUARTER: Jl. Bukit Gading Raya BRANCH OFFICE: Jl. Pengiyasan Raya No.2B
Perkantoran Gading Bukit Indah Blok O No. 3-5 Sanur, South Denpasar
Jakarta 14240 - Indonesia Bali 80227- Indonesia
Phone : +62 21 4513678 (Hunting) Phone : +62 361 849 7960 (Hunting)
Fax : +62 21 4513845 Fax : +62 361 8234 335
E-mail : info@sindata.net E-mail : vhpbali@sindata.net
Website : www.sindata.net Wesite : www.sindata.net
1.4 Examples
On a successful API Call:
HTTP/1.1 200 OK
Date: Wed, 21 Feb 2018 07:20:43 GMT
Content-Type: application/json
Transfer-Encoding: chunked
Connection: keep-alive
Vari: Accept-Encoding
Allow: POST, OPTIONS
{
"membership": {
"status": 100,
"points": 401,
"balance": 150000,
"start_date": "2018-02-21",
"created": "2018-02-21"
},
"guest": {
"membership_id": 12345,
"last_name": "Sindata",
"first_name": "Customer",
"email": "customer@sindata.net",
"sex": "M",
"birthdate": "1990-11-26",
"country_code": "+62",
"mobile_number": "123456789",
"address": "Jl. abc",
"is_active": true
}
}
Page 20 of 23
HEADQUARTER: Jl. Bukit Gading Raya BRANCH OFFICE: Jl. Pengiyasan Raya No.2B
Perkantoran Gading Bukit Indah Blok O No. 3-5 Sanur, South Denpasar
Jakarta 14240 - Indonesia Bali 80227- Indonesia
Phone : +62 21 4513678 (Hunting) Phone : +62 361 849 7960 (Hunting)
Fax : +62 21 4513845 Fax : +62 361 8234 335
E-mail : info@sindata.net E-mail : vhpbali@sindata.net
Website : www.sindata.net Wesite : www.sindata.net
API Call with missing parameters:
{
"errors": {
"__all__": "User Not Found",
"error_message": "User Not Found",
"error_code": "invalid_data",
"detail": "__all__: User Not Found"
}
}
Page 21 of 23
HEADQUARTER: Jl. Bukit Gading Raya BRANCH OFFICE: Jl. Pengiyasan Raya No.2B
Perkantoran Gading Bukit Indah Blok O No. 3-5 Sanur, South Denpasar
Jakarta 14240 - Indonesia Bali 80227- Indonesia
Phone : +62 21 4513678 (Hunting) Phone : +62 361 849 7960 (Hunting)
Fax : +62 21 4513845 Fax : +62 361 8234 335
E-mail : info@sindata.net E-mail : vhpbali@sindata.net
Website : www.sindata.net Wesite : www.sindata.net
2. Register Membership
2.1 Request
You can request for register a guest on Loyalty Program Side.
Page 22 of 23
HEADQUARTER: Jl. Bukit Gading Raya BRANCH OFFICE: Jl. Pengiyasan Raya No.2B
Perkantoran Gading Bukit Indah Blok O No. 3-5 Sanur, South Denpasar
Jakarta 14240 - Indonesia Bali 80227- Indonesia
Phone : +62 21 4513678 (Hunting) Phone : +62 361 849 7960 (Hunting)
Fax : +62 21 4513845 Fax : +62 361 8234 335
E-mail : info@sindata.net E-mail : vhpbali@sindata.net
Website : www.sindata.net Wesite : www.sindata.net
2.3 Response Headers
Code Description
200 Everything worked as expected
400 Bad Request, usually missing a required parameter
500,
502,
Server Errors - Something is wrong on Loyalty Program's end
503,
504
2.4 Examples
Content-Type: application/json
Authorization: Bearer {token-bearer}
{
"token": "92e59049c064823d189c18fc34a2461f97704f3b",
"last_name": "Customer",
"first_name": "Sindata",
"email": "customer@sindata.net",
"sex": "M",
"birth_date": "1990-11-26",
"country_code": "+62",
"mobile_number": "123456789",
"address": "Jl. ABC"
}
Page 23 of 23
HEADQUARTER: Jl. Bukit Gading Raya BRANCH OFFICE: Jl. Pengiyasan Raya No.2B
Perkantoran Gading Bukit Indah Blok O No. 3-5 Sanur, South Denpasar
Jakarta 14240 - Indonesia Bali 80227- Indonesia
Phone : +62 21 4513678 (Hunting) Phone : +62 361 849 7960 (Hunting)
Fax : +62 21 4513845 Fax : +62 361 8234 335
E-mail : info@sindata.net E-mail : vhpbali@sindata.net
Website : www.sindata.net Wesite : www.sindata.net