Introduction

We have an extensive database of various places, including restaurants, business establishments, and hidden gems. No matter what type of place you are looking for, we can provide you with all the information you need
Base URL Staging : https://rinjani.lokalink.id/api/v1
Authenticating requests
This API is not authenticated.
Account
Get Notification
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/account/notification" \
--header "Authorization: Bearer {access_token}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"is_read\": false
}"
const url = new URL(
"https://merchant.lokalink.id/api/v1/account/notification"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"is_read": false
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "Data berhasil di dapatkan",
"data": [
{
"message": 'Data outlet terhapus',
"created_at": '2021-12-01 12:00:00',
"updated_at": '2021-12-01 12:00:00'
}
]
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Read Notification
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/account/notification/read" \
--header "Authorization: Bearer {access_token}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"is_read\": false
}"
const url = new URL(
"https://merchant.lokalink.id/api/v1/account/notification/read"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"is_read": false
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "Data berhasil di dapatkan",
"data": [
{
"message": 'Data outlet terhapus',
"created_at": '2021-12-01 12:00:00',
"updated_at": '2021-12-01 12:00:00'
}
]
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Request Delete Account
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/account/requestDelete" \
--header "Authorization: Bearer {access_token}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"reason\": \"Menghapus akun\",
\"otp\": \"123456\"
}"
const url = new URL(
"https://merchant.lokalink.id/api/v1/account/requestDelete"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"reason": "Menghapus akun",
"otp": "123456"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "data berhasil di dapatkan",
"data": [data]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Auth Company
About Company
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/auth/company/accountdetail" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"fullname\": \"Ferryanto\",
\"business_number\": \"081**********\",
\"username\": \"ferryanto\",
\"company_name\": \"PT Perusahaan\",
\"position\": \"Manager\",
\"company_email\": \"[email protected]\"
}"
const url = new URL(
"https://merchant.lokalink.id/api/v1/auth/company/accountdetail"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"fullname": "Ferryanto",
"business_number": "081**********",
"username": "ferryanto",
"company_name": "PT Perusahaan",
"position": "Manager",
"company_email": "[email protected]"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "Data berhasil didapatkan",
"data": [data]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Auth Personal
Register
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/auth/register" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"phone\": \"081**********\",
\"company\": true,
\"name\": \"Ferryanto\",
\"password\": \"Secret123456\"
}"
const url = new URL(
"https://merchant.lokalink.id/api/v1/auth/register"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"phone": "081**********",
"company": true,
"name": "Ferryanto",
"password": "Secret123456"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "Submit data berhasil",
"data": [data]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Validasi OTP Register
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/auth/validasicode" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"phone\": \"081**********\",
\"code\": \"1234\"
}"
const url = new URL(
"https://merchant.lokalink.id/api/v1/auth/validasicode"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"phone": "081**********",
"code": "1234"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "Submit data berhasil",
"data": [data]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Submit Password Register
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/auth/password" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"phone\": \"081**********\",
\"password\": \"Secret123456\",
\"cpassword\": \"Secret123456\"
}"
const url = new URL(
"https://merchant.lokalink.id/api/v1/auth/password"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"phone": "081**********",
"password": "Secret123456",
"cpassword": "Secret123456"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "Submit password berhasil",
"data": [data]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update Profile
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/auth/updateprofile" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"phone\": \"081**********\",
\"nik\": 35,
\"fullname\": \"Ferryanto\",
\"gender\": true,
\"birthplace\": \"Jakarta\",
\"birthday\": \"2000-01-01\",
\"email\": \"[email protected]\"
}"
const url = new URL(
"https://merchant.lokalink.id/api/v1/auth/updateprofile"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"phone": "081**********",
"nik": 35,
"fullname": "Ferryanto",
"gender": true,
"birthplace": "Jakarta",
"birthday": "2000-01-01",
"email": "[email protected]"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "Update profil user berhasil",
"data": [data]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Login
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/auth/login" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"phone\": \"08563437495\",
\"password\": \"zxcasd123\",
\"fcm_id\": \"cFbJxnm_T-igJNrOB7m6os:APA91bHrRAMuReddpS9c_EnOZohtnoBn0jd5y_knsW0VB0us6X9lXpRQVSi7-QswoCvoOPnFSfEckzA771A1idIWIqBJj9GkYOmJwRBQjJ8hu1Wr5MwlYQ8\"
}"
const url = new URL(
"https://merchant.lokalink.id/api/v1/auth/login"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"phone": "08563437495",
"password": "zxcasd123",
"fcm_id": "cFbJxnm_T-igJNrOB7m6os:APA91bHrRAMuReddpS9c_EnOZohtnoBn0jd5y_knsW0VB0us6X9lXpRQVSi7-QswoCvoOPnFSfEckzA771A1idIWIqBJj9GkYOmJwRBQjJ8hu1Wr5MwlYQ8"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "Submit Login berhasil",
"data": [data]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update Details
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/auth/updatedetails" \
--header "Authorization: Bearer {token}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"email\": \"[email protected]\",
\"phone\": \"081**********\",
\"name\": \"Ferryanto\"
}"
const url = new URL(
"https://merchant.lokalink.id/api/v1/auth/updatedetails"
);
const headers = {
"Authorization": "Bearer {token}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"email": "[email protected]",
"phone": "081**********",
"name": "Ferryanto"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "Update profil user berhasil",
"data": [data]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Lupa Password
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/auth/forgot" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"phone\": \"081**********\"
}"
const url = new URL(
"https://merchant.lokalink.id/api/v1/auth/forgot"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"phone": "081**********"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "Silahkan masukkan kode verifikasi",
"data": [data]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Validasi OTP Forgot
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/auth/validasiOTPForgot" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"phone\": \"081**********\",
\"code\": \"1234\"
}"
const url = new URL(
"https://merchant.lokalink.id/api/v1/auth/validasiOTPForgot"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"phone": "081**********",
"code": "1234"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "Kode validasi dikenali",
"data": [data]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
New Password
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/auth/newpassword" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"phone\": \"081**********\",
\"password\": \"Secret123456\",
\"cpassword\": \"Secret123456\"
}"
const url = new URL(
"https://merchant.lokalink.id/api/v1/auth/newpassword"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"phone": "081**********",
"password": "Secret123456",
"cpassword": "Secret123456"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "Password berhasil di update",
"data": [data]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Request OTP Auth
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/auth/getcode" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"phone\": \"081**********\"
}"
const url = new URL(
"https://merchant.lokalink.id/api/v1/auth/getcode"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"phone": "081**********"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "Silahkan masukkan kode verifikasi",
"data": [data]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Auth Staff
Login
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/auth/staff/login" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"phone\": \"081**********\",
\"pin\": \"1234\"
}"
const url = new URL(
"https://merchant.lokalink.id/api/v1/auth/staff/login"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"phone": "081**********",
"pin": "1234"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "Data berhasil didapatkan",
"data": [data]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Profile
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/staff/profile" \
--header "Authorization: Bearer {access_token}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://merchant.lokalink.id/api/v1/staff/profile"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "Data berhasil didapatkan",
"data": [data]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Basic
Get OTP General
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/basic/getcode" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"phone\": \"08563437495\"
}"
const url = new URL(
"https://merchant.lokalink.id/api/basic/getcode"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"phone": "08563437495"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "Silahkan masukkan kode verifikasi",
"data": [data]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Validasi OTP General
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/basic/validasicode" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"phone\": \"081**********\",
\"code\": \"1234\"
}"
const url = new URL(
"https://merchant.lokalink.id/api/basic/validasicode"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"phone": "081**********",
"code": "1234"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "Submit data berhasil",
"data": [data]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Master Data Cities.
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/basic/city" \
--header "Authorization: Bearer {access_token}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"province_id\": \"10\"
}"
const url = new URL(
"https://merchant.lokalink.id/api/v1/basic/city"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"province_id": "10"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "Data berhasil di dapatkan",
"data": [
{
"id": 10,
"state_id": 7,
"name": "Jakarta Pusat"
},
{
"id": 11,
"state_id": 7,
"name": "Jakarta Timur"
},
{
"id": 14,
"state_id": 7,
"name": "Jakarta Selatan"
}
]
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Master Data Provinces.
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/basic/province" \
--header "Authorization: Bearer {access_token}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://merchant.lokalink.id/api/v1/basic/province"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "Data berhasil di dapatkan",
"data": [
{
"id": 1,
"name": "Jawa Timur"
},
{
"id": 7,
"name": "DKI Jakarta"
},
{
"id": 8,
"name": "Bali"
},
{
"id": 9,
"name": "Daerah Istimewa Yogyakarta"
},
{
"id": 10,
"name": "Banten"
},
{
"id": 11,
"name": "Sumatera Utara"
}
]
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Master Data Category.
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/basic/category" \
--header "Authorization: Bearer {access_token}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://merchant.lokalink.id/api/v1/basic/category"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "data berhasil di dapatkan",
"data": [data]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Master Data Sub Category.
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/basic/subcategory" \
--header "Authorization: Bearer {access_token}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"category_id\": \"architecto\"
}"
const url = new URL(
"https://merchant.lokalink.id/api/v1/basic/subcategory"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"category_id": "architecto"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "Data berhasil di dapatkan",
"data": [
{
"id": 6,
"category_id": 1,
"name": "Dealer",
"icon_code": "",
"code": "DLR",
},
{
"id": 7,
"category_id": 1,
"name": "Used Dealer",
"icon_code": "",
"code": "UDL",
},
]
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Master Data Province All.
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/basic/provinceall" \
--header "Authorization: Bearer {access_token}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://merchant.lokalink.id/api/v1/basic/provinceall"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "Data berhasil di dapatkan",
"data": [
{
"id": 11,
"provinsi_id": null,
"name": "NANGROE ACEH DARUSSALAM"
}
]
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Master Data City All.
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/basic/cityall" \
--header "Authorization: Bearer {access_token}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"province_id\": \"10\"
}"
const url = new URL(
"https://merchant.lokalink.id/api/v1/basic/cityall"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"province_id": "10"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "Data berhasil di dapatkan",
"data": [
{
"id": 11,
"name": "Nangroe Aceh Darussalam"
}
]
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Home Stats.
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/basic/homecounter" \
--header "Authorization: Bearer {access_token}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://merchant.lokalink.id/api/v1/basic/homecounter"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "data berhasil di dapatkan",
"data": [data]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Banner Ads.
Terms and Conditions
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/basic/tnc" \
--header "Authorization: Bearer {access_token}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"province_id\": \"10\"
}"
const url = new URL(
"https://merchant.lokalink.id/api/v1/basic/tnc"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"province_id": "10"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "Data berhasil di dapatkan",
"data": [
{
"id": 11,
"name": "Nangroe Aceh Darussalam"
}
]
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Contact
Contact Us
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/basic/contact-us" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"subject\": \"Pertanyaan tentang voucher\",
\"message\": \"Saya ingin bertanya tentang cara menggunakan voucher\",
\"email\": \"[email protected]\",
\"phone\": \"08123456789\"
}"
const url = new URL(
"https://merchant.lokalink.id/api/basic/contact-us"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"subject": "Pertanyaan tentang voucher",
"message": "Saya ingin bertanya tentang cara menggunakan voucher",
"email": "[email protected]",
"phone": "08123456789"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "Pesan berhasil dikirim",
"data": {
"subject": "Pertanyaan tentang voucher",
"message": "Saya ingin bertanya tentang cara menggunakan voucher"
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Endpoints
Handle Midtrans payment notification
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/notification/payment/status" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://merchant.lokalink.id/api/notification/payment/status"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Handle Midtrans webhook notification This is the dedicated webhook handler using the new service
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/notification/webhook" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://merchant.lokalink.id/api/notification/webhook"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/v1/auth/logout
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/auth/logout" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://merchant.lokalink.id/api/v1/auth/logout"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
File Upload
Upload User personal KTP
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/auth/uploadfile" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "nik=35"\
--form "phone=081**********"\
--form "path_image=@/tmp/php2wgiBh" const url = new URL(
"https://merchant.lokalink.id/api/v1/auth/uploadfile"
);
const headers = {
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('nik', '35');
body.append('phone', '081**********');
body.append('path_image', document.querySelector('input[name="path_image"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "File berhasil di submit",
"data": [data]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Upload User Selfies Foto
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/auth/uploadSelfies" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "phone=081**********"\
--form "path_image=@/tmp/phpQTpzPe" const url = new URL(
"https://merchant.lokalink.id/api/v1/auth/uploadSelfies"
);
const headers = {
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('phone', '081**********');
body.append('path_image', document.querySelector('input[name="path_image"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "File berhasil di submit",
"data": [data]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Upload Company NIB & NPWP
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/auth/company/companynib" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "phone=081**********"\
--form "nib=@/tmp/phpYqz6Gh" \
--form "npwp=@/tmp/phpRVU1ce" const url = new URL(
"https://merchant.lokalink.id/api/v1/auth/company/companynib"
);
const headers = {
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('phone', '081**********');
body.append('nib', document.querySelector('input[name="nib"]').files[0]);
body.append('npwp', document.querySelector('input[name="npwp"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "File berhasil di submit",
"data": [data]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Manage
Outlet Add Description
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/manage/outlet/edit" \
--header "Authorization: Bearer {access_token}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"outlet_uuid\": \"123e4567-e89b-12d3-a456-426614174000\",
\"description\": \"deskripsi\"
}"
const url = new URL(
"https://merchant.lokalink.id/api/v1/manage/outlet/edit"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"outlet_uuid": "123e4567-e89b-12d3-a456-426614174000",
"description": "deskripsi"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "Data berhasil di submit",
"data": [
{
"message": 'Data outlet terhapus',
"created_at": '2021-12-01 12:00:00',
"updated_at": '2021-12-01 12:00:00'
}
]
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Outlet Add photos
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/manage/outlet/edit/photo" \
--header "Authorization: Bearer {access_token}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "outlet_uuid=123e4567-e89b-12d3-a456-426614174000"\
--form "type=menu,background,gallery"\
--form "path_image=@/tmp/phpBCKrGg" const url = new URL(
"https://merchant.lokalink.id/api/v1/manage/outlet/edit/photo"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('outlet_uuid', '123e4567-e89b-12d3-a456-426614174000');
body.append('type', 'menu,background,gallery');
body.append('path_image', document.querySelector('input[name="path_image"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "Data berhasil di submit",
"data": [
{
"message": 'Data outlet terhapus',
"created_at": '2021-12-01 12:00:00',
"updated_at": '2021-12-01 12:00:00'
}
]
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Outlet
Find
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/outlet/find" \
--header "Authorization: Bearer {token}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"keyword\": \"cafe\",
\"city_id\": 1
}"
const url = new URL(
"https://merchant.lokalink.id/api/v1/outlet/find"
);
const headers = {
"Authorization": "Bearer {token}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"keyword": "cafe",
"city_id": 1
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "File berhasil di submit",
"data": [data]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Claim Outlet.
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/outlet/claim" \
--header "Authorization: Bearer {token}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "explanation=Penjelasan"\
--form "outlet_uuid=123e4567-e89b-12d3-a456-426614174000"\
--form "file_pdf[]=@/tmp/phpRhYSLe" \
--form "file_pdf[]=@/tmp/phpOxevIe" const url = new URL(
"https://merchant.lokalink.id/api/v1/outlet/claim"
);
const headers = {
"Authorization": "Bearer {token}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('explanation', 'Penjelasan');
body.append('outlet_uuid', '123e4567-e89b-12d3-a456-426614174000');
body.append('file_pdf[]', document.querySelector('input[name="file_pdf[]"]').files[0]);
body.append('file_pdf[]', document.querySelector('input[name="file_pdf[]"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "Claim outlet submitted, please wait for approval",
"data": [data]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
My Claim.
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/outlet/myclaim" \
--header "Authorization: Bearer {token}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"status\": \"pending,approved,declined\"
}"
const url = new URL(
"https://merchant.lokalink.id/api/v1/outlet/myclaim"
);
const headers = {
"Authorization": "Bearer {token}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"status": "pending,approved,declined"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "data berhasil didapatkan",
"data": [data]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Detail Outlet
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/outlet/detail" \
--header "Authorization: Bearer {token}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"uuid\": \"f3b80872-b9cc-42d3-9ef3-6363a2e7dd7f\"
}"
const url = new URL(
"https://merchant.lokalink.id/api/v1/outlet/detail"
);
const headers = {
"Authorization": "Bearer {token}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"uuid": "f3b80872-b9cc-42d3-9ef3-6363a2e7dd7f"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "File berhasil di submit",
"data": [data]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Add Outlet.
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/outlet/addnew" \
--header "Authorization: Bearer {token}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "business_type=Toko"\
--form "name=Outlet Baru"\
--form "address=Jl. Raya No. 1"\
--form "city_id=12"\
--form "latitude=-6.2088"\
--form "longitude=106.8456"\
--form "phone=08123456789"\
--form "category_id=1"\
--form "province_id=12"\
--form "schedule_open={"senin": "08:00-17:00","selasa": "08:00-17:00","rabu": "08:00-17:00","kamis": "08:00-17:00","jumat": "08:00-17:00","sabtu": "08:00-17:00","minggu": "08:00-17:00"}"\
--form "zip_code=12345"\
--form "building_name=Bangunan Baru"\
--form "category_name=Jasa"\
--form "accept_cash=1"\
--form "accept_debit_card=1"\
--form "accept_credit_card=1"\
--form "photo_1=@/tmp/phprCkikf" \
--form "photo_2=@/tmp/phplxK7Ug" const url = new URL(
"https://merchant.lokalink.id/api/v1/outlet/addnew"
);
const headers = {
"Authorization": "Bearer {token}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('business_type', 'Toko');
body.append('name', 'Outlet Baru');
body.append('address', 'Jl. Raya No. 1');
body.append('city_id', '12');
body.append('latitude', '-6.2088');
body.append('longitude', '106.8456');
body.append('phone', '08123456789');
body.append('category_id', '1');
body.append('province_id', '12');
body.append('schedule_open', '{"senin": "08:00-17:00","selasa": "08:00-17:00","rabu": "08:00-17:00","kamis": "08:00-17:00","jumat": "08:00-17:00","sabtu": "08:00-17:00","minggu": "08:00-17:00"}');
body.append('zip_code', '12345');
body.append('building_name', 'Bangunan Baru');
body.append('category_name', 'Jasa');
body.append('accept_cash', '1');
body.append('accept_debit_card', '1');
body.append('accept_credit_card', '1');
body.append('photo_1', document.querySelector('input[name="photo_1"]').files[0]);
body.append('photo_2', document.querySelector('input[name="photo_2"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "data berhasil didapatkan",
"data": [data]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Add Outlet Media.
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/outlet/addoutletmedia" \
--header "Authorization: Bearer {token}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "outlet_id=22"\
--form "file=@/tmp/phpdViDue" const url = new URL(
"https://merchant.lokalink.id/api/v1/outlet/addoutletmedia"
);
const headers = {
"Authorization": "Bearer {token}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('outlet_id', '22');
body.append('file', document.querySelector('input[name="file"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "Images outlet submitted, please wait for approval",
"data": [data]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Edit Outlet.
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/outlet/editoutlet" \
--header "Authorization: Bearer {token}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "business_name=Toko"\
--form "business_description=Toko"\
--form "category=FnB"\
--form "outlet_uuid=3904-394as-39040"\
--form "cash=1"\
--form "debit_card=1"\
--form "credit_card=1"\
--form "address=Jl. Raya No. 1"\
--form "building_name=Bangunan Baru"\
--form "phone=08123456789"\
--form "city=12"\
--form "zipcode=12345"\
--form "latitude=-6.2088"\
--form "longitude=106.8456"\
--form "schedule_open={"senin": "08:00-17:00","selasa": "08:00-17:00","rabu": "08:00-17:00","kamis": "08:00-17:00","jumat": "08:00-17:00","sabtu": "08:00-17:00","minggu": "08:00-17:00"}"\
--form "website=https://outlet.com"\
--form "facebook=https://facebook.com/outlet"\
--form "twitter=https://twitter.com/outlet"\
--form "instagram=https://instagram.com/outlet"\
--form "whatsapp=08123456789"\
--form "logo=@/tmp/phpajIunh" \
--form "front_photo=@/tmp/phpLvsqjd" const url = new URL(
"https://merchant.lokalink.id/api/v1/outlet/editoutlet"
);
const headers = {
"Authorization": "Bearer {token}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('business_name', 'Toko');
body.append('business_description', 'Toko');
body.append('category', 'FnB');
body.append('outlet_uuid', '3904-394as-39040');
body.append('cash', '1');
body.append('debit_card', '1');
body.append('credit_card', '1');
body.append('address', 'Jl. Raya No. 1');
body.append('building_name', 'Bangunan Baru');
body.append('phone', '08123456789');
body.append('city', '12');
body.append('zipcode', '12345');
body.append('latitude', '-6.2088');
body.append('longitude', '106.8456');
body.append('schedule_open', '{"senin": "08:00-17:00","selasa": "08:00-17:00","rabu": "08:00-17:00","kamis": "08:00-17:00","jumat": "08:00-17:00","sabtu": "08:00-17:00","minggu": "08:00-17:00"}');
body.append('website', 'https://outlet.com');
body.append('facebook', 'https://facebook.com/outlet');
body.append('twitter', 'https://twitter.com/outlet');
body.append('instagram', 'https://instagram.com/outlet');
body.append('whatsapp', '08123456789');
body.append('logo', document.querySelector('input[name="logo"]').files[0]);
body.append('front_photo', document.querySelector('input[name="front_photo"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "data berhasil didapatkan",
"data": [data]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Request OTP Remove.
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/outlet/OTPremoveoutlet" \
--header "Authorization: Bearer {token}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://merchant.lokalink.id/api/v1/outlet/OTPremoveoutlet"
);
const headers = {
"Authorization": "Bearer {token}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "data berhasil didapatkan",
"data": [data]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete My Outlet.
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/outlet/removeoutlet" \
--header "Authorization: Bearer {token}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"otp\": \"3904\",
\"reason\": \"architecto\",
\"outlet_uuid\": \"3904-394as-39040\"
}"
const url = new URL(
"https://merchant.lokalink.id/api/v1/outlet/removeoutlet"
);
const headers = {
"Authorization": "Bearer {token}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"otp": "3904",
"reason": "architecto",
"outlet_uuid": "3904-394as-39040"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "data berhasil didapatkan",
"data": [data]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Most View Outlet
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/outlet/mostview" \
--header "Authorization: Bearer {token}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://merchant.lokalink.id/api/v1/outlet/mostview"
);
const headers = {
"Authorization": "Bearer {token}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "File berhasil di submit",
"data": [data]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
List Media Outlet
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/outlet/detail/review/photos" \
--header "Authorization: Bearer {token}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"uuid\": \"f3b80872-b9cc-42d3-9ef3-6363a2e7dd7f\"
}"
const url = new URL(
"https://merchant.lokalink.id/api/v1/outlet/detail/review/photos"
);
const headers = {
"Authorization": "Bearer {token}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"uuid": "f3b80872-b9cc-42d3-9ef3-6363a2e7dd7f"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "File berhasil di submit",
"data": [data]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Profile
My File
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/auth/myfile" \
--header "Authorization: Bearer {access_token}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://merchant.lokalink.id/api/v1/auth/myfile"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "File berhasil di submit",
"data": [data]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Request Delete
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/auth/request/delete" \
--header "Authorization: Bearer {access_token}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"reason\": \"architecto\"
}"
const url = new URL(
"https://merchant.lokalink.id/api/v1/auth/request/delete"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"reason": "architecto"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "File berhasil di submit",
"data": [data]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Change Password
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/auth/change-password" \
--header "Authorization: Bearer {access_token}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"password\": \"Secret123456\",
\"cpassword\": \"Secret123456\"
}"
const url = new URL(
"https://merchant.lokalink.id/api/v1/auth/change-password"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"password": "Secret123456",
"cpassword": "Secret123456"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "Password berhasil di update",
"data": [data]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
My Profile
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/profile/detail" \
--header "Authorization: Bearer {access_token}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://merchant.lokalink.id/api/v1/profile/detail"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "File berhasil di submit",
"data": [data]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Avatar
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/profile/photo" \
--header "Authorization: Bearer {access_token}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "path_image=@/tmp/phpyR14cd" const url = new URL(
"https://merchant.lokalink.id/api/v1/profile/photo"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('path_image', document.querySelector('input[name="path_image"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "File berhasil di submit",
"data": [data]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Edit
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/profile/edit" \
--header "Authorization: Bearer {access_token}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"full_name\": \"architecto\",
\"position\": \"architecto\",
\"username\": \"architecto\",
\"phone\": \"architecto\",
\"company_name\": \"architecto\",
\"business_number\": \"architecto\",
\"company_email\": \"[email protected]\",
\"email\": \"[email protected]\"
}"
const url = new URL(
"https://merchant.lokalink.id/api/v1/profile/edit"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"full_name": "architecto",
"position": "architecto",
"username": "architecto",
"phone": "architecto",
"company_name": "architecto",
"business_number": "architecto",
"company_email": "[email protected]",
"email": "[email protected]"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "File berhasil di submit",
"data": [data]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Staff
List
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/staff/list" \
--header "Authorization: Bearer {access_token}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://merchant.lokalink.id/api/v1/staff/list"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "Data berhasil di submit",
"data": [
{
"message": 'Data outlet terhapus',
"created_at": '2021-12-01 12:00:00',
"updated_at": '2021-12-01 12:00:00'
}
]
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Outlet Detail
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/staff/outlet/detail" \
--header "Authorization: Bearer {access_token}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"outlet_uuid\": \"123e4567-e89b-12d3-a456-426614174000\"
}"
const url = new URL(
"https://merchant.lokalink.id/api/v1/staff/outlet/detail"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"outlet_uuid": "123e4567-e89b-12d3-a456-426614174000"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "Data berhasil di submit",
"data": [
{
"message": 'Data outlet terhapus',
"created_at": '2021-12-01 12:00:00',
"updated_at": '2021-12-01 12:00:00'
}
]
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
List by Outlet
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/staff/listbyOutlet" \
--header "Authorization: Bearer {access_token}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"outlet_uuid\": \"123e4567-e89b-12d3-a456-426614174000\"
}"
const url = new URL(
"https://merchant.lokalink.id/api/v1/staff/listbyOutlet"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"outlet_uuid": "123e4567-e89b-12d3-a456-426614174000"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "Data berhasil di submit",
"data": [
{
"message": 'Data outlet terhapus',
"created_at": '2021-12-01 12:00:00',
"updated_at": '2021-12-01 12:00:00'
}
]
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/staff/create" \
--header "Authorization: Bearer {access_token}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"outlet_uuid\": \"123e4567-e89b-12d3-a456-426614174000\",
\"name\": \"Debian\",
\"phone\": \"08563437495\",
\"pin\": \"1234\",
\"jabatan\": \"Staff\",
\"gender\": true
}"
const url = new URL(
"https://merchant.lokalink.id/api/v1/staff/create"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"outlet_uuid": "123e4567-e89b-12d3-a456-426614174000",
"name": "Debian",
"phone": "08563437495",
"pin": "1234",
"jabatan": "Staff",
"gender": true
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "Data berhasil di submit",
"data": [
{
"message": 'Data outlet terhapus',
"created_at": '2021-12-01 12:00:00',
"updated_at": '2021-12-01 12:00:00'
}
]
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/staff/update" \
--header "Authorization: Bearer {access_token}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"staff_uuid\": \"123e4567-e89b-12d3-a456-426614174000\",
\"name\": \"Debian\",
\"jabatan\": \"Manager\",
\"phone\": \"08563437495\",
\"gender\": true
}"
const url = new URL(
"https://merchant.lokalink.id/api/v1/staff/update"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"staff_uuid": "123e4567-e89b-12d3-a456-426614174000",
"name": "Debian",
"jabatan": "Manager",
"phone": "08563437495",
"gender": true
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "Data berhasil di submit",
"data": {
"message": 'Data outlet terhapus',
"created_at": '2021-12-01 12:00:00',
"updated_at": '2021-12-01 12:00:00'
}
}
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/staff/delete" \
--header "Authorization: Bearer {access_token}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"staff_uuid\": \"123e4567-e89b-12d3-a456-426614174000\"
}"
const url = new URL(
"https://merchant.lokalink.id/api/v1/staff/delete"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"staff_uuid": "123e4567-e89b-12d3-a456-426614174000"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "Data berhasil di submit",
"data": [
{
"message": 'Data outlet terhapus',
"created_at": '2021-12-01 12:00:00',
"updated_at": '2021-12-01 12:00:00'
}
]
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Voucher Claim
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/staff/voucher/claim" \
--header "Authorization: Bearer {access_token}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"status\": \"claimed\"
}"
const url = new URL(
"https://merchant.lokalink.id/api/v1/staff/voucher/claim"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"status": "claimed"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "Voucher Claim berhasil didapatkan",
"data": {
"title": "Voucher A",
"voucher_type": "diskon",
"diskon_persen": 10,
"price_awal": "200000",
"price_akhir": "180000",
"is_enabled": false,
}
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Subscription
Get Midtrans Key
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/subscription/midtrans/key" \
--header "Authorization: Bearer {access_token}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://merchant.lokalink.id/api/v1/subscription/midtrans/key"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "Data berhasil di submit",
"data": [
{
"message": 'Data outlet terhapus',
"created_at": '2021-12-01 12:00:00',
"updated_at": '2021-12-01 12:00:00'
}
]
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get Master Plan
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/subscription/master" \
--header "Authorization: Bearer {access_token}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"type\": \"subscription\"
}"
const url = new URL(
"https://merchant.lokalink.id/api/v1/subscription/master"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"type": "subscription"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "Data berhasil di submit",
"data": [
{
"message": 'Data outlet terhapus',
"created_at": '2021-12-01 12:00:00',
"updated_at": '2021-12-01 12:00:00'
}
]
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Sign Up Enhance
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/subscription/subscription/create" \
--header "Authorization: Bearer {access_token}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"outlet_uuids\": [
\"123e4567-e89b-12d3-a456-426614174000\",
\"123e4567-e89b-12d3-a456-426614175000\"
],
\"type\": \"subscription\",
\"plan_id\": \"1\",
\"start_date\": \"2026-06-01\"
}"
const url = new URL(
"https://merchant.lokalink.id/api/v1/subscription/subscription/create"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"outlet_uuids": [
"123e4567-e89b-12d3-a456-426614174000",
"123e4567-e89b-12d3-a456-426614175000"
],
"type": "subscription",
"plan_id": "1",
"start_date": "2026-06-01"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "Data berhasil di submit",
"data": [
{
"message": 'Data submit berhasil',
"created_at": '2021-12-01 12:00:00',
"updated_at": '2021-12-01 12:00:00'
}
]
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Recreate Subscription
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/subscription/recreate" \
--header "Authorization: Bearer {access_token}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"enhance_uuids\": null,
\"start_date\": \"2026-05-04\"
}"
const url = new URL(
"https://merchant.lokalink.id/api/v1/subscription/recreate"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"enhance_uuids": null,
"start_date": "2026-05-04"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "Subscription berhasil di-recreate",
"data": [
{
"message": 'Data submit berhasil',
"created_at": '2021-12-01 12:00:00',
"updated_at": '2021-12-01 12:00:00'
}
]
}
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Billing History
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/subscription/billing" \
--header "Authorization: Bearer {access_token}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"type\": \"architecto\",
\"status\": \"architecto\"
}"
const url = new URL(
"https://merchant.lokalink.id/api/v1/subscription/billing"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"type": "architecto",
"status": "architecto"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "Data berhasil di submit",
"data": [
{
"message": 'Data outlet terhapus',
"created_at": '2021-12-01 12:00:00',
"updated_at": '2021-12-01 12:00:00'
}
]
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Billing Detail
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/subscription/billing/detail" \
--header "Authorization: Bearer {access_token}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"billing_uuid\": \"123e4567-e89b-12d3-a456-426614174000\",
\"snap_token\": \"mid-123e4567-e89b-12d3-a456-426614174000\"
}"
const url = new URL(
"https://merchant.lokalink.id/api/v1/subscription/billing/detail"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"billing_uuid": "123e4567-e89b-12d3-a456-426614174000",
"snap_token": "mid-123e4567-e89b-12d3-a456-426614174000"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "Data berhasil di submit",
"data": [
{
"message": 'Data outlet terhapus',
"created_at": '2021-12-01 12:00:00',
"updated_at": '2021-12-01 12:00:00'
}
]
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Validate Payment
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/subscription/billing/payment" \
--header "Authorization: Bearer {access_token}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"billing_uuid\": \"123e4567-e89b-12d3-a456-426614174000\"
}"
const url = new URL(
"https://merchant.lokalink.id/api/v1/subscription/billing/payment"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"billing_uuid": "123e4567-e89b-12d3-a456-426614174000"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "Data berhasil di submit",
"data": [
{
"message": 'Data berhasil di submit',
"created_at": '2021-12-01 12:00:00',
"updated_at": '2021-12-01 12:00:00'
}
]
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Transfer Data
Request Code
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/transfer/request" \
--header "Authorization: Bearer {access_token}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"reason\": \"ganti pengurus\",
\"outlet_uuids\": [
\"123e4567-e89b-12d3-a456-426614174000\",
\"123e4567-e89b-12d3-a456-426614175000\"
]
}"
const url = new URL(
"https://merchant.lokalink.id/api/v1/transfer/request"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"reason": "ganti pengurus",
"outlet_uuids": [
"123e4567-e89b-12d3-a456-426614174000",
"123e4567-e89b-12d3-a456-426614175000"
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "File berhasil di submit",
"data": [data]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Validate Code
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/transfer/validate" \
--header "Authorization: Bearer {access_token}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"kode_transfer\": \"1234567890\"
}"
const url = new URL(
"https://merchant.lokalink.id/api/v1/transfer/validate"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"kode_transfer": "1234567890"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "File berhasil di submit",
"data": [data]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
History
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/transfer/history" \
--header "Authorization: Bearer {access_token}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://merchant.lokalink.id/api/v1/transfer/history"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "File berhasil di submit",
"data": [data]
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Voucher
SignUp
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/voucher/signup" \
--header "Authorization: Bearer {access_token}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "outlet_uuids[]=123e4567-e89b-12d3-a456-426614174000"\
--form "plan_id=3333-e89b-12d3-a456-426614174000"\
--form "type_voucher=free/diskon"\
--form "diskon_persen=10"\
--form "title=Voucher Diskon Spesial"\
--form "kuota=99"\
--form "price_awal=200000"\
--form "price_akhir=150000"\
--form "deskripsi=Deskripsi Voucher"\
--form "tnc=Term and Condition Voucher"\
--form "contact_person=08123456789"\
--form "start_date=2052-06-24"\
--form "end_date=2026-06-01T16:45:03"\
--form "banner_image=@/tmp/phpyNVlLd" const url = new URL(
"https://merchant.lokalink.id/api/v1/voucher/signup"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('outlet_uuids[]', '123e4567-e89b-12d3-a456-426614174000');
body.append('plan_id', '3333-e89b-12d3-a456-426614174000');
body.append('type_voucher', 'free/diskon');
body.append('diskon_persen', '10');
body.append('title', 'Voucher Diskon Spesial');
body.append('kuota', '99');
body.append('price_awal', '200000');
body.append('price_akhir', '150000');
body.append('deskripsi', 'Deskripsi Voucher');
body.append('tnc', 'Term and Condition Voucher');
body.append('contact_person', '08123456789');
body.append('start_date', '2052-06-24');
body.append('end_date', '2026-06-01T16:45:03');
body.append('banner_image', document.querySelector('input[name="banner_image"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "Data berhasil di submit",
"data": [
{
"message": 'Data submit berhasil',
"created_at": '2021-12-01 12:00:00',
"updated_at": '2021-12-01 12:00:00'
}
]
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
My Voucher
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/voucher/history" \
--header "Authorization: Bearer {access_token}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://merchant.lokalink.id/api/v1/voucher/history"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "Data berhasil di submit",
"data": [
{
"voucher_list": [
{
"title": "Voucher A",
"voucher_type": "diskon",
"diskon_persen": 10,
"price_awal": "200000",
"price_akhir": "180000",
}
]
}
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Detail Voucher
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/voucher/detail" \
--header "Authorization: Bearer {access_token}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"voucher_uuid\": \"123e4567-e89b-12d3-a456-426614174000\"
}"
const url = new URL(
"https://merchant.lokalink.id/api/v1/voucher/detail"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"voucher_uuid": "123e4567-e89b-12d3-a456-426614174000"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "Data berhasil di submit",
"data": {
"title": "Voucher A",
"voucher_type": "diskon",
"diskon_persen": 10,
"price_awal": "200000",
"price_akhir": "180000",
}
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Activate Voucher
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/voucher/activate" \
--header "Authorization: Bearer {access_token}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"voucher_uuid\": \"123e4567-e89b-12d3-a456-426614174000\",
\"start_date\": \"architecto\",
\"end_date\": \"architecto\"
}"
const url = new URL(
"https://merchant.lokalink.id/api/v1/voucher/activate"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"voucher_uuid": "123e4567-e89b-12d3-a456-426614174000",
"start_date": "architecto",
"end_date": "architecto"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "Voucher berhasil diaktifkan",
"data": {
"title": "Voucher A",
"voucher_type": "diskon",
"diskon_persen": 10,
"price_awal": "200000",
"price_akhir": "180000",
"is_enabled": true,
}
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Stop Voucher
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/voucher/stop" \
--header "Authorization: Bearer {access_token}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"voucher_uuid\": \"123e4567-e89b-12d3-a456-426614174000\"
}"
const url = new URL(
"https://merchant.lokalink.id/api/v1/voucher/stop"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"voucher_uuid": "123e4567-e89b-12d3-a456-426614174000"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "Voucher berhasil dihentikan",
"data": {
"title": "Voucher A",
"voucher_type": "diskon",
"diskon_persen": 10,
"price_awal": "200000",
"price_akhir": "180000",
"is_enabled": false,
}
}
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Recreate
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/voucher/recreate" \
--header "Authorization: Bearer {access_token}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"voucher_uuids\": \"123e4567-e89b-12d3-a456-426614174000\"
}"
const url = new URL(
"https://merchant.lokalink.id/api/v1/voucher/recreate"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"voucher_uuids": "123e4567-e89b-12d3-a456-426614174000"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "Data berhasil di submit",
"data": [
{
"message": 'Data submit berhasil',
"created_at": '2021-12-01 12:00:00',
"updated_at": '2021-12-01 12:00:00'
}
]
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Edit Voucher
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/voucher/edit" \
--header "Authorization: Bearer {access_token}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "voucher_uuid=123e4567-e89b-12d3-a456-426614174000"\
--form "title=Voucher A"\
--form "voucher_type=diskon"\
--form "diskon_persen=10"\
--form "price_awal=200000"\
--form "price_akhir=180000"\
--form "quota=100"\
--form "details_promotion=Details promotion"\
--form "terms_conditions=Terms conditions"\
--form "contact_person=Contact person"\
--form "banner_image=@/tmp/phpwJ4Zjd" const url = new URL(
"https://merchant.lokalink.id/api/v1/voucher/edit"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('voucher_uuid', '123e4567-e89b-12d3-a456-426614174000');
body.append('title', 'Voucher A');
body.append('voucher_type', 'diskon');
body.append('diskon_persen', '10');
body.append('price_awal', '200000');
body.append('price_akhir', '180000');
body.append('quota', '100');
body.append('details_promotion', 'Details promotion');
body.append('terms_conditions', 'Terms conditions');
body.append('contact_person', 'Contact person');
body.append('banner_image', document.querySelector('input[name="banner_image"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "Data berhasil di submit",
"data": {
"title": "Voucher A",
"voucher_type": "diskon",
"diskon_persen": 10,
"price_awal": "200000",
"price_akhir": "180000",
}
}
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Edit Voucher Images
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/voucher/update/image" \
--header "Authorization: Bearer {access_token}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "voucher_uuid=123e4567-e89b-12d3-a456-426614174000"\
--form "type=1"\
--form "voucher_image=@/tmp/phpksen1f" const url = new URL(
"https://merchant.lokalink.id/api/v1/voucher/update/image"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('voucher_uuid', '123e4567-e89b-12d3-a456-426614174000');
body.append('type', '1');
body.append('voucher_image', document.querySelector('input[name="voucher_image"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Example response (200):
{
"status": "success",
"message": "Images updated successfully",
"data": {
"voucher_uuid": "123e4567-e89b-12d3-a456-426614174000",
"voucher_image_1": "path/to/image1.jpg",
}
}
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Voucher Claim
Redeem Voucher
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/voucher/redeem" \
--header "Authorization: Bearer {access_token}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"code\": \"L12345678\"
}"
const url = new URL(
"https://merchant.lokalink.id/api/v1/voucher/redeem"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"code": "L12345678"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "Data berhasil di submit",
"data": [
{
"voucher_title": "Voucher A",
"claimed_at": "2024-01-01 12:00:00",
"status": "claimed"
}
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Redeem History
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/voucher/redeem/history" \
--header "Authorization: Bearer {access_token}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"keyword\": \"Nama Voucher\"
}"
const url = new URL(
"https://merchant.lokalink.id/api/v1/voucher/redeem/history"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"keyword": "Nama Voucher"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "Data berhasil di submit",
"data": [
{
"voucher_title": "Voucher A",
"claimed_at": "2024-01-01 12:00:00",
"status": "claimed"
}
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Redeem Detail
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/voucher/redeem/detail" \
--header "Authorization: Bearer {access_token}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"code\": \"L90099090\"
}"
const url = new URL(
"https://merchant.lokalink.id/api/v1/voucher/redeem/detail"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"code": "L90099090"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "Data berhasil di submit",
"data": [
{
"voucher_title": "Voucher A",
"claimed_at": "2024-01-01 12:00:00",
"status": "claimed"
}
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Redeem Reject
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/voucher/redeem/reject" \
--header "Authorization: Bearer {access_token}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"code\": \"L90099090\"
}"
const url = new URL(
"https://merchant.lokalink.id/api/v1/voucher/redeem/reject"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"code": "L90099090"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "Voucher claim berhasil di-reject",
"data": {
"id": 1,
"code": "L90099090",
"status": "rejected",
"staff_id": 1,
"updated_at": "2024-01-01 12:00:00"
}
}
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Redeem Logs
Example request:
curl --request POST \
"https://merchant.lokalink.id/api/v1/voucher/redeem/logs" \
--header "Authorization: Bearer {access_token}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"voucher_uuids\": [
\"123e4567-e89b-12d3-a456-426614174000\"
]
}"
const url = new URL(
"https://merchant.lokalink.id/api/v1/voucher/redeem/logs"
);
const headers = {
"Authorization": "Bearer {access_token}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"voucher_uuids": [
"123e4567-e89b-12d3-a456-426614174000"
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"status": success,
"message": "Data berhasil diambil",
"data": [
{
"id": 1,
"uuid": "claim-uuid",
"code": "L90099090",
"voucher": {
"uuid": "voucher-uuid",
"title": "Voucher A",
"voucher_type": "diskon",
"diskon_persen": 20,
"quota": 100
},
"redeemBy": {
"first_name": "John",
"last_name": "Doe",
"username": "08123456789"
},
"staffBy": {
"id": 1,
"name": "Staff Name",
"jabatan": "Kasir"
},
"claimed_at": "2024-01-01 12:00:00",
"status": "claimed"
}
]
}
Example response (401):
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.