Dokumentasi ini menjelaskan cara mengakses layanan API GoTravelly untuk method Book Payment.
API ini berfungsi untuk mendapatkan, memeriksa pembayaran & kode promo, serta mengubah data pesanan pengguna di GoTravelly.
Ada banyak macam method pada API ini. Untuk lebih jelasnya silahkan baca dokumentasi halaman ini secara detail.
Berikut daftar API Book Payment yang tergabung jadi satu sesuai method nya:
Method | URL |
---|---|
GET, PUT | https://www.gotravelly.com/api/book_payment |
GET (Request)
Method | Parameter | Tipe | Wajib | Keterangan |
---|---|---|---|---|
GET/HEADER | key | String | Tidak | Token code / key |
GET/PARAM | mode | String | Ya | isi dengan pending |
GET/PARAM | user_id* | Integer | Ya | User ID pada akun pengguna di GoTravelly |
GET/PARAM | guide_id* | Integer | Ya | Guide ID pada akun pengguna di GoTravelly |
GET/PARAM | per_page | Integer | Ya | Jumlah tampilan data pesanan pengguna per halaman |
GET/PARAM | page_wait | Integer | Tidak | Halaman / offset data yang ditampilkan (biasanya digenerate otomatis) |
*) pilih salah satu antara parameter user_id / guide_id.
*) user_id: parameter ini wajib untuk akses data mybooking (menunggu pembayaran) di akun pengguna (user biasa) GoTravelly.
*) guide_id: parameter ini wajib untuk akses data booklist (menunggu pembayaran) di akun pemandu (guide) GoTravelly.
Contoh GET {pending} (Request):
https://www.gotravelly.com/api/book_payment?mode=pending&user_id=99&per_page=5&page_wait=1
https://www.gotravelly.com/api/book_payment?mode=pending&guide_id=88&per_page=5&page_wait=1
Method | Parameter | Tipe | Wajib | Keterangan |
---|---|---|---|---|
GET/HEADER | key | String | Tidak | Token code / key |
GET/PARAM | mode | String | Ya | isi dengan paid |
GET/PARAM | user_id* | Integer | Ya | User ID pada akun pengguna di GoTravelly |
GET/PARAM | guide_id* | Integer | Ya | Guide ID pada akun pengguna di GoTravelly |
GET/PARAM | per_page | Integer | Ya | Jumlah tampilan data pesanan pengguna per halaman |
GET/PARAM | page_paid | Integer | Tidak | Halaman / offset data yang ditampilkan (biasanya digenerate otomatis) |
*) pilih salah satu antara parameter user_id / guide_id.
*) user_id: parameter ini wajib untuk akses data mybooking (pembayaran berhasil) di akun pengguna (user biasa) GoTravelly.
*) guide_id: parameter ini wajib untuk akses data booklist (pembayaran berhasil) di akun pemandu (guide) GoTravelly.
Contoh GET {paid} (Request):
https://www.gotravelly.com/api/book_payment?mode=paid&user_id=99&per_page=5&page_paid=1
https://www.gotravelly.com/api/book_payment?mode=paid&guide_id=88&per_page=5&page_paid=1
Method | Parameter | Tipe | Wajib | Keterangan |
---|---|---|---|---|
GET/HEADER | key | String | Tidak | Token code / key |
GET/PARAM | mode | String | Ya | isi dengan success |
GET/PARAM | user_id* | Integer | Ya | User ID pada akun pengguna di GoTravelly |
GET/PARAM | guide_id* | Integer | Ya | Guide ID pada akun pengguna di GoTravelly |
GET/PARAM | per_page | Integer | Ya | Jumlah tampilan data pesanan pengguna per halaman |
GET/PARAM | page_success | Integer | Tidak | Halaman / offset data yang ditampilkan (biasanya digenerate otomatis) |
*) pilih salah satu antara parameter user_id / guide_id.
*) user_id: parameter ini wajib untuk akses data mybooking (tur selesai) di akun pengguna (user biasa) GoTravelly.
*) guide_id: parameter ini wajib untuk akses data booklist (tur selesai) di akun pemandu (guide) GoTravelly.
Contoh GET {success} (Request):
https://www.gotravelly.com/api/book_payment?mode=success&user_id=99&per_page=5&page_success=1
https://www.gotravelly.com/api/book_payment?mode=success&guide_id=88&per_page=5&page_success=1
Method | Parameter | Tipe | Wajib | Keterangan |
---|---|---|---|---|
GET/HEADER | key | String | Tidak | Token code / key |
GET/PARAM | mode | String | Ya | isi dengan fail |
GET/PARAM | user_id* | Integer | Ya | User ID pada akun pengguna di GoTravelly |
GET/PARAM | guide_id* | Integer | Ya | Guide ID pada akun pengguna di GoTravelly |
GET/PARAM | per_page | Integer | Ya | Jumlah tampilan data pesanan pengguna per halaman |
GET/PARAM | page_fail | Integer | Tidak | Halaman / offset data yang ditampilkan (biasanya digenerate otomatis) |
*) pilih salah satu antara parameter user_id / guide_id.
*) user_id: parameter ini wajib untuk akses data mybooking (kegiatan / pembayaran tur gagal) di akun pengguna (user biasa) GoTravelly.
*) guide_id: parameter ini wajib untuk akses data booklist (kegiatan / pembayaran tur gagal) di akun pemandu (guide) GoTravelly.
Contoh GET {fail} (Request):
https://www.gotravelly.com/api/book_payment?mode=fail&user_id=99&per_page=5&page_fail=1
https://www.gotravelly.com/api/book_payment?mode=fail&guide_id=88&per_page=5&page_fail=1
Method | Parameter | Tipe | Wajib | Keterangan |
---|---|---|---|---|
GET/HEADER | key | String | Tidak | Token code / key |
GET/PARAM | mode | String | Ya | isi dengan detail |
GET/PARAM | book_id | Integer | Ya | Book ID / Order ID pada data pesanan di GoTravelly |
Contoh GET {detail} (Request):
https://www.gotravelly.com/api/book_payment?mode=detail&book_id=8
Method | Parameter | Tipe | Wajib | Keterangan |
---|---|---|---|---|
GET/HEADER | key | String | Tidak | Token code / key |
GET/PARAM | mode | String | Ya | isi dengan invoice |
GET/PARAM | book_id | Integer | Ya | Book ID / Order ID pada data pesanan di GoTravelly |
Contoh GET {invoice} (Request):
https://www.gotravelly.com/api/book_payment?mode=invoice&book_id=8
GET (Response)
{ "status": "OK", "data": [ { "tp_payment": { "id": "1", "approval_code": null, "invoice_code": "TP-15012019-99CPI", "payment_type": "credit_card", "amount_admin": null, "amount_user": "450000", "user_status": "waiting_for_payment", "guide_status": "waiting_payment_from_user", "modified_by_user": "2019-02-19 18:21:11", "modified_by_guide": null, "modified_by_admin": "2019-02-12 16:16:07", "created": "2019-01-15 16:26:36", "evoucher_id": null }, "book": { "id": "1", "name": "Paijo Paijo", "email": "sanzcruzer@gmail.com", "phone": "0856123456789", "total_pax": "1", "start_date": "2019-01-13 00:00:00", "end_date": "2019-01-14 00:00:00", "special_request": "-", "price": "450000", "user_status": "itin_approved_by_guide", "guide_status": "itin_approved_by_user", "user_reason": null, "guide_reason": null, "created": "2019-01-15 16:26:36", "modified_by_user": "2019-01-15 16:26:35", "modified_by_guide": "2019-01-15 16:26:35", "type": "tour_package", "reminder_h3": "0", "reminder_h1": "0", "reminder_complete": "0", "reminder_review": "1", "is_read_guide": "1", "is_read_user": "1", "user_id": "93", "guide_id": "105", "object_reference_id": "526" }, "tour_package": { "id": "526", "cover_photo": "509_907c0b92e7cb392780abe122045bc969.png", "title": "test tour 28 juni", "startdate": "2019-03-30", "enddate": "2019-03-31", "price": "450000.00", "quota_filled": "1", "maximum_pax": "15", "is_refundable": "1" }, "guide": { "id": "105", "user_id": "509", "username": "lukaku", "name": "lukaku guide", "email": "sanzcruzer@gmail.com", "photo": "b6aa8c0b6cb9cabe761205f656a994f8.jpg", "phone": "123456788", "level": "blue", "balance": "150000" }, "user": { "id": "93", "username": "rian", "name": "Rian Kurniawan", "email": "rian@yahoo.com", "photo": "f73d5f7372919c0cb101bfdaa0b31567.jpg", "phone": "087855086994" } }, { "tp_payment": { "id": "3", "approval_code": null, "invoice_code": "TP-16012019-TCFHH", "payment_type": "", "amount_admin": null, "amount_user": "450000", "user_status": "waiting_for_payment", "guide_status": "waiting_payment_from_user", "modified_by_user": "2019-02-12 10:26:01", "modified_by_guide": null, "modified_by_admin": null, "created": "2019-01-16 14:34:47", "evoucher_id": null }, "book": { "id": "3", "name": "David Brendi", "email": "sanzcruzer@gmail.com", "phone": "08123239484294", "total_pax": "1", "start_date": "2019-03-10 00:00:00", "end_date": "2019-03-11 00:00:00", "special_request": "-", "price": "450000", "user_status": "itin_approved_by_guide", "guide_status": "itin_approved_by_user", "user_reason": null, "guide_reason": null, "created": "2019-01-16 14:34:47", "modified_by_user": "2019-02-12 10:26:01", "modified_by_guide": "2019-01-16 14:34:47", "type": "tour_package", "reminder_h3": "1", "reminder_h1": "0", "reminder_complete": "0", "reminder_review": "0", "is_read_guide": "1", "is_read_user": "1", "user_id": "93", "guide_id": "105", "object_reference_id": "526" }, "tour_package": { "id": "526", "cover_photo": "509_907c0b92e7cb392780abe122045bc969.png", "title": "test tour 28 juni", "startdate": "2019-03-30", "enddate": "2019-03-31", "price": "450000.00", "quota_filled": "1", "maximum_pax": "15", "is_refundable": "1" }, "guide": { "id": "105", "user_id": "509", "username": "lukaku", "name": "lukaku guide", "email": "sanzcruzer@gmail.com", "photo": "b6aa8c0b6cb9cabe761205f656a994f8.jpg", "phone": "123456788", "level": "blue", "balance": "150000" }, "user": { "id": "93", "username": "rian", "name": "Rian Kurniawan", "email": "rian@yahoo.com", "photo": "f73d5f7372919c0cb101bfdaa0b31567.jpg", "phone": "087855086994" } } ], "total": 2 }
{ "status": "OK", "data": [ { "tp_payment": { "id": "1", "approval_code": "de1bff6f-b132-4ffa-8843-b1fcba160845", "invoice_code": "TP-15012019-88AVC", "payment_type": "credit_card", "amount_admin": null, "amount_user": "450000", "user_status": "payment_successful", "guide_status": "payment_received_from_user", "modified_by_user": "2019-02-19 18:21:11", "modified_by_guide": null, "modified_by_admin": "2019-02-12 16:16:07", "created": "2019-01-15 16:26:36", "evoucher_id": null }, "book": { "id": "1", "name": "Paijo Paijo", "email": "sanzcruzer@gmail.com", "phone": "0856123456789", "total_pax": "1", "start_date": "2019-01-13 00:00:00", "end_date": "2019-01-14 00:00:00", "special_request": "-", "price": "450000", "user_status": "itin_approved_by_guide", "guide_status": "itin_approved_by_user", "user_reason": null, "guide_reason": null, "created": "2019-01-15 16:26:36", "modified_by_user": "2019-01-15 16:26:35", "modified_by_guide": "2019-01-15 16:26:35", "type": "tour_package", "reminder_h3": "0", "reminder_h1": "0", "reminder_complete": "0", "reminder_review": "1", "is_read_guide": "1", "is_read_user": "1", "user_id": "93", "guide_id": "105", "object_reference_id": "526" }, "tour_package": { "id": "526", "cover_photo": "509_907c0b92e7cb392780abe122045bc969.png", "title": "test tour 28 juni", "startdate": "2019-03-30", "enddate": "2019-03-31", "price": "450000.00", "quota_filled": "1", "maximum_pax": "15", "is_refundable": "1" }, "guide": { "id": "105", "user_id": "509", "username": "lukaku", "name": "lukaku guide", "email": "sanzcruzer@gmail.com", "photo": "b6aa8c0b6cb9cabe761205f656a994f8.jpg", "phone": "123456788", "level": "blue", "balance": "150000" }, "user": { "id": "93", "username": "rian", "name": "Rian Kurniawan", "email": "rian@yahoo.com", "photo": "f73d5f7372919c0cb101bfdaa0b31567.jpg", "phone": "087855086994" } }, { "tp_payment": { "id": "3", "approval_code": "de1bff6f-b132-4ffa-8843-b1fcba160123", "invoice_code": "TP-16012019-TAP08", "payment_type": "bank_transfer", "amount_admin": null, "amount_user": "450000", "user_status": "payment_successful", "guide_status": "payment_received_from_user", "modified_by_user": "2019-02-12 10:26:01", "modified_by_guide": null, "modified_by_admin": null, "created": "2019-01-16 14:34:47", "evoucher_id": null }, "book": { "id": "3", "name": "David Brendi", "email": "sanzcruzer@gmail.com", "phone": "08123239484294", "total_pax": "1", "start_date": "2019-03-10 00:00:00", "end_date": "2019-03-11 00:00:00", "special_request": "-", "price": "450000", "user_status": "itin_approved_by_guide", "guide_status": "itin_approved_by_user", "user_reason": null, "guide_reason": null, "created": "2019-01-16 14:34:47", "modified_by_user": "2019-02-12 10:26:01", "modified_by_guide": "2019-01-16 14:34:47", "type": "tour_package", "reminder_h3": "1", "reminder_h1": "0", "reminder_complete": "0", "reminder_review": "0", "is_read_guide": "1", "is_read_user": "1", "user_id": "93", "guide_id": "105", "object_reference_id": "526" }, "tour_package": { "id": "526", "cover_photo": "509_907c0b92e7cb392780abe122045bc969.png", "title": "test tour 28 juni", "startdate": "2019-03-30", "enddate": "2019-03-31", "price": "450000.00", "quota_filled": "1", "maximum_pax": "15", "is_refundable": "1" }, "guide": { "id": "105", "user_id": "509", "username": "lukaku", "name": "lukaku guide", "email": "sanzcruzer@gmail.com", "photo": "b6aa8c0b6cb9cabe761205f656a994f8.jpg", "phone": "123456788", "level": "blue", "balance": "150000" }, "user": { "id": "93", "username": "rian", "name": "Rian Kurniawan", "email": "rian@yahoo.com", "photo": "f73d5f7372919c0cb101bfdaa0b31567.jpg", "phone": "087855086994" } } ], "total": 2 }
{ "status": "OK", "data": [ { "tp_payment": { "id": "1", "approval_code": "de1bff6f-b132-4ffa-8843-b1fcba160845", "invoice_code": "TP-15012019-88AVC", "payment_type": "credit_card", "amount_admin": null, "amount_user": "450000", "user_status": "tour_package_completed", "guide_status": "waiting_payment_from_admin", "modified_by_user": "2019-02-19 18:21:11", "modified_by_guide": null, "modified_by_admin": "2019-02-12 16:16:07", "created": "2019-01-15 16:26:36", "evoucher_id": null }, "book": { "id": "1", "name": "Paijo Paijo", "email": "sanzcruzer@gmail.com", "phone": "0856123456789", "total_pax": "1", "start_date": "2019-01-13 00:00:00", "end_date": "2019-01-14 00:00:00", "special_request": "-", "price": "450000", "user_status": "itin_approved_by_guide", "guide_status": "itin_approved_by_user", "user_reason": null, "guide_reason": null, "created": "2019-01-15 16:26:36", "modified_by_user": "2019-01-15 16:26:35", "modified_by_guide": "2019-01-15 16:26:35", "type": "tour_package", "reminder_h3": "0", "reminder_h1": "0", "reminder_complete": "0", "reminder_review": "1", "is_read_guide": "1", "is_read_user": "1", "user_id": "93", "guide_id": "105", "object_reference_id": "526" }, "tour_package": { "id": "526", "cover_photo": "509_907c0b92e7cb392780abe122045bc969.png", "title": "test tour 28 juni", "startdate": "2019-03-30", "enddate": "2019-03-31", "price": "450000.00", "quota_filled": "1", "maximum_pax": "15", "is_refundable": "1" }, "guide": { "id": "105", "user_id": "509", "username": "lukaku", "name": "lukaku guide", "email": "sanzcruzer@gmail.com", "photo": "b6aa8c0b6cb9cabe761205f656a994f8.jpg", "phone": "123456788", "level": "blue", "balance": "150000" }, "user": { "id": "93", "username": "rian", "name": "Rian Kurniawan", "email": "rian@yahoo.com", "photo": "f73d5f7372919c0cb101bfdaa0b31567.jpg", "phone": "087855086994" } }, { "tp_payment": { "id": "3", "approval_code": "de1bff6f-b132-4ffa-8843-b1fcba160123", "invoice_code": "TP-16012019-TAP08", "payment_type": "bank_transfer", "amount_admin": null, "amount_user": "450000", "user_status": "tour_package_completed", "guide_status": "waiting_payment_from_admin", "modified_by_user": "2019-02-12 10:26:01", "modified_by_guide": null, "modified_by_admin": null, "created": "2019-01-16 14:34:47", "evoucher_id": null }, "book": { "id": "3", "name": "David Brendi", "email": "sanzcruzer@gmail.com", "phone": "08123239484294", "total_pax": "1", "start_date": "2019-03-10 00:00:00", "end_date": "2019-03-11 00:00:00", "special_request": "-", "price": "450000", "user_status": "itin_approved_by_guide", "guide_status": "itin_approved_by_user", "user_reason": null, "guide_reason": null, "created": "2019-01-16 14:34:47", "modified_by_user": "2019-02-12 10:26:01", "modified_by_guide": "2019-01-16 14:34:47", "type": "tour_package", "reminder_h3": "1", "reminder_h1": "0", "reminder_complete": "0", "reminder_review": "0", "is_read_guide": "1", "is_read_user": "1", "user_id": "93", "guide_id": "105", "object_reference_id": "526" }, "tour_package": { "id": "526", "cover_photo": "509_907c0b92e7cb392780abe122045bc969.png", "title": "test tour 28 juni", "startdate": "2019-03-30", "enddate": "2019-03-31", "price": "450000.00", "quota_filled": "1", "maximum_pax": "15", "is_refundable": "1" }, "guide": { "id": "105", "user_id": "509", "username": "lukaku", "name": "lukaku guide", "email": "sanzcruzer@gmail.com", "photo": "b6aa8c0b6cb9cabe761205f656a994f8.jpg", "phone": "123456788", "level": "blue", "balance": "150000" }, "user": { "id": "93", "username": "rian", "name": "Rian Kurniawan", "email": "rian@yahoo.com", "photo": "f73d5f7372919c0cb101bfdaa0b31567.jpg", "phone": "087855086994" } } ], "total": 2 }
{ "status": "OK", "data": [ { "tp_payment": { "id": "1", "approval_code": null, "invoice_code": "TP-15012019-88JEG", "payment_type": "bank_transfer", "amount_admin": null, "amount_user": "450000", "user_status": "payment_failed", "guide_status": "waiting_payment_from_user", "modified_by_user": "2019-02-19 18:21:11", "modified_by_guide": null, "modified_by_admin": "2019-02-12 16:16:07", "created": "2019-01-15 16:26:36", "evoucher_id": null }, "book": { "id": "1", "name": "Paijo Paijo", "email": "sanzcruzer@gmail.com", "phone": "0856123456789", "total_pax": "1", "start_date": "2019-01-13 00:00:00", "end_date": "2019-01-14 00:00:00", "special_request": "-", "price": "450000", "user_status": "booking_rejected", "guide_status": "booking_rejected", "user_reason": null, "guide_reason": null, "created": "2019-01-15 16:26:36", "modified_by_user": "2019-01-15 16:26:35", "modified_by_guide": "2019-01-15 16:26:35", "type": "tour_package", "reminder_h3": "0", "reminder_h1": "0", "reminder_complete": "0", "reminder_review": "1", "is_read_guide": "1", "is_read_user": "1", "user_id": "93", "guide_id": "105", "object_reference_id": "526" }, "tour_package": { "id": "526", "cover_photo": "509_907c0b92e7cb392780abe122045bc969.png", "title": "test tour 28 juni", "startdate": "2019-03-30", "enddate": "2019-03-31", "price": "450000.00", "quota_filled": "1", "maximum_pax": "15", "is_refundable": "1" }, "guide": { "id": "105", "user_id": "509", "username": "lukaku", "name": "lukaku guide", "email": "sanzcruzer@gmail.com", "photo": "b6aa8c0b6cb9cabe761205f656a994f8.jpg", "phone": "123456788", "level": "blue", "balance": "150000" }, "user": { "id": "93", "username": "rian", "name": "Rian Kurniawan", "email": "rian@yahoo.com", "photo": "f73d5f7372919c0cb101bfdaa0b31567.jpg", "phone": "087855086994" } }, { "tp_payment": { "id": "3", "approval_code": null, "invoice_code": "TP-16012019-TAP08", "payment_type": "bank_transfer", "amount_admin": null, "amount_user": "450000", "user_status": "payment_failed", "guide_status": "waiting_payment_from_user", "modified_by_user": "2019-02-12 10:26:01", "modified_by_guide": null, "modified_by_admin": null, "created": "2019-01-16 14:34:47", "evoucher_id": null }, "book": { "id": "3", "name": "David Brendi", "email": "sanzcruzer@gmail.com", "phone": "08123239484294", "total_pax": "1", "start_date": "2019-03-10 00:00:00", "end_date": "2019-03-11 00:00:00", "special_request": "-", "price": "450000", "user_status": "booking_rejected", "guide_status": "booking_rejected", "user_reason": null, "guide_reason": null, "created": "2019-01-16 14:34:47", "modified_by_user": "2019-02-12 10:26:01", "modified_by_guide": "2019-01-16 14:34:47", "type": "tour_package", "reminder_h3": "1", "reminder_h1": "0", "reminder_complete": "0", "reminder_review": "0", "is_read_guide": "1", "is_read_user": "1", "user_id": "93", "guide_id": "105", "object_reference_id": "526" }, "tour_package": { "id": "526", "cover_photo": "509_907c0b92e7cb392780abe122045bc969.png", "title": "test tour 28 juni", "startdate": "2019-03-30", "enddate": "2019-03-31", "price": "450000.00", "quota_filled": "1", "maximum_pax": "15", "is_refundable": "1" }, "guide": { "id": "105", "user_id": "509", "username": "lukaku", "name": "lukaku guide", "email": "sanzcruzer@gmail.com", "photo": "b6aa8c0b6cb9cabe761205f656a994f8.jpg", "phone": "123456788", "level": "blue", "balance": "150000" }, "user": { "id": "93", "username": "rian", "name": "Rian Kurniawan", "email": "rian@yahoo.com", "photo": "f73d5f7372919c0cb101bfdaa0b31567.jpg", "phone": "087855086994" } } ], "total": 2 }
{ "status": "INV_OK", "data": { "tp_payment": { "id": "2", "approval_code": "2c1ff8c0-0473-49e0-8457-54d1ae061445", "invoice_code": "TP-16012019-EP74F", "payment_type": "credit_card", "amount_admin": null, "amount_user": "1500", "user_status": "tour_package_completed", "guide_status": "payment_received_from_user", "modified_by_user": "2019-01-16 14:32:13", "modified_by_guide": null, "modified_by_admin": null, "created": "2019-01-16 10:30:05", "evoucher_id": null }, "book": { "id": "2", "name": "Jandia Eka", "email": "sanzcruzer@gmail.com", "phone": "0812382347928", "total_pax": "1", "start_date": "2019-01-14 10:23:00", "end_date": "2019-01-15 10:23:00", "special_request": "tes book 2222", "price": "1500", "user_status": "itin_approved_by_guide", "guide_status": "itin_approved_by_user", "user_reason": null, "guide_reason": null, "created": "2019-01-16 10:24:16", "modified_by_user": "2019-01-16 10:37:22", "modified_by_guide": "2019-01-16 10:36:56", "type": "tour_package", "reminder_h3": "0", "reminder_h1": "0", "reminder_complete": "0", "reminder_review": "0", "is_read_guide": "1", "is_read_user": "1", "user_id": "93", "guide_id": "105", "object_reference_id": "525" }, "tour_package": { "id": "525", "cover_photo": "45ef548b2fff480489f83c384df86671.jpg", "title": "Sasasdasd", "startdate": null, "enddate": null, "price": "100000.00", "quota_filled": "2", "maximum_pax": "5", "is_refundable": "1" }, "guide": { "id": "105", "user_id": "509", "username": "lukaku", "name": "lukaku guide", "email": "sanzcruzer@gmail.com", "photo": "b6aa8c0b6cb9cabe761205f656a994f8.jpg", "phone": "123456788", "level": "blue", "balance": "150000" }, "user": { "id": "93", "username": "rian", "name": "Rian Kurniawan", "email": "rian@yahoo.com", "photo": "f73d5f7372919c0cb101bfdaa0b31567.jpg", "phone": "087855086994" } }, "is_paid": true, "bl_names": [ { "id": "4", "title": "Mr", "full_name": "JANDIA EKA", "booklist_id": "2" } ], "itin_data": [ { "id": "3", "body": "day 1", "booklist_id": "2" }, { "id": "4", "body": "day 2", "booklist_id": "2" } ], "itin_ori": [ { "id": "1683", "package_id": "525", "body": "belajar", "status": "published", "type": "tour_package" }, { "id": "1684", "package_id": "525", "body": "bermain", "status": "published", "type": "tour_package" } ], "pdf_file": "assets/pdf/Invoice_TP-16012019-EP74F.pdf" }
{ "status": "OK", "data": [ { "tp_payment": { "id": "42", "approval_code": "a9511684-2023-4ed9-a96c-8843fd60b4f9", "invoice_code": "GS-15032019-9GVQZ", "payment_type": "credit_card", "amount_admin": null, "amount_user": "50000", "user_status": "payment_successful", "guide_status": "payment_received_from_user", "modified_by_user": "2019-03-19 15:25:52", "modified_by_guide": null, "modified_by_admin": null, "created": "2019-03-18 14:49:45", "evoucher_id": "23" }, "evoucher": { "id": "23", "code": "MEMBERSPECIAL", "price": "25000" }, "book": { "id": "36", "name": "Amber Heard", "email": "sanzcruzer@gmail.com", "phone": "087855086994", "total_pax": "1", "start_date": "2019-03-20 13:48:00", "end_date": "2019-03-22 13:48:00", "special_request": "-", "price": "75000", "user_status": "waiting_for_itinerary", "guide_status": "modify_itinerary", "user_reason": null, "guide_reason": null, "created": "2019-03-15 13:49:08", "modified_by_user": "2019-03-15 13:49:07", "modified_by_guide": "2019-03-15 13:49:45", "type": "guide", "reminder_h3": "0", "reminder_h1": "0", "reminder_complete": "0", "reminder_review": "0", "is_read_guide": "1", "is_read_user": "1", "user_id": "93", "guide_id": "105", "object_reference_id": "105" }, "guide": { "id": "105", "user_id": "509", "username": "lukaku", "name": "lukaku guide", "email": "sanzcruzer@gmail.com", "photo": "b6aa8c0b6cb9cabe761205f656a994f8.jpg", "phone": "123456788", "level": "blue", "balance": "150000" }, "user": { "id": "93", "username": "rian", "name": "Rian Kurniawan", "email": "rian@yahoo.com", "photo": "f73d5f7372919c0cb101bfdaa0b31567.jpg", "phone": "087855086994" } } ] }
PUT (Request)
Pada method ini digunakan untuk menyelesaikan pesanan tur di GoTravelly.
Method | Parameter | Tipe | Wajib | Keterangan |
---|---|---|---|---|
PUT/HEADER | key | String | Ya | Token code / key |
PUT/BODY | action | String | Ya | Isi dengan complete |
PUT/BODY | book_id | Integer | Ya | Book ID / Order ID pada data pesanan di GoTravelly |
Pada method ini digunakan untuk melaporkan jika terjadi kesalahan / gangguan pada pesanan tur di GoTravelly.
Method | Parameter | Tipe | Wajib | Keterangan |
---|---|---|---|---|
PUT/HEADER | key | String | Ya | Token code / key |
PUT/BODY | action | String | Ya | Isi dengan report |
PUT/BODY | book_id | Integer | Ya | Book ID / Order ID pada data pesanan di GoTravelly |
PUT/BODY | report | String | Ya | Alasan pesanan tur dilaporkan |
PUT/BODY | user_id | Integer | Ya | User ID akun pengguna GoTravelly yang melaporkan pesanan tur |
PUT/BODY | lang | String | Tidak | Isi dengan english /indonesian |
Pada method ini digunakan untuk melakukan pembayaran ulang oleh pemesan jika pemesan telah melewati batas waktu pembayaran yang telah ditentukan pada pesanan tur di GoTravelly.
Method | Parameter | Tipe | Wajib | Keterangan |
---|---|---|---|---|
PUT/HEADER | key | String | Ya | Token code / key |
PUT/BODY | action | String | Ya | Isi dengan repay |
PUT/BODY | book_id | Integer | Ya | Book ID / Order ID pada data pesanan di GoTravelly |
PUT/BODY | user_id | Integer | Ya | User ID akun pengguna GoTravelly yang melakukan pembayaran ulang |
PUT/BODY | lang | String | Tidak | Isi dengan english /indonesian |
Pada method ini digunakan untuk melakukan pemeriksaan pembayaran yang telah dilakukan oleh pemesan lewat platform Midtrans di GoTravelly.
Method | Parameter | Tipe | Wajib | Keterangan |
---|---|---|---|---|
PUT/HEADER | key | String | Ya | Token code / key |
PUT/BODY | action | String | Ya | Isi dengan check_payment |
PUT/BODY | invoice | String | Ya | Nomor invoice / faktur pesanan tur yang telah dipesan oleh pengguna di GoTravelly. |
PUT/BODY | is_guide | Integer | Tidak | Kondisi untuk memastikan data guide / pemandu |
PUT/BODY | guide_id | Integer | Tidak | Guide ID akun pemandu di GoTravelly |
PUT/BODY | user_id | Integer | Tidak | User ID akun pengguna GoTravelly |
PUT/BODY | lang | String | Tidak | Isi dengan english /indonesian |
Pada method ini digunakan untuk melakukan pemeriksaan pembayaran yang telah dilakukan oleh pemesan lewat platform PayPal di GoTravelly.
Method | Parameter | Tipe | Wajib | Keterangan |
---|---|---|---|---|
PUT/HEADER | key | String | Ya | Token code / key |
PUT/BODY | action | String | Ya | Isi dengan check_paypal |
PUT/BODY | pay_id | String | Ya | Pay ID yang telah digenerate dari proses API via PayPal. |
PUT/BODY | is_guide | Integer | Tidak | Kondisi untuk memastikan data guide / pemandu |
PUT/BODY | guide_id | Integer | Tidak | Guide ID akun pemandu di GoTravelly |
PUT/BODY | user_id | Integer | Tidak | User ID akun pengguna GoTravelly |
PUT/BODY | lang | String | Tidak | Isi dengan english /indonesian |
Pada method ini digunakan untuk melakukan validasi kode promo / voucher yang telah diinput pemesan pada pesanan tur di GoTravelly.
Method | Parameter | Tipe | Wajib | Keterangan |
---|---|---|---|---|
PUT/HEADER | key | String | Ya | Token code / key |
PUT/BODY | action | String | Ya | Isi dengan check_voucher |
PUT/BODY | code | String | Ya | Kode voucher / promo yang telah diinput pemesan |
PUT/BODY | is_applied | Enum ('yes', 'no') | Ya | Kondisi untuk memastikan kode telah terpasang atau tidak |
PUT/BODY | bp_id | Integer | Ya | Payment ID pada pesanan tur di GoTravelly |
PUT/BODY | user_id | Integer | Tidak | User ID akun pengguna GoTravelly |
PUT/BODY | lang | String | Tidak | Isi dengan english /indonesian |
PUT (Response)
{ "status": "OK", "message": "Data Reservasi Anda telah selesai.", }
{ "status": "OK", "message": "Data laporan Anda Terkirim", }
{ "status": "OK", "message": "Anda telah berhasil melakukan pembayaran ulang", }
{ "status": "PAID", "message": "Pembayaran berhasil", "is_guide": true / false, }
{ "status": "PAID", "message": "Pembayaran berhasil", }
{ "status": "APPLIED", "message": "BERHASIL! Voucher sebesar IDR 25,000 telah terpasang", "voucher_id": 4, "voucher_price": "25,000", "new_price": "50,000", "old_price": "75,000", }