MENU navbar-image

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());

Request      

POST api/v1/donate/amount-options

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

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());

Request      

POST api/v1/donate/currency-options

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

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());

Request      

POST api/v1/donate/type-options

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

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());

Request      

POST api/v1/donate/organization-options

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

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());

Request      

POST api/v1/donate/fund-options

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

type_id   integer   

Example: 15

org_id   integer   

Example: 6

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());

Request      

POST api/v1/donate/mobile-country-code-options

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

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());

Request      

POST api/v1/donate/make-payment

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

name   string  optional  

Example: ullam

phone   string  optional  

Example: ad

email   string  optional  

Example: sherwood.green@example.com

currency   string  optional  

Example: ullam

amount   numeric  optional  

Example: cumque

amount_id   integer  optional  

Example: 12

org_id   integer  optional  

Example: 7

type_id   integer  optional  

Example: 14

fund_id   integer  optional  

Example: 16

callback   string  optional  

Example: nemo

gateway   string   

Example: distinctio

mobile_country_code_id   integer   

Example: 2

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());

Request      

POST api/v1/donate/resume-payment

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

trx   string  optional  

Example: similique

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());

Request      

POST api/v1/donate/payment-response/{trx}

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

URL Parameters

trx   string   

Example: assumenda

[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());

Request      

POST api/v1/admin/login

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

username   string   

Example: magni

password   string   

Example: i"Kcnm5?C_YZ.s0r

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());

Request      

POST api/v1/admin/refresh

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

refresh_token   string   

Example: voluptatum

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());

Request      

POST api/v1/admin/logout

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

[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());

Request      

POST api/v1/admin/profile

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

[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());

Request      

POST api/v1/send-otp-for-login

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

username   string   

Example: aut

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());

Request      

POST api/v1/resend-otp-for-login

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

username   string   

Example: vel

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());

Request      

POST api/v1/login-with-otp

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

username   string  optional  

Example: quae

code   string  optional  

Example: ea

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());

Request      

POST api/v1/login

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

username   string   

Example: ea

password   string   

Example: //!g;~7WY6TnL|<%

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());

Request      

POST api/v1/refresh

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

refresh_token   string   

Example: blanditiis

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());

Request      

POST api/v1/logout

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

[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());

Request      

POST api/v1/profile

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

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());

Request      

POST api/v1/change-password

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

password   string  optional  

Example: Xe(_plZt6

password_confirmation   string  optional  

Example: magni

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());

Request      

POST api/v1/donation/all

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

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());

Request      

POST api/v1/donation/view

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

id   integer  optional  

Example: 14

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());

Request      

POST api/v1/donation/download

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

id   integer  optional  

Example: 16

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());

Request      

POST api/v1/donation/make-payment

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

id   integer  optional  

Example: 5