Introduction
This documentation aims to provide all the information you need to work with our API.
Authenticating requests
This API is not authenticated.
Donation
APIs for Donation
Amount Options
Example request:
curl --request POST \
"https://donatebackend.attaqwamasjidsylhet.com/api/v1/donate/amount-options" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://donatebackend.attaqwamasjidsylhet.com/api/v1/donate/amount-options"
);
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.
Currency Options
Example request:
curl --request POST \
"https://donatebackend.attaqwamasjidsylhet.com/api/v1/donate/currency-options" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://donatebackend.attaqwamasjidsylhet.com/api/v1/donate/currency-options"
);
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.
Type Options
Example request:
curl --request POST \
"https://donatebackend.attaqwamasjidsylhet.com/api/v1/donate/type-options" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://donatebackend.attaqwamasjidsylhet.com/api/v1/donate/type-options"
);
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.
Organization Options
Example request:
curl --request POST \
"https://donatebackend.attaqwamasjidsylhet.com/api/v1/donate/organization-options" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://donatebackend.attaqwamasjidsylhet.com/api/v1/donate/organization-options"
);
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.
Fund Options
Example request:
curl --request POST \
"https://donatebackend.attaqwamasjidsylhet.com/api/v1/donate/fund-options" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"type_id\": 15,
\"org_id\": 6
}"
const url = new URL(
"https://donatebackend.attaqwamasjidsylhet.com/api/v1/donate/fund-options"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"type_id": 15,
"org_id": 6
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).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.
Mobile Country Code Options
Example request:
curl --request POST \
"https://donatebackend.attaqwamasjidsylhet.com/api/v1/donate/mobile-country-code-options" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://donatebackend.attaqwamasjidsylhet.com/api/v1/donate/mobile-country-code-options"
);
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.
Make Payment
Example request:
curl --request POST \
"https://donatebackend.attaqwamasjidsylhet.com/api/v1/donate/make-payment" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"ullam\",
\"phone\": \"ad\",
\"email\": \"sherwood.green@example.com\",
\"currency\": \"ullam\",
\"amount\": \"cumque\",
\"amount_id\": 12,
\"org_id\": 7,
\"type_id\": 14,
\"fund_id\": 16,
\"callback\": \"nemo\",
\"gateway\": \"distinctio\",
\"mobile_country_code_id\": 2
}"
const url = new URL(
"https://donatebackend.attaqwamasjidsylhet.com/api/v1/donate/make-payment"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "ullam",
"phone": "ad",
"email": "sherwood.green@example.com",
"currency": "ullam",
"amount": "cumque",
"amount_id": 12,
"org_id": 7,
"type_id": 14,
"fund_id": 16,
"callback": "nemo",
"gateway": "distinctio",
"mobile_country_code_id": 2
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).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.
Resume Payment
Example request:
curl --request POST \
"https://donatebackend.attaqwamasjidsylhet.com/api/v1/donate/resume-payment" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"trx\": \"similique\"
}"
const url = new URL(
"https://donatebackend.attaqwamasjidsylhet.com/api/v1/donate/resume-payment"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"trx": "similique"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).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.
Payment Response
Example request:
curl --request POST \
"https://donatebackend.attaqwamasjidsylhet.com/api/v1/donate/payment-response/assumenda" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://donatebackend.attaqwamasjidsylhet.com/api/v1/donate/payment-response/assumenda"
);
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.
[Admin] - Authorize
APIs for Authorize
Login With Username
Example request:
curl --request POST \
"https://donatebackend.attaqwamasjidsylhet.com/api/v1/admin/login" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"username\": \"magni\",
\"password\": \"i\\\"Kcnm5?C_YZ.s0r\"
}"
const url = new URL(
"https://donatebackend.attaqwamasjidsylhet.com/api/v1/admin/login"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"username": "magni",
"password": "i\"Kcnm5?C_YZ.s0r"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).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.
Refresh Token
Example request:
curl --request POST \
"https://donatebackend.attaqwamasjidsylhet.com/api/v1/admin/refresh" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"refresh_token\": \"voluptatum\"
}"
const url = new URL(
"https://donatebackend.attaqwamasjidsylhet.com/api/v1/admin/refresh"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"refresh_token": "voluptatum"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).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.
Logout
Example request:
curl --request POST \
"https://donatebackend.attaqwamasjidsylhet.com/api/v1/admin/logout" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://donatebackend.attaqwamasjidsylhet.com/api/v1/admin/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.
[Admin] - MY Account
APIs for MY Account
Profile
Example request:
curl --request POST \
"https://donatebackend.attaqwamasjidsylhet.com/api/v1/admin/profile" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://donatebackend.attaqwamasjidsylhet.com/api/v1/admin/profile"
);
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.
[User] - Authorize
APIs for Authorize
Send OTP for Login
Example request:
curl --request POST \
"https://donatebackend.attaqwamasjidsylhet.com/api/v1/send-otp-for-login" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"username\": \"aut\"
}"
const url = new URL(
"https://donatebackend.attaqwamasjidsylhet.com/api/v1/send-otp-for-login"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"username": "aut"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).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.
Re Send OTP for Login
Example request:
curl --request POST \
"https://donatebackend.attaqwamasjidsylhet.com/api/v1/resend-otp-for-login" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"username\": \"vel\"
}"
const url = new URL(
"https://donatebackend.attaqwamasjidsylhet.com/api/v1/resend-otp-for-login"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"username": "vel"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).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.
Login With OTP
Example request:
curl --request POST \
"https://donatebackend.attaqwamasjidsylhet.com/api/v1/login-with-otp" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"username\": \"quae\",
\"code\": \"ea\"
}"
const url = new URL(
"https://donatebackend.attaqwamasjidsylhet.com/api/v1/login-with-otp"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"username": "quae",
"code": "ea"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).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.
Login With Username
Example request:
curl --request POST \
"https://donatebackend.attaqwamasjidsylhet.com/api/v1/login" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"username\": \"ea\",
\"password\": \"\\/\\/!g;~7WY6TnL|<%\"
}"
const url = new URL(
"https://donatebackend.attaqwamasjidsylhet.com/api/v1/login"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"username": "ea",
"password": "\/\/!g;~7WY6TnL|<%"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).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.
Refresh Token
Example request:
curl --request POST \
"https://donatebackend.attaqwamasjidsylhet.com/api/v1/refresh" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"refresh_token\": \"blanditiis\"
}"
const url = new URL(
"https://donatebackend.attaqwamasjidsylhet.com/api/v1/refresh"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"refresh_token": "blanditiis"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).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.
Logout
Example request:
curl --request POST \
"https://donatebackend.attaqwamasjidsylhet.com/api/v1/logout" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://donatebackend.attaqwamasjidsylhet.com/api/v1/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.
[User] - MY Account
APIs for MY Account
Profile
Example request:
curl --request POST \
"https://donatebackend.attaqwamasjidsylhet.com/api/v1/profile" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://donatebackend.attaqwamasjidsylhet.com/api/v1/profile"
);
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.
Change Password
Example request:
curl --request POST \
"https://donatebackend.attaqwamasjidsylhet.com/api/v1/change-password" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"password\": \"Xe(_plZt6\",
\"password_confirmation\": \"magni\"
}"
const url = new URL(
"https://donatebackend.attaqwamasjidsylhet.com/api/v1/change-password"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"password": "Xe(_plZt6",
"password_confirmation": "magni"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).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.
Get Donations
Example request:
curl --request POST \
"https://donatebackend.attaqwamasjidsylhet.com/api/v1/donation/all" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://donatebackend.attaqwamasjidsylhet.com/api/v1/donation/all"
);
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.
View Donations
Example request:
curl --request POST \
"https://donatebackend.attaqwamasjidsylhet.com/api/v1/donation/view" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"id\": 14
}"
const url = new URL(
"https://donatebackend.attaqwamasjidsylhet.com/api/v1/donation/view"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"id": 14
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).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.
Download Donations
Example request:
curl --request POST \
"https://donatebackend.attaqwamasjidsylhet.com/api/v1/donation/download" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"id\": 16
}"
const url = new URL(
"https://donatebackend.attaqwamasjidsylhet.com/api/v1/donation/download"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"id": 16
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).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.
Make Payment
Example request:
curl --request POST \
"https://donatebackend.attaqwamasjidsylhet.com/api/v1/donation/make-payment" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"id\": 5
}"
const url = new URL(
"https://donatebackend.attaqwamasjidsylhet.com/api/v1/donation/make-payment"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"id": 5
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).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.