Daftar Isi
  1. Database
    1. Version
    2. Syarat & ketentuan
    3. Privacy policy
    4. Week
    5. Member (belum dipakai)
    6. Kirim notifikasi
  2. Sign Up/Login
    1. Sign up guest
    2. Sign up member
    3. Sign up staff
    4. Accept terms & conditions
    5. Reset password
    6. Ganti password
    7. Ganti email
    8. Ganti nomor hp
    9. Reconfirm email
    10. Login
    11. Daftar referral code
    12. Mau menjadi member
    13. Lihat profile
    14. Update profile
    15. Update registration token
    16. Daftar provinsi
    17. Daftar kota
    18. Ongkos kirim
    19. Ganti billing address
    20. Tambah shipping address
    21. Hapus shipping address
  3. Pilih Produk
    1. Banner
    2. Kategori
    3. Keyword
    4. Promo
    5. Group
    6. Detail produk
  4. Sales
    1. Voucher detail
    2. Bikin nota draft
    3. Lihat detail nota
    4. Cancel nota draft
    5. Set harga kirim nota draft
    6. Lihat nota
    7. Bayar nota draft
    8. Ambil barang
    9. Ambil barang di pusat
  5. Payment
    1. Token BCA
    2. VA BCA
    3. Inquiry BCA
    4. Payment BCA
  6. Member
    1. Omset
    2. Komisi
    3. PV
    4. LG
    5. BOOM
    6. Challenge

Database Daftar isi


Version

Request

Method URL
GET/POST https://api.twintulipware.com/core/version

Method Parameter Wajib Tipe Keterangan
GET/POST key Ya String API Key

https://api.twintulipware.com/core/version?key=1a2b3c

Response

								
				{
					"query":{
						"key":"1a2b3c"
					},
					"status":{
						"http_code":"200",
						"code":"ETT-01-002",
						"message":{
							"indonesian":"Data berhasil ditarik",
							"english":"Success"
						}
					},
					"results":{
						"123"
					}
				}
				
							

								
				{
					"status":{
						"http_code":"401",
						"code":"ETT-00-000",
						"message":{
							"indonesian":"Akses ditolak",
							"english":"Unauthorized"
						}
					}
				}
				
							

Komponen Tipe Keterangan
query Array GET query from request
status Array Return status
results Array API results

Syarat & ketentuan

Request

Method URL
GET/POST https://api.twintulipware.com/info/terms_conditions

Method Parameter Wajib Tipe Keterangan
GET/POST key Ya String API Key

https://api.twintulipware.com/info/terms_conditions?key=1a2b3c

Response

								
				{
					"query":{
						"key":"1a2b3c"
					},
					"status":{
						"http_code":"200",
						"code":"ETT-01-002",
						"message":{
							"indonesian":"Data berhasil ditarik",
							"english":"Success"
						}
					},
					"results":{
						"123"
					}
				}
				
							

								
				{
					"status":{
						"http_code":"401",
						"code":"ETT-00-000",
						"message":{
							"indonesian":"Akses ditolak",
							"english":"Unauthorized"
						}
					}
				}
				
							

Komponen Tipe Keterangan
query Array GET query from request
status Array Return status
results Array API results

Privacy policy

Request

Method URL
GET/POST https://api.twintulipware.com/info/privacy_policy

Method Parameter Wajib Tipe Keterangan
GET/POST key Ya String API Key

https://api.twintulipware.com/info/privacy_policy?key=1a2b3c

Response

								
				{
					"query":{
						"key":"1a2b3c"
					},
					"status":{
						"http_code":"200",
						"code":"ETT-01-002",
						"message":{
							"indonesian":"Data berhasil ditarik",
							"english":"Success"
						}
					},
					"results":{
						"123"
					}
				}
				
							

								
				{
					"status":{
						"http_code":"401",
						"code":"ETT-00-000",
						"message":{
							"indonesian":"Akses ditolak",
							"english":"Unauthorized"
						}
					}
				}
				
							

Komponen Tipe Keterangan
query Array GET query from request
status Array Return status
results Array API results

Week

Request

Method URL
GET/POST https://api.twintulipware.com/core/week

Method Parameter Wajib Tipe Keterangan
GET/POST key Ya String API Key
GET/POST date Tidak yyyy-mm-dd Tanggal
GET/POST week Tidak Int Week
GET/POST month Tidak Int Bulan
GET/POST year Tidak Int Tahun

https://api.twintulipware.com/core/week?key=1a2b3c
https://api.twintulipware.com/core/week?key=1a2b3c&date=yyyy-mm-dd
https://api.twintulipware.com/core/week?key=1a2b3c&week=123&year=123
https://api.twintulipware.com/core/week?key=1a2b3c&month=123&year=123
https://api.twintulipware.com/core/week?key=1a2b3c&year=123

Response

								
				{
					"query":{
						"key":"1a2b3c"
					},
					"status":{
						"http_code":"200",
						"code":"ETT-01-002",
						"message":{
							"indonesian":"Data berhasil ditarik",
							"english":"Success"
						}
					},
					"results":{
						"week":{
							"year":"2019",
							"month":"4",
							"week":"15",
							"start_date":"2019-04-08",
							"end_date":"2019-04-14"
						},
						"month":{
							"year":"2019",
							"month":"4",
							"start_week":"14",
							"end_week":"18",
							"start_date":"2019-04-01",
							"end_date":"2019-05-05"
						},
						"year":{
							"year":"2019",
							"start_month":"1",
							"end_month":"12",
							"start_week":"1",
							"end_week":"52",
							"start_date":"2018-12-31",
							"end_date":"2019-12-29"
						}
					}
				}
				
							

								
				{
					"status":{
						"http_code":"401",
						"code":"ETT-00-000",
						"message":{
							"indonesian":"Akses ditolak",
							"english":"Unauthorized"
						}
					}
				}
				
							

Komponen Tipe Keterangan
query Array GET query from request
status Array Return status
results Array API results

Member (belum dipakai)

Request

Method URL
GET/POST https://api.twintulipware.com/member

Method Parameter Wajib Tipe Keterangan
GET/POST key Ya String API Key

https://api.twintulipware.com/member?key=1a2b3c

Response

								
				{
					"query":{
						"key":"1a2b3c"
					},
					"status":{
						"http_code":"200",
						"code":"ETT-01-002",
						"message":{
							"indonesian":"Data berhasil ditarik",
							"english":"Success"
						}
					},
					"results":{
						"member":[{
							"id_unit":"725",
							"unit_name":"Xzinputer",
							"member":[{
								"barcode":null,
								"id_member":"1516748",
								"first_name":"Fauzan Imam R",
								"last_name":""
							}]
						},{
							"id_unit":"245",
							"unit_name":"Raabiyah",
							"member":[{
								"barcode":null,
								"id_member":"1515690",
								"first_name":"RITA WIDAYATI",
								"last_name":""
							}]
						},{
							"id_unit":"1328",
							"unit_name":"LUAR BIASA",
							"member":[{
								"barcode":null,
								"id_member":"1515692",
								"first_name":"KRESTIAN SOFYAN HAREFA",
								"last_name":""
							}]
						}]
					}
				}
				
							

								
				{
					"status":{
						"http_code":"401",
						"code":"ETT-00-000",
						"message":{
							"indonesian":"Akses ditolak",
							"english":"Unauthorized"
						}
					}
				}
				{
					"status":{
						"http_code":"404",
						"code":"ETT-01-006",
						"message":{
							"indonesian":"Data tidak ditemukan",
							"english":"Not found"
						}
					}
				}
				
							

Komponen Tipe Keterangan
query Array GET query from request
status Array Return status
results Array API results

Kirim notifikasi

Request

Method URL
GET/POST https://api.twintulipware.com/info/notification

Method Parameter Wajib Tipe Keterangan
GET/POST key Ya String API Key
GET/POST id_member Ya Int ID member
GET/POST id_guest Ya Int ID guest
GET/POST id_staff Ya Int ID staff
GET/POST title Ya String Judul notifikasi
GET/POST body Ya String Isi notifikasi
GET/POST action Tidak String Action notifikasi
GET/POST read Tidak Boolean Notifikasi sudah dibaca

https://api.twintulipware.com/info/notification?key=1a2b3c&id_member=123&title=abc&body=abc&action=abc
https://api.twintulipware.com/info/notification?key=1a2b3c&id_guest=123&title=abc&body=abc&action=abc
https://api.twintulipware.com/info/notification?key=1a2b3c&id_staff=123&title=abc&body=abc
https://api.twintulipware.com/info/notification?key=1a2b3c&id_staff=123&read=1
https://api.twintulipware.com/info/notification?key=1a2b3c&id_staff=123

Response

								
				Array ( [multicast_id] => 6321329852251422203 [success] => 0 [failure] => 1 [canonical_ids] => 0 [results] => Array ( [0] => Array ( [error] => InvalidRegistration ) ) )
				
							

								
				{
					"status":{
						"http_code":"401",
						"code":"ETT-00-000",
						"message":{
							"indonesian":"Akses ditolak",
							"english":"Unauthorized"
						}
					}
				}
				
							

Komponen Tipe Keterangan
query Array GET query from request
status Array Return status
results Array API results


Sign Up/Login Daftar isi


Sign up guest

Request

Method URL
GET/POST https://api.twintulipware.com/login/signup_guest

Method Parameter Wajib Tipe Keterangan
GET/POST key Ya String API Key
GET/POST email Ya String Email
GET/POST password Ya md5 Password
GET/POST first_name Ya String Nama depan
GET/POST last_name Ya String Nama belakang
GET/POST gender Ya Wanita/Pria Jenis kelamin
GET/POST dob Ya Date Tanggal lahir
GET/POST address Ya String Alamat
GET/POST phone Ya String Nomor telepon

https://api.twintulipware.com/login/signup_guest?key=1a2b3c&email=abc&password=abc&first_name=abc&last_name=abc&gender=abc&dob=yyyy-mm-dd&address=abc&phone=abc

Response

								
				{
					"query":{
						"key":"1a2b3c"
					},
					"status":{
						"http_code":"200",
						"code":"ETT-01-003",
						"message":{
							"indonesian":"Insert data berhasil",
							"english":"Insert successful"
						}
					},
					"results":{
						"email":"coba",
						"password":"098F6BCD4621D373CADE4E832627B4F6",
						"barcode":"",
						"id_member":"",
						"id_guest":"1",
						"referral_code":null,
						"first_name":"Anisa",
						"last_name":"Sugarti",
						"gender":"Wanita",
						"dob":"0000-00-00",
						"address":null,
						"phone":"085718298212",
						"email":"it.anisa@twintulipware.com",
						"profile_img":"",
						"acc_term":"1",
						"reg_date":"2018-07-25 15:09:02",
						"last_updated":"2019-02-07 22:01:31"
					}
				}
				
							

								
				{
					"status":{
						"http_code":"401",
						"code":"ETT-00-000",
						"message":{
							"indonesian":"Akses ditolak",
							"english":"Unauthorized"
						}
					}
				}
				{
					"status":{
						"http_code":"406",
						"code":"ETT-02-002",
						"message":{
							"indonesian":"Email sudah terdaftar",
							"english":"Email has been used"
						}
					}
				}
				{
					"status":{
						"http_code":"422",
						"code":"ETT-01-007",
						"message":{
							"indonesian":"Insert data gagal",
							"english":"Insert failed"
						}
					}
				}
				{
					"status":{
						"http_code":"400",
						"code":"ETT-01-001",
						"message":{
							"indonesian":"Parameter salah",
							"english":"Invalid request"
						}
					}
				}
				
							

Komponen Tipe Keterangan
query Array GET query from request
status Array Return status
results Array API results

Sign up member

Request

Method URL
GET/POST https://api.twintulipware.com/login/signup_member

Method Parameter Wajib Tipe Keterangan
GET/POST key Ya String API Key
GET/POST barcode Ya String Barcode kartu member
GET/POST email Ya String Email
GET/POST password Ya md5 Password

https://api.twintulipware.com/login/signup_member?key=1a2b3c&barcode=abc&email=abc&password=abc

Response

								
				{
					"query":{
						"key":"1a2b3c"
					},
					"status":{
						"http_code":"200",
						"code":"ETT-01-003",
						"message":{
							"indonesian":"Insert data berhasil",
							"english":"Insert successful"
						}
					},
					"results":{
						"email":"coba",
						"password":"098F6BCD4621D373CADE4E832627B4F6",
						"barcode":"2016N000001",
						"id_member":"109057",
						"id_guest":"0",
						"code_user":"M781394",
						"first_name":"User Dicky",
						"last_name":"",
						"gender":"Pria",
						"ktp":"20150829110930",
						"npwp":"",
						"religion":"KRISTEN",
						"pob":"-",
						"dob":"2015-08-29",
						"address":"Dago",
						"phone":"085860001990",
						"status":"KAWIN",
						"child":"0",
						"occupation":"0",
						"education":"",
						"rek_bank":"-",
						"rek_number":"0",
						"rek_name":"-",
						"profile_img":"",
						"reg_by":"1",
						"reg_date":"2015-09-08 00:00:00",
						"reg_branch":"0",
						"last_active":"2018-04-02 10:48:07",
						"last_updated":"2019-02-07 22:00:49",
						"domicile":"1",
						"membership":{
							"id_member":"109057",
							"id_unit":"725",
							"upline":"152998",
							"type_membership":"1",
							"year":"2019",
							"month":"3",
							"upline_name":"ICAUGI",
							"unit_name":"Xzinputer"
						}
					}
				}
				
							

								
				{
					"status":{
						"http_code":"401",
						"code":"ETT-00-000",
						"message":{
							"indonesian":"Akses ditolak",
							"english":"Unauthorized"
						}
					}
				}
				{
					"status":{
						"http_code":"406",
						"code":"ETT-02-004",
						"message":{
							"indonesian":"Barcode sudah terdaftar",
							"english":"Barcode is already used"
						}
					}
				}
				{
					"status":{
						"http_code":"406",
						"code":"ETT-02-002",
						"message":{
							"indonesian":"Email sudah terdaftar",
							"english":"Email has been used"
						}
					}
				}
				{
					"status":{
						"http_code":"422",
						"code":"ETT-01-007",
						"message":{
							"indonesian":"Insert data gagal",
							"english":"Insert failed"
						}
					}
				}
				{
					"status":{
						"http_code":"400",
						"code":"ETT-01-001",
						"message":{
							"indonesian":"Parameter salah",
							"english":"Invalid request"
						}
					}
				}
				
							

Komponen Tipe Keterangan
query Array GET query from request
status Array Return status
results Array API results

Sign up staff

Request

Method URL
GET/POST https://api.twintulipware.com/login/signup_staff

Method Parameter Wajib Tipe Keterangan
GET/POST key Ya String API Key
GET/POST email Ya String Email
GET/POST password Ya md5 Password
GET/POST first_name Ya String Nama depan
GET/POST last_name Ya String Nama belakang
GET/POST gender Ya Wanita/Pria Jenis kelamin
GET/POST ktp Ya String Nomor KTP
GET/POST npwp Ya String Nomor NPWP
GET/POST religion Ya String Agama
GET/POST pob Ya String Tempat lahir
GET/POST dob Ya Date Tanggal lahir
GET/POST address Ya String Alamat
GET/POST phone Ya String Nomor telepon
GET/POST emergency_contact Ya String Kontak telepon darurat yg dapat dihubungi
GET/POST emergency_phone Ya String Nomor telepon darurat yg dapat dihubungi
GET/POST status Ya String Status pernikahan
GET/POST child Ya String Jumlah anak
GET/POST education Ya String Pendidikan terakhir
GET/POST rek_bank Ya String Bank rekening
GET/POST rek_number Ya String Nomor rekening
GET/POST rek_name Ya String Nama yg terdaftar di rekening bank

https://api.twintulipware.com/login/signup_guest?key=1a2b3c&email=abc&password=abc&first_name=abc&last_name=abc&gender=abc&ktp=abc&npwp=abc&religion=abc&pob=abc&dob=yyyy-mm-dd&address=abc&phone=abc&emergency_contact=abc&emergency_phone=abc&status=abc&child=abc&education=abc&rek_bank=abc&rek_number=abc&rek_name=abc

Response

								
				{
					"query":{
						"key":"1a2b3c"
					},
					"status":{
						"http_code":"200",
						"code":"ETT-01-003",
						"message":{
							"indonesian":"Insert data berhasil",
							"english":"Insert successful"
						}
					},
					"results":{
						"email":"coba",
						"password":"098F6BCD4621D373CADE4E832627B4F6",
						"barcode":"2016N000001",
						"id_staff":"109057",
						"id_branch":["1","2"],
						"id_authorise":"1",
						"id_division":"1",
						"first_name":"User Dicky",
						"last_name":"",
						"gender":"Pria",
						"ktp":"20150829110930",
						"npwp":"",
						"religion":"KRISTEN",
						"pob":"-",
						"dob":"2015-08-29",
						"address":"Dago",
						"phone":"085860001990",
						"emergency_contact":"Budi",
						"emergency_phone":"085860001991",
						"status":"KAWIN",
						"child":"0",
						"education":"",
						"rek_bank":"-",
						"rek_number":"0",
						"rek_name":"-",
						"active":"1",
						"profile_img":"",
						"reg_date":"2015-09-08 00:00:00",
						"last_updated":"2019-02-07 22:00:49"
					}
				}
				
							

								
				{
					"status":{
						"http_code":"401",
						"code":"ETT-00-000",
						"message":{
							"indonesian":"Akses ditolak",
							"english":"Unauthorized"
						}
					}
				}
				{
					"status":{
						"http_code":"406",
						"code":"ETT-02-002",
						"message":{
							"indonesian":"Email sudah terdaftar",
							"english":"Email has been used"
						}
					}
				}
				{
					"status":{
						"http_code":"422",
						"code":"ETT-01-007",
						"message":{
							"indonesian":"Insert data gagal",
							"english":"Insert failed"
						}
					}
				}
				{
					"status":{
						"http_code":"400",
						"code":"ETT-01-001",
						"message":{
							"indonesian":"Parameter salah",
							"english":"Invalid request"
						}
					}
				}
				
							

Komponen Tipe Keterangan
query Array GET query from request
status Array Return status
results Array API results

Accept terms & conditions

Request

Method URL
GET/POST https://api.twintulipware.com/login/acc_term

Method Parameter Wajib Tipe Keterangan
GET/POST key Ya String API Key
GET/POST id_member Ya Int ID Member
GET/POST id_guest Ya Int ID Guest
GET/POST acc_term Tidak Boolean Accept the terms (default if empty then = 1)

https://api.twintulipware.com/login/acc_term?key=1a2b3c&id_member=123
https://api.twintulipware.com/login/acc_term?key=1a2b3c&id_guest=123
https://api.twintulipware.com/login/acc_term?key=1a2b3c&id_guest=123&acc_term=0

Response

								
				{
					"query":{
						"key":"1a2b3c"
					},
					"status":{
						"http_code":"200",
						"code":"ETT-01-004",
						"message":{
							"indonesian":"Update data berhasil",
							"english":"Update successful"
						}
					}
				}
				
							

								
				{
					"status":{
						"http_code":"401",
						"code":"ETT-00-000",
						"message":{
							"indonesian":"Akses ditolak",
							"english":"Unauthorized"
						}
					}
				}
				{
					"status":{
						"http_code":"422",
						"code":"ETT-01-008",
						"message":{
							"indonesian":"Update data gagal",
							"english":"Update failed"
						}
					}
				}
				{
					"status":{
						"http_code":"400",
						"code":"ETT-01-001",
						"message":{
							"indonesian":"Parameter salah",
							"english":"Invalid request"
						}
					}
				}
				
							

Komponen Tipe Keterangan
query Array GET query from request
status Array Return status
results Array API results

Reset password

Request

Method URL
GET/POST https://api.twintulipware.com/login/reset_password

Method Parameter Wajib Tipe Keterangan
GET/POST key Ya String API Key
GET/POST email Ya String Email

https://api.twintulipware.com/login/reset_password?key=1a2b3c&email=abc

Response

								
				{
					"query":{
						"key":"1a2b3c"
					},
					"status":{
						"http_code":"200",
						"code":"ETT-01-004",
						"message":{
							"indonesian":"Update data berhasil",
							"english":"Update successful"
						}
					}
				}
				
							

								
				{
					"status":{
						"http_code":"401",
						"code":"ETT-00-000",
						"message":{
							"indonesian":"Akses ditolak",
							"english":"Unauthorized"
						}
					}
				}
				{
					"status":{
						"http_code":"400",
						"code":"ETT-02-001",
						"message":{
							"indonesian":"Email/password salah",
							"english":"Wrong email/password"
						}
					}
				}
				{
					"status":{
						"http_code":"422",
						"code":"ETT-01-008",
						"message":{
							"indonesian":"Update data gagal",
							"english":"Update failed"
						}
					}
				}
				{
					"status":{
						"http_code":"400",
						"code":"ETT-01-001",
						"message":{
							"indonesian":"Parameter salah",
							"english":"Invalid request"
						}
					}
				}
				
							

Komponen Tipe Keterangan
query Array GET query from request
status Array Return status
results Array API results

Ganti password

Request

Method URL
GET/POST https://api.twintulipware.com/login/change_password

Method Parameter Wajib Tipe Keterangan
GET/POST key Ya String API Key
GET/POST id_member Tidak Int ID member
GET/POST id_guest Tidak Int ID guest
GET/POST id_staff Tidak Int ID staff
GET/POST old_password Ya String Password lama
GET/POST new_password Ya String Password baru

https://api.twintulipware.com/login/change_password?key=1a2b3c&id_member=123&old_password=abc&new_password=abc
https://api.twintulipware.com/login/change_password?key=1a2b3c&id_guest=123&old_password=abc&new_password=abc
https://api.twintulipware.com/login/change_password?key=1a2b3c&id_staff=123&old_password=abc&new_password=abc

Response

								
				{
					"query":{
						"key":"1a2b3c"
					},
					"status":{
						"http_code":"200",
						"code":"ETT-01-004",
						"message":{
							"indonesian":"Update data berhasil",
							"english":"Update successful"
						}
					}
				}
				
							

								
				{
					"status":{
						"http_code":"401",
						"code":"ETT-00-000",
						"message":{
							"indonesian":"Akses ditolak",
							"english":"Unauthorized"
						}
					}
				}
				{
					"status":{
						"http_code":"400",
						"code":"ETT-02-005",
						"message":{
							"indonesian":"Password kosong",
							"english":"Password is empty"
						}
					}
				}
				{
					"status":{
						"http_code":"400",
						"code":"ETT-02-006",
						"message":{
							"indonesian":"Password tidak boleh menggunakan tanda baca",
							"english":"Password cannot use special character"
						}
					}
				}
				{
					"status":{
						"http_code":"400",
						"code":"ETT-02-001",
						"message":{
							"indonesian":"Email/password salah",
							"english":"Wrong email/password"
						}
					}
				}
				{
					"status":{
						"http_code":"422",
						"code":"ETT-01-008",
						"message":{
							"indonesian":"Update data gagal",
							"english":"Update failed"
						}
					}
				}
				{
					"status":{
						"http_code":"400",
						"code":"ETT-01-001",
						"message":{
							"indonesian":"Parameter salah",
							"english":"Invalid request"
						}
					}
				}
				
							

Komponen Tipe Keterangan
query Array GET query from request
status Array Return status
results Array API results

Ganti email

Request

Method URL
GET/POST https://api.twintulipware.com/login/change_email

Method Parameter Wajib Tipe Keterangan
GET/POST key Ya String API Key
GET/POST id_member Tidak Int ID member
GET/POST id_guest Tidak Int ID guest
GET/POST id_staff Tidak Int ID staff
GET/POST password Ya String Password
GET/POST email Ya String Email baru

https://api.twintulipware.com/login/change_email?key=1a2b3c&id_member=123&password=abc&email=abc
https://api.twintulipware.com/login/change_email?key=1a2b3c&id_guest=123&password=abc&email=abc
https://api.twintulipware.com/login/change_email?key=1a2b3c&id_staff=123&password=abc&email=abc

Response

								
				{
					"query":{
						"key":"1a2b3c"
					},
					"status":{
						"http_code":"200",
						"code":"ETT-01-004",
						"message":{
							"indonesian":"Update data berhasil",
							"english":"Update successful"
						}
					}
				}
				
							

								
				{
					"status":{
						"http_code":"401",
						"code":"ETT-00-000",
						"message":{
							"indonesian":"Akses ditolak",
							"english":"Unauthorized"
						}
					}
				}
				{
					"status":{
						"http_code":"400",
						"code":"ETT-02-005",
						"message":{
							"indonesian":"Password kosong",
							"english":"Password is empty"
						}
					}
				}
				{
					"status":{
						"http_code":"400",
						"code":"ETT-02-006",
						"message":{
							"indonesian":"Password tidak boleh menggunakan tanda baca",
							"english":"Password cannot use special character"
						}
					}
				}
				{
					"status":{
						"http_code":"400",
						"code":"ETT-02-001",
						"message":{
							"indonesian":"Email/password salah",
							"english":"Wrong email/password"
						}
					}
				}
				{
					"status":{
						"http_code":"422",
						"code":"ETT-01-008",
						"message":{
							"indonesian":"Update data gagal",
							"english":"Update failed"
						}
					}
				}
				{
					"status":{
						"http_code":"400",
						"code":"ETT-01-001",
						"message":{
							"indonesian":"Parameter salah",
							"english":"Invalid request"
						}
					}
				}
				
							

Komponen Tipe Keterangan
query Array GET query from request
status Array Return status
results Array API results

Ganti nomor hp

Request

Method URL
GET/POST https://api.twintulipware.com/login/change_phone

Method Parameter Wajib Tipe Keterangan
GET/POST key Ya String API Key
GET/POST id_member Tidak Int ID member
GET/POST id_guest Tidak Int ID guest
GET/POST id_staff Tidak Int ID staff
GET/POST password Ya String Password
GET/POST phone Ya String Nomor baru

https://api.twintulipware.com/login/change_phone?key=1a2b3c&id_member=123&password=abc&phone=abc
https://api.twintulipware.com/login/change_phone?key=1a2b3c&id_guest=123&password=abc&phone=abc
https://api.twintulipware.com/login/change_phone?key=1a2b3c&id_staff=123&password=abc&phone=abc

Response

								
				{
					"query":{
						"key":"1a2b3c"
					},
					"status":{
						"http_code":"200",
						"code":"ETT-01-004",
						"message":{
							"indonesian":"Update data berhasil",
							"english":"Update successful"
						}
					}
				}
				
							

								
				{
					"status":{
						"http_code":"401",
						"code":"ETT-00-000",
						"message":{
							"indonesian":"Akses ditolak",
							"english":"Unauthorized"
						}
					}
				}
				{
					"status":{
						"http_code":"400",
						"code":"ETT-02-005",
						"message":{
							"indonesian":"Password kosong",
							"english":"Password is empty"
						}
					}
				}
				{
					"status":{
						"http_code":"400",
						"code":"ETT-02-006",
						"message":{
							"indonesian":"Password tidak boleh menggunakan tanda baca",
							"english":"Password cannot use special character"
						}
					}
				}
				{
					"status":{
						"http_code":"400",
						"code":"ETT-02-001",
						"message":{
							"indonesian":"Email/password salah",
							"english":"Wrong email/password"
						}
					}
				}
				{
					"status":{
						"http_code":"422",
						"code":"ETT-01-008",
						"message":{
							"indonesian":"Update data gagal",
							"english":"Update failed"
						}
					}
				}
				{
					"status":{
						"http_code":"400",
						"code":"ETT-01-001",
						"message":{
							"indonesian":"Parameter salah",
							"english":"Invalid request"
						}
					}
				}
				
							

Komponen Tipe Keterangan
query Array GET query from request
status Array Return status
results Array API results

Reconfirm email

Request

Method URL
GET/POST https://api.twintulipware.com/login/reconfirm_email

Method Parameter Wajib Tipe Keterangan
GET/POST key Ya String API Key
GET/POST email Ya String Email

https://api.twintulipware.com/login/reconfirm_email?key=1a2b3c&email=abc

Response

								
				{
					"query":{
						"key":"1a2b3c"
					},
					"status":{
						"http_code":"200",
						"code":"ETT-02-009",
						"message":{
							"indonesian":"Email sudah terkirim",
							"english":"Email has been sent"
						}
					}
				}
				
							

								
				{
					"status":{
						"http_code":"401",
						"code":"ETT-00-000",
						"message":{
							"indonesian":"Akses ditolak",
							"english":"Unauthorized"
						}
					}
				}
				{
					"status":{
						"http_code":"400",
						"code":"ETT-02-005",
						"message":{
							"indonesian":"Email tidak dapat dikirim",
							"english":"Failed to send email"
						}
					}
				}
				
							

Komponen Tipe Keterangan
query Array GET query from request
status Array Return status
results Array API results

Login

Request

Method URL
GET/POST https://api.twintulipware.com/login

Method Parameter Wajib Tipe Keterangan
GET/POST key Ya String API Key
GET/POST email Ya String Email
GET/POST password Ya String Password
GET/POST barcode Tidak String Barcode kartu member

https://api.twintulipware.com/login?key=1a2b3c&email=abc&password=abc
https://api.twintulipware.com/login?key=1a2b3c&barcode=abc

Response

								
				{
					"query":{
						"key":"1a2b3c",
					},
					"results":{
						"id_staff":"2",
						"branch":[{
							"id_branch":"1",
							"branch_name":"Admin 1 Test"
						},{
							"id_branch":"2",
							"branch_name":"Bandung"
						},{
							"id_branch":"3",
							"branch_name":"Kelapa Gading"
						}],
						"id_member":"109057",
						"domicile":"1",
						"first_name":"User Dicky",
						"last_name":""
					},
					"status":{
						"http_code":"200",
						"code":"ETT-01-002",
						"message":{
							"indonesian":"Data berhasil ditarik",
							"english":"Success"
						}
					}
				}
				
							

								
				{
					"status":{
						"http_code":"401",
						"code":"ETT-00-000",
						"message":{
							"indonesian":"Akses ditolak",
							"english":"Unauthorized"
						}
					}
				}
				{
					"status":{
						"http_code":"422",
						"code":"ETT-01-011",
						"message":{
							"indonesian":"Tidak dapat diproses",
							"english":"Unprocessable entity"
						}
					}
				}
				{
					"status":{
						"http_code":"400",
						"code":"ETT-02-001",
						"message":{
							"indonesian":"Email/password salah",
							"english":"Wrong email/password"
						}
					}
				}
				{
					"status":{
						"http_code":"404",
						"code":"ETT-02-003",
						"message":{
							"indonesian":"Barcode tidak ditemukan",
							"english":"Barcode not found"
						}
					}
				}
				
							

Komponen Tipe Keterangan
query Array GET query from request
status Array Return status
results Array API results

Daftar referral code

Request

Method URL
GET/POST https://api.twintulipware.com/member/referral_code

Method Parameter Wajib Tipe Keterangan
GET/POST key Ya String API Key
GET/POST id_guest Ya Int ID guest
GET/POST referral_code Ya String Referral code

https://api.twintulipware.com/member/referral_code?key=1a2b3c&id_guest=123&referral_code=abc

Response

								
				{
					"query":{
						"key":"123",
						"id_guest":"1",
						"referral_code":"M01040509"
					},
					"status":{
						"http_code":"200",
						"code":"ETT-01-004",
						"message":{
							"indonesian":"Update data berhasil",
							"english":"Update successful"
						}
					},
					"results":{
						"profile":{
							"id_guest":"1",
							"referral_code":"M01040509",
							"first_name":"Anisa",
							"last_name":"Sugarti",
							"gender":"Wanita",
							"dob":"0000-00-00",
							"address":null,
							"phone":"085718298211",
							"profile_img":"",
							"reg_date":"2018-07-25 15:09:02",
							"last_updated":"2019-06-13 01:30:12"
						}
					}
				}
				
							

								
				{
					"status":{
						"http_code":"401",
						"code":"ETT-00-000",
						"message":{
							"indonesian":"Akses ditolak",
							"english":"Unauthorized"
						}
					}
				}
				{
					"status":{
						"http_code":"400",
						"code":"ETT-02-007",
						"message":{
							"indonesian":"Referral code tidak ditemukan",
							"english":"Referral code not found"
						}
					}
				}
				{
					"status":{
						"http_code":"422",
						"code":"ETT-01-008",
						"message":{
							"indonesian":"Update data gagal",
							"english":"Update failed"
						}
					}
				}
				{
					"status":{
						"http_code":"400",
						"code":"ETT-01-001",
						"message":{
							"indonesian":"Parameter salah",
							"english":"Invalid request"
						}
					}
				}
				
							

Komponen Tipe Keterangan
query Array GET query from request
status Array Return status
results Array API results

Mau menjadi member

Request

Method URL
GET/POST https://api.twintulipware.com/login/request_membership

Method Parameter Wajib Tipe Keterangan
GET/POST key Ya String API Key
GET/POST id_guest Ya Int ID guest
GET/POST request_membership Ya Boolean Permintaan

https://api.twintulipware.com/login/request_membership?key=1a2b3c&id_guest=123&request_membership=123

Response

								
				{
					"query":{
						"key":"123",
						"id_guest":"1",
						"request_membership":"1"
					},
					"status":{
						"http_code":"200",
						"code":"ETT-01-004",
						"message":{
							"indonesian":"Update data berhasil",
							"english":"Update successful"
						}
					}
				}
				
							

								
				{
					"status":{
						"http_code":"401",
						"code":"ETT-00-000",
						"message":{
							"indonesian":"Akses ditolak",
							"english":"Unauthorized"
						}
					}
				}
				{
					"status":{
						"http_code":"422",
						"code":"ETT-01-008",
						"message":{
							"indonesian":"Update data gagal",
							"english":"Update failed"
						}
					}
				}
				{
					"status":{
						"http_code":"400",
						"code":"ETT-01-001",
						"message":{
							"indonesian":"Parameter salah",
							"english":"Invalid request"
						}
					}
				}
				
							

Komponen Tipe Keterangan
query Array GET query from request
status Array Return status
results Array API results

Lihat profile

Request

Method URL
GET/POST https://api.twintulipware.com/member/profile

Method Parameter Wajib Tipe Keterangan
GET/POST key Ya String API Key
GET/POST id_member Tidak Int ID member
GET/POST id_guest Tidak Int ID guest
GET/POST id_address Tidak Int ID alamat

https://api.twintulipware.com/member/profile?key=1a2b3c&id_member=123
https://api.twintulipware.com/member/profile?key=1a2b3c&id_guest=123
https://api.twintulipware.com/member/profile?key=1a2b3c&id_member=123&id_address=123
https://api.twintulipware.com/member/profile?key=1a2b3c&id_guest=123&id_address=123

Response

								
				{
					"query":{
						"key":"1a2b3c",
						"id_member":"109057"
					},
					"status":{
						"http_code":"200",
						"code":"ETT-01-002",
						"message":{
							"indonesian":"Data berhasil ditarik",
							"english":"Success"
						}
					},
					"results":{
						"profile":{
							"id_member":"109057",
							"code_user":"M781394",
							"first_name":"User Dicky",
							"last_name":"",
							"gender":"F",
							"ktp":"20150829110930",
							"npwp":"",
							"religion":"KRISTEN",
							"pob":"-",
							"dob":"2015-08-29",
							"address":"Dago",
							"phone":"085860001984",
							"status":"KAWIN",
							"child":"0",
							"occupation":"0",
							"education":"",
							"rek_bank":"-",
							"rek_number":"0",
							"rek_name":"-",
							"profile_img":"",
							"reg_by":"1",
							"reg_date":"2015-09-08 00:00:00",
							"reg_branch":"0",
							"last_active":"2018-04-02 10:48:07",
							"last_updated":"2019-02-07 22:00:49",
							"domicile":"1",
							"membership":{
								"id_member":"109057",
								"id_unit":"725",
								"upline":"152998",
								"type_membership":"1",
								"year":"2019",
								"month":"3",
								"upline_name":"ICAUGI",
								"unit_name":"Xzinputer"
							},
							"membership_lt":[],
							"billing_address":[{
								"id_guest":null,
								"id_member":"109057",
								"first_name":"Dicky",
								"last_name":"VK",
								"email":"asd",
								"phone":"123",
								"address":"asd",
								"city":"asd",
								"postal_code":"123",
								"country_code":"1"
							}],
							"shipping_address":[{
								"id_address":"1",
								"default":"1",
								"id_guest":"0",
								"id_member":"109057",
								"first_name":"Dicky",
								"last_name":"VK",
								"email":"asd@asd.com",
								"phone":"123",
								"country":"IND",
								"province":null,
								"city":"BDG",
								"address":"ADD",
								"postal_code":"321",
								"country_code":"111",
								"rajaongkir_country_id":"1",
								"rajaongkir_province_id":null,
								"rajaongkir_city_id":"1"
							},{
								"id_address":"2",
								"default":"0",
								"id_guest":"0",
								"id_member":"109057",
								"first_name":"Dicky",
								"last_name":"VK",
								"email":"asd@asd.com",
								"phone":"123",
								"country":"IND",
								"province":null,
								"city":"BDG",
								"address":"ADD2",
								"postal_code":"321",
								"country_code":"111",
								"rajaongkir_country_id":"1",
								"rajaongkir_province_id":null,
								"rajaongkir_city_id":"1"
							},{
								"id_address":"3",
								"default":"0",
								"id_guest":"0",
								"id_member":"109057",
								"first_name":"Dicky",
								"last_name":"VK",
								"email":"asd@asd.com",
								"phone":"123",
								"country":"IND",
								"province":null,
								"city":"BDG",
								"address":"ADD3",
								"postal_code":"321",
								"country_code":"111",
								"rajaongkir_country_id":"1",
								"rajaongkir_province_id":null,
								"rajaongkir_city_id":"1"
							}]
						}
					}
				}
				
							

								
				{
					"status":{
						"http_code":"400",
						"code":"ETT-01-001",
						"message":{
							"indonesian":"Parameter salah",
							"english":"Invalid request"
						}
					}
				}
				
							

Komponen Tipe Keterangan
query Array GET query from request
status Array Return status
results Array API results

Update profile

Request

Method URL
GET/POST https://api.twintulipware.com/login/update_profile

Method Parameter Wajib Tipe Keterangan
GET/POST key Ya String API Key
GET/POST id_member Tidak Int ID member
GET/POST id_guest Tidak Int ID guest
GET/POST id_staff Tidak Int ID staff
GET/POST update Ya Array Data yg diupdate (refer to profile)

https://api.twintulipware.com/login/update_profile?key=1a2b3c&id_member=123&update[first_name]=abc&update[last_name]=abc&update[gender]=abc&update[ktp]=abc&update[npwp]=abc&update[religion]=abc&update[pob]=abc&update[dob]=yyyy-mm-dd&update[address]=abc&update[phone]=abc&update[status]=abc&update[child]=123&update[occupation]=abc&update[education]=abc&update[rek_bank]=abc&update[rek_number]=abc&update[rek_name]=abc&update[last_active]=yyyy-mm-dd H:i:s

Response

								
				{
					"query":{
						"key":"1a2b3c",
						"id_member":"109057"
					},
					"status":{
						"http_code":"200",
						"code":"ETT-01-004",
						"message":{
							"indonesian":"Update data berhasil",
							"english":"Update successful"
						}
					}
				}
				
							

								
				{
					"status":{
						"http_code":"400",
						"code":"ETT-01-001",
						"message":{
							"indonesian":"Parameter salah",
							"english":"Invalid request"
						}
					}
				}
				{
					"status":{
						"http_code":"422",
						"code":"ETT-01-008",
						"message":{
							"indonesian":"Update data gagal",
							"english":"Update failed"
						}
					}
				}
				
							

Komponen Tipe Keterangan
query Array GET query from request
status Array Return status
results Array API results

Update registration token

Request

Method URL
GET/POST https://api.twintulipware.com/login/registration_token

Method Parameter Wajib Tipe Keterangan
GET/POST key Ya String API Key
GET/POST id_member Tidak Int ID member
GET/POST id_guest Tidak Int ID guest
GET/POST id_staff Tidak Int ID staff
GET/POST registration_token Ya String Registration token device milik user

https://api.twintulipware.com/login/registration_token?key=1a2b3c&id_member=123®istration_token=abc
https://api.twintulipware.com/login/registration_token?key=1a2b3c&id_guest=123®istration_token=abc
https://api.twintulipware.com/login/registration_token?key=1a2b3c&id_staff=123®istration_token=abc

Response

								
				{
					"query":{
						"key":"1a2b3c",
						"id_member":"109057"
					},
					"status":{
						"http_code":"200",
						"code":"ETT-01-004",
						"message":{
							"indonesian":"Update data berhasil",
							"english":"Update successful"
						}
					}
				}
				
							

								
				{
					"status":{
						"http_code":"400",
						"code":"ETT-01-001",
						"message":{
							"indonesian":"Parameter salah",
							"english":"Invalid request"
						}
					}
				}
				{
					"status":{
						"http_code":"422",
						"code":"ETT-01-008",
						"message":{
							"indonesian":"Update data gagal",
							"english":"Update failed"
						}
					}
				}
				{
					"status":{
						"http_code":"422",
						"code":"ETT-01-007",
						"message":{
							"indonesian":"Insert data gagal",
							"english":"Insert failed"
						}
					}
				}
				
							

Komponen Tipe Keterangan
query Array GET query from request
status Array Return status
results Array API results

Daftar provinsi

Request

Method URL
GET/POST https://api.twintulipware.com/core/delivery_province

Method Parameter Wajib Tipe Keterangan
GET/POST key Ya String API Key
GET/POST province_id Tidak Int ID provinsi

https://api.twintulipware.com/core/delivery_province?key=1a2b3c
https://api.twintulipware.com/core/delivery_province?key=1a2b3c&province_id=123

Response

								
				{
					"rajaongkir": {
						"query": {
							"id": "12"
						},
						"status": {
							"code": 200,
							"description": "OK"
						},
						"results": {
							"province_id": "12",
							"province": "Kalimantan Barat"
						}
					}
				}
				
							

								
				{
					"status":{
						"code":405,
						"info":"cURL Error"
					}
				}
				
							

Komponen Tipe Keterangan
query Array GET query from request
status Array Return status
results Array API results

Daftar kota

Request

Method URL
GET/POST https://api.twintulipware.com/core/delivery_city

Method Parameter Wajib Tipe Keterangan
GET/POST key Ya String API Key
GET/POST province_id Tidak Int ID provinsi
GET/POST city_id Tidak Int ID kota

https://api.twintulipware.com/core/delivery_city?key=1a2b3c
https://api.twintulipware.com/core/delivery_city?key=1a2b3c&province_id=123
https://api.twintulipware.com/core/delivery_city?key=1a2b3c&city_id=123

Response

								
				{
					"rajaongkir": {
						"query": {
							"province": "5",
							"id": "39"
						},
						"status": {
							"code": 200,
							"description": "OK"
						},
						"results": {
							"city_id": "39",
							"province_id": "5",
							"province": "DI Yogyakarta",
							"type": "Kabupaten",
							"city_name": "Bantul",
							"postal_code": "55700"
						}
					}
				}
				
							

								
				{
					"status":{
						"code":405,
						"info":"cURL Error"
					}
				}
				
							

Komponen Tipe Keterangan
query Array GET query from request
status Array Return status
results Array API results

Ongkos kirim

Request

Method URL
GET/POST https://api.twintulipware.com/core/delivery_cost

Method Parameter Wajib Tipe Keterangan
GET/POST key Ya String API Key
GET/POST id_address Ya Int ID alamat penerima
GET/POST weight Ya Int Berat total
GET/POST courier Ya JNE Kode courier yang dipakai

https://api.twintulipware.com/core/delivery_cost?key=1a2b3c&id_address=123&weight=123&courier=jne

Response

								
				{
					"rajaongkir":{
						"query":{
							"origin":"501",
							"destination":"114",
							"weight":1700,
							"courier":"jne"
						},
						"status":{
							"code":200,
							"description":"OK"
						},
						"origin_details":{
							"city_id":"501",
							"province_id":"5",
							"province":"DI Yogyakarta",
							"type":"Kota",
							"city_name":"Yogyakarta",
							"postal_code":"55000"
						},
						"destination_details":{
							"city_id":"114",
							"province_id":"1",
							"province":"Bali",
							"type":"Kota",
							"city_name":"Denpasar",
							"postal_code":"80000"
						},
						"results":[
						{
							"code":"jne",
							"name":"Jalur Nugraha Ekakurir (JNE)",
							"costs":[
							{
								"service":"OKE",
								"description":"Ongkos Kirim Ekonomis",
								"cost":[
								{
									"value":38000,
									"etd":"4-5",
									"note":""
								}
								]
							},
							{
								"service":"REG",
								"description":"Layanan Reguler",
								"cost":[
								{
									"value":44000,
									"etd":"2-3",
									"note":""
								}
								]
							},
							{
								"service":"SPS",
								"description":"Super Speed",
								"cost":[
								{
									"value":349000,
									"etd":"",
									"note":""
								}
								]
							},
							{
								"service":"YES",
								"description":"Yakin Esok Sampai",
								"cost":[
								{
									"value":98000,
									"etd":"1-1",
									"note":""
								}
								]
							}
							]
						}
						]
					}
				}
				
							

								
				{
					"status":{
						"code":405,
						"info":"cURL Error"
					}
				}
				
							

Komponen Tipe Keterangan
query Array GET query from request
status Array Return status
results Array API results

Ganti billing address

Request

Method URL
GET/POST https://api.twintulipware.com/member/billing_address

Method Parameter Wajib Tipe Keterangan
GET/POST key Ya String API Key
GET/POST id_member Tidak Int ID member
GET/POST id_guest Tidak Int ID guest
GET/POST first_name Ya String Nama depan
GET/POST last_name Ya String Nama belakang
GET/POST email Ya String Email
GET/POST phone Ya String Nomor telepon
GET/POST address Ya String Alamat
GET/POST city Ya String Kota
GET/POST postal_code Ya String Kode POS
GET/POST country_code Ya String Kode negara
GET/POST rajaongkir_country_id Ya String ID negara rajaongkir
GET/POST rajaongkir_province_id Ya String ID provinsi rajaongkir
GET/POST rajaongkir_city_id Ya String ID kota rajaongkir

https://api.twintulipware.com/member/billing_address?key=1a2b3c&id_member=123&first_name=abc&last_name=abc&email=abc&phone=abc&address=abc&city=abc&postal_code=abc&country_code=abc&rajaongkir_country_id=123&rajaongkir_province_id=123&rajaongkir_city_id=123
https://api.twintulipware.com/member/billing_address?key=1a2b3c&id_guest=123&first_name=abc&last_name=abc&email=abc&phone=abc&address=abc&city=abc&postal_code=abc&country_code=abc&rajaongkir_country_id=123&rajaongkir_province_id=123&rajaongkir_city_id=123

Response

								
				{
					"query":{
						"key":"1a2b3c",
						"id_member":"109057"
					},
					"status":{
						"http_code":"200",
						"code":"ETT-01-004",
						"message":{
							"indonesian":"Update data berhasil",
							"english":"Update successful"
						}
					}
				}
				
							

								
				{
					"status":{
						"http_code":"401",
						"code":"ETT-00-000",
						"message":{
							"indonesian":"Akses ditolak",
							"english":"Unauthorized"
						}
					}
				}
				{
					"status":{
						"http_code":"422",
						"code":"ETT-01-008",
						"message":{
							"indonesian":"Update data gagal",
							"english":"Update failed"
						}
					}
				}
				{
					"status":{
						"http_code":"422",
						"code":"ETT-01-007",
						"message":{
							"indonesian":"Insert data gagal",
							"english":"Insert failed"
						}
					}
				}
				{
					"status":{
						"http_code":"400",
						"code":"ETT-01-001",
						"message":{
							"indonesian":"Parameter salah",
							"english":"Invalid request"
						}
					}
				}
				
							

Komponen Tipe Keterangan
query Array GET query from request
status Array Return status
results Array API results

Tambah shipping address

Request

Method URL
GET/POST https://api.twintulipware.com/member/shipping_address

Method Parameter Wajib Tipe Keterangan
GET/POST key Ya String API Key
GET/POST default Tidak Int Default address atau bukan
GET/POST id_member Tidak Int ID member
GET/POST id_guest Tidak Int ID guest
GET/POST first_name Ya String Nama depan
GET/POST last_name Ya String Nama belakang
GET/POST email Ya String Email
GET/POST phone Ya String Nomor telepon
GET/POST country Ya String Negara
GET/POST province Ya String Provinsi
GET/POST city Ya String Kota
GET/POST address Ya String Alamat
GET/POST postal_code Ya String Kode POS
GET/POST country_code Ya String Kode negara
GET/POST rajaongkir_country_id Ya String ID negara rajaongkir
GET/POST rajaongkir_province_id Ya String ID provinsi rajaongkir
GET/POST rajaongkir_city_id Ya String ID kota rajaongkir
GET/POST id_address Tidak Int ID address yg di update

https://api.twintulipware.com/member/shipping_address?key=1a2b3c&id_member=123&first_name=abc&last_name=abc&email=abc&phone=abc&country=abc&province=abc&city=abc&address=abc&postal_code=abc&country_code=abc&rajaongkir_country_id=123&rajaongkir_province_id=123&rajaongkir_city_id=123
https://api.twintulipware.com/member/shipping_address?key=1a2b3c&default=1&id_member=123&first_name=abc&last_name=abc&email=abc&phone=abc&country=abc&province=abc&city=abc&address=abc&postal_code=abc&country_code=abc&rajaongkir_country_id=123&rajaongkir_province_id=123&rajaongkir_city_id=123&id_address=123

Response

								
				{
					"query":{
						"key":"1a2b3c",
						"id_member":"109057"
					},
					"status":{
						"http_code":"200",
						"code":"ETT-01-003",
						"message":{
							"indonesian":"Insert data berhasil",
							"english":"Insert successful"
						}
					}
				}
				
							

								
				{
					"status":{
						"http_code":"401",
						"code":"ETT-00-000",
						"message":{
							"indonesian":"Akses ditolak",
							"english":"Unauthorized"
						}
					}
				}
				{
					"status":{
						"http_code":"422",
						"code":"ETT-01-008",
						"message":{
							"indonesian":"Update data gagal",
							"english":"Update failed"
						}
					}
				}
				{
					"status":{
						"http_code":"422",
						"code":"ETT-01-007",
						"message":{
							"indonesian":"Insert data gagal",
							"english":"Insert failed"
						}
					}
				}
				{
					"status":{
						"http_code":"400",
						"code":"ETT-01-001",
						"message":{
							"indonesian":"Parameter salah",
							"english":"Invalid request"
						}
					}
				}
				
							

Komponen Tipe Keterangan
query Array GET query from request
status Array Return status
results Array API results

Hapus shipping address

Request

Method URL
GET/POST https://api.twintulipware.com/member/delete_address

Method Parameter Wajib Tipe Keterangan
GET/POST key Ya String API Key
GET/POST id_address Ya Int ID address yg di delete

https://api.twintulipware.com/member/delete_address?key=1a2b3c&id_address=123

Response

								
				{
					"query":{
						"key":"1a2b3c",
						"id_member":"109057"
					},
					"status":{
						"http_code":"200",
						"code":"ETT-01-005",
						"message":{
							"indonesian":"Delete data berhasil",
							"english":"Delete successful"
						}
					}
				}
				
							

								
				{
					"status":{
						"http_code":"401",
						"code":"ETT-00-000",
						"message":{
							"indonesian":"Akses ditolak",
							"english":"Unauthorized"
						}
					}
				}
				{
					"status":{
						"http_code":"422",
						"code":"ETT-01-009",
						"message":{
							"indonesian":"Delete data gagal",
							"english":"Delete failed"
						}
					}
				}
				{
					"status":{
						"http_code":"400",
						"code":"ETT-01-001",
						"message":{
							"indonesian":"Parameter salah",
							"english":"Invalid request"
						}
					}
				}
				
							

Komponen Tipe Keterangan
query Array GET query from request
status Array Return status
results Array API results


Pilih Produk Daftar isi


Banner

Request

Method URL
GET/POST https://api.twintulipware.com/image/banner

Method Parameter Wajib Tipe Keterangan
GET/POST key Ya String API Key

https://api.twintulipware.com/image/banner?key=1a2b3c

Response

								
				{
					"query":{
						"key":"1a2b3c"
					},
					"status":{
						"http_code":"200",
						"code":"ETT-01-002",
						"message":{
							"indonesian":"Data berhasil ditarik",
							"english":"Success"
						}
					},
					"results":{
						"app_home":[{
							"img":"https:\/\/api.twintulipware.com\/resources\/img\/banner\/banner1.jpg",
							"link":""
						},{
							"img":"https:\/\/api.twintulipware.com\/resources\/img\/banner\/banner2.jpg",
							"link":""
						}],
						"app_catalog":[{
							"img":"https:\/\/api.twintulipware.com\/resources\/img\/banner\/banner3.jpg",
							"link":""
						}]
					}
				}
				
							

								
				{
					"status":{
						"http_code":"401",
						"code":"ETT-00-000",
						"message":{
							"indonesian":"Akses ditolak",
							"english":"Unauthorized"
						}
					}
				}
				
							

Komponen Tipe Keterangan
query Array GET query from request
status Array Return status
results Array API results

Kategori

Request

Method URL
GET/POST https://api.twintulipware.com/product/category

Method Parameter Wajib Tipe Keterangan
GET/POST key Ya String API Key
GET/POST id_category Tidak Int ID kategori yg dipilih
GET/POST id_subcategory Tidak Int ID subkategori yg dipilih

https://api.twintulipware.com/product/category?key=1a2b3c
https://api.twintulipware.com/product/category?key=1a2b3c&id_category=123
https://api.twintulipware.com/product/category?key=1a2b3c&id_subcategory=123

Response

								
				{
					"query":{
						"key":"1a2b3c"
					},
					"status":{
						"http_code":"200",
						"code":"ETT-01-002",
						"message":{
							"indonesian":"Data berhasil ditarik",
							"english":"Success"
						}
					},
					"results":[{
						"id_category":"1",
						"category":"Tulip Living",
						"category_img":null,
						"subcategory":[{
							"id_subcategory":"1",
							"subcategory":"Botol",
							"subcategory_img":null,
							"group":["113"," 123"]
						},{
							"id_subcategory":"2",
							"subcategory":"Piring",
							"subcategory_img":null,
							"group":["323"]
						}]
					},{
						"id_category":"2",
						"category":"Tulip Set",
						"category_img":null,
						"subcategory":[{
							"id_subcategory":"3",
							"subcategory":"Gelas",
							"subcategory_img":null,
							"group":["2222"]
						}]
					}]
				}
				
							

								
				{
					"status":{
						"http_code":"401",
						"code":"ETT-00-000",
						"message":{
							"indonesian":"Akses ditolak",
							"english":"Unauthorized"
						}
					}
				}
				{
					"status":{
						"http_code":"404",
						"code":"ETT-01-006",
						"message":{
							"indonesian":"Data tidak ditemukan",
							"english":"Not found"
						}
					}
				}
				
							

Komponen Tipe Keterangan
query Array GET query from request
status Array Return status
results Array API results

Keyword

Request

Method URL
GET/POST https://api.twintulipware.com/product/keyword

Method Parameter Wajib Tipe Keterangan
GET/POST key Ya String API Key

https://api.twintulipware.com/product/keyword?key=1a2b3c

Response

								
				{
					"query":{
						"key":"1a2b3c"
					},
					"status":{
						"http_code":"200",
						"code":"ETT-01-002",
						"message":{
							"indonesian":"Data berhasil ditarik",
							"english":"Success"
						}
					},
					"results":["Tulip Kids","Tulip Living","Tulip Maestro","Tulip Metal","Tulip Set","Botol","Cawan","Garpu"]
				}
				
							

								
				{
					"status":{
						"http_code":"401",
						"code":"ETT-00-000",
						"message":{
							"indonesian":"Akses ditolak",
							"english":"Unauthorized"
						}
					}
				}
				{
					"status":{
						"http_code":"404",
						"code":"ETT-01-006",
						"message":{
							"indonesian":"Data tidak ditemukan",
							"english":"Not found"
						}
					}
				}
				
							

Komponen Tipe Keterangan
query Array GET query from request
status Array Return status
results Array API results

Promo

Request

Method URL
GET/POST https://api.twintulipware.com/product/promo

Method Parameter Wajib Tipe Keterangan
GET/POST key Ya String API Key
GET/POST id_branch Tidak Int ID cabang
GET/POST id_staff Tidak Int ID staff
GET/POST id_member Tidak Int ID member
GET/POST id_guest Tidak Int ID guest
GET/POST id_promo Tidak Int ID promo
GET/POST page Tidak Int Pagination
GET/POST keyword Tidak String Keyword

https://api.twintulipware.com/product/promo?key=1a2b3c&id_staff=123
https://api.twintulipware.com/product/promo?key=1a2b3c&id_branch=123&id_member=123
https://api.twintulipware.com/product/promo?key=1a2b3c&id_guest=123
https://api.twintulipware.com/product/promo?key=1a2b3c&id_branch=123&id_member=123&id_promo=123
https://api.twintulipware.com/product/promo?key=1a2b3c&id_branch=123&id_member=123&id_promo=123&page=123
https://api.twintulipware.com/product/promo?key=1a2b3c&id_branch=123&id_member=123&keyword=abc

Response

								
				{
					"query":{
						"key":"1a2b3c"
					},
					"status":{
						"http_code":"200",
						"code":"ETT-01-002",
						"message":{
							"indonesian":"Data berhasil ditarik",
							"english":"Success"
						}
					},
					"results":[{
						"id_promo":"1001",
						"promotion":"Retail",
						"promo_img":["https:\/\/api.twintulipware.com\/resources\/img\/promo\/1\/banner1.jpg","https:\/\/api.twintulipware.com\/resources\/img\/promo\/1\/banner2.jpg"],
						"type_purchase":"2",
						"purchase_type":"Chall HUT",
						"group":[{
							"group":"537",
							"group_img":"",
							"info":"",
							"product":[{
								"code_product":"100",
								"mfg":"100",
								"type_product":"1",
								"product_type":"Plastik",
								"general_name":"Great Fine Dining Set UB",
								"dimension":"",
								"weight":"4436.90",
								"delivery_weight":"4436.90",
								"memo":"",
								"general_img":"https:\/\/api.twintulipware.com\/resources\/img\/product\/greatfinediningset\/vio.jpg",
								"id_product":"21118, 21119, 21120, 21121, 21122, 21123",
								"product_name":"Great Fine Dining Set Blue Diamond, Great Fine Dining Set Golden Lady, Great Fine Dining Set Lady, Great Fine Dining Set Pink Lady, Great Fine Dining Set Princess, Great Fine Dining Set Queen",
								"id_colour":"6, 4, 3, 5, 1, 2",
								"colour":"Blue Diamond, Golden Lady, Lady, Pink Lady, Princess, Queen",
								"id_material":"0, 0, 0, 0, 0, 0",
								"product_img":"https:\/\/api.twintulipware.com\/resources\/img\/product\/greatfinediningset\/bd.jpg, https:\/\/api.twintulipware.com\/resources\/img\/product\/greatfinediningset\/gd.jpg, https:\/\/api.twintulipware.com\/resources\/img\/product\/greatfinediningset\/vio.jpg, https:\/\/api.twintulipware.com\/resources\/img\/product\/greatfinediningset\/pl.jpg, https:\/\/api.twintulipware.com\/resources\/img\/product\/greatfinediningset\/avo.jpg, https:\/\/api.twintulipware.com\/resources\/img\/product\/greatfinediningset\/qn.jpg",
								"id_price":"537",
								"qty":"1",
								"price":"1880000",
								"default_price":"1880000",
								"purchased":"2",
								"limit_total":"2",
								"limit_per_sales":"1",
								"start_date":"0000-00-00 00:00:00",
								"end_date":"0000-00-00 00:00:00",
								"omset":"1880000",
								"komisi":"564000",
								"pv":"15.04",
								"lg":"1880000",
								"boom":"1880000",
								"or":"1880000",
								"or_req":"1880000",
								"pi":"1880000",
								"pi_req":"1880000",
								"fee":"1880000",
								"challenge_1":"1880000",
								"challenge_2":"0",
								"challenge_3":"0"
							}]
						},{
							"group":"538",
							"group_img":"",
							"info":"",
							"product":[{
								"code_product":"100TL",
								"mfg":"100",
								"type_product":"1",
								"product_type":"Plastik",
								"general_name":"Great Fine Dining Set TL",
								"dimension":"",
								"weight":"4436.90",
								"delivery_weight":"4436.90",
								"memo":"",
								"general_img":"",
								"id_product":"26209, 26210",
								"product_name":"Great Fine Dining Set Blue Diamond TL, Great Fine Dining Set Queen TL",
								"id_colour":"6, 2",
								"colour":"Blue Diamond, Queen",
								"id_material":"0, 0",
								"product_img":",",
								"id_price":"538",
								"qty":"1",
								"price":"1880000",
								"default_price":"1880000",
								"purchased":"2",
								"limit_total":"2",
								"limit_per_sales":"1",
								"start_date":"0000-00-00 00:00:00",
								"end_date":"0000-00-00 00:00:00",
								"omset":"1880000",
								"komisi":"564000",
								"pv":"15.04",
								"lg":"1880000",
								"boom":"1880000",
								"or":"1880000",
								"or_req":"1880000",
								"pi":"1880000",
								"pi_req":"1880000",
								"fee":"1880000",
								"challenge_1":"1880000",
								"challenge_2":"0",
								"challenge_3":"0"
							}]
						},{
							"group":"539",
							"group_img":"",
							"info":"",
							"product":[{
								"code_product":"101",
								"mfg":"101",
								"type_product":"1",
								"product_type":"Plastik",
								"general_name":"Fine Dining Set",
								"dimension":"",
								"weight":"0.00",
								"delivery_weight":"0.00",
								"memo":"",
								"general_img":"",
								"id_product":"20983, 20984, 20985, 20986, 20987, 20988",
								"product_name":"Fine Dining Set Blue Diamond, Fine Dining Set Golden Lady, Fine Dining Set Lady, Fine Dining Set Pink lady, Fine Dining Set Princess, Fine Dining Set Queen",
								"id_colour":"6, 4, 3, 5, 1, 2",
								"colour":"Blue Diamond, Golden Lady, Lady, Pink Lady, Princess, Queen",
								"id_material":"0, 0, 0, 0, 0, 0",
								"product_img":", , , , ,",
								"id_price":"539",
								"qty":"1",
								"price":"1600000",
								"default_price":"1600000",
								"purchased":"2",
								"limit_total":"2",
								"limit_per_sales":"1",
								"start_date":"0000-00-00 00:00:00",
								"end_date":"0000-00-00 00:00:00",
								"omset":"1600000",
								"komisi":"480000",
								"pv":"12.80",
								"lg":"1600000",
								"boom":"1600000",
								"or":"1600000",
								"or_req":"1600000",
								"pi":"1600000",
								"pi_req":"1600000",
								"fee":"1600000",
								"challenge_1":"1600000",
								"challenge_2":"0",
								"challenge_3":"0"
							}]
						}]
					}]
				}
				
							

								
				{
					"status":{
						"http_code":"401",
						"code":"ETT-00-000",
						"message":{
							"indonesian":"Akses ditolak",
							"english":"Unauthorized"
						}
					}
				}
				{
					"status":{
						"http_code":"400",
						"code":"ETT-01-001",
						"message":{
							"indonesian":"Parameter salah",
							"english":"Invalid request"
						}
					}
				}
				{
					"status":{
						"http_code":"404",
						"code":"ETT-01-006",
						"message":{
							"indonesian":"Data tidak ditemukan",
							"english":"Not found"
						}
					}
				}
				
							

Komponen Tipe Keterangan
query Array GET query from request
status Array Return status
results Array API results

Group

Request

Method URL
GET/POST https://api.twintulipware.com/product/group

Method Parameter Wajib Tipe Keterangan
GET/POST key Ya String API Key
GET/POST group Ya Int Group produk yg dipilih
GET/POST id_colour Tidak Int ID warna yg dipilih

https://api.twintulipware.com/product/group?key=1a2b3c&group=123
https://api.twintulipware.com/product/group?key=1a2b3c&group=123&id_colour=123

Response

								
				{
					"query":{
						"key":"1a2b3c"
					},
					"status":{
						"http_code":"200",
						"code":"ETT-01-002",
						"message":{
							"indonesian":"Data berhasil ditarik",
							"english":"Success"
						}
					},
					"results":[{
						"code_product":"100",
						"mfg":"100",
						"type_product":"1",
						"product_type":"Plastik",
						"general_name":"Great Fine Dining Set UB",
						"dimension":"",
						"weight":"4436.90",
						"delivery_weight":"4436.90",
						"memo":"",
						"general_img":"https:\/\/api.twintulipware.com\/resources\/img\/product\/greatfinediningset\/vio.jpg",
						"id_product":["21118","21119","21120","21121","21122","21123"],
						"product_name":["Great Fine Dining Set Blue Diamond","Great Fine Dining Set Golden Lady","Great Fine Dining Set Lady","Great Fine Dining Set Pink Lady","Great Fine Dining Set Princess","Great Fine Dining Set Queen"],
						"id_colour":["6","4","3","5","1","2"],
						"colour":["1","2","3","4","5","9","6","14","12","5","13"],
						"id_material":["0","0","0","0","0","0"],
						"product_img":["https:\/\/api.twintulipware.com\/resources\/img\/product\/greatfinediningset\/bd.jpg","https:\/\/api.twintulipware.com\/resources\/img\/product\/greatfinediningset\/gd.jpg","https:\/\/api.twintulipware.com\/resources\/img\/product\/greatfinediningset\/vio.jpg","https:\/\/api.twintulipware.com\/resources\/img\/product\/greatfinediningset\/pl.jpg","https:\/\/api.twintulipware.com\/resources\/img\/product\/greatfinediningset\/avo.jpg","https:\/\/api.twintulipware.com\/resources\/img\/product\/greatfinediningset\/qn.jpg"],
						"group":"1",
						"id_price":"1",
						"qty":"1",
						"price":"1880000",
						"default_price":"1880000",
						"purchased":"2",
						"limit_total":"2",
						"limit_per_sales":"1",
						"start_date":"0000-00-00 00:00:00",
						"end_date":"0000-00-00 00:00:00",
						"omset":"1880000",
						"komisi":"564000",
						"pv":"15.04",
						"lg":"1880000",
						"boom":"1880000",
						"or":"1880000",
						"or_req":"1880000",
						"pi":"1880000",
						"pi_req":"1880000",
						"fee":"1880000",
						"challenge_1":"0",
						"challenge_2":"1880000",
						"challenge_3":"0",
						"recommended_group":["1","2","3","4"]
					},{
						"code_product":"100TL",
						"mfg":"100",
						"type_product":"1",
						"product_type":"Plastik",
						"general_name":"Great Fine Dining Set TL",
						"dimension":"",
						"weight":"4436.90",
						"delivery_weight":"4436.90",
						"memo":"",
						"general_img":"",
						"id_product":["26209","26210"],
						"product_name":["Great Fine Dining Set Blue Diamond TL","Great Fine Dining Set Queen TL"],
						"id_colour":["6","2"],
						"colour":["1","2","3","4","5","9","6","14","12","5","13"],
						"id_material":["0","0"],
						"product_img":["",""],
						"group":"2",
						"id_price":"2",
						"qty":"1",
						"price":"1880000",
						"default_price":"1880000",
						"purchased":"2",
						"limit_total":"2",
						"limit_per_sales":"1",
						"start_date":"0000-00-00 00:00:00",
						"end_date":"0000-00-00 00:00:00",
						"omset":"1880000",
						"komisi":"564000",
						"pv":"15.04",
						"lg":"1880000",
						"boom":"1880000",
						"or":"1880000",
						"or_req":"1880000",
						"pi":"1880000",
						"pi_req":"1880000",
						"fee":"1880000",
						"challenge_1":"0",
						"challenge_2":"1880000",
						"challenge_3":"0",
						"recommended_group":["1","2","3","4"]
					}]
				}
				
							

								
				{
					"status":{
						"http_code":"401",
						"code":"ETT-00-000",
						"message":{
							"indonesian":"Akses ditolak",
							"english":"Unauthorized"
						}
					}
				}
				{
					"status":{
						"http_code":"404",
						"code":"ETT-01-006",
						"message":{
							"indonesian":"Data tidak ditemukan",
							"english":"Not found"
						}
					}
				}
				
							

Komponen Tipe Keterangan
query Array GET query from request
status Array Return status
results Array API results

Detail produk

Request

Method URL
GET/POST https://api.twintulipware.com/product

Method Parameter Wajib Tipe Keterangan
GET/POST key Ya String API Key
GET/POST code_product Tidak String Kode produk
GET/POST mfg Tidak String MFG produk
GET/POST type_product Tidak Int Tipe produk
GET/POST general_name Tidak String Nama umum produk
GET/POST id_product Ya Int ID produk
GET/POST product_name Tidak String Nama produk
GET/POST id_colour Tidak Int ID warna produk
GET/POST factory_code Tidak String Kode pabrik produk
GET/POST factory_name Tidak String Nama pabrik produk
GET/POST id_material Tidak Int ID bahan baku produk

https://api.twintulipware.com/product?key=1a2b3c&code_product=abc
https://api.twintulipware.com/product?key=1a2b3c&code_product=abc&id_colour=123
https://api.twintulipware.com/product?key=1a2b3c&id_product=123

Response

								
				{
					"query":{
						"key":"123",
						"id_product":"20017"
					},
					"status":{
						"http_code":"200",
						"code":"ETT-01-002",
						"message":{
							"indonesian":"Data berhasil ditarik",
							"english":"Success"
						}
					},
					"results":[{
						"code_product":"351UB",
						"mfg":"351",
						"type_product":"1",
						"product_type":"Plastik",
						"general_name":"Baby Feeding Set",
						"dimension":"",
						"weight":"100.00",
						"delivery_weight":"100.00",
						"memo":"15.9 x 10.5 x 5.8cm - 200 ml",
						"general_img":"https:\/\/api.twintulipware.com\/resources\/img\/product\/babyfeedingset\/avo.jpg",
						"id_product":"20017",
						"product_name":"Baby Feeding Set Blue Diamond UB",
						"id_colour":"6",
						"code_colour":"BD",
						"colour":"Blue Diamond",
						"hex":"A0B9FF",
						"id_material":"0",
						"product_img":"https:\/\/api.twintulipware.com\/resources\/img\/product\/babyfeedingset\/bd.jpg",
						"default_price":"80000"
					}]
				}
				
							

								
				{
					"status":{
						"http_code":"401",
						"code":"ETT-00-000",
						"message":{
							"indonesian":"Akses ditolak",
							"english":"Unauthorized"
						}
					}
				}
				{
					"status":{
						"http_code":"400",
						"code":"ETT-01-001",
						"message":{
							"indonesian":"Parameter salah",
							"english":"Invalid request"
						}
					}
				}
				{
					"status":{
						"http_code":"404",
						"code":"ETT-01-006",
						"message":{
							"indonesian":"Data tidak ditemukan",
							"english":"Not found"
						}
					}
				}
				
							

Komponen Tipe Keterangan
query Array GET query from request
status Array Return status
results Array API results


Sales Daftar isi


Voucher detail

Request

Method URL
GET/POST https://api.twintulipware.com/sales/voucher

Method Parameter Wajib Tipe Keterangan
GET/POST key Ya String API Key
GET/POST id_voucher Ya String Nomor voucher

https://api.twintulipware.com/sales/voucher?key=1a2b3c
https://api.twintulipware.com/sales/voucher?key=1a2b3c&id_voucher=abc

Response

								
				{
					"query":{
						"key":"1a2b3c",
						"id_voucher":"asd123"
					},
					"status":{
						"http_code":"200",
						"code":"ETT-01-002",
						"message":{
							"indonesian":"Data berhasil ditarik",
							"english":"Success"
						}
					},
					"results":{
						"id_voucher":"asd123",
						"voucher_type":"1",
						"name":"Voucher 50.000",
						"value":"50000",
						"expiry_date":"2019-03-26",
						"redeemed":null,
						"sales_number":null
					}
				}
				
							

								
				{
					"status":{
						"http_code":"401",
						"code":"ETT-00-000",
						"message":{
							"indonesian":"Akses ditolak",
							"english":"Unauthorized"
						}
					}
				}
				{
					"status":{
						"http_code":"404",
						"code":"ETT-01-006",
						"message":{
							"indonesian":"Data tidak ditemukan",
							"english":"Not found"
						}
					}
				}
				{
					"status":{
						"http_code":"400",
						"code":"ETT-01-001",
						"message":{
							"indonesian":"Parameter salah",
							"english":"Invalid request"
						}
					}
				}
				
							

Komponen Tipe Keterangan
query Array GET query from request
status Array Return status
results Array API results

Bikin nota draft

Request

Method URL
GET/POST https://api.twintulipware.com/sales/draft

Method Parameter Wajib Tipe Keterangan
GET/POST key Ya String API Key
GET/POST id_staff Tidak Int ID staff
GET/POST id_member Tidak Int ID member
GET/POST id_guest Tidak Int ID guest
GET/POST id_branch Tidak Int ID cabang
GET/POST cart Ya Array Isi shopping cart
GET/POST id_voucher Tidak String Nomor voucher
GET/POST info_receipt Tidak String Info

https://api.twintulipware.com/sales/draft?key=1a2b3c&id_member=123&id_branch=123&cart[0][group]=123&cart[0][qty]=123&cart[0][colour][0]=123&cart[1][group]=123&cart[1][qty]=123&cart[1][colour][0]=123&id_voucher=abc&info_receipt=abc

Response

								
				{
					"query":{
						"key":"1a2b3c"
					},
					"status":{
						"http_code":"200",
						"code":"ETT-01-002",
						"message":{
							"indonesian":"Data berhasil ditarik",
							"english":"Success"
						}
					},
					"results":{
						"sales_number":"NG2019-40HGxU"
					}
				}
				
							

								
				{
					"status":{
						"http_code":"401",
						"code":"ETT-00-000",
						"message":{
							"indonesian":"Akses ditolak",
							"english":"Unauthorized"
						}
					}
				}
				{
					"status":{
						"code":404,
						"info":"Stok tidak mencukupi"
					}
				}
				{
					"status":{
						"http_code":"404",
						"code":"ETT-01-006",
						"message":{
							"indonesian":"Data tidak ditemukan",
							"english":"Not found"
						}
					}
				}
				{
					"status":{
						"http_code":"400",
						"code":"ETT-01-001",
						"message":{
							"indonesian":"Parameter salah",
							"english":"Invalid request"
						}
					}
				}
				
							

Komponen Tipe Keterangan
query Array GET query from request
status Array Return status
results Array API results

Lihat detail nota

Request

Method URL
GET/POST https://api.twintulipware.com/sales

Method Parameter Wajib Tipe Keterangan
GET/POST key Ya String API Key
GET/POST sales_number Ya String Nomor nota

https://api.twintulipware.com/sales?key=1a2b3c&sales_number=abc

Response

								
				{
					"query":{
						"key":"1a2b3c",
						"sales_number":"JAPRI-0FZ9S3"
					},
					"status":{
						"http_code":"200",
						"code":"ETT-01-002",
						"message":{
							"indonesian":"Data berhasil ditarik",
							"english":"Success"
						}
					},
					"results":[{
						"details":[{
							"code_product":"444UB",
							"mfg":"444",
							"type_product":"1",
							"product_type":"Plastik",
							"general_name":"Kidz Tumbler",
							"dimension":"",
							"weight":"66.70",
							"delivery_weight":"66.70",
							"memo":"7.7 x 15.7cm - 300 ml",
							"general_img":"https:\/\/api.twintulipware.com\/resources\/img\/product\/kidztumbler\/avo.jpg",
							"id_product":"25696",
							"product_name":"Kidz Tumbler Pink Lady UB",
							"id_colour":"5",
							"colour":"Pink Lady",
							"id_material":"0",
							"product_img":"https:\/\/api.twintulipware.com\/resources\/img\/product\/kidztumbler\/pl.jpg",
							"id_sales_details":"4543",
							"type_purchase":"34",
							"id_promo":"1037",
							"qty":"1",
							"qty_given":"1",
							"price":"21000",
							"default_price":"42000",
							"omset":"21000",
							"komisi":"0",
							"pv":"0.00",
							"lg":"0",
							"boom":"0",
							"or":"0",
							"or_req":"0",
							"pi":"0",
							"pi_req":"0",
							"fee":"0",
							"challenge_1":"0",
							"challenge_2":"0",
							"challenge_3":"0",
							"hashtag":"",
							"info":"",
							"purchase_type":"Nett",
							"promotion":"Promo Tour"
						}],
						"id_sales":"957",
						"sales_number":"JAPRI-0FZ9S3",
						"type_nota":"1",
						"id_branch":"187",
						"type_price":"1",
						"id_member":"101352",
						"id_guest":null,
						"paid":"1",
						"taken":"0",
						"date":"2019-03-06 10:52:09",
						"total_cost":"21000",
						"shipping_cost":"0",
						"ppn":"0",
						"fee_ba":"0",
						"id_ba":"0",
						"info_receipt":"Ibu Dian",
						"reg_by":"38",
						"last_updated":"2019-03-05 20:52:09",
						"branch_name":"Admin Factory",
						"bca_va":"109057000123456789",
						"leftover_cost":"0",
						"receipt":[{
							"id_receipt":"1009",
							"sales_number":"JAPRI-0FZ9S3",
							"transaction_id":"0",
							"cc_number":"0",
							"cash":"21000",
							"debit":"0",
							"credit":"0",
							"transfer":"0",
							"ovo_qr":"0",
							"ovo_edc":"0",
							"change":"0",
							"date":"2019-03-06 10:52:09"
						}],
						"week":"10",
						"code_user":"M767991",
						"first_name":"INGGRITIYA RAHAYU",
						"last_name":"",
						"upline_name":"TULIP A",
						"unit_name":"AWESOME"
					}]
				}
				
							

								
				{
					"status":{
						"http_code":"401",
						"code":"ETT-00-000",
						"message":{
							"indonesian":"Akses ditolak",
							"english":"Unauthorized"
						}
					}
				}
				{
					"status":{
						"http_code":"404",
						"code":"ETT-01-006",
						"message":{
							"indonesian":"Data tidak ditemukan",
							"english":"Not found"
						}
					}
				}
				
							

Komponen Tipe Keterangan
query Array GET query from request
status Array Return status
results Array API results

Cancel nota draft

Request

Method URL
GET/POST https://api.twintulipware.com/sales/cancel

Method Parameter Wajib Tipe Keterangan
GET/POST key Ya String API Key
GET/POST sales_number Ya String Nomor nota

https://api.twintulipware.com/sales/cancel?key=1a2b3c&sales_number=abc

Response

								
				{
					"query":{
						"key":"1a2b3c"
					},
					"status":{
						"http_code":"200",
						"code":"ETT-01-002",
						"message":{
							"indonesian":"Data berhasil ditarik",
							"english":"Success"
						}
					}
				}
				
							

								
				{
					"status":{
						"http_code":"401",
						"code":"ETT-00-000",
						"message":{
							"indonesian":"Akses ditolak",
							"english":"Unauthorized"
						}
					}
				}
				{
					"status":{
						"code":400,
						"info":"Cannot delete sales that has instalment"
					}
				}
				{
					"status":{
						"code":400,
						"info":"Cannot delete sales that has been paid"
					}
				}
				{
					"status":{
						"http_code":"400",
						"code":"ETT-01-001",
						"message":{
							"indonesian":"Parameter salah",
							"english":"Invalid request"
						}
					}
				}
				
							

Komponen Tipe Keterangan
query Array GET query from request
status Array Return status
results Array API results

Set harga kirim nota draft

Request

Method URL
GET/POST https://api.twintulipware.com/sales/delivery

Method Parameter Wajib Tipe Keterangan
GET/POST key Ya String API Key
GET/POST sales_number Ya String Nomor nota
GET/POST origin Ya String ID kota alamat pengirim
GET/POST destination Ya String ID kota alamat penerima
GET/POST weight Ya Int Berat barang total
GET/POST courier Ya String Kurir pengiriman
GET/POST service Ya String Tiper servis kurir
GET/POST id_voucher Tidak String Nomor voucher

https://api.twintulipware.com/sales/delivery?key=1a2b3c&sales_number=abc&origin=123&destination=123&weight=123&courier=abc&service=123&id_voucher=abc

Response

								
				{
					"query":{
						"key":"1a2b3c",
						"sales_number":"FOCUS-T1SKAR",
						"origin":"23",
						"destination":"23",
						"weight":"1000",
						"courier":"jne",
						"service":"0"
					},
					"status":{
						"http_code":"200",
						"code":"ETT-01-004",
						"message":{
							"indonesian":"Update data berhasil",
							"english":"Update successful"
						}
					}
				}
				
							

								
				{
					"status":{
						"http_code":"401",
						"code":"ETT-00-000",
						"message":{
							"indonesian":"Akses ditolak",
							"english":"Unauthorized"
						}
					}
				}
				{
					"status":{
						"code":400,
						"info":"Sales has been paid cannot change delivery"
					}
				}
				{
					"status":{
						"http_code":"400",
						"code":"ETT-01-001",
						"message":{
							"indonesian":"Parameter salah",
							"english":"Invalid request"
						}
					}
				}
				
							

Komponen Tipe Keterangan
query Array GET query from request
status Array Return status
results Array API results

Lihat nota

Request

Method URL
GET/POST https://api.twintulipware.com/sales

Method Parameter Wajib Tipe Keterangan
GET/POST key Ya String API Key
GET/POST keyword Tidak String Keyword
GET/POST sales_number Ya String Nomor nota
GET/POST type_nota Tidak Int Tipe nota
GET/POST id_branch Tidak Int ID cabang
GET/POST id_member Tidak Int ID member
GET/POST id_guest Tidak Int ID guest
GET/POST paid Tidak Boolean Sudah dibayar atau belum
GET/POST taken Tidak Boolean Sudah diambil atau belum
GET/POST date Tidak Date Tanggal
GET/POST week Tidak Int Week
GET/POST month Tidak Int Bulan
GET/POST year Tidak Int Tahun
GET/POST reg_by Tidak Int Pembuat nota
GET/POST type_purchase Tidak Int Jenis penjualan
GET/POST id_promo Tidak Int ID promo
GET/POST id_product Tidak Int ID produk
GET/POST hashtag Tidak String Hashtag untuk search

https://api.twintulipware.com/sales?key=1a2b3c&id_branch=123&year=123&week=123

Response

								
				{
					"query":{
						"key":"1a2b3c",
						"id_branch":"187",
						"week":"12",
						"year":"2019"
					},
					"status":{
						"http_code":"200",
						"code":"ETT-01-002",
						"message":{
							"indonesian":"Data berhasil ditarik",
							"english":"Success"
						}
					},
					"results":[{
						"details":[{
							"code_product":"444UB",
							"mfg":"444",
							"type_product":"1",
							"product_type":"Plastik",
							"general_name":"Kidz Tumbler",
							"dimension":"",
							"weight":"66.70",
							"delivery_weight":"66.70",
							"memo":"7.7 x 15.7cm - 300 ml",
							"general_img":"https:\/\/api.twintulipware.com\/resources\/img\/product\/kidztumbler\/avo.jpg",
							"id_product":"25696",
							"product_name":"Kidz Tumbler Pink Lady UB",
							"id_colour":"5",
							"colour":"Pink Lady",
							"id_material":"0",
							"product_img":"https:\/\/api.twintulipware.com\/resources\/img\/product\/kidztumbler\/pl.jpg",
							"id_sales_details":"4543",
							"type_purchase":"34",
							"id_promo":"1037",
							"qty":"1",
							"qty_given":"1",
							"price":"21000",
							"default_price":"42000",
							"omset":"21000",
							"komisi":"0",
							"pv":"0.00",
							"lg":"0",
							"boom":"0",
							"or":"0",
							"or_req":"0",
							"pi":"0",
							"pi_req":"0",
							"fee":"0",
							"challenge_1":"0",
							"challenge_2":"0",
							"challenge_3":"0",
							"hashtag":"",
							"info":"",
							"purchase_type":"Nett",
							"promotion":"Promo Tour"
						}],
						"id_sales":"957",
						"sales_number":"JAPRI-0FZ9S3",
						"type_nota":"1",
						"id_branch":"187",
						"type_price":"1",
						"id_member":"101352",
						"id_guest":null,
						"paid":"1",
						"taken":"0",
						"date":"2019-03-06 10:52:09",
						"total_cost":"21000",
						"shipping_cost":"0",
						"ppn":"0",
						"fee_ba":"0",
						"id_ba":"0",
						"info_receipt":"Ibu Dian",
						"reg_by":"38",
						"last_updated":"2019-03-05 20:52:09",
						"branch_name":"Admin Factory",
						"receipt":[{
							"id_receipt":"1009",
							"sales_number":"JAPRI-0FZ9S3",
							"transaction_id":"0",
							"cc_number":"0",
							"cash":"21000",
							"debit":"0",
							"credit":"0",
							"transfer":"0",
							"ovo_qr":"0",
							"ovo_edc":"0",
							"change":"0",
							"date":"2019-03-06 10:52:09"
						}],
						"week":"10",
						"code_user":"M767991",
						"first_name":"INGGRITIYA RAHAYU",
						"last_name":"",
						"upline_name":"TULIP A",
						"unit_name":"AWESOME"
					}]
				}
				
							

								
				{
					"status":{
						"http_code":"401",
						"code":"ETT-00-000",
						"message":{
							"indonesian":"Akses ditolak",
							"english":"Unauthorized"
						}
					}
				}
				{
					"status":{
						"http_code":"404",
						"code":"ETT-01-006",
						"message":{
							"indonesian":"Data tidak ditemukan",
							"english":"Not found"
						}
					}
				}
				
							

Komponen Tipe Keterangan
query Array GET query from request
status Array Return status
results Array API results

Bayar nota draft

Request

Method URL
GET/POST https://api.twintulipware.com/sales/payment

Method Parameter Wajib Tipe Keterangan
GET/POST key Ya String API Key
GET/POST sales_number Ya String Nomor nota
GET/POST payment Ya Array Jenis pembayaran

https://api.twintulipware.com/sales/payment?key=1a2b3c&sales_number=abc&payment[cash]=123
https://api.twintulipware.com/sales/payment?key=1a2b3c&sales_number=abc&payment[debit]=123&payment[transaction_id]=abc&payment[cc_number]=123
https://api.twintulipware.com/sales/payment?key=1a2b3c&sales_number=abc&payment[credit]=123&payment[transaction_id]=abc&payment[cc_number]=123
https://api.twintulipware.com/sales/payment?key=1a2b3c&sales_number=abc&payment[transfer]=123&payment[transaction_id]=abc
https://api.twintulipware.com/sales/payment?key=1a2b3c&sales_number=abc&payment[ovo_qr]=123&payment[ovo_approval_code]=123
https://api.twintulipware.com/sales/payment?key=1a2b3c&sales_number=abc&payment[ovo_edc]=123&payment[ovo_approval_code]=123

Response

								
				{
					"query":{
						"key":"1a2b3c"
					},
					"status":{
						"http_code":"200",
						"code":"ETT-01-002",
						"message":{
							"indonesian":"Data berhasil ditarik",
							"english":"Success"
						}
					}
				}
				
							

								
				{
					"status":{
						"http_code":"401",
						"code":"ETT-00-000",
						"message":{
							"indonesian":"Akses ditolak",
							"english":"Unauthorized"
						}
					}
				}
				{
					"status":{
						"code":422,
						"info":"Unprocessable entity"
					}
				}
				{
					"status":{
						"http_code":"400",
						"code":"ETT-01-001",
						"message":{
							"indonesian":"Parameter salah",
							"english":"Invalid request"
						}
					}
				}
				
							

Komponen Tipe Keterangan
query Array GET query from request
status Array Return status
results Array API results

Ambil barang

Request

Method URL
GET/POST https://api.twintulipware.com/sales/taken

Method Parameter Wajib Tipe Keterangan
GET/POST key Ya String API Key
GET/POST sales_number Ya String Nomor nota
GET/POST taken Ya Array Barang yg diambil

https://api.twintulipware.com/sales/taken?key=1a2b3c&sales_number=abc&taken[0][id_product]=123&taken[0][qty]=123&taken[1][id_product]=123&taken[1][qty]=123

Response

								
				{
					"query":{
						"key":"1a2b3c",
						"code_product":"100"
					},
					"status":{
						"http_code":"200",
						"code":"ETT-01-002",
						"message":{
							"indonesian":"Data berhasil ditarik",
							"english":"Success"
						}
					}
				}
				
							

								
				{
					"status":{
						"http_code":"401",
						"code":"ETT-00-000",
						"message":{
							"indonesian":"Akses ditolak",
							"english":"Unauthorized"
						}
					}
				}
				{
					"status":{
						"code":400,
						"info":"Sales not paid yet"
					}
				}
				{
					"status":{
						"http_code":"400",
						"code":"ETT-01-001",
						"message":{
							"indonesian":"Parameter salah",
							"english":"Invalid request"
						}
					}
				}
				
							

Komponen Tipe Keterangan
query Array GET query from request
status Array Return status
results Array API results

Ambil barang di pusat

Request

Method URL
GET/POST https://api.twintulipware.com/sales/taken_hq

Method Parameter Wajib Tipe Keterangan
GET/POST key Ya String API Key
GET/POST sales_number Ya String Nomor nota
GET/POST taken Ya Array Barang yg diambil

https://api.twintulipware.com/sales/taken_hq?key=1a2b3c&sales_number=abc&taken[0][id_product]=123&taken[0][qty]=123&taken[1][id_product]=123&taken[1][qty]=123

Response

								
				{
					"query":{
						"key":"1a2b3c",
						"code_product":"100"
					},
					"status":{
						"http_code":"200",
						"code":"ETT-01-002",
						"message":{
							"indonesian":"Data berhasil ditarik",
							"english":"Success"
						}
					}
				}
				
							

								
				{
					"status":{
						"http_code":"401",
						"code":"ETT-00-000",
						"message":{
							"indonesian":"Akses ditolak",
							"english":"Unauthorized"
						}
					}
				}
				{
					"status":{
						"code":400,
						"info":"Sales not paid yet"
					}
				}
				{
					"status":{
						"http_code":"400",
						"code":"ETT-01-001",
						"message":{
							"indonesian":"Parameter salah",
							"english":"Invalid request"
						}
					}
				}
				
							

Komponen Tipe Keterangan
query Array GET query from request
status Array Return status
results Array API results


Payment Daftar isi


Token BCA

Request

Method URL
GET/POST https://api.twintulipware.com/bca/api/test_token

Method Parameter Wajib Tipe Keterangan
GET/POST key Ya String API Key

https://api.twintulipware.com/bca/api/test_token?key=1a2b3c

Response

								
				(
				    [results] => Array
				        (
				            [access_token] => 2dbb49344c964678d1963c1cd80b0f61e701c0e9
				            [expires_in] => 3600
				            [token_type] => Bearer
				            [scope] => resource.WRITE resource.READ
				        )
				)
				
							

								
				
							

Komponen Tipe Keterangan
query Array GET query from request
status Array Return status
results Array API results

VA BCA

Request

Method URL
GET/POST https://api.twintulipware.com/payment/va_bca

Method Parameter Wajib Tipe Keterangan
GET/POST key Ya String API Key
GET/POST sales_number Ya String Nomor nota

https://api.twintulipware.com/payment/va_bca?key=1a2b3c&sales_number=abc

Response

								
				{
					"query":{
						"key":"123",
						"sales_number":"FOCUS-T1SKAR"
					},
					"status":{
						"http_code":"200",
						"code":"ETT-01-002",
						"message":{
							"indonesian":"Data berhasil ditarik",
							"english":"Success"
						}
					},
					"results":{
						"id_sales":"1288",
						"bill_number":"FOCUS-T1SKAR",
						"bill_amount":"36000.00",
						"paid_amount":"36000.00",
						"bill_subcompany":"00000",
						"customer_number":"151311600000012121",
						"customer_name":"Akika ",
						"transaction_date":"2019-05-28",
						"exp_date":"2019-05-29"
					}
				}
				
							

								
				{
					"status":{
						"http_code":"401",
						"code":"ETT-00-000",
						"message":{
							"indonesian":"Akses ditolak",
							"english":"Unauthorized"
						}
					}
				}
				{
					"status":{
						"http_code":"400",
						"code":"ETT-01-001",
						"message":{
							"indonesian":"Parameter salah",
							"english":"Invalid request"
						}
					}
				}
				
							

Komponen Tipe Keterangan
query Array GET query from request
status Array Return status
results Array API results

Inquiry BCA

Request

Method URL
GET/POST https://api.twintulipware.com/bca/va/test_bills

Method Parameter Wajib Tipe Keterangan
GET/POST key Ya String API Key
GET/POST customer_number Ya Int Nomor VA

https://api.twintulipware.com/bca/va/test_bills?customer_number=123

Response

								
				{
					"CompanyCode":"10981",
					"CustomerNumber":"151311600000012121",
					"RequestID":"587760231540096181510962039938",
					"InquiryStatus":"00",
					"InquiryReason":{
						"Indonesian":"Sukses",
						"English":"Success"
					},
					"CustomerName":"Akika ",
					"CurrencyCode":"IDR",
					"TotalAmount":"36000.00",
					"SubCompany":"00000",
					"DetailBills":[],
					"FreeTexts":[],
					"AdditionalData":""
				}
				
							

								
				
							

Komponen Tipe Keterangan
query Array GET query from request
status Array Return status
results Array API results

Payment BCA

Request

Method URL
GET/POST https://api.twintulipware.com/bca/va/test_payments

Method Parameter Wajib Tipe Keterangan
GET/POST key Ya String API Key
GET/POST customer_number Ya Int Nomor VA

https://api.twintulipware.com/bca/va/test_payments?customer_number=123

Response

								
				{
					"CompanyCode":"10981",
					"CustomerNumber":"151311600000012121",
					"RequestID":"800199661609477912041142335557",
					"PaymentFlagStatus":"00",
					"PaymentFlagReason":{
						"Indonesian":"Sukses",
						"English":"Success"
					},
					"CustomerName":"Akika ",
					"CurrencyCode":"IDR",
					"PaidAmount":"36000",
					"TotalAmount":"36000",
					"TransactionDate":"29\/05\/201914:15:00",
					"DetailBills":[],
					"FreeTexts":[],
					"AdditionalData":""
				}
				
							

								
				
							

Komponen Tipe Keterangan
query Array GET query from request
status Array Return status
results Array API results


Member Daftar isi


Omset

Request

Method URL
GET/POST https://api.twintulipware.com/member/omset

Method Parameter Wajib Tipe Keterangan
GET/POST key Ya String API Key
GET/POST id_member Ya Int ID member
GET/POST date Tidak yyyy-mm-dd Tanggal
GET/POST week Tidak Int Week
GET/POST month Tidak Int Bulan
GET/POST year Tidak Int Tahun

https://api.twintulipware.com/payment/va_bca?key=1a2b3c&sales_number=abc
https://api.twintulipware.com/member/omset?key=1a2b3c&id_member=123&date=yyyy-mm-dd
https://api.twintulipware.com/member/omset?key=1a2b3c&id_member=123&week=123&year=123
https://api.twintulipware.com/member/omset?key=1a2b3c&id_member=123&month=123&year=123
https://api.twintulipware.com/member/omset?key=1a2b3c&id_member=123&year=123

Response

								
				{
					"query":{
						"key":"1a2b3c"
					},
					"status":{
						"http_code":"200",
						"code":"ETT-01-002",
						"message":{
							"indonesian":"Data berhasil ditarik",
							"english":"Success"
						}
					},
					"results":{
						"total":"246",
						"details":[{
							"date":"2019-04-04",
							"sales_number":"abc",
							"omset":"123"
						},{
							"date":"2019-04-05",
							"sales_number":"def",
							"omset":"123"
						}]
					}
				}
				
							

								
				{
					"status":{
						"http_code":"401",
						"code":"ETT-00-000",
						"message":{
							"indonesian":"Akses ditolak",
							"english":"Unauthorized"
						}
					}
				}
				
							

Komponen Tipe Keterangan
query Array GET query from request
status Array Return status
results Array API results

Komisi

Request

Method URL
GET/POST https://api.twintulipware.com/member/komisi

Method Parameter Wajib Tipe Keterangan
GET/POST key Ya String API Key
GET/POST id_member Ya Int ID member
GET/POST date Tidak yyyy-mm-dd Tanggal
GET/POST week Tidak Int Week
GET/POST month Tidak Int Bulan
GET/POST year Tidak Int Tahun

https://api.twintulipware.com/member/komisi?key=1a2b3c&date=yyyy-mm-dd
https://api.twintulipware.com/member/komisi?key=1a2b3c&week=123&year=123
https://api.twintulipware.com/member/komisi?key=1a2b3c&month=123&year=123
https://api.twintulipware.com/member/komisi?key=1a2b3c&year=123

Response

								
				{
					"query":{
						"key":"1a2b3c"
					},
					"status":{
						"http_code":"200",
						"code":"ETT-01-002",
						"message":{
							"indonesian":"Data berhasil ditarik",
							"english":"Success"
						}
					},
					"results":{
						"total":"246",
						"details":[{
							"nota":"abc",
							"komisi":"123"
						},{
							"nota":"def",
							"komisi":"123"
						}]
					}
				}
				
							

								
				{
					"status":{
						"http_code":"401",
						"code":"ETT-00-000",
						"message":{
							"indonesian":"Akses ditolak",
							"english":"Unauthorized"
						}
					}
				}
				
							

Komponen Tipe Keterangan
query Array GET query from request
status Array Return status
results Array API results

PV

Request

Method URL
GET/POST https://api.twintulipware.com/member/pv

Method Parameter Wajib Tipe Keterangan
GET/POST key Ya String API Key
GET/POST id_member Ya Int ID member
GET/POST date Tidak yyyy-mm-dd Tanggal
GET/POST week Tidak Int Week
GET/POST month Tidak Int Bulan
GET/POST year Tidak Int Tahun

https://api.twintulipware.com/member/pv?key=1a2b3c&date=yyyy-mm-dd
https://api.twintulipware.com/member/pv?key=1a2b3c&month=123&year=123
https://api.twintulipware.com/member/pv?key=1a2b3c&year=123

Response

								
				{
					"query":{
						"key":"1a2b3c"
					},
					"status":{
						"http_code":"200",
						"code":"ETT-01-002",
						"message":{
							"indonesian":"Data berhasil ditarik",
							"english":"Success"
						}
					},
					"results":{
						"total":"492",
						"details":[{
							"id_member":"123",
							"first_name":"asd",
							"last_name":"asd",
							"upline_name":"asd",
							"unit_name":"asd",
							"pv":[{
								"month":"1",
								"year":"123",
								"pv":"123"
							},{
								"month":"1",
								"year":"123",
								"pv":"123"
							}]
						},{
							"id_member":"123",
							"first_name":"asd",
							"last_name":"asd",
							"upline_name":"asd",
							"unit_name":"asd",
							"pv":[{
								"month":"1",
								"year":"123",
								"pv":"123"
							},{
								"month":"1",
								"year":"123",
								"pv":"123"
							}]
						}]
					}
				}
				
							

								
				{
					"status":{
						"http_code":"401",
						"code":"ETT-00-000",
						"message":{
							"indonesian":"Akses ditolak",
							"english":"Unauthorized"
						}
					}
				}
				
							

Komponen Tipe Keterangan
query Array GET query from request
status Array Return status
results Array API results

LG

Request

Method URL
GET/POST https://api.twintulipware.com/member/lg

Method Parameter Wajib Tipe Keterangan
GET/POST key Ya String API Key
GET/POST id_member Ya Int ID member
GET/POST date Tidak yyyy-mm-dd Tanggal
GET/POST week Tidak Int Week
GET/POST month Tidak Int Bulan
GET/POST year Tidak Int Tahun

https://api.twintulipware.com/member/lg?key=1a2b3c&date=yyyy-mm-dd
https://api.twintulipware.com/member/lg?key=1a2b3c&week=123&year=123
https://api.twintulipware.com/member/lg?key=1a2b3c&month=123&year=123

Response

								
				{
					"query":{
						"key":"123",
						"id_member":"23575",
						"year":"2019",
						"month":"6"
					},
					"status":{
						"http_code":"200",
						"code":"ETT-01-002",
						"message":{
							"indonesian":"Data berhasil ditarik",
							"english":"Success"
						}
					},
					"results":{
						"total":82130400,
						"redeemed":81673800,
						"details":[{
							"id_member":"23575",
							"year":"2019",
							"week":"24",
							"lg":"20795400",
							"redeemed":"20555400",
							"last_updated":"2019-07-04 00:00:00"
						},{
							"id_member":"23575",
							"year":"2019",
							"week":"25",
							"lg":"47053800",
							"redeemed":"46936200",
							"last_updated":"2019-07-04 00:00:00"
						},{
							"id_member":"23575",
							"year":"2019",
							"week":"26",
							"lg":"14281200",
							"redeemed":"14182200",
							"last_updated":"2019-07-04 00:00:00"
						}]
					}
				}
				
							

								
				{
					"status":{
						"http_code":"401",
						"code":"ETT-00-000",
						"message":{
							"indonesian":"Akses ditolak",
							"english":"Unauthorized"
						}
					}
				}
				
							

Komponen Tipe Keterangan
query Array GET query from request
status Array Return status
results Array API results

BOOM

Request

Method URL
GET/POST https://api.twintulipware.com/member/boom

Method Parameter Wajib Tipe Keterangan
GET/POST key Ya String API Key
GET/POST id_member Ya Int ID member
GET/POST date Tidak yyyy-mm-dd Tanggal
GET/POST week Tidak Int Week
GET/POST month Tidak Int Bulan
GET/POST year Tidak Int Tahun

https://api.twintulipware.com/member/boom?key=1a2b3c&date=yyyy-mm-dd
https://api.twintulipware.com/member/boom?key=1a2b3c&month=123&year=123

Response

								
				{
					"query":{
						"key":"1a2b3c"
					},
					"status":{
						"http_code":"200",
						"code":"ETT-01-002",
						"message":{
							"indonesian":"Data berhasil ditarik",
							"english":"Success"
						}
					},
					"results":{
						"total":"492",
						"details":[{
							"id_member":"123",
							"first_name":"asd",
							"last_name":"asd",
							"upline_name":"asd",
							"unit_name":"asd",
							"boom":"123"
						},{
							"id_member":"123",
							"first_name":"asd",
							"last_name":"asd",
							"upline_name":"asd",
							"unit_name":"asd",
							"boom":"123"
						}]
					}
				}
				
							

								
				{
					"status":{
						"http_code":"401",
						"code":"ETT-00-000",
						"message":{
							"indonesian":"Akses ditolak",
							"english":"Unauthorized"
						}
					}
				}
				
							

Komponen Tipe Keterangan
query Array GET query from request
status Array Return status
results Array API results

Challenge

Request

Method URL
GET/POST https://api.twintulipware.com/member/challenge

Method Parameter Wajib Tipe Keterangan
GET/POST key Ya String API Key
GET/POST id_member Ya Int ID member
GET/POST date Tidak yyyy-mm-dd Tanggal
GET/POST week Tidak Int Week
GET/POST month Tidak Int Bulan
GET/POST year Tidak Int Tahun

https://api.twintulipware.com/member/challenge?key=1a2b3c&date=yyyy-mm-dd
https://api.twintulipware.com/member/challenge?key=1a2b3c&week=123&year=123
https://api.twintulipware.com/member/challenge?key=1a2b3c&month=123&year=123

Response

								
				{
					"query":{
						"key":"1a2b3c"
					},
					"status":{
						"http_code":"200",
						"code":"ETT-01-002",
						"message":{
							"indonesian":"Data berhasil ditarik",
							"english":"Success"
						}
					},
					"results":{
						"total":{
							"challenge_1":"246",
							"challenge_2":"246",
							"challenge_3":"246"
						},
						"details":[{
							"nota":"abc",
							"challenge_1":"123",
							"challenge_2":"123",
							"challenge_3":"123"
						},{
							"nota":"def",
							"challenge_1":"123",
							"challenge_2":"123",
							"challenge_3":"123"
						}]
					}
				}
				
							

								
				{
					"status":{
						"http_code":"401",
						"code":"ETT-00-000",
						"message":{
							"indonesian":"Akses ditolak",
							"english":"Unauthorized"
						}
					}
				}
				
							

Komponen Tipe Keterangan
query Array GET query from request
status Array Return status
results Array API results