Perkenalan
Selamat Datang di dokumentasi API Siplah Toko Ladang! Anda dapat menggunakan API kami untuk mengakses beberapa informasi yang ada pada database kami.
Autentikasi
Kami Menggunakan dua Jenis Autentikasi untuk dapat mengakses API. yang pertama menggunakan Session API yang hanya dipakai oleh Aplikasi Web Internal Kami. dan yang kedua menggunakan API Token yang dapat dipakai oleh Aplikasi Mobile atau aplikasi pihak ketiga.
ada 4 jenis endpoint dalam API:
public
adalah endpoint untuk publik yang dapat diakses tanpa harus terautentikasi.admin
adalah endpoint yang memerlukan login/token admin.seller
adalah endpoint yang memerlukan login/token penjual.buyer
adalah endpoint yang memerlukan login/token pembeli.
Session API
jenis: public
curl "https://staging.siapi.tokoladang.co.id/public/csrf-cookie"
Autentikasi dengan Session API harus memanggil endpoint ini terlebih dahulu sebelum login. untuk mendaftarkan sesi ke server yang nantinya akan disimpan di cookies.
GET https://staging.siapi.tokoladang.co.id/public/csrf-cookie
Setelah Itu Dapat melakukan Login Sesuai dengan jenis user.
Login Admin
jenis: public
curl -X POST "https://staging.siapi.tokoladang.co.id/admin/login"
-H 'Content-Type: application/json'
-d '{
"email": "admin@mail.com"
"password": "password_admin"
}'
endpoint ini digunakan untuk login sebagai Admin.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/admin/login
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
null | true | Email Admin | |
password | null | true | Password Admin |
Login Penjual
jenis: public
curl -X POST "https://staging.siapi.tokoladang.co.id/seller/login"
-H 'Content-Type: application/json'
-d '{
"email": "pembeli@mail.com"
"password": "password_pembeli"
}'
endpoint ini digunakan untuk login sebagai Penjual.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/seller/login
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
null | true | Email Penjual | |
password | null | true | Password Penjual |
Login Pembeli
jenis: public
curl -X POST "https://staging.siapi.tokoladang.co.id/buyer/login"
-H 'Content-Type: application/json'
-d '{
"code": "ouj78Kn...."
"device": "android"
}'
untuk login pembeli berbeda dengan login admin dan login penjual. pembeli harus login terlebih dahulu melalui website dapodik berikut: staging atau produksi, setelah sukses maka akan redirect ke server siplah dengan menyertakan query code yang nantinya digunakan untuk login ke aplikasi siplah.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/buyer/login
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
code | null | true | Code dari dapodik untuk login |
device | null | true | Jenis Perangkat web, android, ios |
API Token
Authorization: Bearer {{TOKEN}}
Authentikasi jenis API Token digunakan untuk mendapatkan token
yang digunakan sebagai Authorization header
. Header harus disertakan setiap hit endpoint menggunakan API Token.
Get Token Admin
jenis: public
curl -X POST "https://staging.siapi.tokoladang.co.id/admin/token"
-H 'Content-Type: application/json'
-d '{
"email": "admin@mail.com"
"password": "password_admin"
"device": "android"
}'
Contoh Json Response :
{
"token": "LKJlkj982rkoi"
"user": {....}
}
endpoint ini digunakan untuk Mendapatkan Token Penjual.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/admin/token
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
null | true | Email Admin | |
password | null | true | Password Admin |
device | null | true | Jenis Perangkat web, android, ios |
Get Token Penjual
jenis: public
curl -X POST "https://staging.siapi.tokoladang.co.id/seller/token"
-H 'Content-Type: application/json'
-d '{
"email": "penjual@mail.com"
"password": "password_penjual"
"device": "android"
}'
Contoh Json Response :
{
"token": "LKJlkj982rkoi"
"user": {....}
}
endpoint ini digunakan untuk Mendapatkan Token Penjual.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/seller/token
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
null | true | Email Penjual | |
password | null | true | Password Penjual |
device | null | true | Jenis Perangkat web, android, ios |
Get Token Pembeli
jenis: public
curl -X POST "https://staging.siapi.tokoladang.co.id/buyer/token"
-H 'Content-Type: application/json'
-d '{
"code": "ouj78Kn...."
}'
Contoh Json Response :
{
"token": "LKJlkj982rkoi"
"user": {....}
}
untuk get token pembeli berbeda dengan get token admin dan get token penjual. pembeli harus login terlebih dahulu melalui website dapodik berikut: staging atau produksi, setelah sukses maka akan redirect ke server siplah dengan menyertakan query code yang nantinya digunakan untuk get token ke aplikasi siplah.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/buyer/token
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
code | null | true | Code dari dapodik |
[Public] Semua
Get Data Utama
jenis: public
curl -X GET "https://staging.siapi.tokoladang.co.id/public/home"
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
[
{
"categories": [],
"merchants": [],
"products": [],
"promos": []
}
]
endpoint ini digunakan untuk mendapatkan data Utama.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/public/home
Get Sugesti Pencarian
jenis: public
curl -X GET "https://staging.siapi.tokoladang.co.id/public/search/suggestion?q="
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
{
"merchants": [
{
"city": {"id": "integr", "name": "string"},
"city_id": "string",
"id": "integer",
"image": "string",
"name": "string",
"slug": "string"
}
],
"products": [
{"id": "integer", "name": "string", "slug": "string", "merchant_name": "string", "image": "string"}
]
}
endpoint ini digunakan untuk mendapatkan data dengan sugesti pencarian.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/public/search/suggestion?q=
Query Parameter
Parameter | Default | required | Deskripsi |
---|---|---|---|
q | string | false | Kata kunci |
Get Data Metode Pembayaran
jenis: public
curl -X GET "https://staging.siapi.tokoladang.co.id/public/payment-methods"
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
[
{
"id": "integer",
"image": "string",
"name": "string"
}
]
endpoint ini digunakan untuk mendapatkan data metode pembayaran.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/public/payment-methods
Get Semua Etalse
jenis: public
curl -X GET "https://staging.siapi.tokoladang.co.id/public/merchant-storages/{merchantId}"
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
[
{
"created_at": "datetime",
"created_by": "string",
"id": "integer",
"merchant_id": "integer",
"name": "string",
"updated_at": "datetime",
"updated_by": "string"
}
]
endpoint ini digunakan untuk mendapatkan data etalse.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/public/merchant-storages/{merchantId}
Get Semua Kategori Produk
jenis: public
curl -X GET "https://staging.siapi.tokoladang.co.id/public/product-categories?q=&parent="
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
[
{
"created_at": "datetime",
"created_by": "string",
"description": "string",
"enabled": "true",
"id": "integer",
"image": "string",
"level": "integer",
"name": "string",
"parent_id": "integer",
"sequence": "integer",
"slug": "string",
"updated_at": "datetime",
"updated_by": "string",
"_lft": "integer",
"_rgt": "integer"
}
]
endpoint ini digunakan untuk mendapatkan data kategori produk.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/public/product-categories?q=&parent=
Query Parameter
Parameter | Default | required | Deskripsi |
---|---|---|---|
q | string | false | Kata kunci |
parent | integer | false | Kategori induk |
Get Turunan Kategori Produk
jenis: public
curl -X GET "https://staging.siapi.tokoladang.co.id/public/product-categories/{id}"
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
[
{
"id": "integer",
"name": "string",
"parent_id": "integer",
"slug": "string"
}
]
endpoint ini digunakan untuk mendapatkan data turunan kategori.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/public/product-categories/{id}
Get Data Bank
jenis: public
curl -X GET "https://staging.siapi.tokoladang.co.id/public/banks"
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
[
{
"id": "integer",
"name": "string"
}
]
endpoint ini digunakan untuk mendapatkan data Bank.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/public/banks
Get Data Provinsi
jenis: public
curl -X GET "https://staging.siapi.tokoladang.co.id/public/provinces"
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
[
{
"id": "integer",
"name": "string"
}
]
endpoint ini digunakan untuk mendapatkan data provinsi.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/public/provinces
Get Data Kota By Provinsi
jenis: public
curl -X GET "https://staging.siapi.tokoladang.co.id/public/cities/{provincyId}"
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
[
{
"id": "integer",
"name": "string"
}
]
endpoint ini digunakan untuk mendapatkan data kota/kab berdasarkan provinsi.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/public/cities/{provincyId}
Get Data Kecamatan By Kota
jenis: public
curl -X GET "https://staging.siapi.tokoladang.co.id/public/districts/{cityId}"
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
[
{
"id": "integer",
"name": "string"
}
]
endpoint ini digunakan untuk mendapatkan data kecamatan berdasarkan kota.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/public/districts/{cityId}
Get Data Desa By Kecamatan
jenis: public
curl -X GET "https://staging.siapi.tokoladang.co.id/public/village/{districtId}"
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
[
{
"id": "integer",
"name": "string"
}
]
endpoint ini digunakan untuk mendapatkan data desa berdasarkan kecamatan.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/public/village/{districtId}
[Public] Toko
Get Semua Toko
jenis: public
curl -X GET "https://staging.siapi.tokoladang.co.id/public/merchants?q=&page="
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
[
{
"address": "string",
"banners": [],
"city": {"id": "integer", "name": "string"},
"city_id": "integer",
"district": {"id": "integer", "name": "string", "id_ongkir": "string"},
"district_id": "integer",
"id": "integer",
"image": "string",
"name": "string",
"note": "string",
"postal_code": "integer",
"province": {"id": "integer", "name": "string"},
"province_id": "integer",
"rating": "string",
"review_count": "integer",
"review_total": "integer",
"slogan": "string",
"slug": "string",
"type": "string",
"verified_at": "datetime"
}
]
endpoint ini digunakan untuk mendapatkan data toko.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/public/merchants?q=&page=
Query Parameter
Parameter | Default | required | Deskripsi |
---|---|---|---|
q | string | false | Kata kunci |
page | integer | false | Halaman |
Get Detail Toko
jenis: public
curl -X GET "https://staging.siapi.tokoladang.co.id/public/merchants/{id}"
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
{
"id": "integer",
"name": "string",
"address": "string",
"branch": {"id": "integer", "code": "string", "name": "string"},
"province": {},
"province_id": "integer",
"city": {},
"city_id": "integer",
"district": {},
"district_id": "integer",
"village": {},
"village_id": "integer",
"postal_code": "string",
"longitude": "string",
"latitude": "string",
"slogan": "string",
"note": "string",
"type": "string",
"slug": "string",
"image": "string",
"banners": "json",
"deleted_at": "datetime",
"verified_at": "datetime",
"rating": "float",
"review_total": "integer",
"review_count": "integer",
"couriers": "string",
"is_umkm": "boolean",
"qualified": "boolean",
"business_category": "string",
"email": "string",
"phone": "string",
"main_category": "integer",
"seller_type": "string",
"documents": "json",
"bank_account": "json",
"sosmed": "json",
"signature": "json",
"email_verified_at": "datetime",
"created_by": "string",
"updated_by": "string",
"power": "integer",
"admin_note": "string",
"status": "string",
"verified_by": "integer"
}
endpoint ini digunakan untuk mendapatkan data detail toko.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/public/merchants/{id}
Get Ulasan Toko
jenis: public
curl -X GET "https://staging.siapi.tokoladang.co.id/public/merchants/{id}/reviews"
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
[
{
"created_at": "datetime",
"customer_order_item_id": "integer",
"id": "integer",
"message": "string",
"product_id": "string",
"rating": "integer",
"school": {"id": "string", "name": "string"},
"school_id": "string",
"updated_at": "datetime"
}
]
endpoint ini digunakan untuk mendapatkan ulasan toko.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/public/merchants/{id}/reviews
[Public] Produk
Get Semua Produk
jenis: public
curl -X GET "https://staging.siapi.tokoladang.co.id/public/products?q=&page=&sort=&cat=&min=&max=&city=&rat=&sc=&domestic=&umkm="
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
[
{
"availability_status": "string",
"category_name": "string",
"city_name": "string",
"description": "string",
"dimension": {"l": "integer", "w": "integer", "h": "integer"},
"discount": "integer",
"id": "integer",
"image": "string",
"images": [],
"merchant_id": "integer",
"merchant_name": "string",
"merchant_slug": "string",
"name": "string",
"price": "integer",
"price_zone_1": "integer",
"price_zone_2": "integer",
"price_zone_3": "integer",
"price_zone_4": "integer",
"price_zone_5": "integer",
"product_category_id": "integer",
"province_name": "string",
"qty_available": "integer",
"qty_sell": "integer",
"rating": "string",
"sku": "string",
"slug": "string",
"taxed": "boolean",
"weight": "integer",
"with_shipping_cost": "integer"
}
]
endpoint ini digunakan untuk mendapatkan data produk.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/public/products?q=&page=&sort=&cat=&min=&max=&city=&rat=&sc=&domestic=&umkm=
Query Parameter
Parameter | Default | required | Deskripsi |
---|---|---|---|
q | string | false | Kata kunci |
page | integer | false | Halaman |
sort | string | false | Sortir |
cat | string | false | Kategori |
min | string | false | Min. Harga |
max | string | false | Max. Harga |
city | string | false | Kota |
rat | string | false | Rating |
sc | string | false | Kondisi |
domestic | string | false | Buatan Indo? |
umkm | string | false | Produk UMKM? |
Get Detail Produk
jenis: public
curl -X GET "https://staging.siapi.tokoladang.co.id/public/products/{id}"
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
{
"availability_status": "string",
"category_name": "string",
"city_name": "string",
"description": "string",
"dimension": {"l": "integer", "w": "integer", "h": "integer"},
"discount": "integer",
"id": "integer",
"image": "string",
"images": [],
"merchant_id": "integer",
"merchant_name": "string",
"merchant_slug": "string",
"name": "string",
"price": "integer",
"price_zone_1": "integer",
"price_zone_2": "integer",
"price_zone_3": "integer",
"price_zone_4": "integer",
"price_zone_5": "integer",
"product_category_id": "integer",
"province_name": "string",
"qty_available": "integer",
"qty_sell": "integer",
"rating": "string",
"sku": "string",
"slug": "string",
"taxed": "boolean",
"weight": "integer",
"with_shipping_cost": "integer"
}
endpoint ini digunakan untuk mendapatkan data detail produk.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/public/products/{id}
Get Review Produk
jenis: public
curl -X GET "https://staging.siapi.tokoladang.co.id/public/products/reviews/{id}"
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
[
{
"created_at": "datetime",
"customer_order_item_id": "integer",
"id": "integer",
"message": "string",
"product_id": "string",
"rating": "integer",
"school": {"id": "string", "name": "string"},
"school_id": "string",
"updated_at": "datetime"
}
]
endpoint ini digunakan untuk mendapatkan data ulasan produk.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/public/products/reviews/{id}
Get Diskusi Produk
jenis: public
curl -X GET "https://staging.siapi.tokoladang.co.id/public/products/reviews/{id}"
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
[
{
"created_at": "datetime",
"created_by": "string",
"customer_id": "integer",
"id": "integer",
"merchant_discuss_replies": [],
"merchant_id": "integer",
"message": "string",
"product_id": "integer",
"school": {"id": "string", "name": "string"},
"school_id": "string",
"updated_at": "datetime",
"updated_by": "string"
}
]
endpoint ini digunakan untuk mendapatkan data diskusi produk.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/public/products/reviews/{id}
Get Produk By Kategori
jenis: public
curl -X GET "https://staging.siapi.tokoladang.co.id/public/products/category/{categoryId}?page="
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
[
{
"availability_status": "string",
"category_name": "string",
"city_name": "string",
"description": "string",
"dimension": {"l": "integer", "w": "integer", "h": "integer"},
"discount": "integer",
"id": "integer",
"image": "string",
"images": [],
"merchant_id": "integer",
"merchant_name": "string",
"merchant_slug": "string",
"name": "string",
"price": "integer",
"price_zone_1": "integer",
"price_zone_2": "integer",
"price_zone_3": "integer",
"price_zone_4": "integer",
"price_zone_5": "integer",
"product_category_id": "integer",
"province_name": "string",
"qty_available": "integer",
"qty_sell": "integer",
"rating": "string",
"sku": "string",
"slug": "string",
"taxed": "boolean",
"weight": "integer",
"with_shipping_cost": "integer"
}
]
endpoint ini digunakan untuk mendapatkan data produk berdasarkan kategori.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/public/products/category/{categoryId}?page=
Query Parameter
Parameter | Default | required | Deskripsi |
---|---|---|---|
page | integer | false | Halaman |
Get Produk By Toko
jenis: public
curl -X GET "https://staging.siapi.tokoladang.co.id/public/products/category/{categoryId}?q=&page=&etalase=&sort="
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
[
{
"availability_status": "string",
"category_name": "string",
"city_name": "string",
"description": "string",
"dimension": {"l": "integer", "w": "integer", "h": "integer"},
"discount": "integer",
"id": "integer",
"image": "string",
"images": [],
"merchant_id": "integer",
"merchant_name": "string",
"merchant_slug": "string",
"name": "string",
"price": "integer",
"price_zone_1": "integer",
"price_zone_2": "integer",
"price_zone_3": "integer",
"price_zone_4": "integer",
"price_zone_5": "integer",
"product_category_id": "integer",
"province_name": "string",
"qty_available": "integer",
"qty_sell": "integer",
"rating": "string",
"sku": "string",
"slug": "string",
"taxed": "boolean",
"weight": "integer",
"with_shipping_cost": "integer"
}
]
endpoint ini digunakan untuk mendapatkan data produk berdasarkan toko.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/public/products/category/{categoryId}?q=&page=&etalase=&sort=
Query Parameter
Parameter | Default | required | Deskripsi |
---|---|---|---|
q | string | false | Kata kunci |
page | integer | false | Halaman |
sort | string | false | Sortir |
etalase | string | false | Etalase |
[Admin] Pengguna
Get Verifikasi Pengguna
jenis: public
curl -X GET "https://staging.siapi.tokoladang.co.id/seller/admin-email/verify/{id}/{hash}"
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
{
"id": "code",
"message": "message"
}
endpoint ini digunakan untuk verifikasi pengguna.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/seller/admin-email/verify/{id}/{hash}
Get Kirim Link Verifikasi Pengguna
jenis: public
curl -X GET "https://staging.siapi.tokoladang.co.id/seller/admin-email/verification-notification"
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
{
"id": "code",
"message": "message"
}
endpoint ini digunakan untuk mengirim link verifikasi pengguna.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/seller/admin-email/verification-notification
Get Daftar Pengguna Admin
jenis: admin
curl -X GET "https://staging.siapi.tokoladang.co.id/admin/admins?q=&status=&page="
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
[
{
"id": "integer",
"name": "string",
"email": "string",
"email_verified_at": "dateime",
"roles": [],
"active": "boolean",
"created_at": "dateime",
"updated_at": "dateime"
}
]
endpoint ini digunakan untuk mendapatkan data pengguna admin.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/admin/admins?q=&status=&page=
Query Parameter
Parameter | Default | required | Deskripsi |
---|---|---|---|
q | string | false | Kata kunci |
status | string | false | Status |
page | integer | false | Halaman |
Post Pengguna Admin Baru
jenis: admin
curl -X POST "https://staging.siapi.tokoladang.co.id/admin/admins"
-H 'Content-Type: application/json'
-d '{
"name": "string",
"email": "string",
"roles": "array"
}'
Contoh Json Response :
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk menambah pengguna admin.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/admin/admins
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
string | true | ||
name | string | true | Nama |
roles | array | true | Rule |
Post Ubah Role Admin
jenis: admin
curl -X POST "https://staging.siapi.tokoladang.co.id/admin/admins/{id}/update-roles"
-H 'Content-Type: application/json'
-d '{
"roles": "array"
}'
Contoh Json Response :
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk update role admin.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/admin/admins/{id}/update-roles
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
roles | array | true | Rule |
Post Ubah Status Admin
jenis: admin
curl -X POST "https://staging.siapi.tokoladang.co.id/admin/admins/{id}/update-active"
-H 'Content-Type: application/json'
-d '{
"active": "boolean"
}'
Contoh Json Response :
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk mengubah status admin.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/admin/admins/{id}/update-active
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
active | boolean | true | Status |
[Admin] Cabang
Get Semua Kode Cabang
jenis: admin
curl -X GET "https://staging.siapi.tokoladang.co.id/admin/branches?q=&status=&page="
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
[
{
"active": "boolean",
"code": "string",
"created_at": "datetime",
"id": "integer",
"name": "string",
"note": "string",
"updated_at": "datetime"
}
]
endpoint ini digunakan untuk mendapatkan data Cabang.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/admin/branches?q=&status=&page=
Query Parameter
Parameter | Default | required | Deskripsi |
---|---|---|---|
q | string | false | Kata kunci |
status | string | false | Status |
page | integer | false | Halaman |
Post Cabang Baru
jenis: admin
curl -X POST "https://staging.siapi.tokoladang.co.id/admin/branches"
-H 'Content-Type: application/json'
-d '{
"name": "string",
"note": "string",
"active": "boolean"
}'
Contoh Json Response :
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk menambahkan data cabang baru.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/admin/branches
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
name | string | true | Nama Cabang |
note | string | true | Catatan |
active | boolean | true | Status |
Put Ubah Cabang
jenis: admin
curl -X POST "https://staging.siapi.tokoladang.co.id/admin/branches/{id}"
-H 'Content-Type: application/json'
-d '{
"name": "string",
"note": "string",
"active": "boolean"
}'
Contoh Json Response :
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk merubah data cabang.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/admin/branches/{id}
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
name | string | true | Nama Cabang |
note | string | true | Catatan |
active | boolean | true | Status |
[Admin] Complain
Get Semua Komplain
jenis: admin
curl -X GET "https://staging.siapi.tokoladang.co.id/admin/complains?q=&status=&page="
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
[
{
"code": "string",
"created_at": "datetime",
"created_by": "string",
"customer_order": {"id": "integer", "order_no": "string"},
"customer_order_id": "integer",
"from": "string",
"id": "integer",
"merchant": {"id": "integer", "name": "string"},
"merchant_id": "integer",
"message": "string",
"school": {"id": "string", "name": "string"},
"school_id": "string",
"status": "string",
"title": "string",
"updated_at": "datetime",
"updated_by": "string"
}
]
endpoint ini digunakan untuk mendapatkan data Komplain.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/admin/complains?q=&status=&page=
Query Parameter
Parameter | Default | required | Deskripsi |
---|---|---|---|
q | string | false | Kata kunci |
status | string | false | Status |
page | integer | false | Halaman |
Get Riwayat Komplain
jenis: admin
curl -X GET "https://staging.siapi.tokoladang.co.id/admin/complains/{complainId}"
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
[
{
"created_at": "datetime",
"created_by": "string",
"id": "integer",
"merchant_complain_id": "integer",
"message": "string",
"role": "string",
"sender": {"id": "integer", "merchant_id": "integer"},
"updated_at": "datetime",
"updated_by": "string"
}
]
endpoint ini digunakan untuk mendapatkan data riwayat Komplain.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/admin/complains/{complainId}
POST Menanggapi Komplain
jenis: admin
curl -X POST "https://staging.siapi.tokoladang.co.id/admin/complains/{complain}/reply"
-H 'Content-Type: application/json'
-d '{
"message": "string"
}'
Contoh Json Response :
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk menanggapi pesan pada komplain.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/admin/complains/{complain}/reply
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
message | string | true | Pesan |
POST Menutup Komplain
jenis: admin
curl -X POST "https://staging.siapi.tokoladang.co.id/admin/complains/{complain}/close"
-H 'Content-Type: application/json'
-d '{
"message": "string"
}'
Contoh Json Response :
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk menutup pesan pada komplain.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/admin/complains/{complain}/close
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
message | string | true | Pesan |
POST Eskalasi Komplain
jenis: admin
curl -X POST "https://staging.siapi.tokoladang.co.id/admin/complains/{complain}/escalate"
-H 'Content-Type: application/json'
-d '{
"message": "string"
}'
Contoh Json Response :
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk eskalasi komplain.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/admin/complains/{complain}/escalate
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
message | string | true | Pesan |
[Admin] Pengawas
Get Daftar Pengawas
jenis: admin
curl -X GET "https://staging.siapi.tokoladang.co.id/admin/inspectors?q=&status=&page="
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
[
{
"id": "integer",
"name": "string",
"email": "string",
"email_verified_at": "dateime",
"roles": [],
"active": "boolean",
"created_at": "dateime",
"updated_at": "dateime",
"active": "boolean",
"institution": "string"
}
]
endpoint ini digunakan untuk mendapatkan data pengawas.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/admin/inspectors?q=&status=&page=
Query Parameter
Parameter | Default | required | Deskripsi |
---|---|---|---|
q | string | false | Kata kunci |
status | string | false | Status |
page | integer | false | Halaman |
Post Pengawas Baru
jenis: admin
curl -X POST "https://staging.siapi.tokoladang.co.id/admin/inspectors"
-H 'Content-Type: application/json'
-d '{
"name": "string",
"email": "string",
"roles": "array",
"phone": "string",
"institution": "string"
}'
Contoh Json Response :
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk menambah data pengawas.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/admin/inspectors
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
string | true | ||
name | string | true | Nama |
roles | array | true | Rule |
phone | string | false | Telepon |
institution | array | true | Institusi |
Post Ubah Rule Pengawas
jenis: admin
curl -X POST "https://staging.siapi.tokoladang.co.id/admin/inspectors/{id}/update-roles"
-H 'Content-Type: application/json'
-d '{
"roles": "array"
}'
Contoh Json Response :
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk update role pengawas.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/admin/inspectors/{id}/update-roles
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
roles | array | true | Rule |
Post Ubah Status Pengawas
jenis: admin
curl -X POST "https://staging.siapi.tokoladang.co.id/admin/inspectors/{id}/update-active"
-H 'Content-Type: application/json'
-d '{
"active": "boolean"
}'
Contoh Json Response :
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk mengubah status pengawas.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/admin/inspectors/{id}/update-active
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
active | boolean | true | Status |
[Admin] Toko
Get Semua Toko
jenis: admin
curl -X GET "https://staging.siapi.tokoladang.co.id/admin/merchants?q=&status=&page="
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
[
{
"id": "integer",
"name": "string",
"email": "string",
"address": "string",
"rating": "integer",
"verified_at": "datetime",
"suspend": "boolean",
"status": "unverified"
}
]
endpoint ini digunakan untuk mendapatkan data Toko.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/admin/merchants?q=&status=&page=
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
q | string | false | Kata Kunci Pencarian |
status | string | false | Status |
page | integer | false | Halaman |
Get Detail Toko
jenis: admin
curl -X GET "https://staging.siapi.tokoladang.co.id/admin/merchants/{id}"
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
{
"address": "string",
"admin_note": "string",
"bank_account": {"no": "string", "name": "string", "bank": "string", "branch": "string"},
"banners": "string",
"branch_id": "integer",
"business_category": "string",
"city": {"id": "integer", "name": "string"},
"city_id": "integer",
"couriers": "string",
"created_at": "datetime",
"created_by": "string",
"deleted_at": "datetime",
"district": {"id": "integer", "name": "string"},
"district_id": "integer",
"documents": {
"npwp": {"no": "integer", "image": "string"},
"siup": {"no": "integer", "image": "string"},
"ktp": {"no": "integer", "image": "string"},
"pkp": {"no": "integer", "image": "string"}
},
"email": "string",
"email_verified_at": "datetime",
"id": "integer",
"image": "string",
"is_umkm": "boolean",
"latitude": "string",
"longitude": "string",
"main_category": "integer",
"name": "string",
"note": "string",
"phone": "string",
"postal_code": "integer",
"power": "integer",
"province": {"id": "integer", "name": "string"},
"province_id": "integer",
"qualified": "integer",
"rating": "integer",
"review_count": "integer",
"review_total": "integer",
"seller_type": "string",
"signature": {"name": "string", "position": "string"},
"slogan": "string",
"slug": "string",
"sosmed": {},
"status": "string",
"type": "string",
"updated_at": "datetime",
"updated_by": "string",
"users": [{"id": "integer", "name": "string", "email": "string"}],
"verified_at": "datetime",
"verified_by": "integer",
"village": {"id": "integer", "name": "string"},
"village_id": "integer"
}
endpoint ini digunakan untuk mendapatkan detail Toko.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/admin/merchants/{id}
Get Detail Toko Simpel
jenis: admin
curl -X GET "https://staging.siapi.tokoladang.co.id/admin/merchants/{id}/simple"
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
{
"id": "integer",
"name": "string",
"status": "string"
}
endpoint ini digunakan untuk mendapatkan detail Toko secara simpel.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/admin/merchants/{id}/simple
Get Data Produk By Toko
jenis: admin
curl -X GET "https://staging.siapi.tokoladang.co.id/admin/merchants/{id}/products?q=&status=&page="
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
{
"admin_note": "string",
"availability_status": "string",
"brand": "string",
"catalogue_id": "string",
"categories": [{"id": "integer", "name": "string"}],
"classification_catalogue": "string",
"created_at": "datetime",
"created_by": "string",
"description": "string",
"dimension": {"l": "integer", "w": "integer", "h": "integer"},
"discount": "integer",
"guaranty": "string",
"id": "integer",
"image": "string",
"images": "array",
"is_domestic": "boolean",
"is_kemdikbud": "boolean",
"is_secondhand": "boolean",
"is_umkm": "boolean",
"isbn": "string",
"kind": "string",
"merchant_id": "integer",
"merchant_storage_id": "integer",
"min_order": "integer",
"name": "string",
"power": "integer",
"price": "integer",
"price_zone_1": "integer",
"price_zone_2": "integer",
"price_zone_3": "integer",
"price_zone_4": "integer",
"price_zone_5": "integer",
"product_category_id": "integer",
"product_upload_id": "integer",
"qty_available": "integer",
"qty_sell": "integer",
"qualified": "boolean",
"rating": "string",
"review_count": "integer",
"review_total": "integer",
"sku": "string",
"slug": "string",
"status": "string",
"taxed": "boolean",
"updated_at": "datetime",
"updated_by": "string",
"verified_at": "datetime",
"verified_by": "string",
"warranty": "string",
"weight": "integer",
"wholesales": [{"quantity": "integer", "price": "integer"}],
"with_shipping_cost": "boolean"
}
endpoint ini digunakan untuk mendapatkan data produk berdasarkan toko.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/admin/merchants/{id}/products?q=&status=&page=
Query Parameter
Parameter | Default | required | Deskripsi |
---|---|---|---|
q | string | false | Kata kunci pencarian |
status | string | false | Kata kunci status |
page | string | false | Halaman |
Get Data Transaksi By Toko
jenis: admin
curl -X GET "https://staging.siapi.tokoladang.co.id/admin/merchants/{id}/orders?q=&status=&page="
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
{
"bill": "integer",
"bill_status": "string",
"details": {},
"id": "integer",
"merchant": {
"id": "integer", "name": "string", "email": "string", "phone": "string", "image": "string", "bank_account": "json"
},
"merchant_id": "integer",
"order_date": "datetime",
"order_no": "string",
"purchase_status": "ready",
"school": {"id": "string", "name": "string"},
"school_id": "string",
"shipping_cost": "integer",
"status": "string",
"status_updated_at": "datetime",
"tax_price": "integer",
"total_order": "integer",
"total_price": "integer"
}
endpoint ini digunakan untuk mendapatkan data transaksi berdasarkan toko.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/admin/merchants/{id}/orders?q=&status=&page=
Query Parameter
Parameter | Default | required | Deskripsi |
---|---|---|---|
q | string | false | Kata kunci pencarian |
status | string | false | Kata kunci status |
page | string | false | Halaman |
Post Verifikasi Toko
jenis: admin
curl -X POST "https://staging.siapi.tokoladang.co.id/admin/merchants/verify"
-H 'Content-Type: application/json'
-d '{
"id": "integer",
"verified" => "boolean",
"note" => "string",
}'
Contoh Json Response :
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk memverifikasi Toko.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/admin/merchants/verify
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
id | integer | true | Id Toko |
verified | boolean | true | Jika false toko dalam masalah |
note | string | false | Catatan |
Post Blokir Toko
jenis: admin
curl -X POST "https://staging.siapi.tokoladang.co.id/admin/merchants/suspend"
-H 'Content-Type: application/json'
-d '{
"id": "integer",
"note": "string"
}'
Contoh Json Response :
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk memblokir Toko.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/admin/merchants/suspend
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
id | integer | true | Id Toko |
note | string | true | Catatan |
Post Aktifkan Toko
jenis: admin
curl -X POST "https://staging.siapi.tokoladang.co.id/admin/merchants/unsuspend"
-H 'Content-Type: application/json'
-d '{
"id": "integer"
}'
Contoh Json Response :
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk mengaktifkan kembali Toko.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/admin/merchants/unsuspend
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
id | integer | true | Id Toko |
[Admin] Transaksi
Get Semua Transaksi
jenis: admin
curl -X GET "https://staging.siapi.tokoladang.co.id/admin/orders?q=&status=&page="
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
[
{
"bill": "integer",
"bill_status": "string",
"details": {"documentDate": "datetime", "signName": "string", "signPosition": "string",…},
"id": "integer",
"merchant": {"id": "integer", "name": "string", "email": "string", "phone": "string",…},
"merchant_id": "integer",
"order_date": "datetime",
"order_no": "string",
"purchase_status": "string",
"school": {"id": "string", "name": "string",…},
"school_id": "string",
"shipping_cost": "integer",
"status": "string",
"status_updated_at": "datetime",
"tax_price": "integer",
"total_order": "integer",
"total_price": "integer"
}
]
endpoint ini digunakan untuk mendapatkan data Transaksi.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/admin/orders?q=&status=&page=
Query Parameter
Parameter | Default | required | Deskripsi |
---|---|---|---|
q | string | false | Kata kunci |
status | string | false | Status |
page | integer | false | Halaman |
Get Detail Transaksi
jenis: admin
curl -X GET "https://staging.siapi.tokoladang.co.id/admin/orders/{id}/detail"
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
{
"bank_destination_id": "integer",
"bank_mutation_in_id": "integer",
"bank_mutation_out_id": "integer",
"bill_status": "string",
"compare_id": "integer",
"courier_detail": {"name": "string", "cost": "string", "etd": "string"},
"courier_receipt": "string",
"courier_service_type": "string",
"created_at": "datetime",
"customer_order_items": [{"id": "integer", "product_id": "integer", "product_name": "string",…}],
"details": {"documentDate": "2021-11-09 00:00:00", "signName": "string", "signPosition": "string",…},
"funding_source": "string",
"funding_source_ws": {"id": "string", "code": "string", "name": "string", "year": "integer"},
"handling_fee": "integer",
"handling_fee_details": "integer",
"id": "integer",
"insurance_cost": "integer",
"invoice_file": "string",
"merchant": {"id": "integer", "name": "string", "email": "string", "phone": "string",…},
"merchant_id": "integer",
"note": "string",
"order_date": "datetime",
"order_no": "string",
"payments": {
"pm1": {
"bankAccount": "string",
"bankDestination": "integer",
"bankOrigin": "string",
"date": "datetime",
"paymentFile": "string",
"transferred": "integer"
}
},
"payment_account_no": "string",
"payment_bank_origin": "string",
"payment_date": "datetime",
"payment_file": "string",
"payment_forwarded_date": "datetime",
"payment_method_id": "integer",
"payment_transferred": "integer",
"purchase_status": "string",
"reason_cancellation": "string",
"school": {"id": "string", "name": "string",…},
"school_id": "string",
"shipping_cost": "integer",
"status_updated_at": "datetime",
"tax_payer": "string",
"tax_price": "integer",
"time_limit": "integer",
"total_price": "integer",
"total_qty": "integer",
"total_weight": "integer",
"updated_at": "datetime"
}
endpoint ini digunakan untuk mendapatkan detail data Transaksi.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/admin/orders/{id}/detail
Get Riwayat Transaksi
jenis: admin
curl -X GET "https://staging.siapi.tokoladang.co.id/admin/orders/{id}/histories"
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
[
{
"causer_id": "string",
"causer_type": "string",
"created_at": "datetime",
"description": "string",
"event": "string",
"id": "integer",
"log_name": "string",
"properties": {"user": {"id": "integer", "email": "string", "name": "string"},…},
"subject_id": "string",
"subject_type": "string",
"updated_at": "datetime"
}
]
endpoint ini digunakan untuk mendapatkan data riwayat Transaksi.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/admin/orders/{id}/histories
Get Biaya Pengiriman
jenis: admin
curl -X GET "https://staging.siapi.tokoladang.co.id/admin/orders/shipping-costs?q=&page="
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
[
{
"bill": "integer",
"bill_status": "string",
"details": {"documentDate": "datetime", "signName": "string", "signPosition": "string",…},
"id": "integer",
"merchant": {"id": "integer", "name": "string", "email": "string", "phone": "string",…},
"merchant_id": "integer",
"order_date": "datetime",
"order_no": "string",
"purchase_status": "string",
"school": {"id": "string", "name": "string",…},
"school_id": "string",
"shipping_cost": "integer",
"status": "string",
"status_updated_at": "datetime",
"tax_price": "integer",
"total_order": "integer",
"total_price": "integer"
}
]
endpoint ini digunakan untuk mendapatkan data biaya pengiriman jika kurir TRANSAKA.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/admin/orders/shipping-costs?q=&page=
Query Parameter
Parameter | Default | required | Deskripsi |
---|---|---|---|
q | string | false | Kata kunci |
page | integer | false | Halaman |
Put Ubah Status Transaksi
jenis: admin
curl -X PUT "https://staging.siapi.tokoladang.co.id/admin/orders/{id}/change-purchase-status"
-H 'Content-Type: application/json'
-d '{
"purchase_status": "string"
}'
Contoh Json Response :
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk merubah status transaksi.
HTTP Request
PUT https://staging.siapi.tokoladang.co.id/admin/orders/{id}/change-purchase-status
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
purchase_status | string | true | Status |
Put Ubah Status Pembayaran
jenis: admin
curl -X POST "https://staging.siapi.tokoladang.co.id/admin/orders/{id}/change-bill-status"
-H 'Content-Type: application/json'
-d '{
"bill_status": "string"
}'
Contoh Json Response :
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk merubah status pembayaran.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/admin/orders/{id}/change-bill-status
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
bill_status | string | true | Status |
Post Konfirmasi Biaya Pengiriman
jenis: admin
curl -X POST "https://staging.siapi.tokoladang.co.id/admin/orders/{id}/verify-shipping-cost"
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk konfirmasi biaya pengiriman.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/admin/orders/{id}/verify-shipping-cost
[Admin] Payment
Get Semua Pembayaran
jenis: admin
curl -X GET "https://staging.siapi.tokoladang.co.id/admin/payments?q=&status=&page="
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
[
{
"bank_mutation_in": {"id": "integer", "admin_id": "integer",, "note": "string",…},
"bank_mutation_in_id": "integer",
"bank_mutation_out": {"id": "integer","admin_id": "integer", "note": "string",…},
"bank_mutation_out_id": "integer",
"bill": "integer",
"bill_status": "string",
"details": {"documentDate": "2021-06-15", "signName": "string", "signPosition": "string", "signId": "string",…},
"handling_fee": "integer",
"handling_fee_details": [{"name": "string", "amount": "integer"}, {"name": "string", "amount": "integer"}],
"id": "integer",
"merchant": {"id": "integer", "name": "string", "email": "string", "phone": "string",…},
"merchant_id": "integer",
"order_date": "datetime",
"order_no": "string",
"payment_date": "datetime",
"payment_forwarded_date": "datetime",
"payment_method_id": "integer",
"payment_transferred": "integer",
"payments": {"pm2": {"va": "string", "amount": "integer", "expired": "datetime", "paid": "boolean",…}},
"school": {"id": "string", "name": "string",…},
"school_id": "string",
"shipping_cost": "integer",
"status_updated_at": "datetime",
"tax_price": "integer",
"total_order": "integer",
"total_price": "integer"
}
]
endpoint ini digunakan untuk mendapatkan data pembayaran.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/admin/payments?q=&status=&page=
Query Parameter
Parameter | Default | required | Deskripsi |
---|---|---|---|
q | string | false | Kata kunci |
status | string | false | Status |
page | integer | false | Halaman |
Get Ringkasan Pembayaran
jenis: admin
curl -X GET "https://staging.siapi.tokoladang.co.id/admin/payments/summary"
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
{
"forwarded": "integer",
"paid": "integer",
"unpaid": "integer"
}
endpoint ini digunakan untuk mendapatkan data ringkasan pembayaran.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/admin/payments/summary
Get Pembayaran By Penjual
jenis: admin
curl -X GET "https://staging.siapi.tokoladang.co.id/admin/payments/{merchant}/merchant?q&status&page"
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
[
{
"bank_mutation_in": {"id": "integer", "admin_id": "integer",, "note": "string",…},
"bank_mutation_in_id": "integer",
"bank_mutation_out": {"id": "integer","admin_id": "integer", "note": "string",…},
"bank_mutation_out_id": "integer",
"bill": "integer",
"bill_status": "string",
"details": {"documentDate": "2021-06-15", "signName": "string", "signPosition": "string", "signId": "string",…},
"handling_fee": "integer",
"handling_fee_details": [{"name": "string", "amount": "integer"}, {"name": "string", "amount": "integer"}],
"id": "integer",
"merchant": {"id": "integer", "name": "string", "email": "string", "phone": "string",…},
"merchant_id": "integer",
"order_date": "datetime",
"order_no": "string",
"payment_date": "datetime",
"payment_forwarded_date": "datetime",
"payment_method_id": "integer",
"payment_transferred": "integer",
"payments": {"pm2": {"va": "string", "amount": "integer", "expired": "datetime", "paid": "boolean",…}},
"school": {"id": "string", "name": "string",…},
"school_id": "string",
"shipping_cost": "integer",
"status_updated_at": "datetime",
"tax_price": "integer",
"total_order": "integer",
"total_price": "integer"
}
]
endpoint ini digunakan untuk mendapatkan data Payment berdasarkan penjual.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/admin/payments/{merchant}/merchant?q&status&page
Post verifikasi Pembayaran
jenis: admin
curl -X POST "https://staging.siapi.tokoladang.co.id/admin/payments/{orderId}/verify"
-H 'Content-Type: application/json'
-d '{
"system_bank_id": "integer",
"client_bank": {
"bank": "string",
"name": "string",
"no": "string"
},
"transferred": "integer",
"transferred_at": "datetime",
"note": "string",
"bank_mutation_id": "integer",
"is_valid": "boolean"
}'
Contoh Json Response :
{
"code": "integer",
"message": "message"
}
endpoint ini digunakan untuk verifikasi pembayaran.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/admin/payments/{orderId}/verify
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
system_bank_id | integer | true | sistem bank |
client_bank.bank | string | true | bank |
client_bank.name | string | true | nama bank |
client_bank.no | string | true | no. bank |
transferred | integer | true | status transfer |
transferred_at | datetime | true | tanggal transfer |
note | string | false | catatan |
bank_mutation_id | integer | false | mutasi bank |
is_valid | boolean | true | valid |
Post verifikasi ulang pesanan
jenis: admin
curl -X POST "https://staging.siapi.tokoladang.co.id/admin/payments/{orderId}/reverify"
-H 'Content-Type: application/json'
-d '{
"system_bank_id": "integer",
"client_bank": {
"bank": "string",
"name": "string",
"no": "string"
},
"transferred": "integer",
"transferred_at": "datetime",
"note": "string",
"bank_mutation_id": "integer",
"is_valid": "boolean"
}'
Contoh Json Response :
{
"code": "integer",
"message": "message"
}
endpoint ini digunakan untuk verifikasi ulang pesanan.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/admin/payments/{orderId}/reverify
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
system_bank_id | integer | true | sistem bank |
client_bank.bank | string | true | bank |
client_bank.name | string | true | nama bank |
client_bank.no | string | true | no. bank |
transferred | integer | true | status transfer |
transferred_at | datetime | true | tanggal transfer |
note | string | false | catatan |
bank_mutation_id | integer | false | mutasi bank |
is_valid | boolean | true | valid |
Post Biaya Admin
jenis: admin
curl -X POST "https://staging.siapi.tokoladang.co.id/admin/payments/{orderId}/handling-fees"
-H 'Content-Type: application/json'
-d '{
"free": "boolean",
"fees": {
"name": "string",
"amount": "integer"
}
}'
Contoh Json Response :
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk verifikasi biaya penanganan pesanan.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/admin/payments/{orderId}/handling-fees
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
free | boolean | true | status biaya pengiriman |
fees.name | string | true if free false | nama pengiriman |
fees.amount | integer | true if free false | biaya pengiriman |
Post pesanan forwarded
jenis: admin
curl -X POST "https://staging.siapi.tokoladang.co.id/admin/payments/{merchantId}/forward"
-H 'Content-Type: application/json'
-d '{
"orders": {
"id": "integer"
},
"note": "string",
"system_bank_id": "integer",
"transferred_at": "datetime"
}'
Contoh Json Response :
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk verifikasi biaya penanganan pesanan.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/admin/payments/{merchantId}/forward
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
orders.id | integer | true | pesanan |
note | string | false | catatan |
system_bank_id | integer | true | sistem bank |
transferred_at | date | true | tanggal |
[Admin]Produk
Get semua Produk
jenis: admin
curl -X GET "https://staging.siapi.tokoladang.co.id/admin/products?q=&status=&page="
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
[
{
"admin_note": "string",
"availability_status": "string",
"brand": "string",
"catalogue_id": "string",
"categories": [{"id": "integer", "name": "string"}],
"classification_catalogue": "string",
"created_at": "datetime",
"created_by": "string",
"description": "string",
"dimension": {"l": "integer", "w": "integer", "h": "integer"},
"discount": "integer",
"guaranty": "string",
"id": "integer",
"image": "string",
"images": "array",
"is_domestic": "boolean",
"is_kemdikbud": "boolean",
"is_secondhand": "boolean",
"is_umkm": "boolean",
"isbn": "string",
"kind": "string",
"merchant_id": "integer",
"merchant_storage_id": "integer",
"min_order": "integer",
"name": "string",
"power": "integer",
"price": "integer",
"price_zone_1": "integer",
"price_zone_2": "integer",
"price_zone_3": "integer",
"price_zone_4": "integer",
"price_zone_5": "integer",
"product_category_id": "integer",
"product_upload_id": "integer",
"qty_available": "integer",
"qty_sell": "integer",
"qualified": "boolean",
"rating": "string",
"review_count": "integer",
"review_total": "integer",
"sku": "string",
"slug": "string",
"status": "string",
"taxed": "boolean",
"updated_at": "datetime",
"updated_by": "string",
"verified_at": "datetime",
"verified_by": "string",
"warranty": "string",
"weight": "integer",
"wholesales": [{"quantity": "integer", "price": "integer"}],
"with_shipping_cost": "boolean"
}
]
endpoint ini digunakan untuk mendapatkan data produk.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/admin/products?q=&status=
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
q | string | false | Kata Kunci Pencarian |
status | string | false | Status |
page | integer | false | Halaman |
Get Detail Produk
jenis: admin
curl -X GET "https://staging.siapi.tokoladang.co.id/admin/products/{id}"
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
{
"admin_note": "string",
"availability_status": "string",
"brand": "string",
"catalogue_id": "string",
"categories": [{"id": "integer", "name": "string"}],
"classification_catalogue": "string",
"created_at": "datetime",
"created_by": "string",
"description": "string",
"dimension": {"l": "integer", "w": "integer", "h": "integer"},
"discount": "integer",
"guaranty": "string",
"id": "integer",
"image": "string",
"images": "array",
"is_domestic": "boolean",
"is_kemdikbud": "boolean",
"is_secondhand": "boolean",
"is_umkm": "boolean",
"isbn": "string",
"kind": "string",
"merchant_id": "integer",
"merchant_storage_id": "integer",
"min_order": "integer",
"name": "string",
"power": "integer",
"price": "integer",
"price_zone_1": "integer",
"price_zone_2": "integer",
"price_zone_3": "integer",
"price_zone_4": "integer",
"price_zone_5": "integer",
"product_category_id": "integer",
"product_upload_id": "integer",
"qty_available": "integer",
"qty_sell": "integer",
"qualified": "boolean",
"rating": "string",
"review_count": "integer",
"review_total": "integer",
"sku": "string",
"slug": "string",
"status": "string",
"taxed": "boolean",
"updated_at": "datetime",
"updated_by": "string",
"verified_at": "datetime",
"verified_by": "string",
"warranty": "string",
"weight": "integer",
"wholesales": [{"quantity": "integer", "price": "integer"}],
"with_shipping_cost": "boolean"
}
endpoint ini digunakan untuk mendapatkan data detail produk.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/admin/products/{id}
Post Verifikasi Produk
jenis: admin
curl -X POST "https://staging.siapi.tokoladang.co.id/admin/products/verify"
-H 'Content-Type: application/json'
-d '{
"id": "integer",
"verified": "boolean",
"status": "string"
}'
Contoh Json Response :
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk verifikasi produk.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/admin/products/verify
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
id | integer | true | Id produk |
verified | boolean | true | Jika false produk bermasalah |
note | string | false | Catatan |
Post Blokir Produk
jenis: admin
curl -X POST "https://staging.siapi.tokoladang.co.id/admin/products/suspend"
-H 'Content-Type: application/json'
-d '{
"id": "integer",
"note": "string"
}'
Contoh Json Response :
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk memblokir produk.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/admin/products/suspend
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
id | integer | true | Id produk |
note | string | false | Catatan |
Post Aktifkan Produk
jenis: admin
curl -X POST "https://staging.siapi.tokoladang.co.id/admin/products/unsuspend"
-H 'Content-Type: application/json'
-d '{
"id": "integer"
}'
Contoh Json Response :
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk aktifkan kembali produk.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/admin/products/unsuspend
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
id | integer | true | Id produk |
[Admin]Kategori Produk
Get semua Kategori Produk
jenis: admin
curl -X GET "https://staging.siapi.tokoladang.co.id/admin/product-categories?parent="
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
[
{
"created_at": "datetime",
"created_by": "string",
"description": "string",
"enabled": "true",
"id": "integer",
"image": "string",
"level": "integer",
"name": "string",
"parent_id": "integer",
"sequence": "integer",
"slug": "string",
"updated_at": "datetime",
"updated_by": "string",
"_lft": "integer",
"_rgt": "integer",
}
]
endpoint ini digunakan untuk mendapatkan data kategori produk.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/admin/product-categories?parent=
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
parent | string | false | id parent kategori |
Simpan Kategori Produk
jenis: admin
curl -X POST "https://staging.siapi.tokoladang.co.id/admin/product-categories"
-H 'Content-Type: application/json'
-d '{
"name": "string",
"sequence": "integer",
"image": "file",
"enabled": "boolean"
}'
Contoh Json Response :
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk menyimpan kategori produk.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/admin/product-categories
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
name | string | true | Nama Kategori |
sequence | integer | true | Sequence |
image | file | false | Gambar ikon |
enabled | boolean | true | Status kategori |
Ubah Kategori Produk
jenis: admin
curl -X PUT "https://staging.siapi.tokoladang.co.id/admin/product-categories/{id}"
-H 'Content-Type: application/json'
-d '{
"name": "string",
"sequence": "integer",
"image": "file",
"enabled": "boolean"
}'
Contoh Json Response :
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk mengubah kategori produk.
HTTP Request
PUT https://staging.siapi.tokoladang.co.id/admin/product-categories/{id}
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
name | string | true | Nama Kategori |
sequence | integer | true | Sequence |
image | file | false | Gambar ikon |
enabled | boolean | true | Status kategori |
Hapus Kategori Produk
jenis: admin
curl -X DELETE "https://staging.siapi.tokoladang.co.id/admin/product-categories/{id}"
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk menghapus kategori produk.
HTTP Request
DELETE https://staging.siapi.tokoladang.co.id/admin/product-categories/{id}
[Admin] Promo
Get Semua Promo
jenis: admin
curl -X GET "https://staging.siapi.tokoladang.co.id/admin/promos"
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
[
{
"code": "string",
"created_at": "datetime",
"created_by": "string",
"description": "string",
"enabled": "boolean",
"id": "integer",
"image": "string",
"is_main": "boolean",
"minimum_purchase": "integer",
"name": "string",
"product_category_id": "integer",
"slug": "string",
"type": "integer",
"updated_at": "datetime",
"updated_by": "string",
"valid_from": "date",
"valid_to": "date",
"value": "integer"
}
]
endpoint ini digunakan untuk mendapatkan data promo.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/admin/promos
Post Promo Baru
jenis: admin
curl -X POST "https://staging.siapi.tokoladang.co.id/admin/promos"
-H 'Content-Type: application/json'
-d '{
"name": "string",
"image": "file",
"enabled": "boolean"
}'
Contoh Json Response :
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk menambahkan data promo baru.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/admin/promos
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
name | string | true | Nama Cabang |
image | file | true | Gambar |
enabled | boolean | true | Status |
Put Ubah Promo
jenis: admin
curl -X POST "https://staging.siapi.tokoladang.co.id/admin/promos/{id}"
-H 'Content-Type: application/json'
-d '{
"name": "string",
"image": "file",
"enabled": "boolean"
}'
Contoh Json Response :
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk merubah data promo.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/admin/promos/{id}
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
name | string | true | Nama Cabang |
image | file | true | Gambar |
enabled | boolean | true | Status |
Delete Hapus Promo
jenis: admin
curl -X DELETE "https://staging.siapi.tokoladang.co.id/admin/promos/{id}"
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk menghapus data promo.
HTTP Request
DELETE https://staging.siapi.tokoladang.co.id/admin/promos/{id}
[Admin] Sekolah
Get Semua Sekolah
jenis: admin
curl -X GET "https://staging.siapi.tokoladang.co.id/admin/schools?q=&status=&page"
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
[
{
"admin_note": "string",
"city_id": "integer",
"created_at": "datetime",
"details": {"sekolah_id": "string", "nama_sekolah": "string", "status": "string",...},
"district_id": "integer",
"email_verified_at": "datetime",
"funding_sources": [{"id": "string", "code": "string", "name": "string", "year": "integer",...}],
"id": "string",
"image": "string",
"name": "string",
"province_id": "integer",
"suspended": "boolean",
"type": "string",
"updated_at": "datetime",
"zone": "string"
}
]
endpoint ini digunakan untuk mendapatkan semua data sekolah.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/admin/schools?q=&status=&page
Query Parameter
Parameter | Default | required | Deskripsi |
---|---|---|---|
q | string | false | Kata kunci |
status | string | false | Status |
page | integer | false | Halaman |
Get Detail Sekolah
jenis: admin
curl -X GET "https://staging.siapi.tokoladang.co.id/admin/schools/{id}"
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
{
"admin_note": "string",
"city_id": "integer",
"created_at": "datetime",
"details": {"sekolah_id": "string", "nama_sekolah": "string", "status": "string",...},
"district_id": "integer",
"email_verified_at": "datetime",
"funding_sources": [{"id": "string", "code": "string", "name": "string", "year": "integer",...}],
"id": "string",
"image": "string",
"name": "string",
"province_id": "integer",
"suspended": "boolean",
"type": "string",
"updated_at": "datetime",
"zone": "string"
}
endpoint ini digunakan untuk mendapatkan detail data sekolah.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/admin/schools/{id}
Post Blokir Sekolah
jenis: admin
curl -X POST "https://staging.siapi.tokoladang.co.id/admin/schools/suspend"
-H 'Content-Type: application/json'
-d '{
"id": "string",
"note": "string"
}'
Contoh Json Response :
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk memblokir sekolah.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/admin/schools/suspend
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
id | string | true | Id Sekolah |
note | string | true | Catatan |
Post Aktifkan Sekolah
jenis: admin
curl -X POST "https://staging.siapi.tokoladang.co.id/admin/schools/unsuspend"
-H 'Content-Type: application/json'
-d '{
"id": "string"
}'
Contoh Json Response :
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk aktifkan sekolah.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/admin/schools/unsuspend
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
id | string | true | Id Sekolah |
Get User Sekolah
jenis: admin
curl -X GET "https://staging.siapi.tokoladang.co.id/admin/customers/{schoolId}"
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
[
{
"id": "integer",
"name": "string",
"email": "string",
"suspended": "boolean",
"school_id": "string",
"details": "json",
"created_at": "datetime",
"updated_at": "datetime"
}
]
endpoint ini digunakan untuk mendapatkan data users berdasarkan id sekolah.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/admin/customers/{schoolId}
Get User Detail
jenis: admin
curl -X GET "https://staging.siapi.tokoladang.co.id/admin/customers/{id}/detail"
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
{
"id": "integer",
"name": "string",
"email": "string",
"suspended": "boolean",
"school_id": "string",
"details": "json",
"created_at": "datetime",
"updated_at": "datetime"
}
endpoint ini digunakan untuk mendapatkan data detail user.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/admin/customers/{id}/detail
[Seller] Compare
Get Data Perbandingan
jenis: seller
curl -X GET "https://staging.siapi.tokoladang.co.id/seller/dashboard/compares?page="
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
[
{
"compare": {
"id": "integer", "school_id": "string", "code": "string", "is_used": "boolean", "created_by": "string"
"school": "json", "funding_source": "json", "created_at": "datetime", "created_at": "updated_at", "updated_by": "string"
},
"compare_id": "integer",
"compare_items": [
{
"compare_group_id": "integer",
"id": "integer",
"item_no": "integer",
"negotiation_id": "integer",
"price": "integer",
"product_id": "integer",
"product_image": "string",
"product_name": "string",
"quantity": "integer",
"shipping": {},
"tax_price": "integer",
"total_price": "integer"
}
],
"courier": {"name": "string", "etd": "string", "cost": "integer", "address": "string"},
"courier_name": "Kurir Toko",
"id": "integer",
"merchant_id": "integer",
"shipping_cost": "integer",
"status": "boolean",
"tax_price": "integer",
"time_limit": "integer",
"total_price": "integer",
"total_qty": "integer",
"total_weight": "integer"
}
]
endpoint ini digunakan untuk mendapatkan data perbandingan.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/seller/dashboard/compares?page=
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
page | integer | true | halaman |
Post Konfirmasi Perbandingan
jenis: seller
curl -X POST "https://staging.siapi.tokoladang.co.id/seller/{groupId}/confirm"
-H 'Content-Type: application/json'
-d '{
"time_limit": "integer",
"shipping_cost": "integer",
"shipping_etd": "integer"
}'
Contoh Json Response :
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk Konfirmasi Perbandingan.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/seller/{groupId}/confirm
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
time_limit | integer | true | Waktu Pengerjaan |
shipping_cost | integer | true | Ongkos Kirim |
shipping_etd | integer | true | Lama Pengiriman |
[Seller] Complain
Get Komplain Berdasarkan Pesanan
jenis: seller
curl -X GET "https://staging.siapi.tokoladang.co.id/seller/complains/{orderId}/details"
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
{
"code": "string",
"created_at": "datetime",
"created_by": "string",
"customer_order_id": "integer",
"from": "string",
"id": "integer",
"merchant_id": "integer",
"message": "string",
"school": {"id": "string", "name": "string", "details": "string", "funding_sources": "json",…},
"school_id": "string",
"status": "string",
"title": "string",
"updated_at": "datetime",
"updated_by": "string",
"merchant_complain_histories": [
{
"created_at": "datetime", "created_by": "string", "id": "integer", "merchant_complain_id": "integer", "message": "string", "role": "string",
"sender": {"id": "integer", "merchant_id": "string"}, "updated_at": "datetime", "updated_by": "string"
}
]
}
endpoint ini digunakan untuk mendapatkan data Komplain berdasarkan Pesanan.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/seller/complains/{orderId}/details
Post Penjual Membuat Komplain Baru
jenis: seller
curl -X POST "https://staging.siapi.tokoladang.co.id/seller/complains/{orderId}"
-H 'Content-Type: application/json'
-d '{
"title": "string",
"message": "string"
}'
Contoh Json Response :
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk Membuat Komplain Baru.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/seller/complains/{orderId}
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
title | string | true | Judul |
message | string | true | Pesan Komplain |
Post Penjual Menanggapi Komplain
jenis: seller
curl -X POST "https://staging.siapi.tokoladang.co.id/seller/complains/{id}/reply"
-H 'Content-Type: application/json'
-d '{
"message": "string"
}'
Contoh Json Response :
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk menganggapi Komplain.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/seller/complains/{id}/reply
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
message | string | true | Pesan |
Post Penjual Menutup komplain
jenis: seller
curl -X POST "https://staging.siapi.tokoladang.co.id/seller/complains/{id}/close"
-H 'Content-Type: application/json'
-d '{
"message": "string"
}'
Contoh Json Response :
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk menutup komplain.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/seller/complains/{id}/close
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
message | string | true | Pesan |
[Seller] Global
Post Upload Gambar
jenis: seller
curl -X POST "https://staging.siapi.tokoladang.co.id/seller/upload"
-H 'Content-Type: application/json'
-d '{
"file": "image",
"type": "string"
}'
Contoh Json Response :
{
"resource": "string"
}
endpoint ini digunakan untuk menambahkan gambar.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/seller/upload
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
file | image | true | Gambar |
type | string | true | Kategori Gambar |
Get Pengaturan
jenis: seller
curl -X POST "https://staging.siapi.tokoladang.co.id/seller/settings"
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
[
{
"id": "integer",
"name": "string",
"type": "string",
"content": "string",
"scope": "integer",
"enabled": "boolean",
"created_at": "datetime",
"updated_at": "datetime"
}
]
endpoint ini digunakan untuk memperoleh pengaturan.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/seller/settings
Post Cek Data Cabang
jenis: seller
curl -X POST "https://staging.siapi.tokoladang.co.id/seller/check-branch"
-H 'Content-Type: application/json'
-d '{
"code": "string"
}'
Contoh Json Response :
{
"id": "integer",
"name": "string",
"code": "string",
"note": "string",
"active": "boolean",
"created_at": "datetime",
"updated_at": "datetime"
}
endpoint ini digunakan untuk cek data cabang.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/seller/check-branch
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
code | string | true | Kode Cabang |
Get Dashboard
jenis: seller
curl -X GET "https://staging.siapi.tokoladang.co.id/seller/dashboard/index"
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
{
"transactions": "array",
"merchants": "array",
"products": "array"
}
endpoint ini digunakan untuk mendapatkan data dashboard.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/seller/dashboard/index
[Seller] Toko
Toko digunakan untuk melihat data toko, membuat data toko, dan merubah data toko.
Get Verifikasi Pengguna
jenis: public
curl -X GET "https://staging.siapi.tokoladang.co.id/seller/seller-email/verify/{id}/{hash}"
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
{
"id": "code",
"message": "message"
}
endpoint ini digunakan untuk verifikasi pengguna.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/seller/seller-email/verify/{id}/{hash}
Get Kirim Link Verifikasi Pengguna
jenis: public
curl -X GET "https://staging.siapi.tokoladang.co.id/seller/seller-email/verification-notification"
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
{
"id": "code",
"message": "message"
}
endpoint ini digunakan untuk mengirim link verifikasi pengguna.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/seller/seller-email/verification-notification
Get Verifikasi Toko
jenis: public
curl -X GET "https://staging.siapi.tokoladang.co.id/seller/merchant-email/verify/{id}/{hash}"
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
{
"id": "code",
"message": "message"
}
endpoint ini digunakan untuk verifikasi toko.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/seller/merchant-email/verify/{id}/{hash}
Get Kirim Link Verifikasi Toko
jenis: public
curl -X GET "https://staging.siapi.tokoladang.co.id/seller/merchant-email/verification-notification"
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
{
"id": "code",
"message": "message"
}
endpoint ini digunakan untuk mengirim link verifikasi toko.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/seller/merchant-email/verification-notification
Get Data Toko
jenis: seller
curl -X GET "https://staging.siapi.tokoladang.co.id/seller/merchants/{id}"
-H 'Content-Type: application/json',
'Authorization': Bearer {{TOKEN}}
Contoh Json Response :
{
"id": "integer",
"name": "string",
"address": "string",
"branch": {"id": "integer", "code": "string", "name": "string"},
"province_id": "integer",
"city_id": "integer",
"district_id": "integer",
"village_id": "integer",
"postal_code": "string",
"longitude": "string",
"latitude": "string",
"slogan": "string",
"note": "string",
"type": "string",
"slug": "string",
"image": "string",
"banners": "json",
"deleted_at": "datetime",
"verified_at": "datetime",
"rating": "float",
"review_total": "integer",
"review_count": "integer",
"couriers": "string",
"is_umkm": "boolean",
"qualified": "boolean",
"business_category": "string",
"email": "string",
"phone": "string",
"main_category": "integer",
"seller_type": "string",
"documents": "json",
"bank_account": "json",
"sosmed": "json",
"signature": "json",
"email_verified_at": "datetime",
"created_by": "string",
"updated_by": "string",
"power": "integer",
"admin_note": "string",
"status": "string",
"verified_by": "integer"
}
endpoint ini digunakan untuk mendapatkan data Toko.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/seller/merchants/{id}
Get Data Pengguna
jenis: seller
curl -X GET "https://staging.siapi.tokoladang.co.id/seller/merchants?q=&status=&page="
-H 'Content-Type: application/json',
'Authorization': Bearer {{TOKEN}}
Contoh Json Response :
[
{
"created_at": "datetime",
"email": "string",
"email_verified_at": "datetime",
"enabled": "boolean",
"id": "integer",
"merchant_id": "integer",
"name": "string",
"phone": "string",
"roles": "json",
"updated_at": "datetime"
}
]
endpoint ini digunakan untuk mendapatkan data Pengguna.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/seller/merchants?q=&status=&page=
Query Parameter
Parameter | Default | required | Deskripsi |
---|---|---|---|
q | string | false | kata kunci |
status | string | false | status |
page | string | false | halaman |
Post Tambah Toko Baru
jenis: seller
curl -X POST "https://staging.siapi.tokoladang.co.id/seller/merchants"
-H 'Content-Type: application/json'
'Authorization': Bearer {{TOKEN}}
-d '{
"name": "string",
"slug": "string",
"address": "string",
"province_id": "integer",
"city_id": "integer",
"district_id": "integer",
"village_id": "integer",
"postal_code": "integer",
"longitude": "string",
"latitude": "string",
"slogan": "string",
"note": "string",
"image": "string",
"banners": "json",
"couriers": "string",
"is_umkm": "boolean",
"business_category": "string",
"phone": "string",
"type": "string",
"seller_type": "string",
"email": "string",
"admin_note": "string",
"branch_id": "integer",
"documents" : {
"npwp" : {"no" : "integer", "image" : "string"},
"siup" : {"no" : "integer", "image" : "string"},
"ktp" : {"no" : "integer", "image" : "string"},
"pkp" : {"no" : "integer", "image" : "string"}
},
"bank_account" : {
"name" : "string",
"no" : "string",
"bank" : "string",
"branch" : "string"
},
"sosmed" : {"fb" : "contoh", "ig" : "contoh"},
"signature" : {
"name" : "string",
"position" : "string"
}
}'
Contoh Json Response :
{
"id": "integer",
"name": "string",
"address": "string",
"branch": {"id": "integer", "code": "string", "name": "string"},
"province_id": "integer",
"city_id": "integer",
"district_id": "integer",
"village_id": "integer",
"postal_code": "string",
"longitude": "string",
"latitude": "string",
"slogan": "string",
"note": "string",
"type": "string",
"slug": "string",
"image": "string",
"banners": "json",
"deleted_at": "datetime",
"verified_at": "datetime",
"rating": "float",
"review_total": "integer",
"review_count": "integer",
"couriers": "string",
"is_umkm": "boolean",
"qualified": "boolean",
"business_category": "string",
"email": "string",
"phone": "string",
"main_category": "integer",
"seller_type": "string",
"documents": "json",
"bank_account": "json",
"sosmed": "json",
"signature": "json",
"email_verified_at": "datetime",
"created_by": "string",
"updated_by": "string",
"power": "integer",
"admin_note": "string",
"status": "string",
"verified_by": "integer"
}
endpoint ini digunakan untuk membuat data toko apabila toko masih belum terdaftar.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/seller/merchants
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
name | string | true | Nama Toko |
string | true | Email Toko | |
address | string | false | Alamat Toko |
province_id | integer | true | Id Provinsi |
city_id | integer | true | Id Kota/Kabupaten |
district_id | integer | true | Id Kecamatan |
village_id | integer | true | Id Desa |
postal_code | integer | true | Kode Pos |
image | string | false | Gambar Profil |
longitude | string | true[ -180 .. 180 ] | Longitude Alamat |
latitude | string | true[ -90 .. 90 ] | Latitude Alamat |
slogan | string | false | Slogan |
note | string | false | Catatan |
couriers | string | true | Kurir |
is_umkm | boolean | true | Barang UMKM? |
business_category | string | true | Kategori Usaha |
phone | string | false | No. Telephone Toko |
type | string | true | Tipe Toko |
seller_type | string | true | Tipe Penjual |
documents | json | true | KTP, NPWP, (SIUP & PKP Opsional) |
bank_account | json | true | No. Rek, Nama, Bank, Cabang |
sosmed | json | false | Sosial Media |
signature | json | true | Nama, Posisi (Penanggung Jawab) |
banners | json | false | Gambar Banner |
branch_id | integer | false | Kode Cabang |
Put Ubah Data Toko
jenis: seller
curl -X PUT "https://staging.siapi.tokoladang.co.id/seller/merchants/{id}"
-H 'Content-Type: application/json'
'Authorization': Bearer {{TOKEN}}
-d '{
"name": "string",
"slug": "string",
"address": "string",
"province_id": "integer",
"city_id": "integer",
"district_id": "integer",
"village_id": "integer",
"postal_code": "integer",
"longitude": "string",
"latitude": "string",
"slogan": "string",
"note": "string",
"image": "string",
"banners": "json",
"couriers": "string",
"is_umkm": "boolean",
"business_category": "string",
"phone": "string",
"type": "string",
"seller_type": "string",
"email": "string",
"admin_note": "string",
"branch_id": "integer",
"documents" : {
"npwp" : {"no" : "integer", "image" : "string"},
"siup" : {"no" : "integer", "image" : "string"},
"ktp" : {"no" : "integer", "image" : "string"},
"pkp" : {"no" : "integer", "image" : "string"}
},
"bank_account" : {
"name" : "string",
"no" : "string",
"bank" : "string",
"branch" : "string"
},
"sosmed" : {"fb" : "contoh", "ig" : "contoh"},
"signature" : {
"name" : "string",
"position" : "string"
}
}'
Contoh Json Response :
{
"id": "integer",
"name": "string",
"address": "string",
"branch": {"id": "integer", "code": "string", "name": "string"},
"province_id": "integer",
"city_id": "integer",
"district_id": "integer",
"village_id": "integer",
"postal_code": "string",
"longitude": "string",
"latitude": "string",
"slogan": "string",
"note": "string",
"type": "string",
"slug": "string",
"image": "string",
"banners": "json",
"deleted_at": "datetime",
"verified_at": "datetime",
"rating": "float",
"review_total": "integer",
"review_count": "integer",
"couriers": "string",
"is_umkm": "boolean",
"qualified": "boolean",
"business_category": "string",
"email": "string",
"phone": "string",
"main_category": "integer",
"seller_type": "string",
"documents": "json",
"bank_account": "json",
"sosmed": "json",
"signature": "json",
"email_verified_at": "datetime",
"created_by": "string",
"updated_by": "string",
"power": "integer",
"admin_note": "string",
"status": "string",
"verified_by": "integer"
}
endpoint ini digunakan untuk merubah data toko.
HTTP Request
PUT https://staging.siapi.tokoladang.co.id/seller/merchants/{id}
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
name | string | true | Nama Toko |
string | true | Email Toko | |
address | string | false | Alamat Toko |
province_id | integer | true | Id Provinsi |
city_id | integer | true | Id Kota/Kabupaten |
district_id | integer | true | Id Kecamatan |
village_id | integer | true | Id Desa |
postal_code | integer | true | Kode Pos |
image | string | false | Gambar Profil |
longitude | string | true[ -180 .. 180 ] | Longitude Alamat |
latitude | string | true[ -90 .. 90 ] | Latitude Alamat |
slogan | string | false | Slogan |
note | string | false | Catatan |
couriers | string | true | Kurir |
is_umkm | boolean | true | Barang UMKM? |
business_category | string | true | Kategori Usaha |
phone | string | false | No. Telephone Toko |
type | string | true | Tipe Toko |
seller_type | string | true | Tipe Penjual |
documents | json | true | KTP, NPWP, (SIUP & PKP Opsional) |
bank_account | json | true | No. Rek, Nama, Bank, Cabang |
sosmed | json | false | Sosial Media |
signature | json | true | Nama, Posisi (Penanggung Jawab) |
banners | json | false | Gambar Banner |
branch_id | integer | false | Kode Cabang |
Post Ubah Status Toko
jenis: seller
curl -X POST "https://staging.siapi.tokoladang.co.id/seller/merchants/status"
-H 'Content-Type: application/json',
'Authorization': Bearer {{TOKEN}}
-d '{
"status": "string"
}'
Contoh Json Response :
{
"code": "Kode Respon",
"message": "Pesan Respon"
}
endpoint ini digunakan untuk Mengubah status toko.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/seller/merchants/status
Query Parameter
Parameter | Default | required | Deskripsi |
---|---|---|---|
status | string | true | status toko |
Post Tambah Pengguna Baru
jenis: seller
curl -X POST "https://staging.siapi.tokoladang.co.id/seller/merchants/user"
-H 'Content-Type: application/json',
'Authorization': Bearer {{TOKEN}}
-d '{
"name": "string",
"email": "string",
"roles": "array"
}'
Contoh Json Response :
{
"code": "Kode Respon",
"message": "Pesan Respon"
}
endpoint ini digunakan untuk menambahkan Pengguna Baru.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/seller/merchants/user
Query Parameter
Parameter | Default | required | Deskripsi |
---|---|---|---|
name | string | true | Nama Pengguna |
string | true | Email Pengguna | |
roles | array | true | Peran |
[Seller] Etalase
Etalase digunakan untuk mengelompokan Produk.
DATA Etalase Toko
Get Semua data Etalase
jenis: seller
curl -X GET "https://staging.siapi.tokoladang.co.id/seller/merchant-storages"
-H 'Content-Type: application/json',
'Authorization': Bearer {{TOKEN}}
Contoh Json Response :
[
{
"created_at": "datetime",
"created_by": "string",
"id": "integer",
"merchant_id": "integer",
"name": "string",
"updated_at": "datetime",
"updated_by": "string"
}
]
endpoint ini digunakan untuk mendapatkan data etalase.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/seller/merchant-storages
Post Tambah Etalase Baru
jenis: seller
curl -X POST "https://staging.siapi.tokoladang.co.id/seller/merchant-storages"
-H 'Content-Type: application/json'
'Authorization': Bearer {{TOKEN}}
-d '{
"name": "string"
}'
endpoint ini digunakan untuk membuat data etalase baru.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/seller/merchant-storages
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
name | string | true | Nama Etalase |
Put Ubah Data Etalase
jenis: seller
curl -X PUT "https://staging.siapi.tokoladang.co.id/merchant-storages/{id}"
-H 'Content-Type: application/json'
'Authorization': Bearer {{TOKEN}}
-d '{
"name": "string"
}'
endpoint ini digunakan untuk mengubah data nama etalase toko.
HTTP Request
PUT https://staging.siapi.tokoladang.co.id/seller/merchant-storages/{id}
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
name | string | true | Nama Etalase |
Delete Hapus data Etalase
jenis: seller
curl -X DELETE "https://staging.siapi.tokoladang.co.id/merchant-storages/{id}"
-H 'Content-Type: application/json'
'Authorization': Bearer {{TOKEN}}
endpoint ini digunakan untuk menghapus data etalase toko.
HTTP Request
DELETE https://staging.siapi.tokoladang.co.id/seller/merchant-storages/{id}
[Seller] Negotations
Negotations digunakan untuk mengambil data negosiasi antara penjual dan pembeli, membalas negoisasi dari pembeli, menyetujui negoisasi dari pembli dan menolak negoisasi dari pembeli.
DATA Negotations
Get Semua Data Negoisasi
jenis: seller
curl -X GET "https://staging.siapi.tokoladang.co.id/seller/negotiations?q=&status=&page="
-H 'Content-Type: application/json',
'Authorization': Bearer {{TOKEN}}
-d '{}'
Contoh Json Response :
[
{
"created_at": "datetime",
"created_by": "string",
"id": "integer",
"initial_price": "integer",
"merchant_id": "integer",
"nego_price": "integer",
"nego_qty": "integer",
"product": {"id": "integer", "name": "string", "price": "integer", "image": "string"},
"product_id": "integer",
"school": {"id": "string", "name": "string"},
"school_id": "string",
"status_nego": "active",
"status_response": "waiting_seller",
"updated_at": "datetime",
"updated_by": "string",
"negotiation_history": [
{
"created_at": "datetime",
"customer_message": "string",
"customer_price": "integer",
"customer_qty": "integer",
"id": "integer",
"merchant_message": "string",
"merchant_price": "integer",
"merchant_qty": "integer",
"negotiation_id": "integer",
"payment_due": "integer",
"status": "string",
"updated_at": "datetime"
}
]
}
]
endpoint ini digunakan untuk mendapatkan data negosiasi dari pembeli.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/seller/negotiations?q=&status=&page=
Get Data Detail Negoisasi
jenis: seller
curl -X GET "https://staging.siapi.tokoladang.co.id/seller/negotiations/{id}"
-H 'Content-Type: application/json',
'Authorization': Bearer {{TOKEN}}
-d '{}'
Contoh Json Response :
{
"created_at": "datetime",
"created_by": "string",
"id": "integer",
"initial_price": "integer",
"merchant_id": "integer",
"nego_price": "integer",
"nego_qty": "integer",
"product": {"id": "integer", "name": "string", "price": "integer", "image": "string"},
"product_id": "integer",
"school": {"id": "string", "name": "string"},
"school_id": "string",
"status_nego": "active",
"status_response": "waiting_seller",
"updated_at": "datetime",
"updated_by": "string",
"negotiation_history": [
{
"created_at": "datetime",
"customer_message": "string",
"customer_price": "integer",
"customer_qty": "integer",
"id": "integer",
"merchant_message": "string",
"merchant_price": "integer",
"merchant_qty": "integer",
"negotiation_id": "integer",
"payment_due": "integer",
"status": "string",
"updated_at": "datetime"
}
]
}
endpoint ini digunakan untuk mendapatkan data detail negosiasi.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/seller/negotiations/{id}
Post Membalas Negoisasi
jenis: seller
curl -X POST "https://staging.siapi.tokoladang.co.id/seller/negotiations/reply"
-H 'Content-Type: application/json'
'Authorization': Bearer {{TOKEN}}
-d '{
"negotiation_id" : "integer",
"nego_price" : "integer",
"message" : "string"
}'
Contoh Json Response :
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk membalas negosiasi dari pembeli.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/seller/negotiations/reply
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
negotiation_id | integer | true | Id Negosiasi |
nego_price | integer | true | Harga Nego dari penjual |
message | string | false | Pesan dari Penjual |
Post Menyetujui Negoisasi
jenis: seller
curl -X POST "https://staging.siapi.tokoladang.co.id/seller/negotiations/accept"
-H 'Content-Type: application/json'
'Authorization': Bearer {{TOKEN}}
-d '{
"negotiation_id" : "integer",
}'
Contoh Json Response :
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk menyetujui negosiasi dari pembeli.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/seller/negotiations/accept
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
negotiation_id | integer | true | Id Negosiasi |
Post Menolak Negoisasi
jenis: seller
curl -X POST "https://staging.siapi.tokoladang.co.id/seller/negotiations/reject"
-H 'Content-Type: application/json'
'Authorization': Bearer {{TOKEN}}
-d '{
"negotiation_id" : "integer",
}'
Contoh Json Response :
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk menolak negosiasi dari pembeli.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/seller/negotiations/reject
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
negotiation_id | integer | true | Id Negosiasi |
[Seller] Produk
Product digunakan untuk mengambil data Produk toko, membuat data produk toko, mengupdate data produk toko, dan merubah status produk toko.
DATA Produk
Get Semua Produk Toko
jenis: seller
curl -X GET "https://staging.siapi.tokoladang.co.id/seller/products?q=&status=&page="
-H 'Content-Type: application/json',
'Authorization': Bearer {{TOKEN}}
Contoh Json Response :
[
{
"id": "integer",
"availability_status": "string",
"kind": "string",
"name": "string",
"price": "integer",
"qty_available": "integer",
"status": "string",
"taxed": "boolean"
}
]
endpoint ini digunakan untuk mendapatkan data semua Produk.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/seller/products?q=&status=&page=
Query Parameter
Parameter | Default | required | Deskripsi |
---|---|---|---|
q | string | false | Kata kunci pencarian |
status | string | false | Kata kunci status |
page | string | false | Halaman |
Get Produk Detail
jenis: seller
curl -X GET "https://staging.siapi.tokoladang.co.id/seller/products/{id}"
-H 'Content-Type: application/json',
'Authorization': Bearer {{TOKEN}}
Contoh Json Response :
{
"admin_note": "string",
"availability_status": "string",
"brand": "string",
"catalogue_id": "string",
"categories": [{"id": "integer", "name": "string"}],
"classification_catalogue": "string",
"created_at": "datetime",
"created_by": "string",
"description": "string",
"dimension": {"l": "integer", "w": "integer", "h": "integer"},
"discount": "integer",
"guaranty": "string",
"id": "integer",
"image": "string",
"images": "array",
"is_domestic": "boolean",
"is_kemdikbud": "boolean",
"is_secondhand": "boolean",
"is_umkm": "boolean",
"isbn": "string",
"kind": "string",
"merchant_id": "integer",
"merchant_storage_id": "integer",
"min_order": "integer",
"name": "string",
"power": "integer",
"price": "integer",
"price_zone_1": "integer",
"price_zone_2": "integer",
"price_zone_3": "integer",
"price_zone_4": "integer",
"price_zone_5": "integer",
"product_category_id": "integer",
"product_upload_id": "integer",
"qty_available": "integer",
"qty_sell": "integer",
"qualified": "boolean",
"rating": "string",
"review_count": "integer",
"review_total": "integer",
"sku": "string",
"slug": "string",
"status": "string",
"taxed": "boolean",
"updated_at": "datetime",
"updated_by": "string",
"verified_at": "datetime",
"verified_by": "string",
"warranty": "string",
"weight": "integer",
"wholesales": [{"quantity": "integer", "price": "integer"}],
"with_shipping_cost": "boolean"
}
endpoint ini digunakan untuk mendapatkan data detail Produk.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/seller/products/{id}
Get Jumlah Produk
jenis: seller
curl -X GET "https://staging.siapi.tokoladang.co.id/seller/products/item/total"
-H 'Content-Type: application/json',
'Authorization': Bearer {{TOKEN}}
Contoh Json Response :
{
"total": "integer",
"available": "1"
}
endpoint ini digunakan untuk mendapatkan data jumlah Produk.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/seller/products/item/total
Get cari produk buku
jenis: seller
curl -X GET "https://staging.siapi.tokoladang.co.id/seller/products/book/search?q=&type=&page="
-H 'Content-Type: application/json',
'Authorization': Bearer {{TOKEN}}
Contoh Json Response :
[
{
"author": "string",
"category_id": "integer",
"category_is_leaf": "boolean",
"category_path": "string",
"class": "string",
"classification": "string",
"description": "string",
"edition": "integer",
"id": "string",
"isbn": "string",
"physical_description": {},
"prices": [],
"publication_year": "integer",
"publisher": "string",
"school_level": "string",
"subject": "string",
"synopsis": "string",
"title": "string"
}
]
endpoint ini digunakan untuk mendapatkan data Produk buku.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/seller/products/book/search?q=&type=&page=
Query Parameter
Parameter | Default | required | Deskripsi |
---|---|---|---|
q | string | false | Kata kunci pencarian |
status | string | false | Kata kunci status |
page | string | false | Halaman |
Get detail produk buku
jenis: seller
curl -X GET "https://staging.siapi.tokoladang.co.id/seller/products/book/{id}"
-H 'Content-Type: application/json',
'Authorization': Bearer {{TOKEN}}
Contoh Json Response :
{
"author": "string",
"category_id": "integer",
"category_is_leaf": "boolean",
"category_path": "string",
"class": "string",
"classification": "string",
"description": "string",
"edition": "integer",
"id": "string",
"isbn": "string",
"physical_description": {},
"prices": [],
"publication_year": "integer",
"publisher": "string",
"school_level": "string",
"subject": "string",
"synopsis": "string",
"title": "string"
}
endpoint ini digunakan untuk mendapatkan data detail Produk buku.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/seller/products/book/{id}
Get Ulasan Produk
jenis: seller
curl -X GET "https://staging.siapi.tokoladang.co.id/seller/products/{id}/reviews"
-H 'Content-Type: application/json',
'Authorization': Bearer {{TOKEN}}
Contoh Json Response :
[
{
"created_at": "datetime",
"customer_order_item_id": "integer",
"id": "integer",
"message": "string",
"product_id": "string",
"rating": "integer",
"school": {"id": "string", "name": "string"},
"school_id": "string",
"updated_at": "datetime"
}
]
endpoint ini digunakan untuk mendapatkan data ulasan Produk.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/seller/products/book/{id}/reviews
Get diskusi produk
jenis: seller
curl -X GET "https://staging.siapi.tokoladang.co.id/seller/products/{id}/discussion?page="
-H 'Content-Type: application/json',
'Authorization': Bearer {{TOKEN}}
Contoh Json Response :
[
{
"created_at": "datetime",
"created_by": "string",
"customer_id": "integer",
"id": "integer",
"merchant_discuss_replies": [
{"id": "integer", "merchant_discuss_id": "integer", "customer_id": "integer", "school_id": "integer", "message": "string"}
],
"merchant_id": "integer",
"message": "string",
"product_id": "integer",
"school": {"id": "string", "name": "string"},
"school_id": "string",
"updated_at": "datetime",
"updated_by": "string"
}
]
endpoint ini digunakan untuk mendapatkan data diskusi Produk.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/seller/products/book/{id}/discussion?page=
Query Parameter
Parameter | Default | required | Deskripsi |
---|---|---|---|
page | string | false | Halaman |
Post balas diskusi produk
jenis: seller
curl -X POST "https://staging.siapi.tokoladang.co.id/seller/products/{discussId}/discussion-reply"
-H 'Content-Type: application/json',
'Authorization': Bearer {{TOKEN}}
Contoh Json Response :
{
"created_at": "datetime",
"id": "integer",
"merchant_discuss_id": "integer",
"message": "string",
"updated_at": "datetime"
}
endpoint ini digunakan untuk membalas diskusi Produk.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/seller/products/book/{id}/discussion-reply
Query Parameter
Parameter | Default | required | Deskripsi |
---|---|---|---|
message | string | true | Pesan |
Post Tambah Produk baru
jenis: seller
curl -X POST "https://staging.siapi.tokoladang.co.id/seller/products"
-H 'Content-Type: application/json'
'Authorization': Bearer {{TOKEN}}
-d '{
"kind": "string",
"name": "string",
"description": "string",
"product_category_id": "integer",
"image": "string",
"images": [],
"price": "integer",
"price_zone_1": "integer",
"price_zone_2": "integer",
"price_zone_3": "integer",
"price_zone_4": "integer",
"price_zone_5": "integer",
"wholesales": "[{"quantity": "integer", "price": "integer"}]",
"discount": "integer",
"taxed": "boolean",
"qty_available": "integer",
"weight": "integer",
"is_secondhand": "boolean",
"isbn": "string",
"with_shipping_cost": "boolean",
"merchant_storage_id": "integer",
"is_umkm": "boolean",
"is_domestic": "boolean",
"availability_status": "string",
"dimension": "{"l": "integer", "w": "integer", "h": "integer"}",
"min_order": "integer",
"brand": "string",
"warranty": "string",
"guaranty": "string",
"is_kemdikbud": "boolean",
"catalogue_id": "string",
"classification_catalogue": "string",
}'
Contoh Json Response :
{
"admin_note": "string",
"availability_status": "string",
"brand": "string",
"catalogue_id": "string",
"categories": [{"id": "integer", "name": "string"}],
"classification_catalogue": "string",
"created_at": "datetime",
"created_by": "string",
"description": "string",
"dimension": {"l": "integer", "w": "integer", "h": "integer"},
"discount": "integer",
"guaranty": "string",
"id": "integer",
"image": "string",
"images": "array",
"is_domestic": "boolean",
"is_kemdikbud": "boolean",
"is_secondhand": "boolean",
"is_umkm": "boolean",
"isbn": "string",
"kind": "string",
"merchant_id": "integer",
"merchant_storage_id": "integer",
"min_order": "integer",
"name": "string",
"power": "integer",
"price": "integer",
"price_zone_1": "integer",
"price_zone_2": "integer",
"price_zone_3": "integer",
"price_zone_4": "integer",
"price_zone_5": "integer",
"product_category_id": "integer",
"product_upload_id": "integer",
"qty_available": "integer",
"qty_sell": "integer",
"qualified": "boolean",
"rating": "string",
"review_count": "integer",
"review_total": "integer",
"sku": "string",
"slug": "string",
"status": "string",
"taxed": "boolean",
"updated_at": "datetime",
"updated_by": "string",
"verified_at": "datetime",
"verified_by": "string",
"warranty": "string",
"weight": "integer",
"wholesales": [{"quantity": "integer", "price": "integer"}],
"with_shipping_cost": "boolean"
}
endpoint ini digunakan untuk membuat data produk baru.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/seller/products
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
kind | string | true | Jenis Produk (Non Buku/Buku/Jasa) |
name | string | true | Nama Produk |
description | string | true | Deskripsi Produk |
product_category_id | integer | true | Kategori Produk |
image | string | false | Foto Produk |
images | array | false | Foto Produk |
price | integer | true | Harga Utama |
price_zone_1 | integer | true | Harga menurut zona 1 |
price_zone_2 | integer | true | Harga menurut zona 2 |
price_zone_3 | integer | true | Harga menurut zona 3 |
price_zone_4 | integer | true | Harga menurut zona 4 |
price_zone_5 | integer | true | Harga menurut zona 5 |
wholesales | array | true | Harga grosir |
discount | integer | true | Diskon |
taxed | boolean | true | Apakah produk kena pajak? |
qty_available | integer | true | Jumlah Produk |
weight | integer | true | Berat produk |
is_secondhand | boolean | true | Apakah produk tangan kedua? |
isbn | string | true if kind=Buku | Nomor isbn buku |
with_shipping_cost | boolean | true | Apakah dengan biaya pengiriman? |
merchant_storage_id | integer | false | IEtalase |
is_umkm | boolean | true | Apakah termasuk usaha umkm? |
is_domestic | boolean | true | Apakah termasuk produk domestik? |
availability_status | string | true | Tersedia / Preorder |
dimension | json | true | Dimensi Produk |
min_order | integer | true | Minimal Pembelian |
brand | string | false | Merk |
warranty | string | false | garansi produk |
guaranty | string | false | garansi pengiriman |
is_kemdikbud | boolean | true | Apakah produk Kemdikbud? |
catalogue_id | string | true if kind=buku | id katalog buku |
classification_catalogue | string | false | klasifikasi id katalog buku |
Put Ubah Data Produk
jenis: seller
curl -X PUT "https://staging.siapi.tokoladang.co.id/seller/products/{id}"
-H 'Content-Type: application/json'
'Authorization': Bearer {{TOKEN}}
-d '{
"kind": "string",
"name": "string",
"description": "string",
"product_category_id": "integer",
"image": "string",
"images": [],
"price": "integer",
"price_zone_1": "integer",
"price_zone_2": "integer",
"price_zone_3": "integer",
"price_zone_4": "integer",
"price_zone_5": "integer",
"wholesales": "[{"quantity": "integer", "price": "integer"}]",
"discount": "integer",
"taxed": "boolean",
"qty_available": "integer",
"weight": "integer",
"is_secondhand": "boolean",
"isbn": "string",
"with_shipping_cost": "boolean",
"merchant_storage_id": "integer",
"is_umkm": "boolean",
"is_domestic": "boolean",
"availability_status": "string",
"dimension": "{"l": "integer", "w": "integer", "h": "integer"}",
"min_order": "integer",
"brand": "string",
"warranty": "string",
"guaranty": "string",
"is_kemdikbud": "boolean",
"catalogue_id": "string",
"classification_catalogue": "string",
}'
Contoh Json Response :
{
"admin_note": "string",
"availability_status": "string",
"brand": "string",
"catalogue_id": "string",
"categories": [{"id": "integer", "name": "string"}],
"classification_catalogue": "string",
"created_at": "datetime",
"created_by": "string",
"description": "string",
"dimension": {"l": "integer", "w": "integer", "h": "integer"},
"discount": "integer",
"guaranty": "string",
"id": "integer",
"image": "string",
"images": "array",
"is_domestic": "boolean",
"is_kemdikbud": "boolean",
"is_secondhand": "boolean",
"is_umkm": "boolean",
"isbn": "string",
"kind": "string",
"merchant_id": "integer",
"merchant_storage_id": "integer",
"min_order": "integer",
"name": "string",
"power": "integer",
"price": "integer",
"price_zone_1": "integer",
"price_zone_2": "integer",
"price_zone_3": "integer",
"price_zone_4": "integer",
"price_zone_5": "integer",
"product_category_id": "integer",
"product_upload_id": "integer",
"qty_available": "integer",
"qty_sell": "integer",
"qualified": "boolean",
"rating": "string",
"review_count": "integer",
"review_total": "integer",
"sku": "string",
"slug": "string",
"status": "string",
"taxed": "boolean",
"updated_at": "datetime",
"updated_by": "string",
"verified_at": "datetime",
"verified_by": "string",
"warranty": "string",
"weight": "integer",
"wholesales": [{"quantity": "integer", "price": "integer"}],
"with_shipping_cost": "boolean"
}
endpoint ini digunakan untuk merubah data produk.
HTTP Request
PUT https://staging.siapi.tokoladang.co.id/seller/products/{id}
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
kind | string | true | Jenis Produk (Non Buku/Buku/Jasa) |
name | string | true | Nama Produk |
description | string | true | Deskripsi Produk |
product_category_id | integer | true | Kategori Produk |
image | string | false | Foto Produk |
images | array | false | Foto Produk |
price | integer | true | Harga Utama |
price_zone_1 | integer | true | Harga menurut zona 1 |
price_zone_2 | integer | true | Harga menurut zona 2 |
price_zone_3 | integer | true | Harga menurut zona 3 |
price_zone_4 | integer | true | Harga menurut zona 4 |
price_zone_5 | integer | true | Harga menurut zona 5 |
wholesales | array | true | Harga grosir |
discount | integer | true | Diskon |
taxed | boolean | true | Apakah produk kena pajak? |
qty_available | integer | true | Jumlah Produk |
weight | integer | true | Berat produk |
is_secondhand | boolean | true | Apakah produk tangan kedua? |
isbn | string | true if kind=Buku | Nomor isbn buku |
with_shipping_cost | boolean | true | Apakah dengan biaya pengiriman? |
merchant_storage_id | integer | false | IEtalase |
is_umkm | boolean | true | Apakah termasuk usaha umkm? |
is_domestic | boolean | true | Apakah termasuk produk domestik? |
availability_status | string | true | Tersedia / Preorder |
dimension | json | true | Dimensi Produk |
min_order | integer | true | Minimal Pembelian |
brand | string | false | Merk |
warranty | string | false | garansi produk |
guaranty | string | false | garansi pengiriman |
is_kemdikbud | boolean | true | Apakah produk Kemdikbud? |
catalogue_id | string | true if kind=buku | id katalog buku |
classification_catalogue | string | false | klasifikasi id katalog buku |
Put Ubah Status Produk
jenis: seller
curl -X PUT "https://staging.siapi.tokoladang.co.id/seller/products/{id}/status"
-H 'Content-Type: application/json'
'Authorization': Bearer {{TOKEN}}
-d '{
"status" : "string",
}'
Contoh Json Response :
{
"admin_note": "string",
"availability_status": "string",
"brand": "string",
"catalogue_id": "string",
"categories": [{"id": "integer", "name": "string"}],
"classification_catalogue": "string",
"created_at": "datetime",
"created_by": "string",
"description": "string",
"dimension": {"l": "integer", "w": "integer", "h": "integer"},
"discount": "integer",
"guaranty": "string",
"id": "integer",
"image": "string",
"images": "array",
"is_domestic": "boolean",
"is_kemdikbud": "boolean",
"is_secondhand": "boolean",
"is_umkm": "boolean",
"isbn": "string",
"kind": "string",
"merchant_id": "integer",
"merchant_storage_id": "integer",
"min_order": "integer",
"name": "string",
"power": "integer",
"price": "integer",
"price_zone_1": "integer",
"price_zone_2": "integer",
"price_zone_3": "integer",
"price_zone_4": "integer",
"price_zone_5": "integer",
"product_category_id": "integer",
"product_upload_id": "integer",
"qty_available": "integer",
"qty_sell": "integer",
"qualified": "boolean",
"rating": "string",
"review_count": "integer",
"review_total": "integer",
"sku": "string",
"slug": "string",
"status": "string",
"taxed": "boolean",
"updated_at": "datetime",
"updated_by": "string",
"verified_at": "datetime",
"verified_by": "string",
"warranty": "string",
"weight": "integer",
"wholesales": [{"quantity": "integer", "price": "integer"}],
"with_shipping_cost": "boolean"
}
endpoint ini digunakan untuk mengubah status produk toko.
HTTP Request
PUT https://staging.siapi.tokoladang.co.id/seller/products/{id}/status
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
status | string | true | status produk |
Expor Data Produk
jenis: seller
curl -X GET "https://staging.siapi.tokoladang.co.id/seller/products/document/export?page="
-H 'Content-Type: application/json',
'Authorization': Bearer {{TOKEN}}
-d '{
"page" => "integer"
}'
Contoh Json Response :
"File Excel"
endpoint ini digunakan untuk mendapatkan data jumlah Produk.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/seller/products/document/export?page=
Query Parameter
Parameter | Default | required | Deskripsi |
---|---|---|---|
page | integer | true | setiap halaman max. 500 data |
Impor Data Produk
jenis: seller
curl -X GET "https://staging.siapi.tokoladang.co.id/seller/products/document/import"
-H 'Content-Type: application/json',
'Authorization': Bearer {{TOKEN}}
-d '{
"file" => "file",
"type" => "string"
}'
Contoh Json Response :
{
"id": "integer",
"merchant_id": "integer",
"type": "string",
"done": "boolean",
"note": "string",
"uploaded": "string",
"downloadable": "string",
"created_at": "datetime",
"updated_at": "datetime"
}
endpoint ini digunakan untuk mendapatkan data jumlah Produk.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/seller/products/document/import
Query Parameter
Parameter | Default | required | Deskripsi |
---|---|---|---|
file | file | true | file excel |
type | string | true | tipe |
[Seller] Transaksi
Transaksi digunakan untuk mengambil data riwayat Pembelian toko, merubah status dari Proses pesanan, menolah pesanan dan mengirim pesanan.
DATA Transaksi
Get Semua Data Transaksi
jenis: seller
curl -X GET "https://staging.siapi.tokoladang.co.id/seller/orders?q=&status=&page="
-H 'Content-Type: application/json',
'Authorization': Bearer {{TOKEN}}
-d '{}'
Contoh Json Response :
{
"current_page": "integer",
"data": [
{
"bank_destination_id": "integer",
"bank_mutation_in": "integer",
"bank_mutation_in_id": "integer",
"bank_mutation_out_id": "integer",
"bill_status": "string",
"compare_id": "integer",
"courier_detail": "json",
"courier_receipt": "string",
"courier_service_type": "string",
"created_at": "datetime",
"details": {
"documentDate": "date",
"lateCharge": "integer",
"lateChargeNote": "string",
"signId": "string",
"signName": "string",
"signPhone": "string",
"signPosition": "string",
"taxPrice": "integer",
"totalPrice": "integer",
"totalQty": "integer"
},
"funding_source": "string",
"funding_source_ws": "json",
"handling_fee": "integer",
"handling_fee_details": [{"name": "string", "amount": "integer"}, {"name": "string", "amount": "integer"}],
"id": "integer",
"insurance_cost": "integer",
"invoice_file": "string",
"merchant_id": "integer",
"note": "string",
"order_date": "datetime",
"order_no": "string",
"payment_account_no": "string",
"payment_bank_origin": "string",
"payment_date": "datetime",
"payment_file": "string",
"payment_forwarded_date": "datetime",
"payment_method_id": "integer",
"payment_transferred": "integer",
"payments": {
"pm" : {
"bankAccount": "integer",
"bankDestination": "integer",
"bankOrigin": "string",
"date": "datetime",
"paymentFile": "string",
"transferred": "integer"
}
},
"purchase_status": "string",
"reason_cancellation": "string",
"school": {"id": "string", "name": "string", "image": null, "details": "json",…},
"school_id": "string",
"shipping_cost": "integer",
"status_updated_at": "datetime",
"tax_payer": "string",
"tax_price": "integer",
"time_limit": "integer",
"total_price": "integer",
"total_qty": "integer",
"total_weight": "integer",
"updated_at": "datetime"
}
],
"first_page_url": "string",
"from": "integer",
"last_page": "integer",
"last_page_url": "string",
"links": [],
"next_page_url": "string",
"path": "string",
"per_page": "integer",
"prev_page_url": "string",
"to": "integer",
"total": "integer"
}
endpoint ini digunakan untuk mendapatkan data Transaksi.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/seller/orders?q=&status=&page=
Query Parameter
Parameter | Default | required | Deskripsi |
---|---|---|---|
q | string | false | Kata kunci pencarian |
status | string | false | Kata kunci status |
page | string | false | Halaman |
Get Data Detail Transaksi
jenis: seller
curl -X GET "https://staging.siapi.tokoladang.co.id/seller/orders/{id}"
-H 'Content-Type: application/json',
'Authorization': Bearer {{TOKEN}}
-d '{}'
Contoh Json Response :
{
"bank_destination_id": "integer",
"bank_mutation_in": "integer",
"bank_mutation_in_id": "integer",
"bank_mutation_out_id": "integer",
"bill_status": "string",
"compare_id": "integer",
"courier_detail": "json",
"courier_receipt": "string",
"courier_service_type": "string",
"created_at": "datetime",
"details": {
"documentDate": "date",
"lateCharge": "integer",
"lateChargeNote": "string",
"signId": "string",
"signName": "string",
"signPhone": "string",
"signPosition": "string",
"taxPrice": "integer",
"totalPrice": "integer",
"totalQty": "integer"
},
"funding_source": "string",
"funding_source_ws": "json",
"handling_fee": "integer",
"handling_fee_details": [{"name": "string", "amount": "integer"}, {"name": "string", "amount": "integer"}],
"id": "integer",
"insurance_cost": "integer",
"invoice_file": "string",
"merchant_id": "integer",
"note": "string",
"order_date": "datetime",
"order_no": "string",
"payment_account_no": "string",
"payment_bank_origin": "string",
"payment_date": "datetime",
"payment_file": "string",
"payment_forwarded_date": "datetime",
"payment_method_id": "integer",
"payment_transferred": "integer",
"payments": {
"pm" : {
"bankAccount": "integer",
"bankDestination": "integer",
"bankOrigin": "string",
"date": "datetime",
"paymentFile": "string",
"transferred": "integer"
}
},
"purchase_status": "string",
"reason_cancellation": "string",
"school": {"id": "string", "name": "string", "image": null, "details": "json",…},
"school_id": "string",
"shipping_cost": "integer",
"status_updated_at": "datetime",
"tax_payer": "string",
"tax_price": "integer",
"time_limit": "integer",
"total_price": "integer",
"total_qty": "integer",
"total_weight": "integer",
"updated_at": "datetime",
"customer_order_items": [
{
"bast": {"quantity": "integer", "totalPrice": "integer", "taxPrice": "integer"},
"quantity": "integer",
"taxPrice": "integer",
"totalPrice": "integer",
"created_at": "datetime",
"created_by": "string",
"customer_order_id": "integer",
"id": "integer",
"item_no": "integer",
"negotiation": {"id": "integer", "status_nego": "string"},
"negotiation_id": "integer",
"price": "integer",
"product_id": "integer",
"product_image": "string",
"product_name": "string",
"quantity": "integer",
"shipping": "json",
"tax_price": "integer",
"total_price": "integer",
"updated_at": "datetime",
"updated_by": "string"
}
]
}
endpoint ini digunakan untuk mendapatkan data detail Transaksi.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/seller/orders/{id}
Query Parameter
Parameter | Default | required | Deskripsi |
---|---|---|---|
q | string | false | Kata kunci pencarian |
status | string | false | Kata kunci status |
page | string | false | Halaman |
Post Pembatalan Transaksi
jenis: seller
curl -X POST "https://staging.siapi.tokoladang.co.id/seller/orders/{id}/process-canceling"
-H 'Content-Type: application/json'
'Authorization': Bearer {{TOKEN}}
-d '{
"status" : "string"
}'
Contoh Json Response :
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk memproses pembatalan Transaksi dari pembeli.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/seller/orders/{id}/process-canceling
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
status | string | true | terima / tolak |
Post Perubahan Transaksi
jenis: seller
curl -X POST "https://staging.siapi.tokoladang.co.id/seller/orders/{id}/process-updating"
-H 'Content-Type: application/json'
'Authorization': Bearer {{TOKEN}}
-d '{
"status" : "string"
}'
Contoh Json Response :
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk memproses perubahan Transaksi dari pembeli.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/seller/orders/{id}/process-updating
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
status | string | true | terima / tolak |
Post Proses Transaksi
jenis: seller
curl -X POST "https://staging.siapi.tokoladang.co.id/seller/orders/{id}/process"
-H 'Content-Type: application/json'
'Authorization': Bearer {{TOKEN}}
-d '{
"time_limit" : "integer",
"shipping_cost" : "integer",
"shipping_etd" : "integer"
}'
Contoh Json Response :
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk memproses Transaksi dari pembeli.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/seller/orders/{id}/process
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
time_limit | integer | true | Lama estimasi pengerjaan |
shipping_cost | integer | false | Ongkos pengerjaan |
shipping_etd | integer | false | Estimasi pengiriman |
Post Tolak Transaksi
jenis: seller
curl -X POST "https://staging.siapi.tokoladang.co.id/seller/orders/{id}/reject"
-H 'Content-Type: application/json'
'Authorization': Bearer {{TOKEN}}
Contoh Json Response :
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk menolak Transaksi dari pembeli.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/seller/orders/{id}/reject
Post Kirim Pemesanan
jenis: seller
curl -X POST "https://staging.siapi.tokoladang.co.id/seller/orders/{id}/send"
-H 'Content-Type: application/json'
'Authorization': Bearer {{TOKEN}}
-d '{
"courier_receipt": "string"
}'
Contoh Json Response :
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk menyetujui dan mengirim Transaksi pembeli.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/seller/orders/{id}/send
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
courier_receipt | string | false | No. Resi Transaksi |
Post Pickup Pemesanan
jenis: seller
curl -X POST "https://staging.siapi.tokoladang.co.id/seller/orders/{id}/pickup"
-H 'Content-Type: application/json'
'Authorization': Bearer {{TOKEN}}
-d '{}'
Contoh Json Response :
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk pickup Transaksi pembeli jika menggunakan kurir TRANSAKA.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/seller/orders/{id}/pickup
Get Log aktifitas Transaksi
jenis: seller
curl -X GET "https://staging.siapi.tokoladang.co.id/seller/orders/{id}/log"
-H 'Content-Type: application/json'
'Authorization': Bearer {{TOKEN}}
-d '{}'
Contoh Json Response :
{
"causer_id": "string",
"causer_type": "string",
"created_at": "datetime",
"description": "string",
"event": "string",
"id": "integer",
"log_name": "string",
"properties": {"user": {"id": "integer", "email": "string", "name": "string"},…},
"subject_id": "181",
"subject_type": "App\\Models\\CustomerOrder",
"updated_at": "datetime"
}
endpoint ini digunakan untuk mendapatkan aktifitas Transaksi.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/seller/orders/{id}/log
Get Ekspor Data Transaksi
jenis: seller
curl -X GET "https://staging.siapi.tokoladang.co.id/seller/orders/document/export"
-H 'Content-Type: application/json'
'Authorization': Bearer {{TOKEN}}
-d '{}'
Contoh Json Response :
"File Excel"
endpoint ini digunakan untuk ekspor data Transaksi.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/seller/orders/document/export
[Buyer] Keranjang
Get Keranjang Belanja
jenis: buyer
curl -X GET "https://staging.siapi.tokoladang.co.id/buyer/carts"
-H 'Authorization: Bearer {{TOKEN}}'
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
[
{
"cart_items": [
{
"cart_id": "integer",
"created_at": "datetime",
"id": "integer",
"price": "integer",
"product": {"id": "integer", "name": "Keyboard HP", "price": "integer",…},
"product_id": "integer",
"quantity": "integer",
"selected": "boolean",
"shipping": "json",
"tax_price": "integer",
"total_price": "integer",
"updated_at": "datetime"
}
],
"created_at": "datetime",
"funding_source": "json",
"id": "integer",
"merchant": {"id": "integer", "name": "string", "slug": "string", "status": "string", "image": "string"},
"merchant_id": "integer",
"school_id": "string",
"selected": "boolean",
"shipping": "json",
"shipping_address": {"from": "string", "thru": "string"},
"shipping_list": "json",
"updated_at": "datetime"
}
]
endpoint ini digunakan untuk mendapatkan data keranjang belanja.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/buyer/carts
Post Tambah Barang Ke Keranjang
jenis: buyer
curl -X POST "https://staging.siapi.tokoladang.co.id/buyer/carts/add"
-H 'Authorization: Bearer {{TOKEN}}'
-H 'Content-Type: application/json'
-d '{
"product_id": "integer",
"quantity": "integer"
}'
Contoh Json Response:
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk menambahkan barang ke keranjang belanja.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/buyer/carts/add
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
product_id | integer | true | Id Produk |
quantity | integer | true | Jumlah |
Post Ubah Data Keranjang
jenis: buyer
curl -X POST "https://staging.siapi.tokoladang.co.id/buyer/carts/update-cart"
-H 'Authorization: Bearer {{TOKEN}}'
-H 'Content-Type: application/json'
-d '{
"type": "string",
"cart_id": "integer",
"selected": "boolean"
}'
Contoh Json Response:
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk memperbarui data keranjang belanja.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/buyer/carts/update-cart
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
type | string | true | Tipe data yang di update select,remove |
cart_id | integer | true | Id keranjang |
selected | boolean | true if type = select |
true / false |
Post Ubah Barang Di Keranjang
jenis: buyer
curl -X POST "https://staging.siapi.tokoladang.co.id/buyer/carts/update-item"
-H 'Authorization: Bearer {{TOKEN}}'
-H 'Content-Type: application/json'
-d '{
"type": "string",
"cart_item_id": "integer",
"quantity": "integer",
"selected": "boolean",
}'
Contoh Json Response:
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk merubah item barang di keranjang belanja.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/buyer/carts/update-item
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
type | string | true | Tipe |
cart_item_id | integer | true | Id item di keranjang |
quantity | integer | true if type quantity |
jumlah |
selected | boolean | true if type select |
true / false |
Get Data Biaya Pengiriman
jenis: buyer
curl -X GET "https://staging.siapi.tokoladang.co.id/buyer/refresh-shipping"
-H 'Authorization: Bearer {{TOKEN}}'
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response:
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk mendapatkan data biaya pengiriman.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/buyer/refresh-shipping
Post Pilih Pengiriman
jenis: buyer
curl -X POST "https://staging.siapi.tokoladang.co.id/buyer/carts/pick-shipping"
-H 'Authorization: Bearer {{TOKEN}}'
-H 'Content-Type: application/json'
-d '{
"cart_id": "integer",
"service": "string"
}'
Contoh Json Response:
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk memilih pengiriman.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/buyer/carts/pick-shipping
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
cart_id | integer | true | Id keranjang |
service | string | true | Jasa pengiriman |
Post Perbarui Pengiriman
jenis: buyer
curl -X POST "https://staging.siapi.tokoladang.co.id/buyer/carts/update-funding"
-H 'Authorization: Bearer {{TOKEN}}'
-H 'Content-Type: application/json'
-d '{
"cart_id": "integer",
"funding_source": {
"code": "string",
"name": "string",
"year": "integer"
}
}'
Contoh Json Response:
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk memilih pengiriman.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/buyer/carts/update-funding
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
cart_id | integer | true | Id keranjang |
funding_source.code | string | true | Kode |
funding_source.name | string | true | Nama |
funding_source.year | integer | true | Tahun |
Post Checkout Pesanan
jenis: buyer
curl -X POST "https://staging.siapi.tokoladang.co.id/buyer/carts/checkout"
-H 'Authorization: Bearer {{TOKEN}}'
-H 'Content-Type: application/json'
-d '{
"note": "string",
"nego": "boolean"
}'
Contoh Json Response:
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk checkout pesanan.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/buyer/carts/checkout
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
note | string | true | Catatan |
nego | integer | true | Nego / Proses |
[Buyer] Perbandingan
Get Daftar Perbandingan
jenis: buyer
curl -X GET "https://staging.siapi.tokoladang.co.id/buyer/compares?status=&page="
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
[
{
"code": "string",
"created_at": "datetime",
"created_by": "string",
"funding_source": {"kode_sumber_dana": "string", "sumber_dana": "string"},
"id": "integer",
"is_used": "boolean",
"school_id": "string",
"updated_at": "datetime",
"updated_by": "string"
}
]
endpoint ini digunakan untuk mendapatkan data perbandingan.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/buyer/compares?status=&page=
Query Parameter
Parameter | Default | required | Deskripsi |
---|---|---|---|
status | string | false | Status |
page | integer | false | Halaman |
Get Daftar Perbandingan By Grup
jenis: buyer
curl -X GET "https://staging.siapi.tokoladang.co.id/buyer/compares/{compareId}/group"
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
{
"all_responded": "boolean",
"groups": [
{
"compare_id": "integer",
"compare_items": [{"id": "integer", "compare_group_id": "integer", "product_id": "integer", "quantity": "integer",…}],
"courier": {"name": "string", "cost": "integer", "etd": "string"},
"courier_name": "string",
"id": "integer",
"merchant": {"id": "integer", "slug": "lina-com-11019", "name": "string",…},
"merchant_id": "integer",
"shipping_cost": "integer",
"status": "boolean",
"tax_price": "integer",
"time_limit": "integer",
"total_price": "integer",
"total_qty": "integer",
"total_weight": 0"integer"
}
],
"interval": "integer"
}
endpoint ini digunakan untuk mendapatkan data perbandingan berdasarkan grup.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/buyer/compares/{compareId}/group
Post Perbandingan Baru
jenis: buyer
curl -X POST "https://staging.siapi.tokoladang.co.id/buyer/compares/new"
-H 'Authorization: Bearer {{TOKEN}}'
-H 'Content-Type: application/json'
-d '{
"code": "string",
}'
Contoh Json Response :
{
"compare_id": "code",
"courier_name": "message"
}
endpoint ini digunakan untuk menambahkan perbandingan barang.
POST https://staging.siapi.tokoladang.co.id/buyer/compares/new
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
code | string | true | Kode |
Put Ubah Perbandingan
jenis: buyer
curl -X PUT "https://staging.siapi.tokoladang.co.id/buyer/compares/{id}/update"
-H 'Authorization: Bearer {{TOKEN}}'
-H 'Content-Type: application/json'
-d '{
"code": "string",
}'
Contoh Json Response :
{
"compare_id": "code",
"courier_name": "message"
}
endpoint ini digunakan untuk update data perbandingan barang.
PUT https://staging.siapi.tokoladang.co.id/buyer/compares/{id}/update
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
code | string | true | Kode |
Delete Hapus Perbandingan
jenis: buyer
curl -X DELETE "https://staging.siapi.tokoladang.co.id/buyer/compares/{id}/remove"
-H 'Authorization: Bearer {{TOKEN}}'
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
{
"compare_id": "code",
"courier_name": "message"
}
endpoint ini digunakan untuk menghapus perbandingan barang.
DELETE https://staging.siapi.tokoladang.co.id/buyer/compares/{id}/remove
Post Tambah Produk Ke Perbandingan
jenis: buyer
curl -X POST "https://staging.siapi.tokoladang.co.id/buyer/compares/{id}/add"
-H 'Authorization: Bearer {{TOKEN}}'
-H 'Content-Type: application/json'
-d '{
"type": "string",
"id": "integer"
}'
Contoh Json Response :
{
"compare_id": "code",
"courier_name": "message"
}
endpoint ini digunakan untuk menambahkan produk ke perbandingan yang sudah ada.
POST https://staging.siapi.tokoladang.co.id/buyer/compares/{id}/add
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
type | string | true | Tipe |
id | integer | true | Kode |
Delete Hapus Grup Dari Perbandingan
jenis: buyer
curl -X DELETE "https://staging.siapi.tokoladang.co.id/buyer/compares/group/{group}/remove"
-H 'Authorization: Bearer {{TOKEN}}'
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
{
"compare_id": "code",
"courier_name": "message"
}
endpoint ini digunakan untuk menghapus produk dari perbandingan.
DELETE https://staging.siapi.tokoladang.co.id/buyer/compares/group/{group}/remove
Post Simpan Perbandingan
jenis: buyer
curl -X POST "https://staging.siapi.tokoladang.co.id/buyer/compares"
-H 'Authorization: Bearer {{TOKEN}}'
-H 'Content-Type: application/json'
-d '{
"code" => "string",
"funding_source" => "json",
"groups" : {
"merchant_id": "integer",
"total_qty": "integer",
"total_price": "integer",
"tax_price": "integer",
"total_weight": "integer",
"shipping": "integer",
"shipping_address": "string",
compare_items: {
"product_id": "integer",
"product_name": "string",
"product_image": "string",
"quantity": "integer",
"price": "integer",
"total_price": "integer",
"tax_price": "integer",
"shipping": "json"
}
}
}'
Contoh Json Response :
{
"compare_id": "code",
"courier_name": "message"
}
endpoint ini digunakan untuk menyimpan data perbandingan.
POST https://staging.siapi.tokoladang.co.id/buyer/compares
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
code | string | true | Kode |
funding_source | json | true | Sumber dana |
groups.merchant_id | integer | true | Id Toko |
groups.total_qty | integer | true | Jumlah produk |
groups.total_price | integer | true | Harga |
groups.tax_price | integer | true | Pajak |
groups.total_weight | integer | true | Berat |
groups.shipping | json | true | Pengiriman |
groups.shipping_address | string | true | Alamat pengiriman |
groups.compare_items.product_id | integer | true | Id Produk |
groups.compare_items.product_name | string | true | Nama produk |
groups.compare_items.product_image | string | true | Gambar produk |
groups.compare_items.quantity | integer | true | Jumlah /produk |
groups.compare_items.price | integer | true | Harga /produk |
groups.compare_items.total_price | integer | true | Total harga |
groups.compare_items.tax_price | integer | true | Pajak |
groups.compare_items.shipping | json | false | Pengiriman |
Post Ubah Perbandingan
jenis: buyer
curl -X POST "https://staging.siapi.tokoladang.co.id/buyer/compares/update"
-H 'Authorization: Bearer {{TOKEN}}'
-H 'Content-Type: application/json'
-d '{
"id" => "integer",
"code" => "string",
"funding_source" => "json",
"groups" : {
"merchant_id": "integer",
"total_qty": "integer",
"total_price": "integer",
"tax_price": "integer",
"total_weight": "integer",
"shipping": "integer",
"shipping_address": "string",
compare_items: {
"product_id": "integer",
"product_name": "string",
"product_image": "string",
"quantity": "integer",
"price": "integer",
"total_price": "integer",
"tax_price": "integer",
"shipping": "json"
}
}
}'
Contoh Json Response :
{
"compare_id": "code",
"courier_name": "message"
}
endpoint ini digunakan untuk merubah data perbandingan.
POST https://staging.siapi.tokoladang.co.id/buyer/compares/update
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
id | integer | true | Id Perbandingan |
code | string | true | Kode |
funding_source | json | true | Sumber dana |
groups.merchant_id | integer | true | Id Toko |
groups.total_qty | integer | true | Jumlah produk |
groups.total_price | integer | true | Harga |
groups.tax_price | integer | true | Pajak |
groups.total_weight | integer | true | Berat |
groups.shipping | json | true | Pengiriman |
groups.shipping_address | string | true | Alamat pengiriman |
groups.compare_items.product_id | integer | true | Id Produk |
groups.compare_items.product_name | string | true | Nama produk |
groups.compare_items.product_image | string | true | Gambar produk |
groups.compare_items.quantity | integer | true | Jumlah /produk |
groups.compare_items.price | integer | true | Harga /produk |
groups.compare_items.total_price | integer | true | Total harga |
groups.compare_items.tax_price | integer | true | Pajak |
groups.compare_items.shipping | json | false | Pengiriman |
Post Checkout Dari Perbandingan
jenis: buyer
curl -X POST "https://staging.siapi.tokoladang.co.id/buyer/compares/{group}/checkout"
-H 'Authorization: Bearer {{TOKEN}}'
-H 'Content-Type: application/json'
-d '{
"note" => "string"
}'
Contoh Json Response :
{
"compare_id": "code",
"courier_name": "message"
}
endpoint ini digunakan untuk checkout dari perbandingan.
POST https://staging.siapi.tokoladang.co.id/buyer/compares/{group}/checkout
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
note | string | true | Catatan |
[Buyer] Complain
Get Data Komplain
jenis: buyer
curl -X GET "https://staging.siapi.tokoladang.co.id/buyer/complains"
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
[
{
"code": "string",
"created_at": "datetime",
"created_by": "string",
"customer_order": {},
"customer_order_id": "integer",
"from": "string",
"id": "integer",
"merchant": {"id": "integer", "name": "string", "email": "string", "phone": "string",…},
"merchant_id": "integer",
"message": "string",
"school": {"id": "string", "name": "string", "details": "json",…},
"school_id": "string",
"status": "string",
"title": "string",
"updated_at": "datetime",
"updated_by": "string"
}
]
endpoint ini digunakan untuk mendapatkan data Komplain.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/buyer/complains
Get Detail Komplain
jenis: buyer
curl -X GET "https://staging.siapi.tokoladang.co.id/buyer/complains/{id}"
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
{
"code": "string",
"created_at": "datetime",
"created_by": "string",
"customer_order": {},
"customer_order_id": "integer",
"from": "string",
"id": "integer",
"merchant": {"id": "integer", "name": "string", "email": "string", "phone": "string",…},
"merchant_complain_histories": [
{
"created_at": "datetime",
"created_by": "string",
"id": "integer",
"merchant_complain_id": "integer",
"message": "string",
"role": "string",
"sender": {},
"updated_at": "datetime",
"updated_by": "string"
}
],
"merchant_id": "integer",
"message": "string",
"school": {"id": "string", "name": "string", "details": "json",…},
"school_id": "string",
"status": "string",
"title": "string",
"updated_at": "datetime",
"updated_by": "string"
}
endpoint ini digunakan untuk mendapatkan data detail Komplain.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/buyer/complains/{id}
Get Detail Komplain By Transaksi
jenis: buyer
curl -X GET "https://staging.siapi.tokoladang.co.id/buyer/complains/{orderId}/details"
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
{
"code": "string",
"created_at": "datetime",
"created_by": "string",
"customer_order_id": "integer",
"from": "string",
"id": "integer",
"merchant_complain_histories": [
{
"created_at": "datetime",
"created_by": "string",
"id": "integer",
"merchant_complain_id": "integer",
"message": "string",
"role": "string",
"sender": {},
"updated_at": "datetime",
"updated_by": "string"
}
],
"merchant_id": "integer",
"message": "string",
"school": {"id": "string", "name": "string", "details": "json",…},
"school_id": "string",
"status": "string",
"title": "string",
"updated_at": "datetime",
"updated_by": "string"
}
endpoint ini digunakan untuk mendapatkan data detail Komplain berdasarkan transaksi.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/buyer/complains/{orderId}/details
Post Komplain Baru
jenis: buyer
curl -X POST "https://staging.siapi.tokoladang.co.id/buyer/complains/{orderId}"
-H 'Content-Type: application/json'
-d '{
"title": "string",
"message": "string"
}'
Contoh Json Response :
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk membuat komplain baru.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/buyer/complains/{orderId}
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
title | string | true | Judul |
message | string | true | Pesan |
Post Tanggapi Komplain.
jenis: buyer
curl -X POST "https://staging.siapi.tokoladang.co.id/buyer/complains/{id}/reply"
-H 'Content-Type: application/json'
-d '{
"message": "string"
}'
Contoh Json Response :
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk menanggapi komplain.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/buyer/complains/{id}/reply
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
message | string | true | Pesan |
Post Tutup Komplain
jenis: buyer
curl -X POST "https://staging.siapi.tokoladang.co.id/admin/complains/{id}/close"
-H 'Content-Type: application/json'
-d '{
"message": "string"
}'
Contoh Json Response :
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk mengakhiri komplain.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/buyer/complains/{id}/close
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
message | string | true | Pesan |
[Buyer] Ikuti Toko
Get Data Toko Diikuti
jenis: buyer
curl -X GET "https://staging.siapi.tokoladang.co.id/buyer/favourite/merchant"
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
[
{
"id": "integer",
"merchant_id": "integer",
"school_id": "string",
"created_by": "string",
"updated_by": "string",
"created_at": "datetime",
"updated_at": "datetime"
}
]
endpoint ini digunakan untuk mendapatkan data toko yang di ikuti.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/buyer/favourite/merchant
Post Ikuti Toko
jenis: buyer
curl -X POST "https://staging.siapi.tokoladang.co.id/buyer/favourite/merchant"
-H 'Content-Type: application/json'
-d '{
"merchant_id": "integer"
}'
Contoh Json Response :
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk mengikuti toko.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/buyer/favourite/merchant
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
merchant_id | integer | true | Id Toko |
Delete Unfollow Toko
jenis: buyer
curl -X DELETE "https://staging.siapi.tokoladang.co.id/buyer/favourite/merchant/{id}"
-H 'Content-Type: application/json'
-d '{
"merchant_id": "integer"
}'
Contoh Json Response :
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk berhenti mengikuti toko.
HTTP Request
DELETE https://staging.siapi.tokoladang.co.id/buyer/favourite/merchant/{id}
[Buyer] Negosiasi
Get Data Riwayat Negosiasi
jenis: buyer
curl -X GET "https://staging.siapi.tokoladang.co.id/buyer/negotiations/{id}/histories"
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
[
{
"created_at": "datetime",
"customer_message": "string",
"customer_price": "integer",
"customer_qty": "integer",
"id": "integer",
"merchant_message": "string",
"merchant_price": "integer",
"merchant_qty": "integer",
"negotiation_id": "integer",
"payment_due": "integer",
"status": "string",
"updated_at": "datetime"
}
]
endpoint ini digunakan untuk mendapatkan riwayat negosiasi.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/buyer/negotiations/{id}/histories
Post Pengajuan Negosiasi
jenis: buyer
curl -X POST "https://staging.siapi.tokoladang.co.id/buyer/negotiations"
-H 'Authorization: Bearer {{TOKEN}}'
-H 'Content-Type: application/json'
-d '{
"customer_order_item_id": "integer",
"nego_price": "integer",
"message": "string"
}'
Contoh Json Response :
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk pengajuan negosiasi kepada penjual.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/buyer/negotiations
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
customer_order_item_id | integer | true | Id item pesanan |
nego_price | integer | true | Harga nego |
message | string | false | Pesan |
Post Negosiasi Ulang
jenis: buyer
curl -X POST "https://staging.siapi.tokoladang.co.id/buyer/negotiations/reply"
-H 'Authorization: Bearer {{TOKEN}}'
-H 'Content-Type: application/json'
-d '{
"negotiation_id": "1",
"nego_price": "200000",
"message": "Saya Nego Lagi"
}'
Contoh Json Response :
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk pengajuan negosiasi ulang kepada penjual.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/buyer/negotiations/reply
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
negotiation_id | integer | true | Id Nego |
nego_price | integer | true | Harga |
message | string | false | Pesan |
Post Menyetujui Negosiasi
jenis: buyer
curl -X POST "https://staging.siapi.tokoladang.co.id/buyer/negotiations/accept"
-H 'Authorization: Bearer {{TOKEN}}'
-H 'Content-Type: application/json'
-d '{
"negotiation_id": "integer"
}'
Contoh Json Response :
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk menyetujui harga yang diajukan kepada seller.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/buyer/negotiations/accept
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
negotiation_id | integer | true | Id Negosiasi |
Post Membatalkan Negosiasi
jenis: buyer
curl -X POST "https://staging.siapi.tokoladang.co.id/buyer/negotiations/cancel"
-H 'Authorization: Bearer {{TOKEN}}'
-H 'Content-Type: application/json'
-d '{
"negotiation_id": "integer",
}'
endpoint ini digunakan untuk membatalakan negosiasi yang diajukan kepada penjual.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/buyer/negotiations/cancel
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
negotiation_id | integer | true | id Negosiasi |
[Buyer] Transaksi
Get Data Transaksi
jenis: buyer
curl -X GET "https://staging.siapi.tokoladang.co.id/buyer/orders?q=&status=&page="
-H 'Authorization: Bearer {{TOKEN}}'
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
[
{
"bank_destination_id": "integer",
"bank_mutation_in_id": "integer",
"bank_mutation_out_id": "integer",
"bill_status": "unpaid",
"cant_apply": "boolean",
"compare_id": "integer",
"courier_detail": {"name": "string", "etd": "string", "cost": "integer", "address": "string"},
"courier_receipt": "string",
"courier_service_type": "string",
"created_at": "datetime",
"customer_order_items": [
{
"id": "integer", "product_id": "integer", "quantity": 1, "price": "integer", "total_price": "integer", "bast": "json",
"customer_order_id": "integer", "item_no": "integer", "negotiation_id": "integer", "product_image": "string",
"product_name": "string", "tax_price": "integer", "shipping": {
"quantity": "integer", "weight": "integer", "length": "integer", "width": "integer", "height": "integer"
}
}
],
"details": "json",
"funding_source": "string",
"funding_source_ws": {"id": "string", "code": "string", "name": "string", "year": "integer"},
"handling_fee": "integer",
"handling_fee_details": "json",
"id": "integer",
"insurance_cost": "integer",
"invoice_file": "string",
"merchant": {"id": "integer", "name": "string", "image": "string"},
"merchant_id": "integer",
"note": "string",
"order_date": "datetime",
"order_no": "string",
"over_time_limit": "integer",
"payment_account_no": "string",
"payment_bank_origin": "string",
"payment_date": "datetime",
"payment_file": "string",
"payment_forwarded_date": "datetime",
"payment_method_id": "integer",
"payment_transferred": "integer",
"payments": "json",
"purchase_status": "string",
"reason_cancellation": "string",
"school_id": "string",
"shipping_cost": "integer",
"status_updated_at": "datetime",
"tax_payer": "string",
"tax_price": "integer",
"time_limit": "integer",
"total_price": "integer",
"total_qty": "integer",
"total_weight": "integer",
"updated_at": "datetime"
}
]
endpoint ini digunakan untuk mendapatkan data transaksi.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/buyer/orders?q=&status=&page=
Query Parameter
Parameter | Default | required | Deskripsi |
---|---|---|---|
q | string | false | Kata kunci |
status | string | false | Status |
page | integer | false | Halaman |
Get Detail Data Transaksi
jenis: buyer
curl -X GET "https://staging.siapi.tokoladang.co.id/buyer/orders/{id}/detail"
-H 'Authorization: Bearer {{TOKEN}}'
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
{
"bank_destination_id": "integer",
"bank_mutation_in_id": "integer",
"bank_mutation_out_id": "integer",
"bill_status": "unpaid",
"cant_apply": "boolean",
"compare_id": "integer",
"courier_detail": {"name": "string", "etd": "string", "cost": "integer", "address": "string"},
"courier_receipt": "string",
"courier_service_type": "string",
"created_at": "datetime",
"customer_order_items": [
{
"id": "integer", "product_id": "integer", "quantity": 1, "price": "integer", "total_price": "integer", "bast": "json",
"customer_order_id": "integer", "item_no": "integer", "negotiation_id": "integer", "product_image": "string",
"product_name": "string", "tax_price": "integer", "shipping": {
"quantity": "integer", "weight": "integer", "length": "integer", "width": "integer", "height": "integer"
}
}
],
"details": "json",
"funding_source": "string",
"funding_source_ws": {"id": "string", "code": "string", "name": "string", "year": "integer"},
"handling_fee": "integer",
"handling_fee_details": "json",
"id": "integer",
"insurance_cost": "integer",
"invoice_file": "string",
"merchant": {"id": "integer", "name": "string", "image": "string"},
"merchant_id": "integer",
"note": "string",
"order_date": "datetime",
"order_no": "string",
"over_time_limit": "integer",
"payment_account_no": "string",
"payment_bank_origin": "string",
"payment_date": "datetime",
"payment_file": "string",
"payment_forwarded_date": "datetime",
"payment_method_id": "integer",
"payment_transferred": "integer",
"payments": "json",
"purchase_status": "string",
"reason_cancellation": "string",
"school_id": "string",
"shipping_cost": "integer",
"status_updated_at": "datetime",
"tax_payer": "string",
"tax_price": "integer",
"time_limit": "integer",
"total_price": "integer",
"total_qty": "integer",
"total_weight": "integer",
"updated_at": "datetime"
}
endpoint ini digunakan untuk mendapatkan detail transaksi.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/buyer/orders/{id}/detail
Get Riwayat Data Transaksi
jenis: buyer
curl -X GET "https://staging.siapi.tokoladang.co.id/buyer/orders/{id}/activities"
-H 'Authorization: Bearer {{TOKEN}}'
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
[
{
"causer_id": "string",
"causer_type": "string",
"created_at": "datetime",
"description": "string",
"event": "string",
"id": "integer",
"log_name": "string",
"properties": {"user": {"id": "integer", "email": "string", "name": "string"},…},
"subject_id": "181",
"subject_type": "App\\Models\\CustomerOrder",
"updated_at": "datetime"
}
]
endpoint ini digunakan untuk mendapatkan riwayat detail transaksi.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/buyer/orders/{id}/activities
Post Proses Transaksi
jenis: buyer
curl -X POST "https://staging.siapi.tokoladang.co.id/buyer/orders/{id}/process"
-H 'Authorization: Bearer {{TOKEN}}'
-H 'Content-Type: application/json'
-d '{
"status": "string"
}'
Contoh Json Response:
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk memproses transaksi.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/buyer/orders/{id}/process
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
status | string | true | Status transaksi |
Post Pembatalan Transaksi
jenis: buyer
curl -X POST "https://staging.siapi.tokoladang.co.id/buyer/orders/{id}/canceling"
-H 'Authorization: Bearer {{TOKEN}}'
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response:
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk membatalkan transaksi.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/buyer/orders/{id}/canceling
Post Perubahan Transaksi
jenis: buyer
curl -X POST "https://staging.siapi.tokoladang.co.id/buyer/orders/{id}/updating"
-H 'Authorization: Bearer {{TOKEN}}'
-H 'Content-Type: application/json'
-d '{
"items": [
{"id": "integer", "qty": "integer"}
]
}'
Contoh Json Response:
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk pengajuan perubahan transaksi.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/buyer/orders/{id}/updating
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
items.*.id | integer | true | Id Produk |
items.*.qty | integer | true | Jumlah |
Post Setuju Penawaran Penjual
jenis: buyer
curl -X POST "https://staging.siapi.tokoladang.co.id/buyer/orders/{{id}}/process-merchant-offer"
-H 'Authorization: Bearer {{TOKEN}}'
-H 'Content-Type: application/json'
-d '{
"accept": "boolean",
}'
Contoh Json Response:
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk menerima tawaran batas waktu yang di ajukan penjual.
POST https://staging.siapi.tokoladang.co.id/buyer/orders/{id}/process-merchant-offer
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
accept | boolean | true | true / false |
Get Lacak Transaksi
jenis: buyer
curl -X GET "https://staging.siapi.tokoladang.co.id/buyer/orders/{id}/tracking"
-H 'Authorization: Bearer {{TOKEN}}'
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response:
{
"cn_no": "string",
"location": "string",
"process_latitude": "string",
"process_longitude": "string",
"process_maps_location": "string",
"process_photo": "string",
"process_received_by": "string",
"process_received_relation": "string",
"process_signature": "string",
"status": "string",
"status_stage": "string",
"time": "datetime"
}
endpoint ini digunakan untuk melacak transaksi.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/buyer/orders/{id}/tracking
Post Terima pesanan
jenis: buyer
curl -X POST "https://staging.siapi.tokoladang.co.id/buyer/orders/{id}/receive"
-H 'Authorization: Bearer {{TOKEN}}'
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response:
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk menerima pesanan.
POST https://staging.siapi.tokoladang.co.id/buyer/orders/{id}/receive
Post Atur BAST
jenis: buyer
curl -X POST "https://staging.siapi.tokoladang.co.id/buyer/orders/{id}/bast"
-H 'Authorization: Bearer {{TOKEN}}'
-H 'Content-Type: application/json'
-d '{
"bast": {
"document_date": "date",
"sign_name": "string",
"sign_position": "string",
"sign_id": "string",
"sign_phone": "string",
"late_charge": "integer",
"late_charge_note": "string",
"images"; []
},
"bastItems": [
{"id": "integer", "quantity": "integer"}
]
}'
Contoh Json Response:
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk mengatur BAST.
POST https://staging.siapi.tokoladang.co.id/buyer/orders/{$order->id}/bast
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
bast.*.document_date | string | true | Tanggal Dokumen |
bast.*.sign_name | string | true | Nama Penerima BAST |
bast.*.sign_position | string | true | Jabatan Penerima BAST |
bast.*.sign_id | string | false | NIP/NIPY Penerima BAST |
bast.*.sign_phone | string | false | Telepon Penerima BAST |
bast.*.late_charge | integer | false | Denda Keterlambatan |
bast.*.late_charge_note | string | false | Catatan Denda Keterlambatan |
bast.*.images | array | false | Bukti gambar |
bast_items.*.id | integer | true | Id item |
bast_items.*.quantity | integer | true | Jumlah item |
Post Pembayaran Manual / Transfer
jenis: buyer
curl -X POST "https://staging.siapi.tokoladang.co.id/buyer/orders/{id}/payment1"
-H 'Authorization: Bearer {{TOKEN}}'
-H 'Content-Type: application/json'
-d '{
"date": "datetime",
"bank_origin": "string",
"bank_account": "string",
"bank_destination": "integer",
"transferred": "integer",
"payment_file":"string"
}'
endpoint ini digunakan untuk mengatur pembayaran secara manual / transfer.
POST https://staging.siapi.tokoladang.co.id/buyer/orders/{id}/payment1
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
date | date | true | Tanggal Pembayaran |
bank_origin | string | true | Nama Bank |
bank_account | string | true | Akun Bank |
bank_destination | integer | true | Bank Tujuan |
transferred | integer | true | Jumlah yang ditransfer |
payment_file | string | true | Bukti Pembayaran |
Post Generate Pembayaran BRIVA
jenis: buyer
curl -X POST "https://staging.siapi.tokoladang.co.id/buyer/orders/{id}/create-va2"
-H 'Authorization: Bearer {{TOKEN}}'
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response:
{
"pm2": {
"amount": "integer",
"expired": "datetime",
"paid": "boolean",
"va": "string"
}
}
endpoint ini digunakan untuk generate pembayaran melalui BRI Virtual Account.
POST https://staging.siapi.tokoladang.co.id/buyer/orders/{id}/create-va2
Post Pembayaran BRIVA
jenis: buyer
curl -X POST "https://staging.siapi.tokoladang.co.id/buyer/orders/{id}/payment2"
-H 'Authorization: Bearer {{TOKEN}}'
-H 'Content-Type: application/json'
-d '{
"date": "date",
"payment_file": "file|image"
}'
Contoh Json Response
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk mengatur pembayaran melalui BRIVA.
POST https://staging.siapi.tokoladang.co.id/buyer/orders/{id}/payment2
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
date | date | true | Tanggal |
payment_file | file | true | Gambar |
Post Generate Pembayaran BPD
jenis: buyer
curl -X POST "https://staging.siapi.tokoladang.co.id/buyer/orders/{id}/create-va3"
-H 'Authorization: Bearer {{TOKEN}}'
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response:
{}
endpoint ini digunakan untuk generate pembayaran melului BPD.
POST https://staging.siapi.tokoladang.co.id/buyer/orders/{id}/create-va3
Post Pembayaran BPD
jenis: buyer
curl -X POST "https://staging.siapi.tokoladang.co.id/buyer/orders/{id}/payment3"
-H 'Authorization: Bearer {{TOKEN}}'
-H 'Content-Type: application/json'
-d '{
"date": "date",
"payment_file": "file|image"
}'
Contoh Json Response
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk mengatur pembayaran melalui BPD.
POST https://staging.siapi.tokoladang.co.id/buyer/orders/{id}/payment3
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
date | date | true | Tanggal |
payment_file | file | true | Gambar |
Post Generate Pembayaran Bank Jatim
jenis: buyer
curl -X POST "https://staging.siapi.tokoladang.co.id/buyer/orders/{id}/create-va4"
-H 'Authorization: Bearer {{TOKEN}}'
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response:
{
"pm4": {
"amount": "integer",
"expired": "date",
"paid": "boolean",
"va": "string"
}
}
endpoint ini digunakan untuk generate pembayaran melului Bank Jatim.
POST https://staging.siapi.tokoladang.co.id/buyer/orders/{id}/create-va4
Post Pembayaran Bank Jatim
jenis: buyer
curl -X POST "https://staging.siapi.tokoladang.co.id/buyer/orders/{id}/payment4"
-H 'Authorization: Bearer {{TOKEN}}'
-H 'Content-Type: application/json'
-d '{
"date": "date",
"payment_file": "file|image"
}'
Contoh Json Response
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk mengatur pembayaran melalui Bank Jatim.
POST https://staging.siapi.tokoladang.co.id/buyer/orders/{id}/payment4
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
date | date | true | Tanggal |
payment_file | file | true | Gambar |
Get Review Toko
jenis: buyer
curl -X GET "https://staging.siapi.tokoladang.co.id/buyer/orders/{orderId}/merchant-review"
-H 'Authorization: Bearer {{TOKEN}}'
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response:
{
"created_at": "datetime",
"customer_order_id": "integer",
"id": "integer",
"message": "string",
"rating": "integer",
"merchant_id": "integer",
"school_id": "string",
"updated_at": "datetime"
}
endpoint ini digunakan untuk mendapatkan review toko.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/buyer/orders/{orderId}/merchant-review
Get Review Produk
jenis: buyer
curl -X GET "https://staging.siapi.tokoladang.co.id/buyer/orders/{orderItemId}/product-review"
-H 'Authorization: Bearer {{TOKEN}}'
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response:
{
"created_at": "datetime",
"customer_order_item_id": "integer",
"id": "integer",
"message": "string",
"product_id": "string",
"rating": "integer",
"school_id": "string",
"updated_at": "datetime"
}
endpoint ini digunakan untuk mendapatkan review produk.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/buyer/orders/{orderItemId}/product-review
Post Komentar Review Toko
jenis: buyer
curl -X POST "https://staging.siapi.tokoladang.co.id/buyer/orders/{orderId}/merchant-review"
-H 'Authorization: Bearer {{TOKEN}}'
-H 'Content-Type: application/json'
-d '{
"rating": "integer",
"message": "string"
}'
Contoh Json Response
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk memberi review terhadap toko.
POST https://staging.siapi.tokoladang.co.id/buyer/orders/{orderId}/merchant-review
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
rating | integer | true | Penilaian |
message | string | true | Komentar |
Post Komentar Review Produk
jenis: buyer
curl -X POST "https://staging.siapi.tokoladang.co.id/buyer/orders/{orderItemId}/product-review"
-H 'Authorization: Bearer {{TOKEN}}'
-H 'Content-Type: application/json'
-d '{
"rating": "integer",
"message": "string"
}'
Contoh Json Response
{
"code": "integer",
"message": "string"
}
endpoint ini digunakan untuk memberi review terhadap toko.
POST https://staging.siapi.tokoladang.co.id/buyer/orders/{orderItemId}/product-review
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
rating | integer | true | Penilaian |
message | string | true | Komentar |
[Buyer] Produk
Get Data Diskusi Produk
jenis: buyer
curl -X GET "https://staging.siapi.tokoladang.co.id/buyer/products/{id}/discussion"
-H 'Content-Type: application/json'
-d '{}'
Contoh Json Response :
[
{
"created_at": "datetime",
"created_by": "string",
"customer_id": "integer",
"id": "integer",
"merchant_discuss_replies": [],
"merchant_id": "integer",
"message": "string",
"product_id": "integer",
"school": {"id": "string", "name": "string"},
"school_id": "string",
"updated_at": "datetime",
"updated_by": "string"
}
]
endpoint ini digunakan untuk mendapatkan data diskusi produk.
HTTP Request
GET https://staging.siapi.tokoladang.co.id/buyer/products/{id}/discussion
Post Buat Pesan Diskusi
jenis: buyer
curl -X POST "https://staging.siapi.tokoladang.co.id/buyer/products/{id}/discussion-reply"
-H 'Authorization: Bearer {{TOKEN}}'
-H 'Content-Type: application/json'
-d '{
"message": "string"
}'
Contoh Json Response :
{
"created_at": "datetime",
"id": "integer",
"merchant_id": "integer",
"message": "string",
"product_id": "integer",
"school_id": "string",
"updated_at": "datetime"
}
endpoint ini digunakan untuk pengajuan negosiasi kepada penjual.
HTTP Request
POST https://staging.siapi.tokoladang.co.id/buyer/products/{id}/discussion-reply
Query Body
Parameter | Default | required | Deskripsi |
---|---|---|---|
message | string | false | Pesan |
Errors
Siplah Menggunakan code error berikut:
Error Code | Meaning |
---|---|
400 | Bad Request -- Your request is invalid. |
401 | Unauthorized -- Your API key is wrong. |
403 | Forbidden -- The kitten requested is hidden for administrators only. |
404 | Not Found -- The specified kitten could not be found. |
405 | Method Not Allowed -- You tried to access a kitten with an invalid method. |
406 | Not Acceptable -- You requested a format that isn't json. |
410 | Gone -- The kitten requested has been removed from our servers. |
418 | I'm a teapot. |
429 | Too Many Requests -- You're requesting too many kittens! Slow down! |
500 | Internal Server Error -- We had a problem with our server. Try again later. |
503 | Service Unavailable -- We're temporarily offline for maintenance. Please try again later. |