Introduction
This documentation provides all the information you will need to work with CUPID v2 API. The application is built with Laravel 9 PHP framework & is systematically versioned (SEMVER) to replace CUPID API v1.
This documentation aims to provide all the information you need to work with our API.
Base URL
https://cupidapiv2.smartflowtech.org/
Authenticating requests
This API is authenticated by sending a Authorization header with the value "Bearer {YOUR_AUTH_KEY}".
All authenticated endpoints are marked with a requires authentication badge in the documentation below.
You can retrieve your access_token by logging in using the Login a user endpoint
ACL Endpoints
Display a listing of the roles or filter by query
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/acl/roles?term=asperiores" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/acl/roles"
);
const params = {
"term": "asperiores",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: cupid_session=jRQvNpdVM8C2kLgteNgWHLYgKTUyF8GCRvp8ibpt; expires=Thu, 28 Aug 2025 13:25:18 GMT; Max-Age=7200; path=/; httponly; samesite=lax
{
"message": "The route api/acl/roles could not be found."
}
Received response:
Request failed with error:
Add a new role
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/acl/roles" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"in\",
\"permissions\": [
14
]
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/acl/roles"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "in",
"permissions": [
14
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"guard_name": "api",
"permissions": []
}
}
Received response:
Request failed with error:
Update a specific role
requires authentication
Example request:
curl --request PUT \
"https://cupidapiv2.smartflowtech.com/api/acl/roles/18" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"est\",
\"permissions\": [
5
]
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/acl/roles/18"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "est",
"permissions": [
5
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"guard_name": "api",
"permissions": []
}
}
Received response:
Request failed with error:
Delete a specific role
requires authentication
Example request:
curl --request DELETE \
"https://cupidapiv2.smartflowtech.com/api/acl/roles/11" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/acl/roles/11"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"guard_name": "api",
"permissions": []
}
}
Received response:
Request failed with error:
Display a listing of the permission or filter by query
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/acl/permissions?term=dicta" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/acl/permissions"
);
const params = {
"term": "dicta",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: cupid_session=rLbmMefIyMqHRUzPJNQClKO2p6gCbritpkcQxaeI; expires=Thu, 28 Aug 2025 13:25:18 GMT; Max-Age=7200; path=/; httponly; samesite=lax
{
"message": "The route api/acl/permissions could not be found."
}
Received response:
Request failed with error:
Add a new permission
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/acl/permissions" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"possimus\",
\"module\": \"UserWallet\",
\"guard_name\": \"api\"
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/acl/permissions"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "possimus",
"module": "UserWallet",
"guard_name": "api"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"guard_name": "api"
}
}
Received response:
Request failed with error:
Update a specific permission
requires authentication
Example request:
curl --request PUT \
"https://cupidapiv2.smartflowtech.com/api/acl/permissions/8" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"atque\",
\"module\": \"CostCenter\",
\"guard_name\": \"api\"
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/acl/permissions/8"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "atque",
"module": "CostCenter",
"guard_name": "api"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"guard_name": "api"
}
}
Received response:
Request failed with error:
Delete a specific permission
requires authentication
Example request:
curl --request DELETE \
"https://cupidapiv2.smartflowtech.com/api/acl/permissions/11" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/acl/permissions/11"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Assign permissions to a user
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/acl/user_assign_permissions?permission_names[]=repellat&email=natus" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"permission_names\": [
\"esse\"
],
\"email\": \"nikolaus.myles@example.org\"
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/acl/user_assign_permissions"
);
const params = {
"permission_names[]": "repellat",
"email": "natus",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"permission_names": [
"esse"
],
"email": "nikolaus.myles@example.org"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Assign roles to a user
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/acl/user_assign_roles?role_names[]=qui&email=explicabo" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"role_names\": [
\"ullam\"
],
\"email\": \"fay.bettye@example.net\"
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/acl/user_assign_roles"
);
const params = {
"role_names[]": "qui",
"email": "explicabo",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"role_names": [
"ullam"
],
"email": "fay.bettye@example.net"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Revoke user roles
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/acl/revoke_user_role?role_names[]=quia&email=expedita" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"role_names\": [
\"nihil\"
],
\"email\": \"kira.beatty@example.net\"
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/acl/revoke_user_role"
);
const params = {
"role_names[]": "quia",
"email": "expedita",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"role_names": [
"nihil"
],
"email": "kira.beatty@example.net"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Revoke user permissions
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/acl/revoke_user_permission?permission_names[]=et&email=qui" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"permission_names\": [
\"voluptatem\"
],
\"email\": \"luz.parisian@example.net\"
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/acl/revoke_user_permission"
);
const params = {
"permission_names[]": "et",
"email": "qui",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"permission_names": [
"voluptatem"
],
"email": "luz.parisian@example.net"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Assign permissions to role
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/acl/assign_permissions_to_role?permission_names[]=ipsum&role=quibusdam" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"role\": \"qui\",
\"permission_names\": [
\"dolore\"
]
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/acl/assign_permissions_to_role"
);
const params = {
"permission_names[]": "ipsum",
"role": "quibusdam",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"role": "qui",
"permission_names": [
"dolore"
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Revoke permissions to role
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/acl/detach_permissions_from_role?permission_names[]=quia&role=esse" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"role\": \"ullam\",
\"permission_names\": [
\"saepe\"
]
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/acl/detach_permissions_from_role"
);
const params = {
"permission_names[]": "quia",
"role": "esse",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"role": "ullam",
"permission_names": [
"saepe"
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Authentication Endpoints
Login a user
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/oauth/login" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "client_id: The application client ID provided by the SSO application" \
--header "client_secret: The application client secret key provided by the SSO application" \
--data "{
\"email\": \"minus\",
\"password\": \"at\"
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/oauth/login"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"client_id": "The application client ID provided by the SSO application",
"client_secret": "The application client secret key provided by the SSO application",
};
let body = {
"email": "minus",
"password": "at"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"message": "Login was successful",
"data": {f
"access_token": "eyJ0eXAiOiJKV1QiLCJh...",
"refresh_token": "eyJ0eXAiOiJKV1QiLCJhbGci...",
"user": {
"id": 1,
"name": "John Doe",
"email": "useremail@example.org",
"other_user_info": "other user information"
},
"vendor": {
"id": 14,
"name": "Company Name Ltd"
}
}
}
Received response:
Request failed with error:
Reset user password
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/reset_password" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"email\": \"culpa\"
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/reset_password"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"email": "culpa"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Register a user for self on-boarding
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/register" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"title\": \"velit\",
\"name\": \"nulla\",
\"email\": \"voluptatem\",
\"username\": \"eum\",
\"phone\": \"facilis\",
\"gender\": \"saepe\",
\"suspended\": \"est\",
\"active\": \"saepe\",
\"is_admin\": \"suscipit\",
\"is_vendor\": \"deserunt\",
\"create_company\": false,
\"create_company_wallet\": false,
\"vendor_id\": 16,
\"vehicles\": [
{
\"cost_center_id\": 19,
\"driver_id\": 11,
\"group_id\": 10,
\"registration_number\": \"lctynyspkkapgpnmgqufcniyvagkbzqjpbddgyhyktdcuqnsojaklwm\",
\"tank_capacity\": 150621.645,
\"auth_type\": \"zmzzrttsrhlkrupkcteuvtmpvifxvkbytawtpbvnhjrbehu\",
\"nfc_tag_id\": 4,
\"tracker_id\": 9,
\"model\": \"tmkcchnpaobawkfnzupmnerrgovfpajqeryirfrvevthbohcaqkzmgnpzbmmwwlqscngnpkkwcwbhprchhhcmtsoyqusgchibkkyoxddpymzarqfglhwinbiujhmlddkjquogsfidmmnpsbjcobhbzemfiqphwwwifdlmkyrciyiikecvvkmzlugfoylyboatcxuvtypiaihvjmhtbdrthkxxcspvjgeaemtkurcobdrcsfagrxhdns\",
\"engine_capacity\": 424.8,
\"fuel_type\": \"dvziiuaglyhftyjwsfjfbbogtnggtgnsjgzrkzjuuowexzspsvukbqvyqofisjjkczrnuzislrbpjmiuveaxvxzjnfylkaccdouakgcvvajdbygskzupzlshuxmoxhdqbfcrzgwcvmkathscrkfpgteppzhrbvgqyysxplgelnlifpzdhoabuqiinqutlripedcqsezqvsyenmpznwlutbrhpcqotqxbwnkudmlpxfrzzlszuntcptdqhkvc\",
\"color\": \"bqjwulqloxaquphaprmbthilugctmzvnanblgyaislpiwdrmlizfnnmngyfm\",
\"brand\": \"uwjgledtccwwzmsevbirxlnznflkcdvxcwkfapofhytmployntdjyluwvpkxzwboglfdxsnhbeoalvndigsprwfwmhtbzlmwjfooyelydupjdcnxiupvftqpgxrgoqvhonrqekbrirtwspgavbkawkqyojusqdvxudtmvosmvhxwmkpyhmgbyckhhttxwprvwpbstdsloqejiutrrbtlmgdh\",
\"reward_type\": \"yzardefpndxagysmecdmqxbkeznxxhclsomcnurvwgelkdgtdgtmrvjrgmkrnrqgiikzhldgjcwt\",
\"active\": false
}
],
\"company_id\": 20
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/register"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"title": "velit",
"name": "nulla",
"email": "voluptatem",
"username": "eum",
"phone": "facilis",
"gender": "saepe",
"suspended": "est",
"active": "saepe",
"is_admin": "suscipit",
"is_vendor": "deserunt",
"create_company": false,
"create_company_wallet": false,
"vendor_id": 16,
"vehicles": [
{
"cost_center_id": 19,
"driver_id": 11,
"group_id": 10,
"registration_number": "lctynyspkkapgpnmgqufcniyvagkbzqjpbddgyhyktdcuqnsojaklwm",
"tank_capacity": 150621.645,
"auth_type": "zmzzrttsrhlkrupkcteuvtmpvifxvkbytawtpbvnhjrbehu",
"nfc_tag_id": 4,
"tracker_id": 9,
"model": "tmkcchnpaobawkfnzupmnerrgovfpajqeryirfrvevthbohcaqkzmgnpzbmmwwlqscngnpkkwcwbhprchhhcmtsoyqusgchibkkyoxddpymzarqfglhwinbiujhmlddkjquogsfidmmnpsbjcobhbzemfiqphwwwifdlmkyrciyiikecvvkmzlugfoylyboatcxuvtypiaihvjmhtbdrthkxxcspvjgeaemtkurcobdrcsfagrxhdns",
"engine_capacity": 424.8,
"fuel_type": "dvziiuaglyhftyjwsfjfbbogtnggtgnsjgzrkzjuuowexzspsvukbqvyqofisjjkczrnuzislrbpjmiuveaxvxzjnfylkaccdouakgcvvajdbygskzupzlshuxmoxhdqbfcrzgwcvmkathscrkfpgteppzhrbvgqyysxplgelnlifpzdhoabuqiinqutlripedcqsezqvsyenmpznwlutbrhpcqotqxbwnkudmlpxfrzzlszuntcptdqhkvc",
"color": "bqjwulqloxaquphaprmbthilugctmzvnanblgyaislpiwdrmlizfnnmngyfm",
"brand": "uwjgledtccwwzmsevbirxlnznflkcdvxcwkfapofhytmployntdjyluwvpkxzwboglfdxsnhbeoalvndigsprwfwmhtbzlmwjfooyelydupjdcnxiupvftqpgxrgoqvhonrqekbrirtwspgavbkawkqyojusqdvxudtmvosmvhxwmkpyhmgbyckhhttxwprvwpbstdsloqejiutrrbtlmgdh",
"reward_type": "yzardefpndxagysmecdmqxbkeznxxhclsomcnurvwgelkdgtdgtmrvjrgmkrnrqgiikzhldgjcwt",
"active": false
}
],
"company_id": 20
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Get Vendor OnBoarding details by hostname
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/get_vendor_on_boarding_details" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/get_vendor_on_boarding_details"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: cupid_session=02oJUUoDUwvstOoqSKxISUSWXHrfvZ8rBdp7ohx3; expires=Thu, 28 Aug 2025 13:25:18 GMT; Max-Age=7200; path=/; httponly; samesite=lax
{
"message": "The route api/get_vendor_on_boarding_details could not be found."
}
Received response:
Request failed with error:
Get logged in user profile
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/user" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/user"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"title": "Dr.",
"name": "Mrs. Kitty Purdy MD",
"email": "dtromp@example.net",
"phone": "+1 (848) 338-4515",
"avatar": "https://via.placeholder.com/200x200.png/0088dd?text=avatar+eum",
"username": "mwiza",
"gender": "Female",
"newsletter": true,
"active": true,
"card_brand": "Visa",
"card_last_four": "1926",
"is_vendor": true,
"is_admin": false,
"updated_at": "2025-08-28T11:25:18.000000Z",
"created_at": "2025-08-28T11:25:18.000000Z",
"id": 40,
"companies": [],
"vendors": [],
"bankAccount": null,
"permissions": [],
"costCenters": [],
"roles": [],
"stations": [],
"wallet_details": null
},
{
"title": "Mr.",
"name": "Jermaine Harvey",
"email": "carroll88@example.com",
"phone": "1-702-422-1196",
"avatar": "https://via.placeholder.com/200x200.png/009988?text=avatar+ducimus",
"username": "smith.jettie",
"gender": "Male",
"newsletter": false,
"active": true,
"card_brand": "MasterCard",
"card_last_four": "2894",
"is_vendor": true,
"is_admin": false,
"updated_at": "2025-08-28T11:25:18.000000Z",
"created_at": "2025-08-28T11:25:18.000000Z",
"id": 41,
"companies": [],
"vendors": [],
"bankAccount": null,
"permissions": [],
"costCenters": [],
"roles": [],
"stations": [],
"wallet_details": null
}
]
}
Received response:
Request failed with error:
Set the user active vendor
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/set_user_active_vendor/15" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/set_user_active_vendor/15"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: cupid_session=FUwfPZmC49uIMhfDbTkc6prkpTrhhNNxfo8a1IsS; expires=Thu, 28 Aug 2025 13:25:18 GMT; Max-Age=7200; path=/; httponly; samesite=lax
{
"message": "The route api/set_user_active_vendor/15 could not be found."
}
Received response:
Request failed with error:
Send OTP to a user
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/issue_otp" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/issue_otp"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: cupid_session=nNpk2vQuyUlK1BsEAI4xlYInx30XkAlUT1Shb1p0; expires=Thu, 28 Aug 2025 13:25:18 GMT; Max-Age=7200; path=/; httponly; samesite=lax
{
"message": "The route api/issue_otp could not be found."
}
Received response:
Request failed with error:
Get a users active vendors.This will return the vendors of the authenticated user, if email is empty
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/get_user_active_vendor?email=vero" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/get_user_active_vendor"
);
const params = {
"email": "vero",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"name": "Raynor Inc",
"email": "lambert58@beier.net",
"phone_number": "1-270-371-6413",
"country": "Hungary",
"state": "South Carolina",
"city": "New Thad",
"postcode": "35685",
"address": "98246 Salvatore Plains",
"registration_number": "RC-022059",
"contact_person": "Marilie Morissette",
"sm_company_id": 5,
"products_sold": "HHK",
"payment_type": "sunt",
"status": true,
"has_active_paga_account": false,
"updated_at": "2025-08-28T11:25:18.000000Z",
"created_at": "2025-08-28T11:25:18.000000Z",
"id": 7,
"vendor_additional_details": null,
"bank_accounts": null,
"wallet_details": null,
"app_config": null,
"paga_details": null,
"groups": []
},
{
"name": "Kohler Ltd",
"email": "conn.ruthe@kemmer.biz",
"phone_number": "(832) 251-6434",
"country": "Kyrgyz Republic",
"state": "Colorado",
"city": "Annabellshire",
"postcode": "31169",
"address": "93779 Lucio Village Suite 994",
"registration_number": "RC-527805",
"contact_person": "Gregory Kunde",
"sm_company_id": 7,
"products_sold": "AGO",
"payment_type": "non",
"status": true,
"has_active_paga_account": false,
"updated_at": "2025-08-28T11:25:18.000000Z",
"created_at": "2025-08-28T11:25:18.000000Z",
"id": 8,
"vendor_additional_details": null,
"bank_accounts": null,
"wallet_details": null,
"app_config": null,
"paga_details": null,
"groups": []
}
]
}
Received response:
Request failed with error:
Update user profile & password
requires authentication
Example request:
curl --request PATCH \
"https://cupidapiv2.smartflowtech.com/api/profile/update_profile/10" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"cupid_id\": 19,
\"name\": \"ad\",
\"email\": \"hayes.tania@example.net\",
\"username\": \"quis\",
\"gender\": \"Female\",
\"phone\": \"dolor\",
\"current_password\": \"quis\",
\"password\": \"nihil\",
\"user_agent\": \"customer_app\"
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/profile/update_profile/10"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"cupid_id": 19,
"name": "ad",
"email": "hayes.tania@example.net",
"username": "quis",
"gender": "Female",
"phone": "dolor",
"current_password": "quis",
"password": "nihil",
"user_agent": "customer_app"
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Register user on SSO for Super Admin
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/super_admin_register" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"provident\",
\"title\": \"culpa\",
\"phone\": \"facere\",
\"email\": \"aperiam\",
\"username\": \"eaque\",
\"gender\": \"dignissimos\",
\"newsletter\": false,
\"active\": \"quo\",
\"is_admin\": \"qui\",
\"is_vendor\": \"voluptates\",
\"suspended\": \"eos\",
\"vendors\": [
17
],
\"companies\": [
20
],
\"cost_centers\": [
1
],
\"stations\": [
12
]
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/super_admin_register"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "provident",
"title": "culpa",
"phone": "facere",
"email": "aperiam",
"username": "eaque",
"gender": "dignissimos",
"newsletter": false,
"active": "quo",
"is_admin": "qui",
"is_vendor": "voluptates",
"suspended": "eos",
"vendors": [
17
],
"companies": [
20
],
"cost_centers": [
1
],
"stations": [
12
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
POST api/test
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/test" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/test"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Company Endpoints
Display a listing of the companies or search by name, phone number, email, address, city, state, country.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/companies?term=vel&per_page=16" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/companies"
);
const params = {
"term": "vel",
"per_page": "16",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"id": 13,
"name": "Ankunding-Hahn",
"email": "wdaniel@prosacco.biz",
"phone_number": "276.483.4151",
"registration_number": "RC-782431819",
"country": "Philippines",
"state": "Virginia",
"city": "Gutmannhaven",
"postcode": "52187-9589",
"address": "18976 Parker Mountain Suite 271",
"sector": "aspernatur",
"tin": "957315",
"website": "abshire.com",
"logo": "https://via.placeholder.com/200x200.png/00ff00?text=logo+laboriosam",
"active": true,
"on_loyalty_program": true,
"contact_person_first_name": "Lavonne",
"contact_person_lastname": "Eichmann",
"app_uid": "68b03c9ee8499",
"created_at": "2025-08-28T11:25:18.000000Z",
"updated_at": "2025-08-28T11:25:18.000000Z",
"permissions": []
},
{
"id": 14,
"name": "Medhurst LLC",
"email": "deangelo02@sporer.net",
"phone_number": "567-284-9108",
"registration_number": "RC-110772580",
"country": "Morocco",
"state": "Iowa",
"city": "West Kareemfurt",
"postcode": "15926",
"address": "2887 Lueilwitz Tunnel",
"sector": "nobis",
"tin": "068515",
"website": "ritchie.biz",
"logo": "https://via.placeholder.com/200x200.png/005533?text=logo+eaque",
"active": true,
"on_loyalty_program": false,
"contact_person_first_name": "Jettie",
"contact_person_lastname": "Beahan",
"app_uid": "68b03c9ee9e27",
"created_at": "2025-08-28T11:25:18.000000Z",
"updated_at": "2025-08-28T11:25:18.000000Z",
"permissions": []
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 20,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Create a new company
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/companies" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "name=iusto" \
--form "phone_number=tempore" \
--form "tin=1.35459" \
--form "email=nathaniel64@example.net" \
--form "registration_number=aut" \
--form "country=dolores" \
--form "state=esse" \
--form "city=quae" \
--form "postcode=20.0676807" \
--form "address=explicabo" \
--form "sector=officia" \
--form "website=http://kulas.com/ipsa-ex-et-cumque-qui.html" \
--form "active=1" \
--form "on_loyalty_program=1" \
--form "loyalty_points_by_group=" \
--form "loyalty_reward_percentage=0" \
--form "loyalty_reward_points=4" \
--form "loyalty_min_purchase_amount=18292527.473179" \
--form "loyalty_min_point=62002.2" \
--form "contact_person_first_name=quo" \
--form "contact_person_lastname=architecto" \
--form "permission_ids[]=quibusdam" \
--form "logo=@/tmp/phpJdVBZj" const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/companies"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('name', 'iusto');
body.append('phone_number', 'tempore');
body.append('tin', '1.35459');
body.append('email', 'nathaniel64@example.net');
body.append('registration_number', 'aut');
body.append('country', 'dolores');
body.append('state', 'esse');
body.append('city', 'quae');
body.append('postcode', '20.0676807');
body.append('address', 'explicabo');
body.append('sector', 'officia');
body.append('website', 'http://kulas.com/ipsa-ex-et-cumque-qui.html');
body.append('active', '1');
body.append('on_loyalty_program', '1');
body.append('loyalty_points_by_group', '');
body.append('loyalty_reward_percentage', '0');
body.append('loyalty_reward_points', '4');
body.append('loyalty_min_purchase_amount', '18292527.473179');
body.append('loyalty_min_point', '62002.2');
body.append('contact_person_first_name', 'quo');
body.append('contact_person_lastname', 'architecto');
body.append('permission_ids[]', 'quibusdam');
body.append('logo', document.querySelector('input[name="logo"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Example response (200):
{
"data": {
"id": 15,
"name": "Mayert Ltd",
"email": "atillman@huel.com",
"phone_number": "364.533.1905",
"registration_number": "RC-703757166",
"country": "South Georgia and the South Sandwich Islands",
"state": "South Carolina",
"city": "South Maude",
"postcode": "80144-6515",
"address": "93152 Stoltenberg Cove",
"sector": "exercitationem",
"tin": "336374",
"website": "dickinson.com",
"logo": "https://via.placeholder.com/200x200.png/006600?text=logo+ullam",
"active": true,
"on_loyalty_program": false,
"contact_person_first_name": "Cleta",
"contact_person_lastname": "Romaguera",
"app_uid": "68b03c9f00736",
"created_at": "2025-08-28T11:25:19.000000Z",
"updated_at": "2025-08-28T11:25:19.000000Z",
"permissions": []
}
}
Received response:
Request failed with error:
Show a specified company.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/companies/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/companies/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"id": 16,
"name": "Schoen, Renner and VonRueden",
"email": "zbarton@ryan.com",
"phone_number": "629.592.3237",
"registration_number": "RC-905800744",
"country": "Uganda",
"state": "Massachusetts",
"city": "Allentown",
"postcode": "63335-4314",
"address": "4279 Grace Street",
"sector": "temporibus",
"tin": "660616",
"website": "predovic.info",
"logo": "https://via.placeholder.com/200x200.png/0088bb?text=logo+non",
"active": true,
"on_loyalty_program": true,
"contact_person_first_name": "Juvenal",
"contact_person_lastname": "Fay",
"app_uid": "68b03c9f07161",
"created_at": "2025-08-28T11:25:19.000000Z",
"updated_at": "2025-08-28T11:25:19.000000Z",
"permissions": []
}
}
Received response:
Request failed with error:
Update the specified company
requires authentication
Example request:
curl --request PUT \
"https://cupidapiv2.smartflowtech.com/api/companies/17" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "name=in" \
--form "phone_number=aut" \
--form "tin=6106.118" \
--form "email=jayson.hessel@example.org" \
--form "registration_number=quam" \
--form "country=qui" \
--form "state=fuga" \
--form "city=doloremque" \
--form "postcode=8.27078" \
--form "address=provident" \
--form "sector=et" \
--form "website=http://www.feest.net/eos-omnis-sed-saepe-in-praesentium-ipsa-molestiae" \
--form "active=1" \
--form "on_loyalty_program=1" \
--form "loyalty_points_by_group=" \
--form "loyalty_reward_percentage=308358342.85009" \
--form "loyalty_reward_points=673643.3" \
--form "loyalty_min_purchase_amount=2" \
--form "loyalty_min_point=26.71" \
--form "contact_person_first_name=mollitia" \
--form "contact_person_lastname=expedita" \
--form "permission_ids[]=iste" \
--form "logo=@/tmp/phpmtWRZq" const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/companies/17"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('name', 'in');
body.append('phone_number', 'aut');
body.append('tin', '6106.118');
body.append('email', 'jayson.hessel@example.org');
body.append('registration_number', 'quam');
body.append('country', 'qui');
body.append('state', 'fuga');
body.append('city', 'doloremque');
body.append('postcode', '8.27078');
body.append('address', 'provident');
body.append('sector', 'et');
body.append('website', 'http://www.feest.net/eos-omnis-sed-saepe-in-praesentium-ipsa-molestiae');
body.append('active', '1');
body.append('on_loyalty_program', '1');
body.append('loyalty_points_by_group', '');
body.append('loyalty_reward_percentage', '308358342.85009');
body.append('loyalty_reward_points', '673643.3');
body.append('loyalty_min_purchase_amount', '2');
body.append('loyalty_min_point', '26.71');
body.append('contact_person_first_name', 'mollitia');
body.append('contact_person_lastname', 'expedita');
body.append('permission_ids[]', 'iste');
body.append('logo', document.querySelector('input[name="logo"]').files[0]);
fetch(url, {
method: "PUT",
headers,
body,
}).then(response => response.json());Example response (200):
{
"data": {
"id": 17,
"name": "Oberbrunner, Jakubowski and Mitchell",
"email": "rosenbaum.shanel@schuppe.org",
"phone_number": "+1.580.575.5287",
"registration_number": "RC-323409442",
"country": "Kyrgyz Republic",
"state": "Montana",
"city": "New Isabelle",
"postcode": "52407-0579",
"address": "17956 Towne Alley Apt. 649",
"sector": "possimus",
"tin": "188205",
"website": "kirlin.com",
"logo": "https://via.placeholder.com/200x200.png/007733?text=logo+aut",
"active": false,
"on_loyalty_program": true,
"contact_person_first_name": "Margarette",
"contact_person_lastname": "Goodwin",
"app_uid": "68b03c9f0e062",
"created_at": "2025-08-28T11:25:19.000000Z",
"updated_at": "2025-08-28T11:25:19.000000Z",
"permissions": []
}
}
Received response:
Request failed with error:
Delete a company
requires authentication
Example request:
curl --request DELETE \
"https://cupidapiv2.smartflowtech.com/api/companies/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/companies/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Display a listing of the company user or search by name, phone number, email, card last four digits, company name.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/company_users?company_id=16&per_page=8&term=et" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/company_users"
);
const params = {
"company_id": "16",
"per_page": "8",
"term": "et",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"title": "Prof.",
"name": "Mina Lind",
"email": "dagmar90@example.net",
"phone": "+1.930.724.4118",
"avatar": "https://via.placeholder.com/200x200.png/0011aa?text=avatar+laborum",
"username": "berge.ellie",
"gender": "Male",
"newsletter": false,
"active": true,
"card_brand": "American Express",
"card_last_four": "3400",
"is_vendor": true,
"is_admin": false,
"updated_at": "2025-08-28T11:25:19.000000Z",
"created_at": "2025-08-28T11:25:19.000000Z",
"id": 50,
"companies": [],
"vendors": [],
"bankAccount": null,
"permissions": [],
"costCenters": [],
"roles": [],
"stations": [],
"wallet_details": null
},
{
"title": "Mr.",
"name": "Ardith Labadie",
"email": "deon.rowe@example.com",
"phone": "+1-678-354-4979",
"avatar": "https://via.placeholder.com/200x200.png/005511?text=avatar+omnis",
"username": "zack16",
"gender": "Male",
"newsletter": false,
"active": true,
"card_brand": "MasterCard",
"card_last_four": "5376",
"is_vendor": true,
"is_admin": false,
"updated_at": "2025-08-28T11:25:19.000000Z",
"created_at": "2025-08-28T11:25:19.000000Z",
"id": 51,
"companies": [],
"vendors": [],
"bankAccount": null,
"permissions": [],
"costCenters": [],
"roles": [],
"stations": [],
"wallet_details": null
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 20,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Create a new company user
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/company_users?company_id=11" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"et\",
\"phone\": 1603000.112,
\"email\": \"rau.maida@example.com\",
\"username\": \"earum\",
\"gender\": \"repudiandae\",
\"newsletter\": false,
\"active\": true,
\"is_admin\": false,
\"is_vendor\": false,
\"suspended\": true,
\"vendors\": [
16
],
\"companies\": [
12
],
\"cost_centers\": [
7
],
\"stations\": [
2
]
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/company_users"
);
const params = {
"company_id": "11",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "et",
"phone": 1603000.112,
"email": "rau.maida@example.com",
"username": "earum",
"gender": "repudiandae",
"newsletter": false,
"active": true,
"is_admin": false,
"is_vendor": false,
"suspended": true,
"vendors": [
16
],
"companies": [
12
],
"cost_centers": [
7
],
"stations": [
2
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"title": "Dr.",
"name": "Emmitt Ullrich",
"email": "elza.treutel@example.net",
"phone": "863.453.8259",
"avatar": "https://via.placeholder.com/200x200.png/0077ff?text=avatar+nam",
"username": "mwaters",
"gender": "Male",
"newsletter": false,
"active": true,
"card_brand": "JCB",
"card_last_four": "1796",
"is_vendor": true,
"is_admin": false,
"updated_at": "2025-08-28T11:25:19.000000Z",
"created_at": "2025-08-28T11:25:19.000000Z",
"id": 52,
"companies": [],
"vendors": [],
"bankAccount": null,
"permissions": [],
"costCenters": [],
"roles": [],
"stations": [],
"wallet_details": null
}
}
Received response:
Request failed with error:
Show a specified company user.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/company_users/2?company_id=14" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/company_users/2"
);
const params = {
"company_id": "14",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"title": "Prof.",
"name": "Charlie Emmerich I",
"email": "jewell.hermiston@example.org",
"phone": "717.719.0101",
"avatar": "https://via.placeholder.com/200x200.png/0044bb?text=avatar+necessitatibus",
"username": "ismael.abshire",
"gender": "Male",
"newsletter": true,
"active": true,
"card_brand": "MasterCard",
"card_last_four": "6147",
"is_vendor": false,
"is_admin": true,
"updated_at": "2025-08-28T11:25:19.000000Z",
"created_at": "2025-08-28T11:25:19.000000Z",
"id": 53,
"companies": [],
"vendors": [],
"bankAccount": null,
"permissions": [],
"costCenters": [],
"roles": [],
"stations": [],
"wallet_details": null
}
}
Received response:
Request failed with error:
Update the specified company user without detaching the user from other companies
requires authentication
Example request:
curl --request PUT \
"https://cupidapiv2.smartflowtech.com/api/company_users/12?company_id=3" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"et\",
\"phone\": 613514.2571356,
\"email\": \"jordan.haley@example.com\",
\"username\": \"et\",
\"gender\": \"atque\",
\"newsletter\": false,
\"active\": true,
\"is_admin\": false,
\"is_vendor\": false,
\"suspended\": true,
\"vendors\": [
11
],
\"companies\": [
5
],
\"cost_centers\": [
12
],
\"stations\": [
7
]
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/company_users/12"
);
const params = {
"company_id": "3",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "et",
"phone": 613514.2571356,
"email": "jordan.haley@example.com",
"username": "et",
"gender": "atque",
"newsletter": false,
"active": true,
"is_admin": false,
"is_vendor": false,
"suspended": true,
"vendors": [
11
],
"companies": [
5
],
"cost_centers": [
12
],
"stations": [
7
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"id": 18,
"name": "Torp-Cummings",
"email": "bartell.bertrand@hickle.com",
"phone_number": "(360) 722-0721",
"registration_number": "RC-301425185",
"country": "Central African Republic",
"state": "New Mexico",
"city": "Devynton",
"postcode": "08162-1842",
"address": "63495 Prosacco Glen Suite 531",
"sector": "voluptatem",
"tin": "627818",
"website": "armstrong.biz",
"logo": "https://via.placeholder.com/200x200.png/0055bb?text=logo+dolores",
"active": true,
"on_loyalty_program": true,
"contact_person_first_name": "Jermain",
"contact_person_lastname": "Heidenreich",
"app_uid": "68b03c9f35351",
"created_at": "2025-08-28T11:25:19.000000Z",
"updated_at": "2025-08-28T11:25:19.000000Z",
"permissions": []
}
}
Received response:
Request failed with error:
Detach a user from a company
requires authentication
Example request:
curl --request DELETE \
"https://cupidapiv2.smartflowtech.com/api/company_users/9?company_id=11" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/company_users/9"
);
const params = {
"company_id": "11",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Display a listing of the company permission or search by permission name
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/company_permissions?company_id=13&per_page=2&term=qui" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/company_permissions"
);
const params = {
"company_id": "13",
"per_page": "2",
"term": "qui",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"guard_name": "api"
},
{
"guard_name": "api"
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 20,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Synchronise company permissions
requires authentication
Example request:
curl --request PATCH \
"https://cupidapiv2.smartflowtech.com/api/company_permissions?company_id=7" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"permission_ids\": [
\"repellat\"
]
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/company_permissions"
);
const params = {
"company_id": "7",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"permission_ids": [
"repellat"
]
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
GET api/company_permissions/{permission_id}
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/company_permissions/qui" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/company_permissions/qui"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: cupid_session=E4nw4Z3Iq7i6WuYISISYH4Y4uM7iHun9GbiYTBPq; expires=Thu, 28 Aug 2025 13:25:19 GMT; Max-Age=7200; path=/; httponly; samesite=lax
{
"message": "The route api/company_permissions/qui could not be found."
}
Received response:
Request failed with error:
Detach a permission from a company
requires authentication
Example request:
curl --request DELETE \
"https://cupidapiv2.smartflowtech.com/api/company_permissions/20?company_id=5" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/company_permissions/20"
);
const params = {
"company_id": "5",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Company Station Endpoints
Display a listing of the stations or search by name, email, address, state, country.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/stations?term=earum&per_page=11" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/stations"
);
const params = {
"term": "earum",
"per_page": "11",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"name": "Smitham-Schaefer",
"email": "wiza.quinton@west.biz",
"phone_number": "+19592531138",
"country": "United States of America",
"state": "Alabama",
"city": "Funkshire",
"postcode": "94794",
"address": "85217 Jedidiah Village",
"updated_at": "2025-08-28T11:25:19.000000Z",
"created_at": "2025-08-28T11:25:19.000000Z",
"id": 17
},
{
"name": "Auer, Huels and Roberts",
"email": "rodriguez.dolly@beatty.com",
"phone_number": "1-352-671-2235",
"country": "United States Minor Outlying Islands",
"state": "Georgia",
"city": "East Ezequielland",
"postcode": "67483-5373",
"address": "359 Santina Extension",
"updated_at": "2025-08-28T11:25:19.000000Z",
"created_at": "2025-08-28T11:25:19.000000Z",
"id": 18
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 20,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Create a new station
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/stations" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"quam\",
\"phone_number\": 40012392.14572022,
\"email\": \"wiegand.annabell@example.net\",
\"country\": \"eos\",
\"state\": \"omnis\",
\"city\": \"totam\",
\"postcode\": 0.707,
\"address\": \"omnis\",
\"vendor_id\": 4
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/stations"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "quam",
"phone_number": 40012392.14572022,
"email": "wiegand.annabell@example.net",
"country": "eos",
"state": "omnis",
"city": "totam",
"postcode": 0.707,
"address": "omnis",
"vendor_id": 4
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"name": "Metz, Cartwright and McGlynn",
"email": "blanca.conn@kertzmann.com",
"phone_number": "351-595-8125",
"country": "Chad",
"state": "Montana",
"city": "Danielville",
"postcode": "60631",
"address": "65564 Reichel Station",
"updated_at": "2025-08-28T11:25:19.000000Z",
"created_at": "2025-08-28T11:25:19.000000Z",
"id": 19
}
}
Received response:
Request failed with error:
Show a specified station.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/stations/19" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/stations/19"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"name": "Jenkins PLC",
"email": "treutel.murl@torphy.com",
"phone_number": "567-859-3180",
"country": "Syrian Arab Republic",
"state": "Georgia",
"city": "Rodriguezton",
"postcode": "00481-8163",
"address": "686 Mayer Course",
"updated_at": "2025-08-28T11:25:19.000000Z",
"created_at": "2025-08-28T11:25:19.000000Z",
"id": 20
}
}
Received response:
Request failed with error:
Update the specified station
requires authentication
Example request:
curl --request PUT \
"https://cupidapiv2.smartflowtech.com/api/stations/15" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"perferendis\",
\"phone_number\": 136800.35989,
\"email\": \"margot55@example.net\",
\"country\": \"officia\",
\"state\": \"dicta\",
\"city\": \"voluptatem\",
\"postcode\": 26.4507,
\"address\": \"labore\",
\"vendor_id\": 7
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/stations/15"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "perferendis",
"phone_number": 136800.35989,
"email": "margot55@example.net",
"country": "officia",
"state": "dicta",
"city": "voluptatem",
"postcode": 26.4507,
"address": "labore",
"vendor_id": 7
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"name": "Bruen and Sons",
"email": "tracey.huels@will.net",
"phone_number": "+1-351-734-4079",
"country": "Monaco",
"state": "Maine",
"city": "Donnellstad",
"postcode": "68091-9778",
"address": "17898 Kutch Park Apt. 812",
"updated_at": "2025-08-28T11:25:19.000000Z",
"created_at": "2025-08-28T11:25:19.000000Z",
"id": 21
}
}
Received response:
Request failed with error:
Delete a station
requires authentication
Example request:
curl --request DELETE \
"https://cupidapiv2.smartflowtech.com/api/stations/9" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/stations/9"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"name": "Dare Inc",
"email": "hessel.kennith@denesik.com",
"phone_number": "(805) 894-2293",
"country": "Syrian Arab Republic",
"state": "South Dakota",
"city": "Hintzview",
"postcode": "90782-2918",
"address": "94826 Haag Skyway Suite 023",
"updated_at": "2025-08-28T11:25:19.000000Z",
"created_at": "2025-08-28T11:25:19.000000Z",
"id": 22
}
}
Received response:
Request failed with error:
Display a list of stations by vendor
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/vendor_stations/1?per_page=2" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vendor_stations/1"
);
const params = {
"per_page": "2",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"name": "Larkin Group",
"email": "johnson.charlene@jones.org",
"phone_number": "831.823.6729",
"country": "Tajikistan",
"state": "Colorado",
"city": "Port Maxwell",
"postcode": "17433-2517",
"address": "93474 Vincent Gateway",
"updated_at": "2025-08-28T11:25:19.000000Z",
"created_at": "2025-08-28T11:25:19.000000Z",
"id": 23
},
{
"name": "Leuschke-Steuber",
"email": "rkoch@fadel.com",
"phone_number": "628.654.5700",
"country": "Cote d'Ivoire",
"state": "Oklahoma",
"city": "Lake Greggbury",
"postcode": "74699",
"address": "7014 Jerde Gateway Apt. 072",
"updated_at": "2025-08-28T11:25:19.000000Z",
"created_at": "2025-08-28T11:25:19.000000Z",
"id": 24
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 20,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Cost Center Endpoints
Display a listing of the cost centers or search by name, phone number, email, address, city, state, country.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/cost_centers?term=est&per_page=20" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/cost_centers"
);
const params = {
"term": "est",
"per_page": "20",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"company": null,
"users": []
},
{
"company": null,
"users": []
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 20,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Create a new cost center
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/cost_centers" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"placeat\",
\"phone_number\": 335963.6,
\"email\": \"ut\",
\"company_id\": 6,
\"daily_purchase_budget\": 367.711948644,
\"weekly_purchase_budget\": 43.049000829,
\"monthly_purchase_budget\": 0.486834,
\"license_type\": \"molestiae\",
\"active\": false,
\"user_ids\": [
\"voluptas\"
]
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/cost_centers"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "placeat",
"phone_number": 335963.6,
"email": "ut",
"company_id": 6,
"daily_purchase_budget": 367.711948644,
"weekly_purchase_budget": 43.049000829,
"monthly_purchase_budget": 0.486834,
"license_type": "molestiae",
"active": false,
"user_ids": [
"voluptas"
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"company": null,
"users": []
}
}
Received response:
Request failed with error:
Show a specified cost center.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/cost_centers/12" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/cost_centers/12"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"company": null,
"users": []
}
}
Received response:
Request failed with error:
Update the specified cost center
requires authentication
Example request:
curl --request PUT \
"https://cupidapiv2.smartflowtech.com/api/cost_centers/17" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"provident\",
\"phone_number\": 661.97358,
\"email\": \"labore\",
\"company_id\": 11,
\"daily_purchase_budget\": 5767929.74266,
\"weekly_purchase_budget\": 918313.974,
\"monthly_purchase_budget\": 7765,
\"license_type\": \"dolore\",
\"active\": true,
\"user_ids\": [
\"incidunt\"
]
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/cost_centers/17"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "provident",
"phone_number": 661.97358,
"email": "labore",
"company_id": 11,
"daily_purchase_budget": 5767929.74266,
"weekly_purchase_budget": 918313.974,
"monthly_purchase_budget": 7765,
"license_type": "dolore",
"active": true,
"user_ids": [
"incidunt"
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"company": null,
"users": []
}
}
Received response:
Request failed with error:
Delete a cost center
requires authentication
Example request:
curl --request DELETE \
"https://cupidapiv2.smartflowtech.com/api/cost_centers/4" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/cost_centers/4"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Endpoints
Get the latest transactions. Return 10 items if per_page is not provided
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/kpi/latest_transactions?per_page=12" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/kpi/latest_transactions"
);
const params = {
"per_page": "12",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
[],
[]
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 10,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Get the latest fuel purchases. Return 10 items if per_page is not provided
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/kpi/latest_fuel_purchases?per_page=9" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/kpi/latest_fuel_purchases"
);
const params = {
"per_page": "9",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"driver": null,
"company": null,
"vendor": null,
"costCenter": null,
"nfcTag": null,
"userWallet": null,
"remark": null
},
{
"driver": null,
"company": null,
"vendor": null,
"costCenter": null,
"nfcTag": null,
"userWallet": null,
"remark": null
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 10,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Get the top purchasing customer vehicles
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/kpi/top_purchasing_vehicles" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/kpi/top_purchasing_vehicles"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: cupid_session=fXVeEailueUsLcnf7gsrsuIcXkJYxP1YvOj1Pc8V; expires=Thu, 28 Aug 2025 13:25:17 GMT; Max-Age=7200; path=/; httponly; samesite=lax
{
"message": "The route api/kpi/top_purchasing_vehicles could not be found."
}
Received response:
Request failed with error:
Get the top purchasing customer
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/kpi/top_purchasing_customers" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/kpi/top_purchasing_customers"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: cupid_session=VjXwgnVt5UhJXvnDNmY0K7vWRuHGQAhITicpIxFv; expires=Thu, 28 Aug 2025 13:25:17 GMT; Max-Age=7200; path=/; httponly; samesite=lax
{
"message": "The route api/kpi/top_purchasing_customers could not be found."
}
Received response:
Request failed with error:
Get vendor last purchases
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/kpi/vendor_last_purchases" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/kpi/vendor_last_purchases"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: cupid_session=DMT7e2WXqAD9ZVBOe4kUF3G8FAmt23Zw34bXAP3m; expires=Thu, 28 Aug 2025 13:25:17 GMT; Max-Age=7200; path=/; httponly; samesite=lax
{
"message": "The route api/kpi/vendor_last_purchases could not be found."
}
Received response:
Request failed with error:
Get KPI summary for dashboard
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/kpi/summary" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/kpi/summary"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: cupid_session=RhwQH0ctkOcnwjnlQuxPzsr3IJb7U5Vc87aADAJB; expires=Thu, 28 Aug 2025 13:25:17 GMT; Max-Age=7200; path=/; httponly; samesite=lax
{
"message": "The route api/kpi/summary could not be found."
}
Received response:
Request failed with error:
Get Vendor KPI summary for dashboard
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/kpi/vendor_summary" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/kpi/vendor_summary"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: cupid_session=sj4Pe8kjQ1fIfXAecgmJfWZQHcQhtE9Ksj9MbCMa; expires=Thu, 28 Aug 2025 13:25:17 GMT; Max-Age=7200; path=/; httponly; samesite=lax
{
"message": "The route api/kpi/vendor_summary could not be found."
}
Received response:
Request failed with error:
Get trends of fuel purchase
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/kpi/trends_of_purchase" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/kpi/trends_of_purchase"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: cupid_session=1CLszIYTxelghQW1DJxuJS25H2eLb4v06UOU3K4J; expires=Thu, 28 Aug 2025 13:25:17 GMT; Max-Age=7200; path=/; httponly; samesite=lax
{
"message": "The route api/kpi/trends_of_purchase could not be found."
}
Received response:
Request failed with error:
Get trends of fuel sale
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/kpi/latest_fuel_sales" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/kpi/latest_fuel_sales"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: cupid_session=lAXTc6qRgF3g39idErjOxEDN2GcbhdJZM2JVmB76; expires=Thu, 28 Aug 2025 13:25:17 GMT; Max-Age=7200; path=/; httponly; samesite=lax
{
"message": "The route api/kpi/latest_fuel_sales could not be found."
}
Received response:
Request failed with error:
Display a listing of the FuelPay Transaction or search by mac address, ip address.
requires authentication
Create a new FuelPay Transaction
requires authentication
Show a specified FuelPay Transaction.
requires authentication
Update the specified FuelPay Transaction
requires authentication
Delete a FuelPay Transaction
requires authentication
This endpoint would be used to get the allocated diesel quantity for a given trip.
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/diesel_trip_allocation" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"way_bill_number\": \"omnis\",
\"vehicle_id\": 6,
\"company_id\": 7,
\"source_id\": 10,
\"destination_id\": 11,
\"tonnage\": \"vitae\",
\"contract_type\": \"qui\",
\"trailer_type\": \"quidem\",
\"weight\": \"HEAVY\",
\"age\": \"sed\",
\"model\": \"itaque\"
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/diesel_trip_allocation"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"way_bill_number": "omnis",
"vehicle_id": 6,
"company_id": 7,
"source_id": 10,
"destination_id": 11,
"tonnage": "vitae",
"contract_type": "qui",
"trailer_type": "quidem",
"weight": "HEAVY",
"age": "sed",
"model": "itaque"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Display a listing of Trip Allocation.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/trip_allocations?term=qui&contract_type=mollitia&company_id=20&source_id=8&active=1&per_page=11" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/trip_allocations"
);
const params = {
"term": "qui",
"contract_type": "mollitia",
"company_id": "20",
"source_id": "8",
"active": "1",
"per_page": "11",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"company_name": null,
"source_name": null,
"destination_name": null
},
{
"company_name": null,
"source_name": null,
"destination_name": null
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 20,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Store a new trip allocation
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/trip_allocations" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"company_id\": 11,
\"source_id\": 18,
\"destination_id\": 19,
\"tonnage\": \"qui\",
\"trailer_type\": \"iste\",
\"weight\": \"in\",
\"contract_type\": \"floating\",
\"make\": \"voluptatem\",
\"age\": \"dolor\",
\"diesel_quantity\": 11,
\"active\": false
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/trip_allocations"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"company_id": 11,
"source_id": 18,
"destination_id": 19,
"tonnage": "qui",
"trailer_type": "iste",
"weight": "in",
"contract_type": "floating",
"make": "voluptatem",
"age": "dolor",
"diesel_quantity": 11,
"active": false
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"company_name": null,
"source_name": null,
"destination_name": null
}
}
Received response:
Request failed with error:
Show a specified Trip Request.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/trip_allocations/3" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/trip_allocations/3"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"company_name": null,
"source_name": null,
"destination_name": null
}
}
Received response:
Request failed with error:
Update the specific trip allocation
requires authentication
Example request:
curl --request PUT \
"https://cupidapiv2.smartflowtech.com/api/trip_allocations/ipsa" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"company_id\": 18,
\"source_id\": 19,
\"destination_id\": 20,
\"tonnage\": \"maiores\",
\"trailer_type\": \"deleniti\",
\"weight\": \"officiis\",
\"contract_type\": \"fixed\",
\"make\": \"enim\",
\"age\": \"id\",
\"diesel_quantity\": 4,
\"active\": true
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/trip_allocations/ipsa"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"company_id": 18,
"source_id": 19,
"destination_id": 20,
"tonnage": "maiores",
"trailer_type": "deleniti",
"weight": "officiis",
"contract_type": "fixed",
"make": "enim",
"age": "id",
"diesel_quantity": 4,
"active": true
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"company_name": null,
"source_name": null,
"destination_name": null
}
}
Received response:
Request failed with error:
Delete the specified Trip allocation.
requires authentication
Example request:
curl --request DELETE \
"https://cupidapiv2.smartflowtech.com/api/trip_allocations/12" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/trip_allocations/12"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Get pumps from station manager
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/sm_pumps?station_id=15" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/sm_pumps"
);
const params = {
"station_id": "15",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: cupid_session=i6OFRXO52RyyoYQtbyKJoiVYEv6l93viH95qaH06; expires=Thu, 28 Aug 2025 13:25:23 GMT; Max-Age=7200; path=/; httponly; samesite=lax
{
"message": "The route api/sm_pumps could not be found."
}
Received response:
Request failed with error:
GET api/get_smarteye_companies
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/get_smarteye_companies" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/get_smarteye_companies"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: cupid_session=v3kjjX4oXDdskXp4wdPgbGIcMltHw6H0N4M1acwj; expires=Thu, 28 Aug 2025 13:25:19 GMT; Max-Age=7200; path=/; httponly; samesite=lax
{
"message": "The route api/get_smarteye_companies could not be found."
}
Received response:
Request failed with error:
GET api/get_smarteye_pumps/{id}
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/get_smarteye_pumps/officia" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/get_smarteye_pumps/officia"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: cupid_session=5BtiFvd0YkaRWE6zxl0b1AN1totacEuSJB7UTYwS; expires=Thu, 28 Aug 2025 13:25:19 GMT; Max-Age=7200; path=/; httponly; samesite=lax
{
"message": "The route api/get_smarteye_pumps/officia could not be found."
}
Received response:
Request failed with error:
Create a new PAM transaction
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/smart_pump_velox" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/smart_pump_velox"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"updated_at": "2025-08-28T11:25:18.000000Z",
"created_at": "2025-08-28T11:25:18.000000Z",
"id": 20
}
}
Received response:
Request failed with error:
Update the specified PAM transaction
requires authentication
Example request:
curl --request PUT \
"https://cupidapiv2.smartflowtech.com/api/smart_pump_velox/3" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/smart_pump_velox/3"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"updated_at": "2025-08-28T11:25:18.000000Z",
"created_at": "2025-08-28T11:25:18.000000Z",
"id": 21
}
}
Received response:
Request failed with error:
GET api/get_smarteye_stations/{vendor_id}
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/get_smarteye_stations/voluptates" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/get_smarteye_stations/voluptates"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: cupid_session=XQO4jhbe2ioph5GlDEl6pHhYVnuvJHgvwUXSukzY; expires=Thu, 28 Aug 2025 13:25:19 GMT; Max-Age=7200; path=/; httponly; samesite=lax
{
"message": "The route api/get_smarteye_stations/voluptates could not be found."
}
Received response:
Request failed with error:
Fleet Management Endpoints
NFC tag bulk upload
requires authentication
Display a listing of the spend limit groups or search by name, code.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/spend_limit_groups?term=eveniet&per_page=3" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/spend_limit_groups"
);
const params = {
"term": "eveniet",
"per_page": "3",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
[],
[]
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 20,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Create a new spend limit group
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/spend_limit_groups" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"nostrum\",
\"company_id\": 11,
\"cost_center_id\": 11,
\"description\": \"aspernatur\",
\"code\": \"molestias\",
\"daily_volume_limit\": 2663.40688,
\"weekly_volume_limit\": 59.947751,
\"monthly_volume_limit\": 5397095.236771144,
\"active\": false
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/spend_limit_groups"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "nostrum",
"company_id": 11,
"cost_center_id": 11,
"description": "aspernatur",
"code": "molestias",
"daily_volume_limit": 2663.40688,
"weekly_volume_limit": 59.947751,
"monthly_volume_limit": 5397095.236771144,
"active": false
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": []
}
Received response:
Request failed with error:
Show a specified spend limit group.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/spend_limit_groups/2" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/spend_limit_groups/2"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": []
}
Received response:
Request failed with error:
Update the specified spend limit group
requires authentication
Example request:
curl --request PUT \
"https://cupidapiv2.smartflowtech.com/api/spend_limit_groups/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"daily_volume_limit\": 120138.84724955,
\"weekly_volume_limit\": 39162.3177612,
\"monthly_volume_limit\": 12015573.7419023,
\"active\": false
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/spend_limit_groups/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"daily_volume_limit": 120138.84724955,
"weekly_volume_limit": 39162.3177612,
"monthly_volume_limit": 12015573.7419023,
"active": false
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": []
}
Received response:
Request failed with error:
Delete a spend group
requires authentication
Example request:
curl --request DELETE \
"https://cupidapiv2.smartflowtech.com/api/spend_limit_groups/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/spend_limit_groups/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (200):
{
"data": []
}
Received response:
Request failed with error:
Display a listing of the drivers or search by fullname, address, phone number, email, driver speciality, status.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/drivers?term=a&per_page=17" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/drivers"
);
const params = {
"term": "a",
"per_page": "17",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"company": null,
"vehicles": []
},
{
"company": null,
"vehicles": []
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 20,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Create a new driver
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/drivers" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"company_id\": 19,
\"fullname\": \"rerum\",
\"address\": \"est\",
\"phone_number\": 844979.602711,
\"email\": \"zachariah.balistreri@example.org\",
\"driver_speciality\": \"est\",
\"status\": \"molestias\"
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/drivers"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"company_id": 19,
"fullname": "rerum",
"address": "est",
"phone_number": 844979.602711,
"email": "zachariah.balistreri@example.org",
"driver_speciality": "est",
"status": "molestias"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"company": null,
"vehicles": []
}
}
Received response:
Request failed with error:
Show a specified driver.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/drivers/14" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/drivers/14"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"company": null,
"vehicles": []
}
}
Received response:
Request failed with error:
Update the specified driver
requires authentication
Example request:
curl --request PUT \
"https://cupidapiv2.smartflowtech.com/api/drivers/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"company_id\": 20,
\"fullname\": \"enim\",
\"address\": \"repellendus\",
\"phone_number\": 297.6323347,
\"email\": \"rdurgan@example.com\",
\"driver_speciality\": \"vel\",
\"status\": \"temporibus\"
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/drivers/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"company_id": 20,
"fullname": "enim",
"address": "repellendus",
"phone_number": 297.6323347,
"email": "rdurgan@example.com",
"driver_speciality": "vel",
"status": "temporibus"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"company": null,
"vehicles": []
}
}
Received response:
Request failed with error:
Delete a driver
requires authentication
Example request:
curl --request DELETE \
"https://cupidapiv2.smartflowtech.com/api/drivers/2" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/drivers/2"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Display a listing of the vehicles or search by registration number, tank capacity, model, fuel type, color, brand.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/vehicles?term=quas&per_page=7" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vehicles"
);
const params = {
"term": "quas",
"per_page": "7",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"company": null,
"group": [],
"driver": null,
"costCenter": null,
"vehicle_plate_number": null,
"nfcTag": null
},
{
"company": null,
"group": [],
"driver": null,
"costCenter": null,
"vehicle_plate_number": null,
"nfcTag": null
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 20,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Create a new vehicle
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/vehicles" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"company_id\": 13,
\"vendor_id\": 3,
\"driver_id\": 18,
\"nfc_tag_id\": 10,
\"group_id\": 4,
\"registration_number\": \"id\",
\"tank_capacity\": \"maiores\",
\"auth_type\": \"rem\",
\"tracker_id\": \"optio\",
\"model\": \"officia\",
\"engine_capacity\": \"eveniet\",
\"fuel_type\": \"PMS\",
\"color\": \"est\",
\"brand\": \"consequatur\",
\"active\": true,
\"weight\": \"ut\",
\"tonnage\": \"atque\",
\"trailer_type\": \"ad\",
\"age\": \"consequatur\"
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vehicles"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"company_id": 13,
"vendor_id": 3,
"driver_id": 18,
"nfc_tag_id": 10,
"group_id": 4,
"registration_number": "id",
"tank_capacity": "maiores",
"auth_type": "rem",
"tracker_id": "optio",
"model": "officia",
"engine_capacity": "eveniet",
"fuel_type": "PMS",
"color": "est",
"brand": "consequatur",
"active": true,
"weight": "ut",
"tonnage": "atque",
"trailer_type": "ad",
"age": "consequatur"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"company": null,
"group": [],
"driver": null,
"costCenter": null,
"vehicle_plate_number": null,
"nfcTag": null
}
}
Received response:
Request failed with error:
Show a specified vehicle.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/vehicles/7" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vehicles/7"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"company": null,
"group": [],
"driver": null,
"costCenter": null,
"vehicle_plate_number": null,
"nfcTag": null
}
}
Received response:
Request failed with error:
Update the specified vehicle
requires authentication
Example request:
curl --request PUT \
"https://cupidapiv2.smartflowtech.com/api/vehicles/5" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"company_id\": 9,
\"driver_id\": 7,
\"nfc_tag_id\": 9,
\"group_id\": 11,
\"registration_number\": \"illo\",
\"tank_capacity\": \"eos\",
\"auth_type\": \"sed\",
\"tracker_id\": \"dolorem\",
\"model\": \"deleniti\",
\"engine_capacity\": \"excepturi\",
\"fuel_type\": \"HHK\",
\"color\": \"maiores\",
\"brand\": \"officiis\",
\"active\": true,
\"weight\": \"vero\",
\"tonnage\": \"consectetur\",
\"trailer_type\": \"officia\",
\"age\": \"dolor\"
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vehicles/5"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"company_id": 9,
"driver_id": 7,
"nfc_tag_id": 9,
"group_id": 11,
"registration_number": "illo",
"tank_capacity": "eos",
"auth_type": "sed",
"tracker_id": "dolorem",
"model": "deleniti",
"engine_capacity": "excepturi",
"fuel_type": "HHK",
"color": "maiores",
"brand": "officiis",
"active": true,
"weight": "vero",
"tonnage": "consectetur",
"trailer_type": "officia",
"age": "dolor"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"company": null,
"group": [],
"driver": null,
"costCenter": null,
"vehicle_plate_number": null,
"nfcTag": null
}
}
Received response:
Request failed with error:
Delete a vehicle
requires authentication
Example request:
curl --request DELETE \
"https://cupidapiv2.smartflowtech.com/api/vehicles/4" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vehicles/4"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Display a listing of the NFC tags or search by NFC tag type, NFC tag code, NFC tag oem ID, card number, card state, station name.
requires authentication
Create a new NFC tag
requires authentication
Show a specified NFC tag.
requires authentication
Update the specified NFC tag
requires authentication
Delete a NFC tag
requires authentication
Display a listing of the NFC Tag Trackers or search by NFC Tag Tracker Payment History Ref, NFC Tag Tracker Address.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/nfc_tag_trackers?term=iure&station_id=18&per_page=19" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/nfc_tag_trackers"
);
const params = {
"term": "iure",
"station_id": "18",
"per_page": "19",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: cupid_session=8aqX0MpACtLV8UXTSn4YPJOZF0Bi5IwlykJkfe4u; expires=Thu, 28 Aug 2025 13:25:20 GMT; Max-Age=7200; path=/; httponly; samesite=lax
{
"message": "The route api/nfc_tag_trackers could not be found."
}
Received response:
Request failed with error:
Create a new NFC Tag Tracker
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/nfc_tag_trackers" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/nfc_tag_trackers"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Show a specified NFC Tag Tracker.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/nfc_tag_trackers/20" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/nfc_tag_trackers/20"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: cupid_session=xwGOzaX0QHyKOneDA6nQ5XFs65WO9pfsAysN8Gha; expires=Thu, 28 Aug 2025 13:25:20 GMT; Max-Age=7200; path=/; httponly; samesite=lax
{
"message": "The route api/nfc_tag_trackers/20 could not be found."
}
Received response:
Request failed with error:
Update the specified NFC Tag Tracker
requires authentication
Example request:
curl --request PUT \
"https://cupidapiv2.smartflowtech.com/api/nfc_tag_trackers/15" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/nfc_tag_trackers/15"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Delete a NFC Tag Tracker
requires authentication
Example request:
curl --request DELETE \
"https://cupidapiv2.smartflowtech.com/api/nfc_tag_trackers/7" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/nfc_tag_trackers/7"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Generate pin for specified NFC Tag
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/generate_pin/15" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/generate_pin/15"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: cupid_session=6e5iT1Whi4hNVUKgmblFVkKA0WpmRriWqdgbP770; expires=Thu, 28 Aug 2025 13:25:20 GMT; Max-Age=7200; path=/; httponly; samesite=lax
{
"message": "The route api/generate_pin/15 could not be found."
}
Received response:
Request failed with error:
Get a paginated list of unassigned NFC tags
requires authentication
Vendor Assign NFC tag
requires authentication
Example request:
curl --request PATCH \
"https://cupidapiv2.smartflowtech.com/api/vendor_assign_nfc_tag/earum" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"vehicle_id\": 8,
\"user_id\": 4,
\"company_id\": 6
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vendor_assign_nfc_tag/earum"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"vehicle_id": 8,
"user_id": 4,
"company_id": 6
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"vendor": null,
"station": null,
"createdBy": null,
"company": null,
"vehicles": [],
"user": null
}
}
Received response:
Request failed with error:
Vendor Station NFC tag
requires authentication
Example request:
curl --request PATCH \
"https://cupidapiv2.smartflowtech.com/api/vendor_nfctag_stations/1?station_id=12&station_name=consectetur" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vendor_nfctag_stations/1"
);
const params = {
"station_id": "12",
"station_name": "consectetur",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"vendor": null,
"station": null,
"createdBy": null,
"company": null,
"vehicles": [],
"user": null
}
}
Received response:
Request failed with error:
Create a manual purchase upload
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/manual_purchase_upload" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"sm_station_id\": \"dolorum\",
\"station_name\": \"a\",
\"app_mode\": \"FCC MODE\",
\"group_id\": 7,
\"product\": \"AGO\",
\"volume\": \"voluptatibus\",
\"selling_price\": \"dolorum\",
\"pin\": \"quaerat\",
\"pump\": \"maiores\",
\"way_bill_number\": \"nulla\"
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/manual_purchase_upload"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"sm_station_id": "dolorum",
"station_name": "a",
"app_mode": "FCC MODE",
"group_id": 7,
"product": "AGO",
"volume": "voluptatibus",
"selling_price": "dolorum",
"pin": "quaerat",
"pump": "maiores",
"way_bill_number": "nulla"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
POST api/terminal_nfctag_payment
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/terminal_nfctag_payment" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"sm_station_id\": \"aspernatur\",
\"station_name\": \"nam\",
\"app_mode\": \"FCC MODE\",
\"group_id\": 10,
\"product\": \"ATK\",
\"volume\": \"unde\",
\"selling_price\": \"officia\",
\"pin\": \"omnis\",
\"pump\": \"non\",
\"way_bill_number\": \"tempora\"
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/terminal_nfctag_payment"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"sm_station_id": "aspernatur",
"station_name": "nam",
"app_mode": "FCC MODE",
"group_id": 10,
"product": "ATK",
"volume": "unde",
"selling_price": "officia",
"pin": "omnis",
"pump": "non",
"way_bill_number": "tempora"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Display a listing of the Destination
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/bhn_destination?term=expedita" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/bhn_destination"
);
const params = {
"term": "expedita",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"name": "sit",
"code": "praesentium-quas-accusantium-qui-dolores-impedit",
"description": "Cat: now I shall be a letter, after all: it's a French mouse, come over with William the Conqueror.' (For, with all speed back to the other, and making quite a long argument with the Lory, as soon.",
"updated_at": "2025-08-28T11:25:20.000000Z",
"created_at": "2025-08-28T11:25:20.000000Z",
"id": 15
},
{
"name": "facere",
"code": "in-quia-velit-saepe-quo-ut-doloribus-dolorem-consequatur",
"description": "The baby grunted again, and said, without opening its eyes, for it to annoy, Because he knows it teases.' CHORUS. (In which the wretched Hatter trembled so, that Alice had never seen such a thing I.",
"updated_at": "2025-08-28T11:25:20.000000Z",
"created_at": "2025-08-28T11:25:20.000000Z",
"id": 16
}
]
}
Received response:
Request failed with error:
Display a listing of the Vehicle
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/vehicle?vendor_id=7" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vehicle"
);
const params = {
"vendor_id": "7",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"company": null,
"group": [],
"driver": null,
"costCenter": null,
"vehicle_plate_number": null,
"nfcTag": null
},
{
"company": null,
"group": [],
"driver": null,
"costCenter": null,
"vehicle_plate_number": null,
"nfcTag": null
}
]
}
Received response:
Request failed with error:
Display a listing of the Destination Allocation
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/bhn_destination_allocation" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/bhn_destination_allocation"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
[],
[]
]
}
Received response:
Request failed with error:
Display a Realtime Total Quantity of Destination Allocation
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/bhn_destination_allocation_total_quantity?destination_source_id=10&destination_stoppage_id=11" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/bhn_destination_allocation_total_quantity"
);
const params = {
"destination_source_id": "10",
"destination_stoppage_id": "11",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
[],
[]
]
}
Received response:
Request failed with error:
Display a listing of the Category
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/bhn_category" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/bhn_category"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"parent_id": 0,
"name": "ea",
"code": "in",
"updated_at": "2025-08-28T11:25:20.000000Z",
"created_at": "2025-08-28T11:25:20.000000Z",
"id": 19,
"is_parent": "nass"
},
{
"parent_id": 0,
"name": "ullam",
"code": "necessitatibus",
"updated_at": "2025-08-28T11:25:20.000000Z",
"created_at": "2025-08-28T11:25:20.000000Z",
"id": 20,
"is_parent": "nass"
}
]
}
Received response:
Request failed with error:
Display a listing of the Sub Category
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/bhn_sub_category?category_id=10" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/bhn_sub_category"
);
const params = {
"category_id": "10",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"parent_id": 4,
"name": "impedit",
"code": "repudiandae",
"updated_at": "2025-08-28T11:25:20.000000Z",
"created_at": "2025-08-28T11:25:20.000000Z",
"id": 21,
"is_parent": "nass"
},
{
"parent_id": 8,
"name": "aut",
"code": "unde",
"updated_at": "2025-08-28T11:25:20.000000Z",
"created_at": "2025-08-28T11:25:20.000000Z",
"id": 22,
"is_parent": "nass"
}
]
}
Received response:
Request failed with error:
Display a listing of the BHN Categories or search by name.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/bhn_categories?term=repellendus&per_page=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/bhn_categories"
);
const params = {
"term": "repellendus",
"per_page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"parent_id": 1,
"name": "sunt",
"code": "aliquam",
"updated_at": "2025-08-28T11:25:20.000000Z",
"created_at": "2025-08-28T11:25:20.000000Z",
"id": 23,
"is_parent": "nass"
},
{
"parent_id": 4,
"name": "illum",
"code": "iste",
"updated_at": "2025-08-28T11:25:20.000000Z",
"created_at": "2025-08-28T11:25:20.000000Z",
"id": 24,
"is_parent": "nass"
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 20,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Create a new BHN Category
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/bhn_categories" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"parent_id\": 2,
\"name\": \"aliquam\",
\"code\": \"ducimus\"
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/bhn_categories"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"parent_id": 2,
"name": "aliquam",
"code": "ducimus"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"parent_id": 0,
"name": "rem",
"code": "sed",
"updated_at": "2025-08-28T11:25:20.000000Z",
"created_at": "2025-08-28T11:25:20.000000Z",
"id": 25,
"is_parent": "nass"
}
}
Received response:
Request failed with error:
Show a specified BHN Category.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/bhn_categories/6" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/bhn_categories/6"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"parent_id": 8,
"name": "soluta",
"code": "totam",
"updated_at": "2025-08-28T11:25:20.000000Z",
"created_at": "2025-08-28T11:25:20.000000Z",
"id": 26,
"is_parent": "nass"
}
}
Received response:
Request failed with error:
Update the specified BHN Category
requires authentication
Example request:
curl --request PUT \
"https://cupidapiv2.smartflowtech.com/api/bhn_categories/9" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"parent_id\": 19,
\"name\": \"accusantium\",
\"code\": \"dolorem\"
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/bhn_categories/9"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"parent_id": 19,
"name": "accusantium",
"code": "dolorem"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"parent_id": 4,
"name": "deserunt",
"code": "delectus",
"updated_at": "2025-08-28T11:25:20.000000Z",
"created_at": "2025-08-28T11:25:20.000000Z",
"id": 27,
"is_parent": "nass"
}
}
Received response:
Request failed with error:
Delete a BHN Category
requires authentication
Example request:
curl --request DELETE \
"https://cupidapiv2.smartflowtech.com/api/bhn_categories/7" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/bhn_categories/7"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Display a listing of the BHN Categories or search by name.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/bhn_contracts?term=sunt&per_page=19&company_id=perferendis&vehicle_id=blanditiis&source_id=quos" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/bhn_contracts"
);
const params = {
"term": "sunt",
"per_page": "19",
"company_id": "perferendis",
"vehicle_id": "blanditiis",
"source_id": "quos",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"company": null,
"vehicle": null,
"source": null
},
{
"company": null,
"vehicle": null,
"source": null
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 20,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Create a new BHN Contract
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/bhn_contracts" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"company_id\": \"nobis\",
\"vehicle_id\": \"voluptatum\",
\"source_id\": \"officiis\",
\"contract_type\": \"doloribus\",
\"tenure_start_date\": \"2025-08-28T11:25:20\",
\"tenure_end_date\": \"2084-07-15\",
\"active\": false
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/bhn_contracts"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"company_id": "nobis",
"vehicle_id": "voluptatum",
"source_id": "officiis",
"contract_type": "doloribus",
"tenure_start_date": "2025-08-28T11:25:20",
"tenure_end_date": "2084-07-15",
"active": false
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"company": null,
"vehicle": null,
"source": null
}
}
Received response:
Request failed with error:
Show a specified BHN Contract.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/bhn_contracts/8" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/bhn_contracts/8"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"company": null,
"vehicle": null,
"source": null
}
}
Received response:
Request failed with error:
Update the specified BHN Contract
requires authentication
Example request:
curl --request PUT \
"https://cupidapiv2.smartflowtech.com/api/bhn_contracts/3" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"company_id\": \"inventore\",
\"vehicle_id\": \"aut\",
\"source_id\": \"rerum\",
\"contract_type\": \"non\",
\"tenure_start_date\": \"2025-08-28T11:25:20\",
\"tenure_end_date\": \"2039-08-12\",
\"active\": false
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/bhn_contracts/3"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"company_id": "inventore",
"vehicle_id": "aut",
"source_id": "rerum",
"contract_type": "non",
"tenure_start_date": "2025-08-28T11:25:20",
"tenure_end_date": "2039-08-12",
"active": false
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"company": null,
"vehicle": null,
"source": null
}
}
Received response:
Request failed with error:
Delete a BHN Contract
requires authentication
Example request:
curl --request DELETE \
"https://cupidapiv2.smartflowtech.com/api/bhn_contracts/17" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/bhn_contracts/17"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Display a listing of the BHN Destinations or search by name.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/bhn_destinations?term=fuga&per_page=18" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/bhn_destinations"
);
const params = {
"term": "fuga",
"per_page": "18",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"name": "iste",
"code": "et-possimus-labore-molestias-itaque-dignissimos",
"description": "But said I could shut up like a writing-desk?' 'Come, we shall get on better.' 'I'd rather finish my tea,' said the young man said, 'And your hair has become very white; And yet I wish you wouldn't.",
"updated_at": "2025-08-28T11:25:20.000000Z",
"created_at": "2025-08-28T11:25:20.000000Z",
"id": 17
},
{
"name": "deserunt",
"code": "voluptatem-ut-omnis-excepturi-qui-cum-sapiente-culpa",
"description": "This of course, to begin at HIS time of life. The King's argument was, that her neck from being run over; and the Queen said severely 'Who is it twelve? I--' 'Oh, don't bother ME,' said the Hatter.",
"updated_at": "2025-08-28T11:25:20.000000Z",
"created_at": "2025-08-28T11:25:20.000000Z",
"id": 18
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 20,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Create a new BHN Destination
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/bhn_destinations" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"amet\",
\"code\": \"fuga\",
\"description\": \"vero\"
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/bhn_destinations"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "amet",
"code": "fuga",
"description": "vero"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"name": "rerum",
"code": "est-error-sed-laudantium-rerum-ipsam-est-ratione",
"description": "I know!' exclaimed Alice, who was trembling down to the Mock Turtle: 'why, if a dish or kettle had been to a mouse: she had drunk half the bottle, saying to herself what such an extraordinary ways.",
"updated_at": "2025-08-28T11:25:21.000000Z",
"created_at": "2025-08-28T11:25:21.000000Z",
"id": 19
}
}
Received response:
Request failed with error:
Show a specified BHN Destination.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/bhn_destinations/20" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/bhn_destinations/20"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"name": "fugit",
"code": "placeat-et-accusantium-quasi-dolores-repellat-cum-nostrum",
"description": "Hardly knowing what she was trying to make ONE respectable person!' Soon her eye fell on a crimson velvet cushion; and, last of all this time, sat down with wonder at the door between us. For.",
"updated_at": "2025-08-28T11:25:21.000000Z",
"created_at": "2025-08-28T11:25:21.000000Z",
"id": 20
}
}
Received response:
Request failed with error:
Update the specified BHN Destination
requires authentication
Example request:
curl --request PUT \
"https://cupidapiv2.smartflowtech.com/api/bhn_destinations/4" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"asperiores\",
\"code\": \"ipsa\",
\"description\": \"nisi\"
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/bhn_destinations/4"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "asperiores",
"code": "ipsa",
"description": "nisi"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"name": "iste",
"code": "autem-asperiores-doloremque-unde-accusantium-atque-accusantium-quo",
"description": "Was kindly permitted to pocket the spoon: While the Panther received knife and fork with a knife, it usually bleeds; and she looked up and straightening itself out again, so she went nearer to make.",
"updated_at": "2025-08-28T11:25:21.000000Z",
"created_at": "2025-08-28T11:25:21.000000Z",
"id": 21
}
}
Received response:
Request failed with error:
Delete a BHN Destination
requires authentication
Example request:
curl --request DELETE \
"https://cupidapiv2.smartflowtech.com/api/bhn_destinations/5" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/bhn_destinations/5"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Display a listing of the BHN Destinations Allocations or search by name.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/bhn_destination_allocations?term=harum&per_page=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/bhn_destination_allocations"
);
const params = {
"term": "harum",
"per_page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
[],
[]
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 20,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Create a new BHN Destination
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/bhn_destination_allocations" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"enim\",
\"destination_source_id\": \"quia\",
\"destination_stoppage_id\": \"eius\",
\"code\": \"dolor\",
\"allocated_quantity\": \"qui\"
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/bhn_destination_allocations"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "enim",
"destination_source_id": "quia",
"destination_stoppage_id": "eius",
"code": "dolor",
"allocated_quantity": "qui"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": []
}
Received response:
Request failed with error:
Show a specified BHN Destination.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/bhn_destination_allocations/16" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/bhn_destination_allocations/16"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": []
}
Received response:
Request failed with error:
Update the specified BHN Destination
requires authentication
Example request:
curl --request PUT \
"https://cupidapiv2.smartflowtech.com/api/bhn_destination_allocations/4" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"deserunt\",
\"destination_source_id\": \"minus\",
\"destination_stoppage_id\": \"placeat\",
\"code\": \"cupiditate\",
\"allocated_quantity\": \"facilis\"
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/bhn_destination_allocations/4"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "deserunt",
"destination_source_id": "minus",
"destination_stoppage_id": "placeat",
"code": "cupiditate",
"allocated_quantity": "facilis"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": []
}
Received response:
Request failed with error:
Delete a BHN Destination
requires authentication
Example request:
curl --request DELETE \
"https://cupidapiv2.smartflowtech.com/api/bhn_destination_allocations/9" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/bhn_destination_allocations/9"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Display a listing of the BHN Requests or search by registration number and waybill number.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/bhn_requests?term=rerum&status=odit&type=corrupti&per_page=2" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/bhn_requests"
);
const params = {
"term": "rerum",
"status": "odit",
"type": "corrupti",
"per_page": "2",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: cupid_session=r0knVuhEdUjjZSeHbeHQIAcpzb4F4T4vnPFYBxO2; expires=Thu, 28 Aug 2025 13:25:21 GMT; Max-Age=7200; path=/; httponly; samesite=lax
{
"message": "The route api/bhn_requests could not be found."
}
Received response:
Request failed with error:
Create a new BHN Request
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/bhn_requests" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"company_id\": 12,
\"type\": \"waybill_request\",
\"vehicle_id\": 3,
\"category_id\": 10,
\"sub_category_id\": 14,
\"way_bill_number\": \"et\",
\"source\": 4,
\"stoppage\": 4,
\"status\": \"Pending\",
\"allocated_quantity\": 15,
\"destination_allocation_ids\": [
16
],
\"remarks\": \"dignissimos\",
\"load_type\": \"light\",
\"submitted_user_id\": 20,
\"tonnage\": \"velit\",
\"age\": \"qui\",
\"trailer_type\": \"corporis\",
\"make\": \"odit\",
\"contract\": \"est\",
\"submitted_date\": \"2008-03-25\"
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/bhn_requests"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"company_id": 12,
"type": "waybill_request",
"vehicle_id": 3,
"category_id": 10,
"sub_category_id": 14,
"way_bill_number": "et",
"source": 4,
"stoppage": 4,
"status": "Pending",
"allocated_quantity": 15,
"destination_allocation_ids": [
16
],
"remarks": "dignissimos",
"load_type": "light",
"submitted_user_id": 20,
"tonnage": "velit",
"age": "qui",
"trailer_type": "corporis",
"make": "odit",
"contract": "est",
"submitted_date": "2008-03-25"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Show a specified BHN Request.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/bhn_requests/5" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/bhn_requests/5"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: cupid_session=B86qBJBiEbtBV9bCRE9kJIqqYDZm22ao9OPdRfyX; expires=Thu, 28 Aug 2025 13:25:21 GMT; Max-Age=7200; path=/; httponly; samesite=lax
{
"message": "The route api/bhn_requests/5 could not be found."
}
Received response:
Request failed with error:
Update the specified BHN Request
requires authentication
Example request:
curl --request PUT \
"https://cupidapiv2.smartflowtech.com/api/bhn_requests/4" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"type\": \"waybill_request\",
\"vehicle_id\": 19,
\"category_id\": 18,
\"sub_category_id\": 5,
\"way_bill_number\": \"laboriosam\",
\"source\": 12,
\"stoppage\": 3,
\"allocated_quantity\": 8,
\"destination_allocation_ids\": [
20
],
\"remarks\": \"sint\",
\"load_type\": \"heavy\",
\"rejection_reason\": \"velit\",
\"submitted_user_id\": 1,
\"approved_user_id\": 3,
\"rejected_user_id\": 4,
\"status\": \"Rejected\",
\"tonnage\": \"tenetur\",
\"age\": \"sint\",
\"trailer_type\": \"aspernatur\",
\"make\": \"quia\",
\"contract\": \"in\",
\"approve_date\": \"2005-04-09\",
\"reject_date\": \"2024-02-17\"
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/bhn_requests/4"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"type": "waybill_request",
"vehicle_id": 19,
"category_id": 18,
"sub_category_id": 5,
"way_bill_number": "laboriosam",
"source": 12,
"stoppage": 3,
"allocated_quantity": 8,
"destination_allocation_ids": [
20
],
"remarks": "sint",
"load_type": "heavy",
"rejection_reason": "velit",
"submitted_user_id": 1,
"approved_user_id": 3,
"rejected_user_id": 4,
"status": "Rejected",
"tonnage": "tenetur",
"age": "sint",
"trailer_type": "aspernatur",
"make": "quia",
"contract": "in",
"approve_date": "2005-04-09",
"reject_date": "2024-02-17"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Delete a BHN Request
requires authentication
Example request:
curl --request DELETE \
"https://cupidapiv2.smartflowtech.com/api/bhn_requests/17" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/bhn_requests/17"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
This endpoint would be used to process the truck number sent from the mobile app when a request is initialized.
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/truck_data_map" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"vehicle_id\": 8
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/truck_data_map"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"vehicle_id": 8
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
This endpoint would be used to update customer transaction id.
requires authentication
Example request:
curl --request PATCH \
"https://cupidapiv2.smartflowtech.com/api/update_transaction_id" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"transaction_type\": \"velox\",
\"id\": 19,
\"transaction_id\": 14
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/update_transaction_id"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"transaction_type": "velox",
"id": 19,
"transaction_id": 14
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
This endpoint would be used to get the CUPID FLEET report.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/cupid_fleet_report" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/cupid_fleet_report"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: cupid_session=OwYNjeygky0lhdkQcpvuHhAg0JFJgHFYHOaESKh6; expires=Thu, 28 Aug 2025 13:25:21 GMT; Max-Age=7200; path=/; httponly; samesite=lax
{
"message": "The route api/cupid_fleet_report could not be found."
}
Received response:
Request failed with error:
Get drivers for dropdown.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/get_drivers?term=fugit&per_page=10" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/get_drivers"
);
const params = {
"term": "fugit",
"per_page": "10",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"id": null,
"fullname": null,
"company_id": null
},
{
"id": null,
"fullname": null,
"company_id": null
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 20,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Get Vehicles for dropdown.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/get_vehicles?vendor_id=14" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/get_vehicles"
);
const params = {
"vendor_id": "14",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"id": null,
"company_id": null,
"vendor_id": null,
"registration_number": null
},
{
"id": null,
"company_id": null,
"vendor_id": null,
"registration_number": null
}
]
}
Received response:
Request failed with error:
Get NfcTags for dropdown.
requires authentication
This endpoint would be used to validate the waybill number.
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/validate_waybill_number" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/validate_waybill_number"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
General Endpoints
List of audit trail logs
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/audit_trail?per_page=14" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/audit_trail"
);
const params = {
"per_page": "14",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"user": null
},
{
"user": null
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 20,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Test Redis connection
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/test_redis" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/test_redis"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: cupid_session=baNrVu46DHw24yxsgsRM35riuby3jV1DQhPli2Lg; expires=Thu, 28 Aug 2025 13:25:17 GMT; Max-Age=7200; path=/; httponly; samesite=lax
{
"message": "The route api/test_redis could not be found."
}
Received response:
Request failed with error:
Display a listing of the states or search by name
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/states?term=debitis&per_page=13" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/states"
);
const params = {
"term": "debitis",
"per_page": "13",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"country": null
},
{
"country": null
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 20,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Create a new state
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/states" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"omnis\",
\"country_id\": 20
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/states"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "omnis",
"country_id": 20
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"country": null
}
}
Received response:
Request failed with error:
Show a specified state.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/states/4" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/states/4"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"country": null
}
}
Received response:
Request failed with error:
Update the specified state
requires authentication
Example request:
curl --request PUT \
"https://cupidapiv2.smartflowtech.com/api/states/18" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"eius\",
\"country_id\": 17
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/states/18"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "eius",
"country_id": 17
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"country": null
}
}
Received response:
Request failed with error:
Delete a state
requires authentication
Example request:
curl --request DELETE \
"https://cupidapiv2.smartflowtech.com/api/states/10" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/states/10"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Display a listing of the countries or search by name
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/countries?term=sed&per_page=2" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/countries"
);
const params = {
"term": "sed",
"per_page": "2",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
[],
[]
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 20,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Create a new country
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/countries" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"asperiores\",
\"code\": 18,
\"phonecode\": 12
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/countries"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "asperiores",
"code": 18,
"phonecode": 12
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": []
}
Received response:
Request failed with error:
Show a specified country.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/countries/6" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/countries/6"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": []
}
Received response:
Request failed with error:
Update the specified country
requires authentication
Example request:
curl --request PUT \
"https://cupidapiv2.smartflowtech.com/api/countries/6" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"in\",
\"code\": 1,
\"phonecode\": 1
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/countries/6"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "in",
"code": 1,
"phonecode": 1
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": []
}
Received response:
Request failed with error:
Delete a country
requires authentication
Example request:
curl --request DELETE \
"https://cupidapiv2.smartflowtech.com/api/countries/7" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/countries/7"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Display a listing of the cities or search by name
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/cities?term=accusantium&per_page=8" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/cities"
);
const params = {
"term": "accusantium",
"per_page": "8",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"state": null
},
{
"state": null
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 20,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Create a new city
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/cities" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"laborum\",
\"state_id\": 1
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/cities"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "laborum",
"state_id": 1
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"state": null
}
}
Received response:
Request failed with error:
Show a specified city.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/cities/13" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/cities/13"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"state": null
}
}
Received response:
Request failed with error:
Update the specified city
requires authentication
Example request:
curl --request PUT \
"https://cupidapiv2.smartflowtech.com/api/cities/15" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"enim\",
\"state_id\": 2
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/cities/15"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "enim",
"state_id": 2
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"state": null
}
}
Received response:
Request failed with error:
Delete a city
requires authentication
Example request:
curl --request DELETE \
"https://cupidapiv2.smartflowtech.com/api/cities/6" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/cities/6"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Display a listing of the Vehicle Makes or search by name
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/vehicle_make" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vehicle_make"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"vehicleModel": []
},
{
"vehicleModel": []
}
]
}
Received response:
Request failed with error:
Display a listing of the Vehicle Models or search by name
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/vehicle_model?vehicle_make_id=3" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vehicle_model"
);
const params = {
"vehicle_make_id": "3",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"vehicleMake": null
},
{
"vehicleMake": null
}
]
}
Received response:
Request failed with error:
Display a listing of the Vehicle Types or search by name
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/vehicle_type" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vehicle_type"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
[],
[]
]
}
Received response:
Request failed with error:
Display a listing of the Vehicle Makes or search by name
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/vehicle_makes?term=non&per_page=12" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vehicle_makes"
);
const params = {
"term": "non",
"per_page": "12",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"vehicleModel": []
},
{
"vehicleModel": []
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 20,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Create a new Vehicle Make
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/vehicle_makes" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"excepturi\",
\"code\": \"tenetur\"
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vehicle_makes"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "excepturi",
"code": "tenetur"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"vehicleModel": []
}
}
Received response:
Request failed with error:
Show a specified Vehicle Make.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/vehicle_makes/3" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vehicle_makes/3"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"vehicleModel": []
}
}
Received response:
Request failed with error:
Update the specified Vehicle Make
requires authentication
Example request:
curl --request PUT \
"https://cupidapiv2.smartflowtech.com/api/vehicle_makes/15" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"praesentium\",
\"code\": \"qui\"
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vehicle_makes/15"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "praesentium",
"code": "qui"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"vehicleModel": []
}
}
Received response:
Request failed with error:
Delete a Vehicle Make
requires authentication
Example request:
curl --request DELETE \
"https://cupidapiv2.smartflowtech.com/api/vehicle_makes/20" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vehicle_makes/20"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Display a listing of the vehicle Models or search by name
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/vehicle_models?term=voluptatem&per_page=18" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vehicle_models"
);
const params = {
"term": "voluptatem",
"per_page": "18",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"vehicleMake": null
},
{
"vehicleMake": null
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 20,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Create a new Vehicle Model
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/vehicle_models" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"voluptatum\",
\"code\": \"sit\",
\"vehicle_make_id\": \"velit\"
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vehicle_models"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "voluptatum",
"code": "sit",
"vehicle_make_id": "velit"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"vehicleMake": null
}
}
Received response:
Request failed with error:
Show a specified Vehicle Model.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/vehicle_models/9" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vehicle_models/9"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"vehicleMake": null
}
}
Received response:
Request failed with error:
Update the specified Vehicle Model
requires authentication
Example request:
curl --request PUT \
"https://cupidapiv2.smartflowtech.com/api/vehicle_models/19" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"assumenda\",
\"code\": \"atque\",
\"vehicle_make_id\": \"incidunt\"
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vehicle_models/19"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "assumenda",
"code": "atque",
"vehicle_make_id": "incidunt"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"vehicleMake": null
}
}
Received response:
Request failed with error:
Delete a Vehicle Model
requires authentication
Example request:
curl --request DELETE \
"https://cupidapiv2.smartflowtech.com/api/vehicle_models/18" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vehicle_models/18"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Display a listing of the vehicleTypes or search by name
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/vehicle_types?term=mollitia&per_page=4" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vehicle_types"
);
const params = {
"term": "mollitia",
"per_page": "4",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
[],
[]
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 20,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Create a new vehicleType
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/vehicle_types" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"magnam\"
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vehicle_types"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "magnam"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": []
}
Received response:
Request failed with error:
Show a specified vehicleType.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/vehicle_types/16" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vehicle_types/16"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": []
}
Received response:
Request failed with error:
Update the specified vehicleType
requires authentication
Example request:
curl --request PUT \
"https://cupidapiv2.smartflowtech.com/api/vehicle_types/9" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"voluptas\"
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vehicle_types/9"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "voluptas"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": []
}
Received response:
Request failed with error:
Delete a vehicleType
requires authentication
Example request:
curl --request DELETE \
"https://cupidapiv2.smartflowtech.com/api/vehicle_types/18" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vehicle_types/18"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Display a listing of the countries or search by name
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/country?term=accusantium" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/country"
);
const params = {
"term": "accusantium",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
[],
[]
]
}
Received response:
Request failed with error:
Display a listing of the states or search by names
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/country/state?country_id=ab&term=dolor" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/country/state"
);
const params = {
"country_id": "ab",
"term": "dolor",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"country": null
},
{
"country": null
}
]
}
Received response:
Request failed with error:
Display a listing of the cities or search by name
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/state/city?state_id=autem&term=dolorum" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/state/city"
);
const params = {
"state_id": "autem",
"term": "dolorum",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"state": null
},
{
"state": null
}
]
}
Received response:
Request failed with error:
Display a listing of the products or search by name, code.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/products?term=quis&per_page=7" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/products"
);
const params = {
"term": "quis",
"per_page": "7",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"name": "Diesel",
"code": "LPFO",
"updated_at": "2025-08-28T11:25:22.000000Z",
"created_at": "2025-08-28T11:25:22.000000Z",
"id": 11
},
{
"name": "Kerosine",
"code": "LPG",
"updated_at": "2025-08-28T11:25:22.000000Z",
"created_at": "2025-08-28T11:25:22.000000Z",
"id": 12
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 20,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Create a new product
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/products" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"excepturi\",
\"code\": \"ipsam\"
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/products"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "excepturi",
"code": "ipsam"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"name": "Kerosine",
"code": "DPK",
"updated_at": "2025-08-28T11:25:22.000000Z",
"created_at": "2025-08-28T11:25:22.000000Z",
"id": 13
}
}
Received response:
Request failed with error:
Show a specified product.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/products/11" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/products/11"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"name": "Diesel",
"code": "DPK",
"updated_at": "2025-08-28T11:25:22.000000Z",
"created_at": "2025-08-28T11:25:22.000000Z",
"id": 14
}
}
Received response:
Request failed with error:
Update the specified product
requires authentication
Example request:
curl --request PUT \
"https://cupidapiv2.smartflowtech.com/api/products/2" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"dolores\",
\"code\": \"voluptas\"
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/products/2"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "dolores",
"code": "voluptas"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"name": "Gas",
"code": "LPG",
"updated_at": "2025-08-28T11:25:22.000000Z",
"created_at": "2025-08-28T11:25:22.000000Z",
"id": 15
}
}
Received response:
Request failed with error:
Delete a product
requires authentication
Example request:
curl --request DELETE \
"https://cupidapiv2.smartflowtech.com/api/products/12" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/products/12"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Display a listing of the payment methods or search by name, key, merchant code.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/payment_methods?term=qui&per_page=3" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/payment_methods"
);
const params = {
"term": "qui",
"per_page": "3",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"name": "Paystacks",
"key": "paystack",
"pay_percent": 1.5,
"cap_fee": 2500,
"max_commission": 2000,
"verification_url": "https://api.paystack.co/transaction/verify/",
"url": "https://api.paystack.co/",
"public_key": null,
"secret_key": null,
"merchant_no": null,
"active": true
},
{
"name": "Paystacks",
"key": "paystack",
"pay_percent": 1.5,
"cap_fee": 2500,
"max_commission": 2000,
"verification_url": "https://api.paystack.co/transaction/verify/",
"url": "https://api.paystack.co/",
"public_key": null,
"secret_key": null,
"merchant_no": null,
"active": true
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 20,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Create a new payment method
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/payment_methods" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"sed\",
\"key\": \"quidem\",
\"pay_percent\": 0.45,
\"cap_fee\": 43.8768,
\"max_commission\": 2627039,
\"verification_url\": \"http:\\/\\/volkman.info\\/nam-sequi-praesentium-vitae-ut-sequi-in.html\",
\"public_key\": \"consequuntur\",
\"secret_key\": \"sapiente\",
\"merchant_no\": \"aut\",
\"active\": false
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/payment_methods"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "sed",
"key": "quidem",
"pay_percent": 0.45,
"cap_fee": 43.8768,
"max_commission": 2627039,
"verification_url": "http:\/\/volkman.info\/nam-sequi-praesentium-vitae-ut-sequi-in.html",
"public_key": "consequuntur",
"secret_key": "sapiente",
"merchant_no": "aut",
"active": false
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"name": "Paystacks",
"key": "paystack",
"pay_percent": 1.5,
"cap_fee": 2500,
"max_commission": 2000,
"verification_url": "https://api.paystack.co/transaction/verify/",
"url": "https://api.paystack.co/",
"public_key": null,
"secret_key": null,
"merchant_no": null,
"active": true
}
}
Received response:
Request failed with error:
Show a specified payment method.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/payment_methods/20" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/payment_methods/20"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"name": "Paystacks",
"key": "paystack",
"pay_percent": 1.5,
"cap_fee": 2500,
"max_commission": 2000,
"verification_url": "https://api.paystack.co/transaction/verify/",
"url": "https://api.paystack.co/",
"public_key": null,
"secret_key": null,
"merchant_no": null,
"active": true
}
}
Received response:
Request failed with error:
Update the specified payment method
requires authentication
Example request:
curl --request PUT \
"https://cupidapiv2.smartflowtech.com/api/payment_methods/8" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"commodi\",
\"key\": \"est\",
\"pay_percent\": 572286930.3836235,
\"cap_fee\": 1054774.252,
\"max_commission\": 220580.948598,
\"verification_url\": \"http:\\/\\/www.kunze.com\\/omnis-ut-ipsa-consequatur-fugiat-eos.html\",
\"public_key\": \"occaecati\",
\"secret_key\": \"voluptatem\",
\"merchant_no\": \"molestiae\",
\"active\": true
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/payment_methods/8"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "commodi",
"key": "est",
"pay_percent": 572286930.3836235,
"cap_fee": 1054774.252,
"max_commission": 220580.948598,
"verification_url": "http:\/\/www.kunze.com\/omnis-ut-ipsa-consequatur-fugiat-eos.html",
"public_key": "occaecati",
"secret_key": "voluptatem",
"merchant_no": "molestiae",
"active": true
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"name": "Paystacks",
"key": "paystack",
"pay_percent": 1.5,
"cap_fee": 2500,
"max_commission": 2000,
"verification_url": "https://api.paystack.co/transaction/verify/",
"url": "https://api.paystack.co/",
"public_key": null,
"secret_key": null,
"merchant_no": null,
"active": true
}
}
Received response:
Request failed with error:
Delete a payment method
requires authentication
Example request:
curl --request DELETE \
"https://cupidapiv2.smartflowtech.com/api/payment_methods/4" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/payment_methods/4"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Display a listing of the banks or search by name, ussd code.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/banks?term=eos&per_page=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/banks"
);
const params = {
"term": "eos",
"per_page": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
[],
[]
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 20,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Create a new bank
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/banks" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "bank_name=reiciendis" \
--form "bank_logo=@/tmp/phpdAgkvc" const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/banks"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('bank_name', 'reiciendis');
body.append('bank_logo', document.querySelector('input[name="bank_logo"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Example response (200):
{
"data": []
}
Received response:
Request failed with error:
Show a specified bank.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/banks/17" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/banks/17"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": []
}
Received response:
Request failed with error:
Update the specified bank
requires authentication
Example request:
curl --request PUT \
"https://cupidapiv2.smartflowtech.com/api/banks/10" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "bank_name=enim" \
--form "bank_logo=@/tmp/php8D3ybx" const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/banks/10"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('bank_name', 'enim');
body.append('bank_logo', document.querySelector('input[name="bank_logo"]').files[0]);
fetch(url, {
method: "PUT",
headers,
body,
}).then(response => response.json());Example response (200):
{
"data": []
}
Received response:
Request failed with error:
Delete a bank
requires authentication
Example request:
curl --request DELETE \
"https://cupidapiv2.smartflowtech.com/api/banks/20" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/banks/20"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Get a list of Paystacks banks
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/paystack_bank_lists" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/paystack_bank_lists"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: cupid_session=mCFgW1WWb40fQcqnHHXLC7EL5FQRVynaB4Qulfnq; expires=Thu, 28 Aug 2025 13:25:22 GMT; Max-Age=7200; path=/; httponly; samesite=lax
{
"message": "The route api/paystack_bank_lists could not be found."
}
Received response:
Request failed with error:
Display a listing of the banks or search by name
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/bank_list?term=beatae" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/bank_list"
);
const params = {
"term": "beatae",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
[],
[]
]
}
Received response:
Request failed with error:
PAM Endpoints
Display a listing of the PAM devices or search by mac address, ip address or codename.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/pam_devices?term=necessitatibus&per_page=9" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/pam_devices"
);
const params = {
"term": "necessitatibus",
"per_page": "9",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"mac_address": "B7:0C:C8:E4:6C:38",
"last_time_online": {
"date": "1996-10-07 08:29:05.000000",
"timezone_type": 3,
"timezone": "UTC"
},
"ip_address": "108.150.107.76",
"current_station_name": "Wilkinson-Kutch",
"current_oem_station_id": "008807",
"current_app_version": "1.63.64",
"expected_app_version": "6.40.78",
"current_sm_company_id": 4,
"current_sm_station_id": 9,
"expected_sm_company_id": 1,
"expected_sm_station_id": 1,
"expected_oem_station_id": 2,
"expected_station_name": "8D:06:2F:14:81:91",
"app_mode": null,
"codename": "PAM-1",
"last_local_mapping_updated_at": {
"date": "2001-01-03 08:08:36.000000",
"timezone_type": 3,
"timezone": "UTC"
},
"last_remote_mapping_updated_at": {
"date": "2022-04-24 15:11:25.000000",
"timezone_type": 3,
"timezone": "UTC"
},
"updated_at": "2025-08-28T11:25:17.000000Z",
"created_at": "2025-08-28T11:25:17.000000Z",
"id": 11
},
{
"mac_address": "D8:48:D4:0B:1E:DC",
"last_time_online": {
"date": "2020-11-21 21:20:00.000000",
"timezone_type": 3,
"timezone": "UTC"
},
"ip_address": "172.233.216.97",
"current_station_name": "Kub, Mante and Lang",
"current_oem_station_id": "789445",
"current_app_version": "1.81.13",
"expected_app_version": "7.37.94",
"current_sm_company_id": 2,
"current_sm_station_id": 2,
"expected_sm_company_id": 8,
"expected_sm_station_id": 5,
"expected_oem_station_id": 2,
"expected_station_name": "D4:8D:56:64:E1:B6",
"app_mode": null,
"codename": "PAM-DUGBE",
"last_local_mapping_updated_at": {
"date": "1985-08-12 05:53:33.000000",
"timezone_type": 3,
"timezone": "UTC"
},
"last_remote_mapping_updated_at": {
"date": "2016-01-27 18:11:11.000000",
"timezone_type": 3,
"timezone": "UTC"
},
"updated_at": "2025-08-28T11:25:17.000000Z",
"created_at": "2025-08-28T11:25:17.000000Z",
"id": 12
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 20,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Create a new PAM device
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/pam_devices" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"mac_address\": \"minima\",
\"ip_address\": \"66.15.94.250\"
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/pam_devices"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"mac_address": "minima",
"ip_address": "66.15.94.250"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"mac_address": "03:CC:47:9F:08:E1",
"last_time_online": {
"date": "1986-07-01 19:50:34.000000",
"timezone_type": 3,
"timezone": "UTC"
},
"ip_address": "27.43.131.181",
"current_station_name": "Weber Ltd",
"current_oem_station_id": "045543",
"current_app_version": "2.23.7",
"expected_app_version": "8.34.19",
"current_sm_company_id": 9,
"current_sm_station_id": 9,
"expected_sm_company_id": 5,
"expected_sm_station_id": 5,
"expected_oem_station_id": 1,
"expected_station_name": "80:B5:24:A1:7A:75",
"app_mode": "FCC MODE",
"codename": null,
"last_local_mapping_updated_at": {
"date": "1983-12-12 10:48:08.000000",
"timezone_type": 3,
"timezone": "UTC"
},
"last_remote_mapping_updated_at": {
"date": "2009-07-18 04:56:14.000000",
"timezone_type": 3,
"timezone": "UTC"
},
"updated_at": "2025-08-28T11:25:17.000000Z",
"created_at": "2025-08-28T11:25:17.000000Z",
"id": 13
}
}
Received response:
Request failed with error:
Show a specified PAM device.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/pam_devices/3?mac_address=natus" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/pam_devices/3"
);
const params = {
"mac_address": "natus",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"mac_address": "DE:79:E4:04:B8:AB",
"last_time_online": {
"date": "1996-04-03 14:05:44.000000",
"timezone_type": 3,
"timezone": "UTC"
},
"ip_address": "238.224.9.116",
"current_station_name": "Wisoky Ltd",
"current_oem_station_id": "314845",
"current_app_version": "8.16.48",
"expected_app_version": "2.2.69",
"current_sm_company_id": 3,
"current_sm_station_id": 3,
"expected_sm_company_id": 1,
"expected_sm_station_id": 2,
"expected_oem_station_id": 8,
"expected_station_name": "6A:C2:4B:75:C5:35",
"app_mode": null,
"codename": "PAM-DUGBE",
"last_local_mapping_updated_at": {
"date": "2007-11-03 17:27:43.000000",
"timezone_type": 3,
"timezone": "UTC"
},
"last_remote_mapping_updated_at": {
"date": "2020-03-19 21:55:19.000000",
"timezone_type": 3,
"timezone": "UTC"
},
"updated_at": "2025-08-28T11:25:17.000000Z",
"created_at": "2025-08-28T11:25:17.000000Z",
"id": 14
}
}
Received response:
Request failed with error:
Update the specified PAM device
requires authentication
Example request:
curl --request PUT \
"https://cupidapiv2.smartflowtech.com/api/pam_devices/2" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"mac_address\": \"rerum\",
\"ip_address\": \"158.34.51.137\"
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/pam_devices/2"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"mac_address": "rerum",
"ip_address": "158.34.51.137"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"mac_address": "9B:0F:C3:FD:59:D2",
"last_time_online": {
"date": "2024-03-21 10:36:26.000000",
"timezone_type": 3,
"timezone": "UTC"
},
"ip_address": "219.202.41.137",
"current_station_name": "Veum-Padberg",
"current_oem_station_id": "931243",
"current_app_version": "6.67.29",
"expected_app_version": "6.55.96",
"current_sm_company_id": 5,
"current_sm_station_id": 7,
"expected_sm_company_id": 8,
"expected_sm_station_id": 1,
"expected_oem_station_id": 5,
"expected_station_name": "E6:44:04:36:75:E8",
"app_mode": null,
"codename": "PAM-DUGBE",
"last_local_mapping_updated_at": {
"date": "1972-06-21 18:19:48.000000",
"timezone_type": 3,
"timezone": "UTC"
},
"last_remote_mapping_updated_at": {
"date": "2011-03-22 01:55:47.000000",
"timezone_type": 3,
"timezone": "UTC"
},
"updated_at": "2025-08-28T11:25:17.000000Z",
"created_at": "2025-08-28T11:25:17.000000Z",
"id": 15
}
}
Received response:
Request failed with error:
Delete a PAM device
requires authentication
Example request:
curl --request DELETE \
"https://cupidapiv2.smartflowtech.com/api/pam_devices/17" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/pam_devices/17"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Display a listing of the PAM transaction or search by mac address, ip address.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/pam_transactions?term=amet&sm_company_id=dolor&start_date=voluptatem&end_date=aut&per_page=3" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/pam_transactions"
);
const params = {
"term": "amet",
"sm_company_id": "dolor",
"start_date": "voluptatem",
"end_date": "aut",
"per_page": "3",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"updated_at": "2025-08-28T11:25:17.000000Z",
"created_at": "2025-08-28T11:25:17.000000Z",
"id": 15
},
{
"updated_at": "2025-08-28T11:25:17.000000Z",
"created_at": "2025-08-28T11:25:17.000000Z",
"id": 16
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 20,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Create a new PAM transaction
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/pam_transactions" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/pam_transactions"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"updated_at": "2025-08-28T11:25:17.000000Z",
"created_at": "2025-08-28T11:25:17.000000Z",
"id": 17
}
}
Received response:
Request failed with error:
Show a specified PAM transaction.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/pam_transactions/11?mac_address=omnis" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/pam_transactions/11"
);
const params = {
"mac_address": "omnis",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"updated_at": "2025-08-28T11:25:17.000000Z",
"created_at": "2025-08-28T11:25:17.000000Z",
"id": 18
}
}
Received response:
Request failed with error:
Update the specified PAM transaction
requires authentication
Example request:
curl --request PUT \
"https://cupidapiv2.smartflowtech.com/api/pam_transactions/16" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/pam_transactions/16"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"updated_at": "2025-08-28T11:25:17.000000Z",
"created_at": "2025-08-28T11:25:17.000000Z",
"id": 19
}
}
Received response:
Request failed with error:
Delete a PAM transaction
requires authentication
Example request:
curl --request DELETE \
"https://cupidapiv2.smartflowtech.com/api/pam_transactions/11" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/pam_transactions/11"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Display a listing of the PAM attached devices or search by mac address, ip address, app client or station name.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/pam_attached_devices?term=voluptatem&per_page=11" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/pam_attached_devices"
);
const params = {
"term": "voluptatem",
"per_page": "11",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
[],
[]
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 20,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Create a new PAM attached device
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/pam_attached_devices" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"mac_address\": \"sit\",
\"ip_address\": \"77.167.52.185\",
\"station_name\": \"laudantium\",
\"oem_station_id\": 20,
\"sm_company_id\": 7,
\"sm_station_id\": 11,
\"pam_device_id\": 9,
\"app_client\": \"fugiat\"
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/pam_attached_devices"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"mac_address": "sit",
"ip_address": "77.167.52.185",
"station_name": "laudantium",
"oem_station_id": 20,
"sm_company_id": 7,
"sm_station_id": 11,
"pam_device_id": 9,
"app_client": "fugiat"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": []
}
Received response:
Request failed with error:
Show a specified PAM attached device.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/pam_attached_devices/20?mac_address=ea" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/pam_attached_devices/20"
);
const params = {
"mac_address": "ea",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": []
}
Received response:
Request failed with error:
Update the specified PAM attached device
requires authentication
Example request:
curl --request PUT \
"https://cupidapiv2.smartflowtech.com/api/pam_attached_devices/11" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"mac_address\": \"optio\",
\"ip_address\": \"54.13.124.123\",
\"station_name\": \"architecto\",
\"oem_station_id\": 4,
\"sm_company_id\": 10,
\"sm_station_id\": 11,
\"pam_device_id\": 7,
\"app_client\": \"molestias\"
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/pam_attached_devices/11"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"mac_address": "optio",
"ip_address": "54.13.124.123",
"station_name": "architecto",
"oem_station_id": 4,
"sm_company_id": 10,
"sm_station_id": 11,
"pam_device_id": 7,
"app_client": "molestias"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": []
}
Received response:
Request failed with error:
Delete a PAM attached device
requires authentication
Example request:
curl --request DELETE \
"https://cupidapiv2.smartflowtech.com/api/pam_attached_devices/1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/pam_attached_devices/1"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
POST api/pam_error_logs
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/pam_error_logs" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"station_name\": \"nihil\",
\"sm_company_id\": 10,
\"sm_station_id\": 9,
\"error_message\": \"similique\",
\"error_activity\": \"repellendus\",
\"error_body\": \"eius\",
\"error_date_time\": \"culpa\"
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/pam_error_logs"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"station_name": "nihil",
"sm_company_id": 10,
"sm_station_id": 9,
"error_message": "similique",
"error_activity": "repellendus",
"error_body": "eius",
"error_date_time": "culpa"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
PATCH api/transactions_flags
requires authentication
Example request:
curl --request PATCH \
"https://cupidapiv2.smartflowtech.com/api/transactions_flags" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/transactions_flags"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Create a specific PAM user
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/pam_user" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"email\": \"gillian94@example.net\",
\"password\": \"\"
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/pam_user"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"email": "gillian94@example.net",
"password": ""
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Get the list of PAM users
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/pam_user" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/pam_user"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: cupid_session=2jtkcMz0jNQLmcnFkZ0M1jI4w3ql15DCf53bq3YL; expires=Thu, 28 Aug 2025 13:25:17 GMT; Max-Age=7200; path=/; httponly; samesite=lax
{
"message": "The route api/pam_user could not be found."
}
Received response:
Request failed with error:
POS Endpoints
Display a listing of the fuel purchase history or filter by company id, vendor id, cost center id, mac address, sm station id & date
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/fuel_purchase_history?per_page=17&company_id=9&vendor_id=6&cost_center_id=18&sm_station_id=15&mac_address=enim&date=odio" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/fuel_purchase_history"
);
const params = {
"per_page": "17",
"company_id": "9",
"vendor_id": "6",
"cost_center_id": "18",
"sm_station_id": "15",
"mac_address": "enim",
"date": "odio",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"driver": null,
"company": null,
"vendor": null,
"costCenter": null,
"nfcTag": null,
"userWallet": null,
"remark": null
},
{
"driver": null,
"company": null,
"vendor": null,
"costCenter": null,
"nfcTag": null,
"userWallet": null,
"remark": null
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 20,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Create a new Fuel purchase history
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/fuel_purchase_history" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"company_id\": 11,
\"vendor_id\": 8,
\"cost_center_id\": 8,
\"nfctag_id\": 13,
\"driver_id\": 18,
\"way_bill_number\": \"perspiciatis\",
\"vendor_station_name\": \"quia\",
\"vehicle_plate_number\": \"sunt\",
\"auth_type\": \"Card\",
\"barcode_id\": \"pariatur\",
\"amount_paid\": 2662217,
\"volume\": 107.25859,
\"odometer_reading\": 524283.746992,
\"product\": \"DPK\",
\"pump\": 15,
\"selling_price\": 297965,
\"current_credit_limit\": 9.717265,
\"attendant\": \"itaque\",
\"last_volume_dispensed\": 881837.363,
\"last_amount_paid\": 0.7100257,
\"transaction_seq_no\": 12,
\"is_balanced\": false,
\"oem_station_id\": 7,
\"sm_station_id\": 6,
\"balance_refunded\": 5414.7796,
\"tapnet_amount\": 0,
\"tapnet_volume\": 26528358,
\"tapnet_transaction_time\": \"2025-08-28 11:25:21\",
\"thankucash_reward_applied\": \"aspernatur\",
\"thankucash_reward_value\": \"aut\",
\"app_mode\": \"NO FCC MODE\",
\"release_token\": \"rw\",
\"is_fdc_value_fill\": false,
\"fdc_volume\": 2539439.3229,
\"fdc_amount\": 47.19,
\"last_tsn_source\": \"aperiam\",
\"verified_volume\": 2697.93946916,
\"verified_amount\": 513698016.606,
\"reconciliation_source\": \"MANUAL\",
\"one_time_auth_id\": 13,
\"recon_balance_refunded\": false
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/fuel_purchase_history"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"company_id": 11,
"vendor_id": 8,
"cost_center_id": 8,
"nfctag_id": 13,
"driver_id": 18,
"way_bill_number": "perspiciatis",
"vendor_station_name": "quia",
"vehicle_plate_number": "sunt",
"auth_type": "Card",
"barcode_id": "pariatur",
"amount_paid": 2662217,
"volume": 107.25859,
"odometer_reading": 524283.746992,
"product": "DPK",
"pump": 15,
"selling_price": 297965,
"current_credit_limit": 9.717265,
"attendant": "itaque",
"last_volume_dispensed": 881837.363,
"last_amount_paid": 0.7100257,
"transaction_seq_no": 12,
"is_balanced": false,
"oem_station_id": 7,
"sm_station_id": 6,
"balance_refunded": 5414.7796,
"tapnet_amount": 0,
"tapnet_volume": 26528358,
"tapnet_transaction_time": "2025-08-28 11:25:21",
"thankucash_reward_applied": "aspernatur",
"thankucash_reward_value": "aut",
"app_mode": "NO FCC MODE",
"release_token": "rw",
"is_fdc_value_fill": false,
"fdc_volume": 2539439.3229,
"fdc_amount": 47.19,
"last_tsn_source": "aperiam",
"verified_volume": 2697.93946916,
"verified_amount": 513698016.606,
"reconciliation_source": "MANUAL",
"one_time_auth_id": 13,
"recon_balance_refunded": false
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"driver": null,
"company": null,
"vendor": null,
"costCenter": null,
"nfcTag": null,
"userWallet": null,
"remark": null
}
}
Received response:
Request failed with error:
Show a specified Fuel purchase history.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/fuel_purchase_history/14" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/fuel_purchase_history/14"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"driver": null,
"company": null,
"vendor": null,
"costCenter": null,
"nfcTag": null,
"userWallet": null,
"remark": null
}
}
Received response:
Request failed with error:
Update the specified Fuel purchase history
requires authentication
Example request:
curl --request PUT \
"https://cupidapiv2.smartflowtech.com/api/fuel_purchase_history/9" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"company_id\": 12,
\"vendor_id\": 20,
\"cost_center_id\": 16,
\"nfctag_id\": 18,
\"driver_id\": 8,
\"way_bill_number\": \"voluptates\",
\"vendor_station_name\": \"debitis\",
\"vehicle_plate_number\": \"consequatur\",
\"auth_type\": \"Key Tag\",
\"barcode_id\": \"non\",
\"amount_paid\": 7725.2,
\"volume\": 2158.2866,
\"odometer_reading\": 23.033431,
\"product\": \"PMS\",
\"pump\": 10,
\"selling_price\": 44.91,
\"current_credit_limit\": 501255.10466653,
\"attendant\": \"aspernatur\",
\"last_volume_dispensed\": 359326639.95631164,
\"last_amount_paid\": 6716.8,
\"transaction_seq_no\": 5,
\"is_balanced\": false,
\"oem_station_id\": 16,
\"sm_station_id\": 5,
\"balance_refunded\": 224927532.6,
\"tapnet_amount\": 375.9,
\"tapnet_volume\": 0,
\"tapnet_transaction_time\": \"2025-08-28 11:25:21\",
\"thankucash_reward_applied\": \"nisi\",
\"thankucash_reward_value\": \"atque\",
\"app_mode\": \"NO FCC MODE\",
\"release_token\": \"\",
\"is_fdc_value_fill\": true,
\"fdc_volume\": 4458544.1661311,
\"fdc_amount\": 702.16220678,
\"last_tsn_source\": \"pariatur\",
\"verified_volume\": 269.109504621,
\"verified_amount\": 6204.57,
\"reconciliation_source\": \"FDC\",
\"one_time_auth_id\": 20,
\"recon_balance_refunded\": true
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/fuel_purchase_history/9"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"company_id": 12,
"vendor_id": 20,
"cost_center_id": 16,
"nfctag_id": 18,
"driver_id": 8,
"way_bill_number": "voluptates",
"vendor_station_name": "debitis",
"vehicle_plate_number": "consequatur",
"auth_type": "Key Tag",
"barcode_id": "non",
"amount_paid": 7725.2,
"volume": 2158.2866,
"odometer_reading": 23.033431,
"product": "PMS",
"pump": 10,
"selling_price": 44.91,
"current_credit_limit": 501255.10466653,
"attendant": "aspernatur",
"last_volume_dispensed": 359326639.95631164,
"last_amount_paid": 6716.8,
"transaction_seq_no": 5,
"is_balanced": false,
"oem_station_id": 16,
"sm_station_id": 5,
"balance_refunded": 224927532.6,
"tapnet_amount": 375.9,
"tapnet_volume": 0,
"tapnet_transaction_time": "2025-08-28 11:25:21",
"thankucash_reward_applied": "nisi",
"thankucash_reward_value": "atque",
"app_mode": "NO FCC MODE",
"release_token": "",
"is_fdc_value_fill": true,
"fdc_volume": 4458544.1661311,
"fdc_amount": 702.16220678,
"last_tsn_source": "pariatur",
"verified_volume": 269.109504621,
"verified_amount": 6204.57,
"reconciliation_source": "FDC",
"one_time_auth_id": 20,
"recon_balance_refunded": true
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"driver": null,
"company": null,
"vendor": null,
"costCenter": null,
"nfcTag": null,
"userWallet": null,
"remark": null
}
}
Received response:
Request failed with error:
Delete a Fuel purchase history
requires authentication
Example request:
curl --request DELETE \
"https://cupidapiv2.smartflowtech.com/api/fuel_purchase_history/20" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/fuel_purchase_history/20"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Display a listing of the refund history or filter by company id, vendor id, start_date and end_date
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/refund_history?per_page=5&company_id=5&vendor_id=15&start_date=in&end_date=reprehenderit" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/refund_history"
);
const params = {
"per_page": "5",
"company_id": "5",
"vendor_id": "15",
"start_date": "in",
"end_date": "reprehenderit",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"vendor": null,
"company": null,
"user": null,
"fuel_purchase_history": null,
"nfc_tag": null,
"driver": null,
"cost_center": null
},
{
"vendor": null,
"company": null,
"user": null,
"fuel_purchase_history": null,
"nfc_tag": null,
"driver": null,
"cost_center": null
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 20,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Create a refund history
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/refund_history" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/refund_history"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Show a specified refund history.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/refund_history/16" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/refund_history/16"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"vendor": null,
"company": null,
"user": null,
"fuel_purchase_history": null,
"nfc_tag": null,
"driver": null,
"cost_center": null
}
}
Received response:
Request failed with error:
Update a refund history
requires authentication
Example request:
curl --request PUT \
"https://cupidapiv2.smartflowtech.com/api/refund_history/consequatur" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/refund_history/consequatur"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Delete a Refund history
requires authentication
Example request:
curl --request DELETE \
"https://cupidapiv2.smartflowtech.com/api/refund_history/6" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/refund_history/6"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Display a listing of the refund history or filter by company id, vendor id, start_date and end_date
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/debit_history?per_page=16&company_id=13&vendor_id=19&start_date=accusantium&end_date=quidem" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/debit_history"
);
const params = {
"per_page": "16",
"company_id": "13",
"vendor_id": "19",
"start_date": "accusantium",
"end_date": "quidem",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"vendor": null,
"company": null,
"fuel_purchase_history": null,
"user": null
},
{
"vendor": null,
"company": null,
"fuel_purchase_history": null,
"user": null
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 20,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
POST api/debit_history
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/debit_history" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/debit_history"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Show a specified refund history.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/debit_history/19" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/debit_history/19"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"vendor": null,
"company": null,
"fuel_purchase_history": null,
"user": null
}
}
Received response:
Request failed with error:
PUT api/debit_history/{id}
requires authentication
Example request:
curl --request PUT \
"https://cupidapiv2.smartflowtech.com/api/debit_history/corporis" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/debit_history/corporis"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Delete a Refund history
requires authentication
Example request:
curl --request DELETE \
"https://cupidapiv2.smartflowtech.com/api/debit_history/15" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/debit_history/15"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Display a listing of the one time authorizations or search by status, registration number, product.
requires authentication
Create a new one time authorization
requires authentication
Show a specified one time authorization.
requires authentication
Update the specified one time authorization
requires authentication
Delete a one time authorization
requires authentication
Check a customers' wallet balance
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/check_user_wallet_balance?email=nesciunt&vendor_id=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/check_user_wallet_balance"
);
const params = {
"email": "nesciunt",
"vendor_id": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: cupid_session=LfjtCtJjM8YL4mEYHqkE8P3jLFfLUTurnMQnbfUQ; expires=Thu, 28 Aug 2025 13:25:21 GMT; Max-Age=7200; path=/; httponly; samesite=lax
{
"message": "The route api/check_user_wallet_balance could not be found."
}
Received response:
Request failed with error:
Onboarding of a customer(driver, vehicle, user, wallet, loyalty) via terminal/POS
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/customers/pos/onboarding" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"company_id\": 3,
\"sm_company_id\": 5,
\"vendor_id\": 11,
\"phone_number\": 0.7162,
\"email\": \"theo60@example.net\",
\"name\": \"voluptas\",
\"address\": \"eum\",
\"driver_speciality\": \"aliquam\",
\"gross_amount\": 9188.87762,
\"wallet_amount\": 55349295.3408275,
\"reference\": \"soluta\",
\"nfc_tag\": \"eum\",
\"pin\": 13,
\"vehicle_plate_number\": \"eos\",
\"vehicle_fuel_type\": \"LPG\",
\"vehicle_tank_capacity\": \"neque\",
\"vehicle_auth_type\": \"ut\",
\"vehicle_tracker_id\": \"voluptate\",
\"vehicle_model\": \"placeat\",
\"vehicle_engine_capacity\": \"temporibus\",
\"vehicle_color\": \"et\",
\"vehicle_brand\": \"reprehenderit\"
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/customers/pos/onboarding"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"company_id": 3,
"sm_company_id": 5,
"vendor_id": 11,
"phone_number": 0.7162,
"email": "theo60@example.net",
"name": "voluptas",
"address": "eum",
"driver_speciality": "aliquam",
"gross_amount": 9188.87762,
"wallet_amount": 55349295.3408275,
"reference": "soluta",
"nfc_tag": "eum",
"pin": 13,
"vehicle_plate_number": "eos",
"vehicle_fuel_type": "LPG",
"vehicle_tank_capacity": "neque",
"vehicle_auth_type": "ut",
"vehicle_tracker_id": "voluptate",
"vehicle_model": "placeat",
"vehicle_engine_capacity": "temporibus",
"vehicle_color": "et",
"vehicle_brand": "reprehenderit"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Debit funds from a users wallet
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/debit_customer_wallet" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"amount\": 3.72061,
\"vendor_id\": 8,
\"email\": \"fisher.delores@example.com\"
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/debit_customer_wallet"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"amount": 3.72061,
"vendor_id": 8,
"email": "fisher.delores@example.com"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Export Fuel Purchase History by date range.
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/purchase_report?company_id=et&vendor_id=ut&email=aperiam&start_date=delectus&end_date=quisquam&extension=%22xlsx%22%2C+%22xls%22%2C+%22pdf%22%2C+%22csv%22%2C+%22html%22%2C+%22dompdf%22%2C+%22xml%22" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/purchase_report"
);
const params = {
"company_id": "et",
"vendor_id": "ut",
"email": "aperiam",
"start_date": "delectus",
"end_date": "quisquam",
"extension": ""xlsx", "xls", "pdf", "csv", "html", "dompdf", "xml"",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Display a listing of the unverified transactions,
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/unverified_transactions?start_date=voluptate&end_date=ducimus&company_id=id&vendor_id=reiciendis&per_page=14" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/unverified_transactions"
);
const params = {
"start_date": "voluptate",
"end_date": "ducimus",
"company_id": "id",
"vendor_id": "reiciendis",
"per_page": "14",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"company": null,
"userWallet": null
},
{
"company": null,
"userWallet": null
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 20,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Endpoint to reconcile undispensed transactions.
requires authentication
This endpoint allows you to reconcile undispensed transactions by performing various actions such as updating user wallets, creating refund history, and deleting records.
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/un_dispensed_transactions" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/un_dispensed_transactions"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Example response (200):
{
"message": "Reconciliation Transaction Successful"
}
Received response:
Request failed with error:
POST api/dispensed_transactions
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/dispensed_transactions" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/dispensed_transactions"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Update a POS config
requires authentication
Example request:
curl --request PUT \
"https://cupidapiv2.smartflowtech.com/api/pos_config/a" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"mac_address\": \"necessitatibus\",
\"oem_station_id\": 16,
\"station_name\": \"non\",
\"current_app_version\": \"in\",
\"expected_app_version\": \"doloremque\",
\"velox_mode\": \"tenetur\",
\"loyalty_mode\": \"placeat\",
\"sm_company_id\": 12,
\"sm_station_id\": 15,
\"filter_per_days\": 4,
\"manager_password\": \"nemo\",
\"loyalty_card_name\": \"culpa\",
\"port\": \"vel\",
\"additional_config\": [
{
\"allowed_payment_method\": [
{
\"cash\": true,
\"bank_card\": true,
\"loyalty_card\": true
}
],
\"admin_control_for_cash\": true,
\"request_phone_number\": false
}
]
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/pos_config/a"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"mac_address": "necessitatibus",
"oem_station_id": 16,
"station_name": "non",
"current_app_version": "in",
"expected_app_version": "doloremque",
"velox_mode": "tenetur",
"loyalty_mode": "placeat",
"sm_company_id": 12,
"sm_station_id": 15,
"filter_per_days": 4,
"manager_password": "nemo",
"loyalty_card_name": "culpa",
"port": "vel",
"additional_config": [
{
"allowed_payment_method": [
{
"cash": true,
"bank_card": true,
"loyalty_card": true
}
],
"admin_control_for_cash": true,
"request_phone_number": false
}
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Display a listing of the pos heartbeats or filter by mac address and ip address
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/pos_heartbeats?per_page=9&mac_address=quis&ip_address=qui" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/pos_heartbeats"
);
const params = {
"per_page": "9",
"mac_address": "quis",
"ip_address": "qui",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"mac_address": "FC:57:42:39:E0:7C",
"ip_address": "52.106.125.64",
"oem_station_id": 5,
"station_name": "Huels Inc",
"last_time_online": "16 years ago",
"current_app_version": "velit",
"expected_app_version": "facere",
"velox_mode": "sequi",
"loyalty_mode": "vero",
"sm_company_id": 9,
"sm_station_id": 4,
"updated_at": "2025-08-28T11:25:21.000000Z",
"created_at": "2025-08-28T11:25:21.000000Z",
"id": 9,
"status": "offline"
},
{
"mac_address": "C8:9D:FC:BF:9F:44",
"ip_address": "92.9.22.157",
"oem_station_id": 8,
"station_name": "Orn, Mertz and Schroeder",
"last_time_online": "22 years ago",
"current_app_version": "recusandae",
"expected_app_version": "quia",
"velox_mode": "non",
"loyalty_mode": "quas",
"sm_company_id": 9,
"sm_station_id": 9,
"updated_at": "2025-08-28T11:25:21.000000Z",
"created_at": "2025-08-28T11:25:21.000000Z",
"id": 10,
"status": "offline"
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 20,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Display a particular POS config by the mac address
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/get_pos_config" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/get_pos_config"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Create a Pos heartbeat
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/pos_heartbeats" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/pos_heartbeats"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Show a specified Pos Heartbeat.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/pos_heartbeats/17" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/pos_heartbeats/17"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"mac_address": "9F:19:6F:DA:BE:0C",
"ip_address": "161.191.213.42",
"oem_station_id": 4,
"station_name": "Kilback, Heaney and Altenwerth",
"last_time_online": "39 years ago",
"current_app_version": "excepturi",
"expected_app_version": "similique",
"velox_mode": "illum",
"loyalty_mode": "incidunt",
"sm_company_id": 4,
"sm_station_id": 9,
"updated_at": "2025-08-28T11:25:21.000000Z",
"created_at": "2025-08-28T11:25:21.000000Z",
"id": 11,
"status": "offline"
}
}
Received response:
Request failed with error:
Update a Pos Heartbeat
requires authentication
Example request:
curl --request PUT \
"https://cupidapiv2.smartflowtech.com/api/pos_heartbeats/12" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"last_time_online\": \"2025-08-28T11:25:21\"
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/pos_heartbeats/12"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"last_time_online": "2025-08-28T11:25:21"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"mac_address": "3F:F4:3C:04:06:37",
"ip_address": "136.181.8.13",
"oem_station_id": 0,
"station_name": "Klocko Group",
"last_time_online": "35 years ago",
"current_app_version": "tenetur",
"expected_app_version": "quos",
"velox_mode": "ipsum",
"loyalty_mode": "sed",
"sm_company_id": 6,
"sm_station_id": 5,
"updated_at": "2025-08-28T11:25:21.000000Z",
"created_at": "2025-08-28T11:25:21.000000Z",
"id": 12,
"status": "offline"
}
}
Received response:
Request failed with error:
Delete a Pos heartbeat
requires authentication
Example request:
curl --request DELETE \
"https://cupidapiv2.smartflowtech.com/api/pos_heartbeats/10" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/pos_heartbeats/10"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Retrieve the purchase history for a user's company.
requires authentication
This endpoint calculates and returns the credit and debit history for a user's company.
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/total_debit_credit_history?company_id=8" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/total_debit_credit_history"
);
const params = {
"company_id": "8",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"message": "Fetch Debit and Credit History Successful",
"credit_history": 5000,
"debit_history": 3000
}
Example response (403):
{
"message": "Forbidden. You do not have permission to access this resource."
}
Example response (500):
{
"message": "Internal Server Error. Failed to retrieve purchase history."
}
Received response:
Request failed with error:
Display a listing of the Anomaly Report
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/anomaly_report?per_page=13&company_id=14&station_name=aut&start_date=rerum&end_date=nemo" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/anomaly_report"
);
const params = {
"per_page": "13",
"company_id": "14",
"station_name": "aut",
"start_date": "rerum",
"end_date": "nemo",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"company": {
"id": null,
"company_name": null
}
},
{
"company": {
"id": null,
"company_name": null
}
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 20,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Payment Endpoints
Initialise a new Paystack payment
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/payments/initiate/paystack" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"vendor_bank_account_id\": 5,
\"company_id\": 3,
\"amount_to_pay\": 18
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/payments/initiate/paystack"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"vendor_bank_account_id": 5,
"company_id": 3,
"amount_to_pay": 18
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": []
}
Received response:
Request failed with error:
Verify Paystack payment & give value for purchase
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/payments/paystack?trxref=expedita" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"reference\": \"ut\",
\"company_id\": 19,
\"payment_uploaded_by\": \"quo\"
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/payments/paystack"
);
const params = {
"trxref": "expedita",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"reference": "ut",
"company_id": 19,
"payment_uploaded_by": "quo"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Verify Paystack payment & give value for purchase
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/payments/paystack/callback?trxref=est" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"reference\": \"suscipit\",
\"company_id\": 19,
\"payment_uploaded_by\": \"odio\"
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/payments/paystack/callback"
);
const params = {
"trxref": "est",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"reference": "suscipit",
"company_id": 19,
"payment_uploaded_by": "odio"
};
fetch(url, {
method: "GET",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: cupid_session=h6yayCkiH8Gtebmw4BB21eD0TCoSuKXDAiumzxBc; expires=Thu, 28 Aug 2025 13:25:22 GMT; Max-Age=7200; path=/; httponly; samesite=lax
{
"message": "The route api/payments/paystack/callback could not be found."
}
Received response:
Request failed with error:
Display a listing of the payments or search by ref, initiating users name, total charged amount, amount paid, payment cause, verification means.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/payments?term=dolores&per_page=8" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/payments"
);
const params = {
"term": "dolores",
"per_page": "8",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
[],
[]
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 20,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Create a new payment
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/payments" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/payments"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Show a specified payment.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/payments/10" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/payments/10"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": []
}
Received response:
Request failed with error:
Update the specified payment
requires authentication
Example request:
curl --request PUT \
"https://cupidapiv2.smartflowtech.com/api/payments/13" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"reference\": \"rem\",
\"company_id\": 9,
\"payment_uploaded_by\": \"corporis\"
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/payments/13"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"reference": "rem",
"company_id": 9,
"payment_uploaded_by": "corporis"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": []
}
Received response:
Request failed with error:
Delete a payment
requires authentication
Example request:
curl --request DELETE \
"https://cupidapiv2.smartflowtech.com/api/payments/17" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/payments/17"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Get Paystack Sub Account
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/payments/subaccount/paystack/eum" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/payments/subaccount/paystack/eum"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: cupid_session=PriZ9hqNwJ23zn9nYVizhxmmXSdA48r8CchZLZCm; expires=Thu, 28 Aug 2025 13:25:22 GMT; Max-Age=7200; path=/; httponly; samesite=lax
{
"message": "The route api/payments/subaccount/paystack/eum could not be found."
}
Received response:
Request failed with error:
List Paystack Sub Account
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/payments/subaccount/paystack?int=14&datetime=11" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/payments/subaccount/paystack"
);
const params = {
"int": "14",
"datetime": "11",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: cupid_session=9RiZ4gUNT8xlIjYDHPNNy9Rfhx73IQCJdqS7YUbu; expires=Thu, 28 Aug 2025 13:25:22 GMT; Max-Age=7200; path=/; httponly; samesite=lax
{
"message": "The route api/payments/subaccount/paystack could not be found."
}
Received response:
Request failed with error:
Update Paystack Sub Account
requires authentication
Example request:
curl --request PUT \
"https://cupidapiv2.smartflowtech.com/api/payments/subaccount/paystack/laboriosam" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"business_name\": \"deleniti\",
\"settlement_bank\": \"debitis\",
\"account_number\": \"nesciunt\",
\"percentage_charge\": 51.7889119,
\"description\": \"aliquid\",
\"primary_contact_email\": \"cumque\",
\"primary_contact_name\": \"eos\",
\"primary_contact_phone\": \"qui\",
\"metadata\": \"accusantium\"
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/payments/subaccount/paystack/laboriosam"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"business_name": "deleniti",
"settlement_bank": "debitis",
"account_number": "nesciunt",
"percentage_charge": 51.7889119,
"description": "aliquid",
"primary_contact_email": "cumque",
"primary_contact_name": "eos",
"primary_contact_phone": "qui",
"metadata": "accusantium"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Create Paystack Sub Account
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/payments/subaccount/paystack" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"business_name\": \"officiis\",
\"settlement_bank\": \"debitis\",
\"account_number\": \"qui\",
\"percentage_charge\": 6.016680412,
\"description\": \"repudiandae\",
\"primary_contact_email\": \"nostrum\",
\"primary_contact_name\": \"dicta\",
\"primary_contact_phone\": \"corrupti\",
\"metadata\": \"minima\"
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/payments/subaccount/paystack"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"business_name": "officiis",
"settlement_bank": "debitis",
"account_number": "qui",
"percentage_charge": 6.016680412,
"description": "repudiandae",
"primary_contact_email": "nostrum",
"primary_contact_name": "dicta",
"primary_contact_phone": "corrupti",
"metadata": "minima"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Display a listing of the payment histories or search by amount paid, payment made by, payment status, payment uploaded by, payment approved by, reference, channel, amount paid, payment cause, verification means.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/payment_histories?term=et&per_page=19" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/payment_histories"
);
const params = {
"term": "et",
"per_page": "19",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"vendor": null
},
{
"vendor": null
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 20,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Create a new payment history
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/payment_histories" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"customer_vendor_wallet_id\": 5,
\"amount_paid\": 6047.738621728,
\"s3_url\": \"quas\",
\"velox_vendor_id\": 11,
\"velox_customer_id\": \"accusantium\",
\"velox_customer_name\": \"et\",
\"uploaded_by\": \"libero\",
\"payment_date\": \"2025-08-28\"
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/payment_histories"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"customer_vendor_wallet_id": 5,
"amount_paid": 6047.738621728,
"s3_url": "quas",
"velox_vendor_id": 11,
"velox_customer_id": "accusantium",
"velox_customer_name": "et",
"uploaded_by": "libero",
"payment_date": "2025-08-28"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"vendor": null
}
}
Received response:
Request failed with error:
Show a specified payment history
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/payment_histories/3" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/payment_histories/3"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"vendor": null
}
}
Received response:
Request failed with error:
Update the specified payment history
requires authentication
Example request:
curl --request PUT \
"https://cupidapiv2.smartflowtech.com/api/payment_histories/6" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"selected_customer\": \"eum\",
\"payment_status\": \"dolores\",
\"amount_paid\": 0.84164,
\"payment_approved_by\": \"molestiae\"
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/payment_histories/6"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"selected_customer": "eum",
"payment_status": "dolores",
"amount_paid": 0.84164,
"payment_approved_by": "molestiae"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"vendor": null
}
}
Received response:
Request failed with error:
Delete a payment history
requires authentication
Example request:
curl --request DELETE \
"https://cupidapiv2.smartflowtech.com/api/payment_histories/11" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/payment_histories/11"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Push Notifications Endpoints
Create a new User Device Token
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/store_user_device_token" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"user_id\": 19,
\"device_token\": \"voluptas\"
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/store_user_device_token"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"user_id": 19,
"device_token": "voluptas"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": []
}
Received response:
Request failed with error:
Update a new User Device Token
requires authentication
Example request:
curl --request PUT \
"https://cupidapiv2.smartflowtech.com/api/store_user_device_token" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/store_user_device_token"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "PUT",
headers,
}).then(response => response.json());Example response (200):
{
"data": []
}
Received response:
Request failed with error:
Default function for sending push notification
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/push_notification_message" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/push_notification_message"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Display a listing of the User Push Notification Message.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/push_notification_message?per_page=4" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/push_notification_message"
);
const params = {
"per_page": "4",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"bhn_request": null
},
{
"bhn_request": null
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 20,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Update the group of Push Notification Messages.
requires authentication
Example request:
curl --request PATCH \
"https://cupidapiv2.smartflowtech.com/api/push_notification_message" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"id\": [
13
],
\"is_read\": false
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/push_notification_message"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"id": [
13
],
"is_read": false
};
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"bhn_request": null
}
}
Received response:
Request failed with error:
Delete a group of Push Notification Messages.
requires authentication
Example request:
curl --request DELETE \
"https://cupidapiv2.smartflowtech.com/api/push_notification_message/20" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/push_notification_message/20"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
User Endpoints
Permanently delete a user
requires authentication
Example request:
curl --request DELETE \
"https://cupidapiv2.smartflowtech.com/api/users/force_delete_user/12" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/users/force_delete_user/12"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Restore a deleted user
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/users/restore/15" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/users/restore/15"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: cupid_session=mhsJv7sNigHT6Wy04vA4r60O7lpttkl9VEp69EMQ; expires=Thu, 28 Aug 2025 13:25:18 GMT; Max-Age=7200; path=/; httponly; samesite=lax
{
"message": "The route api/users/restore/15 could not be found."
}
Received response:
Request failed with error:
Display a listing of trash users.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/users/trash?term=amet&per_page=4" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/users/trash"
);
const params = {
"term": "amet",
"per_page": "4",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"title": "Prof.",
"name": "Prof. Bessie Larkin",
"email": "jlang@example.org",
"phone": "810.408.0264",
"avatar": "https://via.placeholder.com/200x200.png/00ff66?text=avatar+ut",
"username": "mromaguera",
"gender": "Male",
"newsletter": false,
"active": true,
"card_brand": "JCB",
"card_last_four": "1392",
"is_vendor": true,
"is_admin": false,
"updated_at": "2025-08-28T11:25:18.000000Z",
"created_at": "2025-08-28T11:25:18.000000Z",
"id": 39,
"companies": [],
"vendors": [],
"bankAccount": null,
"permissions": [],
"costCenters": [],
"roles": [],
"stations": [],
"wallet_details": null
}
}
Received response:
Request failed with error:
Display a listing of the users or search by name, email, phone
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/users?term=necessitatibus&per_page=19" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/users"
);
const params = {
"term": "necessitatibus",
"per_page": "19",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"title": "Mrs.",
"name": "Margarete Wilderman",
"email": "goyette.kira@example.com",
"phone": "1-520-979-4606",
"avatar": "https://via.placeholder.com/200x200.png/001188?text=avatar+iure",
"username": "zmoore",
"gender": "Female",
"newsletter": true,
"active": true,
"card_brand": "Visa",
"card_last_four": "6203",
"is_vendor": true,
"is_admin": true,
"updated_at": "2025-08-28T11:25:18.000000Z",
"created_at": "2025-08-28T11:25:18.000000Z",
"id": 42,
"companies": [],
"vendors": [],
"bankAccount": null,
"permissions": [],
"costCenters": [],
"roles": [],
"stations": [],
"wallet_details": null
},
{
"title": "Prof.",
"name": "Ms. Lindsay Gulgowski MD",
"email": "rutherford.lane@example.net",
"phone": "+1-272-621-6037",
"avatar": "https://via.placeholder.com/200x200.png/0088cc?text=avatar+fugit",
"username": "madaline.walker",
"gender": "Female",
"newsletter": true,
"active": true,
"card_brand": "American Express",
"card_last_four": "5457",
"is_vendor": false,
"is_admin": true,
"updated_at": "2025-08-28T11:25:18.000000Z",
"created_at": "2025-08-28T11:25:18.000000Z",
"id": 43,
"companies": [],
"vendors": [],
"bankAccount": null,
"permissions": [],
"costCenters": [],
"roles": [],
"stations": [],
"wallet_details": null
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 20,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Create a new user
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/users?vendor_id=19" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"illo\",
\"phone\": 324875021.70406,
\"email\": \"tillman.schroeder@example.net\",
\"username\": \"qui\",
\"gender\": \"provident\",
\"newsletter\": false,
\"active\": true,
\"is_admin\": false,
\"is_vendor\": false,
\"suspended\": false,
\"vendors\": [
13
],
\"companies\": [
15
],
\"cost_centers\": [
9
],
\"stations\": [
10
]
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/users"
);
const params = {
"vendor_id": "19",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "illo",
"phone": 324875021.70406,
"email": "tillman.schroeder@example.net",
"username": "qui",
"gender": "provident",
"newsletter": false,
"active": true,
"is_admin": false,
"is_vendor": false,
"suspended": false,
"vendors": [
13
],
"companies": [
15
],
"cost_centers": [
9
],
"stations": [
10
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"title": "Dr.",
"name": "Barney Ward",
"email": "grippin@example.org",
"phone": "(989) 795-6466",
"avatar": "https://via.placeholder.com/200x200.png/007799?text=avatar+quae",
"username": "roosevelt.harvey",
"gender": "Female",
"newsletter": true,
"active": true,
"card_brand": "MasterCard",
"card_last_four": "0433",
"is_vendor": true,
"is_admin": true,
"updated_at": "2025-08-28T11:25:18.000000Z",
"created_at": "2025-08-28T11:25:18.000000Z",
"id": 44,
"companies": [],
"vendors": [],
"bankAccount": null,
"permissions": [],
"costCenters": [],
"roles": [],
"stations": [],
"wallet_details": null
}
}
Received response:
Request failed with error:
Show a specified user.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/users/9" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/users/9"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"title": "Dr.",
"name": "Dr. Braden Price",
"email": "oconnell.dulce@example.net",
"phone": "575-737-5928",
"avatar": "https://via.placeholder.com/200x200.png/009911?text=avatar+amet",
"username": "deon66",
"gender": "Male",
"newsletter": false,
"active": true,
"card_brand": "MasterCard",
"card_last_four": "7110",
"is_vendor": true,
"is_admin": false,
"updated_at": "2025-08-28T11:25:18.000000Z",
"created_at": "2025-08-28T11:25:18.000000Z",
"id": 45,
"companies": [],
"vendors": [],
"bankAccount": null,
"permissions": [],
"costCenters": [],
"roles": [],
"stations": [],
"wallet_details": null
}
}
Received response:
Request failed with error:
Update the specified user
requires authentication
Example request:
curl --request PUT \
"https://cupidapiv2.smartflowtech.com/api/users/11?vendor_id=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"nihil\",
\"phone\": 80.75723113,
\"email\": \"kilback.susanna@example.net\",
\"username\": \"architecto\",
\"gender\": \"sequi\",
\"newsletter\": false,
\"active\": false,
\"is_admin\": false,
\"is_vendor\": false,
\"suspended\": false,
\"vendors\": [
15
],
\"companies\": [
4
],
\"cost_centers\": [
3
],
\"stations\": [
3
]
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/users/11"
);
const params = {
"vendor_id": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "nihil",
"phone": 80.75723113,
"email": "kilback.susanna@example.net",
"username": "architecto",
"gender": "sequi",
"newsletter": false,
"active": false,
"is_admin": false,
"is_vendor": false,
"suspended": false,
"vendors": [
15
],
"companies": [
4
],
"cost_centers": [
3
],
"stations": [
3
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"title": "Dr.",
"name": "Abelardo Deckow DDS",
"email": "bruce.runolfsson@example.com",
"phone": "440.777.1746",
"avatar": "https://via.placeholder.com/200x200.png/007799?text=avatar+et",
"username": "cicero74",
"gender": "Female",
"newsletter": true,
"active": true,
"card_brand": "American Express",
"card_last_four": "3412",
"is_vendor": true,
"is_admin": false,
"updated_at": "2025-08-28T11:25:18.000000Z",
"created_at": "2025-08-28T11:25:18.000000Z",
"id": 46,
"companies": [],
"vendors": [],
"bankAccount": null,
"permissions": [],
"costCenters": [],
"roles": [],
"stations": [],
"wallet_details": null
}
}
Received response:
Request failed with error:
Delete a user
requires authentication
Example request:
curl --request DELETE \
"https://cupidapiv2.smartflowtech.com/api/users/6" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/users/6"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"title": "Prof.",
"name": "Elmer Roob PhD",
"email": "eromaguera@example.org",
"phone": "+13619155615",
"avatar": "https://via.placeholder.com/200x200.png/00aabb?text=avatar+modi",
"username": "kris.deja",
"gender": "Female",
"newsletter": false,
"active": true,
"card_brand": "American Express",
"card_last_four": "2287",
"is_vendor": true,
"is_admin": false,
"updated_at": "2025-08-28T11:25:18.000000Z",
"created_at": "2025-08-28T11:25:18.000000Z",
"id": 47,
"companies": [],
"vendors": [],
"bankAccount": null,
"permissions": [],
"costCenters": [],
"roles": [],
"stations": [],
"wallet_details": null
}
}
Received response:
Request failed with error:
Get users by vendor. You can also search by name
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/vendor_users/5?term=ut&per_page=10" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vendor_users/5"
);
const params = {
"term": "ut",
"per_page": "10",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"title": "Miss",
"name": "Ms. Dianna McClure",
"email": "cindy.boyer@example.net",
"phone": "(458) 292-9198",
"avatar": "https://via.placeholder.com/200x200.png/004499?text=avatar+ad",
"username": "emard.wade",
"gender": "Female",
"newsletter": true,
"active": true,
"card_brand": "MasterCard",
"card_last_four": "2130",
"is_vendor": false,
"is_admin": false,
"updated_at": "2025-08-28T11:25:18.000000Z",
"created_at": "2025-08-28T11:25:18.000000Z",
"id": 48,
"companies": [],
"vendors": [],
"bankAccount": null,
"permissions": [],
"costCenters": [],
"roles": [],
"stations": [],
"wallet_details": null
},
{
"title": "Mr.",
"name": "Lionel Gorczany V",
"email": "floyd.boyle@example.net",
"phone": "+1.845.936.1064",
"avatar": "https://via.placeholder.com/200x200.png/006666?text=avatar+maiores",
"username": "madyson.mosciski",
"gender": "Female",
"newsletter": true,
"active": true,
"card_brand": "Visa",
"card_last_four": "9219",
"is_vendor": false,
"is_admin": false,
"updated_at": "2025-08-28T11:25:18.000000Z",
"created_at": "2025-08-28T11:25:18.000000Z",
"id": 49,
"companies": [],
"vendors": [],
"bankAccount": null,
"permissions": [],
"costCenters": [],
"roles": [],
"stations": [],
"wallet_details": null
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 20,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
User Wallet Endpoints
Display a list of wallets by company
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/get_wallets_by_company/11?per_page=11" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/get_wallets_by_company/11"
);
const params = {
"per_page": "11",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"vendor": null,
"company": null,
"nfctag": null
}
}
Received response:
Request failed with error:
Display a list of wallets by user
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/get_wallets_by_user/4?per_page=11" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/get_wallets_by_user/4"
);
const params = {
"per_page": "11",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"vendor_current_credit_limit": null,
"vendor": null,
"vendorWallet": null
}
}
Received response:
Request failed with error:
Display a listing of the company wallets or search by wallet ID.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/company_wallets?term=omnis&per_page=10" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/company_wallets"
);
const params = {
"term": "omnis",
"per_page": "10",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"vendor": null,
"company": null,
"nfctag": null
},
{
"vendor": null,
"company": null,
"nfctag": null
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 20,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Create a new company wallet
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/company_wallets" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"otp\": 18,
\"company_id\": 4,
\"vendor_id\": 2,
\"vendor_wallet_id\": 4,
\"balance\": 42068547.29635697,
\"active\": false
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/company_wallets"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"otp": 18,
"company_id": 4,
"vendor_id": 2,
"vendor_wallet_id": 4,
"balance": 42068547.29635697,
"active": false
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"vendor": null,
"company": null,
"nfctag": null
}
}
Received response:
Request failed with error:
Show a specified company wallet.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/company_wallets/19" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/company_wallets/19"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"vendor": null,
"company": null,
"nfctag": null
}
}
Received response:
Request failed with error:
Update the specified company wallet
requires authentication
Example request:
curl --request PUT \
"https://cupidapiv2.smartflowtech.com/api/company_wallets/10" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"otp\": 10,
\"company_id\": 15,
\"vendor_id\": 6,
\"vendor_wallet_id\": 2,
\"balance\": 5304.73993,
\"active\": true
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/company_wallets/10"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"otp": 10,
"company_id": 15,
"vendor_id": 6,
"vendor_wallet_id": 2,
"balance": 5304.73993,
"active": true
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"vendor": null,
"company": null,
"nfctag": null
}
}
Received response:
Request failed with error:
Delete a company wallet
requires authentication
Example request:
curl --request DELETE \
"https://cupidapiv2.smartflowtech.com/api/company_wallets/4" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/company_wallets/4"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Display a listing of the user wallets or search by wallet ID.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/user_wallets?term=ipsam&per_page=2" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/user_wallets"
);
const params = {
"term": "ipsam",
"per_page": "2",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"vendor_current_credit_limit": null,
"vendor": null,
"vendorWallet": null
},
{
"vendor_current_credit_limit": null,
"vendor": null,
"vendorWallet": null
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 20,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Create a new user wallet
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/user_wallets" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"otp\": 16,
\"user_id\": 15,
\"vendor_id\": 18,
\"vendor_wallet_id\": 11,
\"balance\": 2558.897633,
\"active\": false
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/user_wallets"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"otp": 16,
"user_id": 15,
"vendor_id": 18,
"vendor_wallet_id": 11,
"balance": 2558.897633,
"active": false
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"vendor_current_credit_limit": null,
"vendor": null,
"vendorWallet": null
}
}
Received response:
Request failed with error:
Show a specified user wallet.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/user_wallets/15" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/user_wallets/15"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"vendor_current_credit_limit": null,
"vendor": null,
"vendorWallet": null
}
}
Received response:
Request failed with error:
Update the specified user wallet
requires authentication
Example request:
curl --request PUT \
"https://cupidapiv2.smartflowtech.com/api/user_wallets/18" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"otp\": 8,
\"user_id\": 18,
\"vendor_id\": 14,
\"vendor_wallet_id\": 14,
\"balance\": 241.0771971,
\"active\": false
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/user_wallets/18"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"otp": 8,
"user_id": 18,
"vendor_id": 14,
"vendor_wallet_id": 14,
"balance": 241.0771971,
"active": false
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"vendor_current_credit_limit": null,
"vendor": null,
"vendorWallet": null
}
}
Received response:
Request failed with error:
Delete a user wallet
requires authentication
Example request:
curl --request DELETE \
"https://cupidapiv2.smartflowtech.com/api/user_wallets/15" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/user_wallets/15"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Display a listing of the user wallet histories or search by status, payment reference.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/user_wallet_histories?term=corrupti&per_page=8" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/user_wallet_histories"
);
const params = {
"term": "corrupti",
"per_page": "8",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
[],
[]
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 20,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Show a specified user wallet history
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/user_wallet_histories/6" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/user_wallet_histories/6"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": []
}
Received response:
Request failed with error:
Delete a user wallet history
requires authentication
Example request:
curl --request DELETE \
"https://cupidapiv2.smartflowtech.com/api/user_wallet_histories/16" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/user_wallet_histories/16"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Display a listing of the user wallet or search by status, payment reference.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/user_company_wallets?term=natus&per_page=15" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/user_company_wallets"
);
const params = {
"term": "natus",
"per_page": "15",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"vendor": null
},
{
"vendor": null
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 20,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Create a new user vendor wallet
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/user_company_wallets" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"vendor_id\": 11,
\"user_id\": 2,
\"balance\": 35.8,
\"active\": false
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/user_company_wallets"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"vendor_id": 11,
"user_id": 2,
"balance": 35.8,
"active": false
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"vendor": null
}
}
Received response:
Request failed with error:
Show a specified user vendor wallet
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/user_company_wallets/14" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/user_company_wallets/14"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"vendor": null
}
}
Received response:
Request failed with error:
Update the specified user vendor wallet
requires authentication
Example request:
curl --request PUT \
"https://cupidapiv2.smartflowtech.com/api/user_company_wallets/16" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"vendor_id\": 7,
\"user_id\": 19,
\"balance\": 779.7,
\"active\": false
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/user_company_wallets/16"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"vendor_id": 7,
"user_id": 19,
"balance": 779.7,
"active": false
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"vendor": null
}
}
Received response:
Request failed with error:
Delete a user vendor wallet
requires authentication
Example request:
curl --request DELETE \
"https://cupidapiv2.smartflowtech.com/api/user_company_wallets/12" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/user_company_wallets/12"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
This endpoint allows users to create wallet(join loyalty program) themselves(if they don't already have one with the vendor)
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/create_wallet/et" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/create_wallet/et"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
This endpoint allows users to create a vendor wallet(join loyalty program) themselves(if they don't already have one). This should be implemented only if the customer knows the vendor
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/create_company_wallet/3/explicabo" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/create_company_wallet/3/explicabo"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Fund a users' wallet after verifying payment
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/fund_wallet/8/consequatur/reprehenderit" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/fund_wallet/8/consequatur/reprehenderit"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Fund a company's wallet after verifying payment
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/fund_company_wallet/2/19/aut/voluptatem/enim" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/fund_company_wallet/2/19/aut/voluptatem/enim"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Display a listing of the Credit Limit History or search by name, .
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/credit_limit_history?term=culpa&per_page=13" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/credit_limit_history"
);
const params = {
"term": "culpa",
"per_page": "13",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"vendor": null,
"company": null,
"user": null,
"limit_requested_user": null,
"limit_approved_user": null
},
{
"vendor": null,
"company": null,
"user": null,
"limit_requested_user": null,
"limit_approved_user": null
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 20,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Create a new Credit Limit History
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/credit_limit_history" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"vendor_id\": 2,
\"company_id\": 13,
\"user_id\": 10,
\"credit_limit\": 36810.454572025,
\"limit_requested_by\": 7,
\"limit_approved_by\": 3,
\"status\": \"Approved\"
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/credit_limit_history"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"vendor_id": 2,
"company_id": 13,
"user_id": 10,
"credit_limit": 36810.454572025,
"limit_requested_by": 7,
"limit_approved_by": 3,
"status": "Approved"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"vendor": null,
"company": null,
"user": null,
"limit_requested_user": null,
"limit_approved_user": null
}
}
Received response:
Request failed with error:
Show a specified Credit Limit History.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/credit_limit_history/19" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/credit_limit_history/19"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"vendor": null,
"company": null,
"user": null,
"limit_requested_user": null,
"limit_approved_user": null
}
}
Received response:
Request failed with error:
Update the specified Credit Limit History
requires authentication
Example request:
curl --request PUT \
"https://cupidapiv2.smartflowtech.com/api/credit_limit_history/10" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"vendor_id\": 12,
\"company_id\": 1,
\"user_id\": 13,
\"credit_limit\": 46947699.6296891,
\"limit_requested_by\": 13,
\"limit_approved_by\": 18,
\"status\": \"Pending\"
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/credit_limit_history/10"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"vendor_id": 12,
"company_id": 1,
"user_id": 13,
"credit_limit": 46947699.6296891,
"limit_requested_by": 13,
"limit_approved_by": 18,
"status": "Pending"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"vendor": null,
"company": null,
"user": null,
"limit_requested_user": null,
"limit_approved_user": null
}
}
Received response:
Request failed with error:
Delete a Credit Limit History
requires authentication
Example request:
curl --request DELETE \
"https://cupidapiv2.smartflowtech.com/api/credit_limit_history/2" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/credit_limit_history/2"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Vendor Customer Boarding Endpoints
Display a listing of the vendor onboard details or search by contact_number.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/vendors_onboarding_details?term=quia&per_page=8" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vendors_onboarding_details"
);
const params = {
"term": "quia",
"per_page": "8",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"vendor_id": null,
"min_wallet_recharge": 4,
"tag_cost": 301143045,
"contact_number": "+13862499075",
"vendor": null
},
{
"vendor_id": null,
"min_wallet_recharge": 4,
"tag_cost": 25313,
"contact_number": "(484) 341-3569",
"vendor": null
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 20,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Create a new vendor onboard details
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/vendors_onboarding_details" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"vendor_id\": 19,
\"min_wallet_recharge\": 1493300.6139,
\"tag_cost\": 146.65214,
\"contact_number\": 141212.1568028
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vendors_onboarding_details"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"vendor_id": 19,
"min_wallet_recharge": 1493300.6139,
"tag_cost": 146.65214,
"contact_number": 141212.1568028
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"vendor_id": null,
"min_wallet_recharge": 573007,
"tag_cost": 6618,
"contact_number": "1-718-213-9903",
"vendor": null
}
}
Received response:
Request failed with error:
Show a specified vendor onboard details.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/vendors_onboarding_details/5" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vendors_onboarding_details/5"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"vendor_id": null,
"min_wallet_recharge": 59191414,
"tag_cost": 17,
"contact_number": "1-712-661-1661",
"vendor": null
}
}
Received response:
Request failed with error:
Update the specified vendor onboard details
requires authentication
Example request:
curl --request PUT \
"https://cupidapiv2.smartflowtech.com/api/vendors_onboarding_details/20" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"vendor_id\": 5,
\"min_wallet_recharge\": 35715310.878346,
\"tag_cost\": 3.76868,
\"contact_number\": 0.15028
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vendors_onboarding_details/20"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"vendor_id": 5,
"min_wallet_recharge": 35715310.878346,
"tag_cost": 3.76868,
"contact_number": 0.15028
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"vendor_id": null,
"min_wallet_recharge": 5211,
"tag_cost": 265296,
"contact_number": "(207) 938-1210",
"vendor": null
}
}
Received response:
Request failed with error:
Delete a vendor onboard details
requires authentication
Example request:
curl --request DELETE \
"https://cupidapiv2.smartflowtech.com/api/vendors_onboarding_details/7" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vendors_onboarding_details/7"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Get vendor onboard details by sm_company_id
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/vendors_onboarding_details/get_by_sm_company_id/18" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vendors_onboarding_details/get_by_sm_company_id/18"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: cupid_session=U5PW5aC2ava8pfeiyA4ASeE2B6d8G28q85YDfU2r; expires=Thu, 28 Aug 2025 13:25:21 GMT; Max-Age=7200; path=/; httponly; samesite=lax
{
"message": "The route api/vendors_onboarding_details/get_by_sm_company_id/18 could not be found."
}
Received response:
Request failed with error:
Get vendor onboard details by vendor hostname
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/vendors_onboarding_details/get_by_hostname/ipsum" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vendors_onboarding_details/get_by_hostname/ipsum"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: cupid_session=Ugp0hjgutU9AKLCFLOiwm4n5EGUgpf2yYOrXq97p; expires=Thu, 28 Aug 2025 13:25:21 GMT; Max-Age=7200; path=/; httponly; samesite=lax
{
"message": "The route api/vendors_onboarding_details/get_by_hostname/ipsum could not be found."
}
Received response:
Request failed with error:
Display a listing of the tag pickup locations or search by name, address or contact_number.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/vendors_tag_pickup_locations?term=in&per_page=17" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vendors_tag_pickup_locations"
);
const params = {
"term": "in",
"per_page": "17",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"vendor_id": null,
"station_id": null,
"cod_id": 0,
"name": "Hintz, Collins and Ondricka",
"address": "5764 Collins Bypass Apt. 268\nLake Art, TX 76234-6885",
"contact_number": "412.919.2427",
"vendor": null,
"station": null
},
{
"vendor_id": null,
"station_id": null,
"cod_id": 9,
"name": "Hilpert, Goldner and Littel",
"address": "68608 Toy Lights\nGutmannchester, ND 45369",
"contact_number": "+1-430-812-8245",
"vendor": null,
"station": null
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 20,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Create a new tag pickup location
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/vendors_tag_pickup_locations" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"company_id\": 15,
\"vendor_id\": 7,
\"station_id\": 15,
\"name\": \"deserunt\",
\"address\": \"quos\",
\"cod_id\": 10,
\"contact_number\": 901.1334
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vendors_tag_pickup_locations"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"company_id": 15,
"vendor_id": 7,
"station_id": 15,
"name": "deserunt",
"address": "quos",
"cod_id": 10,
"contact_number": 901.1334
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"vendor_id": null,
"station_id": null,
"cod_id": 0,
"name": "Schmidt, Feil and Schuster",
"address": "10080 Johann Falls\nSouth Delia, TX 90147",
"contact_number": "1-225-391-4864",
"vendor": null,
"station": null
}
}
Received response:
Request failed with error:
Show a specified tag pickup location.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/vendors_tag_pickup_locations/18" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vendors_tag_pickup_locations/18"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"vendor_id": null,
"station_id": null,
"cod_id": 4,
"name": "Gerhold, Grady and Emard",
"address": "29054 Gibson Plaza\nPort Carolburgh, NM 24168",
"contact_number": "+16577631528",
"vendor": null,
"station": null
}
}
Received response:
Request failed with error:
Update the specified tag pickup location
requires authentication
Example request:
curl --request PUT \
"https://cupidapiv2.smartflowtech.com/api/vendors_tag_pickup_locations/5" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"company_id\": 1,
\"vendor_id\": 16,
\"station_id\": 12,
\"name\": \"sed\",
\"address\": \"commodi\",
\"cod_id\": 8,
\"contact_number\": 284135735.5332274
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vendors_tag_pickup_locations/5"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"company_id": 1,
"vendor_id": 16,
"station_id": 12,
"name": "sed",
"address": "commodi",
"cod_id": 8,
"contact_number": 284135735.5332274
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"vendor_id": null,
"station_id": null,
"cod_id": 4,
"name": "Fadel, Schimmel and Durgan",
"address": "4802 Adrienne Forest Apt. 921\nSouth Lillianbury, CO 40963-9196",
"contact_number": "+13188240717",
"vendor": null,
"station": null
}
}
Received response:
Request failed with error:
Delete a tag pickup location
requires authentication
Example request:
curl --request DELETE \
"https://cupidapiv2.smartflowtech.com/api/vendors_tag_pickup_locations/2" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vendors_tag_pickup_locations/2"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Get tag pickup location by vendor hostname
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/vendors_tag_pickup_locations/get_by_hostname/ipsum" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vendors_tag_pickup_locations/get_by_hostname/ipsum"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (404):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: cupid_session=4n5EStvfMz9BJBT3nti3sdSxOvmSuMwrohBmXCRG; expires=Thu, 28 Aug 2025 13:25:21 GMT; Max-Age=7200; path=/; httponly; samesite=lax
{
"message": "The route api/vendors_tag_pickup_locations/get_by_hostname/ipsum could not be found."
}
Received response:
Request failed with error:
Vendor Endpoints
Display a listing of the vendor app configurations by hostname
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/vendor_app_config?hostname=nulla" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vendor_app_config"
);
const params = {
"hostname": "nulla",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"hostname": "lueilwitz.org",
"logo_path": "https://via.placeholder.com/640x480.png/0022cc?text=velit",
"app_name": "Heidenreich-Hermann",
"app_name_font_size": 11,
"app_header_color": "#00eecc",
"app_body_color": "#00bb88",
"menu_header_color": "#00cc88",
"menu_body_color": "#00bb22",
"loyalty_reward_percentage": 2,
"loyalty_min_purchase_amount": 8,
"loyalty_min_point": 6,
"status": null
},
{
"hostname": "steuber.com",
"logo_path": "https://via.placeholder.com/640x480.png/004488?text=quia",
"app_name": "Rath, VonRueden and Haley",
"app_name_font_size": 35,
"app_header_color": "#000011",
"app_body_color": "#00aa44",
"menu_header_color": "#00bbee",
"menu_body_color": "#007711",
"loyalty_reward_percentage": 9,
"loyalty_min_purchase_amount": 9,
"loyalty_min_point": 1,
"status": null
}
]
}
Received response:
Request failed with error:
Display a listing of the vendor user or search by name, phone number, email, card last four digits, vendor name.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/vendor_users?vendor_id=18&per_page=6&term=esse" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vendor_users"
);
const params = {
"vendor_id": "18",
"per_page": "6",
"term": "esse",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"title": "Mrs.",
"name": "Maude Denesik",
"email": "niko05@example.com",
"phone": "845-572-5579",
"avatar": "https://via.placeholder.com/200x200.png/000055?text=avatar+laborum",
"username": "rtorphy",
"gender": "Female",
"newsletter": false,
"active": true,
"card_brand": "MasterCard",
"card_last_four": "6475",
"is_vendor": true,
"is_admin": false,
"updated_at": "2025-08-28T11:25:19.000000Z",
"created_at": "2025-08-28T11:25:19.000000Z",
"id": 54,
"companies": [],
"vendors": [],
"bankAccount": null,
"permissions": [],
"costCenters": [],
"roles": [],
"stations": [],
"wallet_details": null
},
{
"title": "Prof.",
"name": "Keira Kuhn",
"email": "peter.oconner@example.com",
"phone": "+1.857.534.3871",
"avatar": "https://via.placeholder.com/200x200.png/00bbdd?text=avatar+quod",
"username": "joconner",
"gender": "Male",
"newsletter": true,
"active": true,
"card_brand": "MasterCard",
"card_last_four": "3991",
"is_vendor": false,
"is_admin": true,
"updated_at": "2025-08-28T11:25:19.000000Z",
"created_at": "2025-08-28T11:25:19.000000Z",
"id": 55,
"companies": [],
"vendors": [],
"bankAccount": null,
"permissions": [],
"costCenters": [],
"roles": [],
"stations": [],
"wallet_details": null
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 20,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Create a new vendor user
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/vendor_users?vendor_id=1" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"vel\",
\"phone\": 33.559261676,
\"email\": \"krystel.wolff@example.org\",
\"username\": \"est\",
\"gender\": \"hic\",
\"newsletter\": false,
\"active\": true,
\"is_admin\": false,
\"is_vendor\": true,
\"suspended\": false,
\"vendors\": [
18
],
\"companies\": [
5
],
\"cost_centers\": [
10
],
\"stations\": [
2
]
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vendor_users"
);
const params = {
"vendor_id": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "vel",
"phone": 33.559261676,
"email": "krystel.wolff@example.org",
"username": "est",
"gender": "hic",
"newsletter": false,
"active": true,
"is_admin": false,
"is_vendor": true,
"suspended": false,
"vendors": [
18
],
"companies": [
5
],
"cost_centers": [
10
],
"stations": [
2
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"title": "Miss",
"name": "Brook Macejkovic",
"email": "ufarrell@example.com",
"phone": "+1.458.966.4176",
"avatar": "https://via.placeholder.com/200x200.png/00ff44?text=avatar+est",
"username": "thiel.johan",
"gender": "Male",
"newsletter": false,
"active": true,
"card_brand": "Visa",
"card_last_four": "1537",
"is_vendor": true,
"is_admin": false,
"updated_at": "2025-08-28T11:25:19.000000Z",
"created_at": "2025-08-28T11:25:19.000000Z",
"id": 56,
"companies": [],
"vendors": [],
"bankAccount": null,
"permissions": [],
"costCenters": [],
"roles": [],
"stations": [],
"wallet_details": null
}
}
Received response:
Request failed with error:
Show a specified vendor user.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/vendor_users/19?vendor_id=12" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vendor_users/19"
);
const params = {
"vendor_id": "12",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"title": "Miss",
"name": "Prof. Augustine Metz",
"email": "roel34@example.net",
"phone": "(859) 613-3145",
"avatar": "https://via.placeholder.com/200x200.png/00bbcc?text=avatar+nemo",
"username": "danika.gibson",
"gender": "Female",
"newsletter": true,
"active": true,
"card_brand": "American Express",
"card_last_four": "2310",
"is_vendor": true,
"is_admin": false,
"updated_at": "2025-08-28T11:25:19.000000Z",
"created_at": "2025-08-28T11:25:19.000000Z",
"id": 57,
"companies": [],
"vendors": [],
"bankAccount": null,
"permissions": [],
"costCenters": [],
"roles": [],
"stations": [],
"wallet_details": null
}
}
Received response:
Request failed with error:
Update the specified vendor user without detaching the user from other vendors
requires authentication
Example request:
curl --request PUT \
"https://cupidapiv2.smartflowtech.com/api/vendor_users/13?vendor_id=15" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"consequatur\",
\"phone\": 30856282.1,
\"email\": \"senger.kaci@example.org\",
\"username\": \"at\",
\"gender\": \"molestias\",
\"newsletter\": false,
\"active\": true,
\"is_admin\": true,
\"is_vendor\": true,
\"suspended\": false,
\"vendors\": [
13
],
\"companies\": [
15
],
\"cost_centers\": [
18
],
\"stations\": [
16
]
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vendor_users/13"
);
const params = {
"vendor_id": "15",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "consequatur",
"phone": 30856282.1,
"email": "senger.kaci@example.org",
"username": "at",
"gender": "molestias",
"newsletter": false,
"active": true,
"is_admin": true,
"is_vendor": true,
"suspended": false,
"vendors": [
13
],
"companies": [
15
],
"cost_centers": [
18
],
"stations": [
16
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"name": "Marquardt, Littel and Cummings",
"email": "hvandervort@stiedemann.org",
"phone_number": "1-937-561-2367",
"country": "Guinea",
"state": "Florida",
"city": "Breitenbergport",
"postcode": "10054-7039",
"address": "705 Ebony Mountain",
"registration_number": "RC-832529",
"contact_person": "Davin Runte",
"sm_company_id": 5,
"products_sold": "HHK",
"payment_type": "autem",
"status": false,
"has_active_paga_account": true,
"updated_at": "2025-08-28T11:25:19.000000Z",
"created_at": "2025-08-28T11:25:19.000000Z",
"id": 9,
"vendor_additional_details": null,
"bank_accounts": null,
"wallet_details": null,
"app_config": null,
"paga_details": null,
"groups": []
}
}
Received response:
Request failed with error:
Detach a user from a vendor
requires authentication
Example request:
curl --request DELETE \
"https://cupidapiv2.smartflowtech.com/api/vendor_users/18?vendor_id=15" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vendor_users/18"
);
const params = {
"vendor_id": "15",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Display a listing of the groups or search by name, code.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/groups?term=dolorem&per_page=2" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/groups"
);
const params = {
"term": "dolorem",
"per_page": "2",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"name": "Bobby Nicolas IV",
"description": "Aut et omnis placeat nulla totam animi.",
"active": true,
"updated_at": "2025-08-28T11:25:19.000000Z",
"created_at": "2025-08-28T11:25:19.000000Z",
"id": 13,
"vendors": []
},
{
"name": "Samson Lueilwitz",
"description": "Ipsa odio ut quod ex.",
"active": true,
"updated_at": "2025-08-28T11:25:19.000000Z",
"created_at": "2025-08-28T11:25:19.000000Z",
"id": 14,
"vendors": []
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 20,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Create a new group
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/groups" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"amet\",
\"active\": false
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/groups"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "amet",
"active": false
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"name": "Asa Cassin I",
"description": "A commodi eos facilis ab ut.",
"active": true,
"updated_at": "2025-08-28T11:25:19.000000Z",
"created_at": "2025-08-28T11:25:19.000000Z",
"id": 15,
"vendors": []
}
}
Received response:
Request failed with error:
Show a specified group.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/groups/19" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/groups/19"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"name": "Magdalen Macejkovic",
"description": "Non modi tenetur est totam iste.",
"active": true,
"updated_at": "2025-08-28T11:25:19.000000Z",
"created_at": "2025-08-28T11:25:19.000000Z",
"id": 16,
"vendors": []
}
}
Received response:
Request failed with error:
Update the specified group
requires authentication
Example request:
curl --request PUT \
"https://cupidapiv2.smartflowtech.com/api/groups/3" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"consequuntur\",
\"active\": true
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/groups/3"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "consequuntur",
"active": true
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"name": "Miss Pauline Nikolaus MD",
"description": "Vitae quia accusamus nulla sit.",
"active": true,
"updated_at": "2025-08-28T11:25:19.000000Z",
"created_at": "2025-08-28T11:25:19.000000Z",
"id": 17,
"vendors": []
}
}
Received response:
Request failed with error:
Delete a group
requires authentication
Example request:
curl --request DELETE \
"https://cupidapiv2.smartflowtech.com/api/groups/14" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/groups/14"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"name": "Thad DuBuque",
"description": "Rem dolore dicta omnis cum.",
"active": true,
"updated_at": "2025-08-28T11:25:19.000000Z",
"created_at": "2025-08-28T11:25:19.000000Z",
"id": 18,
"vendors": []
}
}
Received response:
Request failed with error:
Display a listing of the vendors or search by name, phone number, email, address, state, country.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/vendors?term=aut&per_page=13&status=18" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vendors"
);
const params = {
"term": "aut",
"per_page": "13",
"status": "18",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"vendor_additional_details": null,
"bank_accounts": null,
"wallet_details": null,
"app_config": null,
"paga_details": null,
"groups": []
},
{
"vendor_additional_details": null,
"bank_accounts": null,
"wallet_details": null,
"app_config": null,
"paga_details": null,
"groups": []
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 20,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Create a new vendor
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/vendors" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"sm_company_id\": 11,
\"se_company_id\": 5,
\"name\": \"quidem\",
\"address\": \"qui\",
\"phone_number\": 275.2956441,
\"email\": \"vitae\",
\"country\": \"impedit\",
\"state\": \"quo\",
\"city\": \"et\",
\"registration_number\": \"natus\",
\"contact_person\": \"cupiditate\",
\"products_sold\": \"fugit\",
\"payment_type\": \"debitis\",
\"has_active_paga_account\": true,
\"status\": false,
\"on_loyalty_program\": true,
\"create_wallet\": false,
\"group_id\": 19
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vendors"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"sm_company_id": 11,
"se_company_id": 5,
"name": "quidem",
"address": "qui",
"phone_number": 275.2956441,
"email": "vitae",
"country": "impedit",
"state": "quo",
"city": "et",
"registration_number": "natus",
"contact_person": "cupiditate",
"products_sold": "fugit",
"payment_type": "debitis",
"has_active_paga_account": true,
"status": false,
"on_loyalty_program": true,
"create_wallet": false,
"group_id": 19
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"vendor_additional_details": null,
"bank_accounts": null,
"wallet_details": null,
"app_config": null,
"paga_details": null,
"groups": []
}
}
Received response:
Request failed with error:
Show a specified vendor.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/vendors/12" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vendors/12"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"vendor_additional_details": null,
"bank_accounts": null,
"wallet_details": null,
"app_config": null,
"paga_details": null,
"groups": []
}
}
Received response:
Request failed with error:
Update the specified vendor
requires authentication
Example request:
curl --request PUT \
"https://cupidapiv2.smartflowtech.com/api/vendors/15" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"sm_company_id\": 17,
\"se_company_id\": 3,
\"name\": \"voluptas\",
\"address\": \"quia\",
\"phone_number\": 260.4,
\"email\": \"et\",
\"country\": \"commodi\",
\"state\": \"natus\",
\"city\": \"eveniet\",
\"registration_number\": \"repudiandae\",
\"contact_person\": \"suscipit\",
\"products_sold\": \"a\",
\"payment_type\": \"ab\",
\"has_active_paga_account\": true,
\"status\": false,
\"on_loyalty_program\": false,
\"create_wallet\": false,
\"group_id\": 8
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vendors/15"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"sm_company_id": 17,
"se_company_id": 3,
"name": "voluptas",
"address": "quia",
"phone_number": 260.4,
"email": "et",
"country": "commodi",
"state": "natus",
"city": "eveniet",
"registration_number": "repudiandae",
"contact_person": "suscipit",
"products_sold": "a",
"payment_type": "ab",
"has_active_paga_account": true,
"status": false,
"on_loyalty_program": false,
"create_wallet": false,
"group_id": 8
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"vendor_additional_details": null,
"bank_accounts": null,
"wallet_details": null,
"app_config": null,
"paga_details": null,
"groups": []
}
}
Received response:
Request failed with error:
Delete a vendor
requires authentication
Example request:
curl --request DELETE \
"https://cupidapiv2.smartflowtech.com/api/vendors/11" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vendors/11"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Display a listing of the vendor companies or search by partnership code, status
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/vendor_companies?per_page=9&term=incidunt&vendor_id=vero&company_id=velit" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vendor_companies"
);
const params = {
"per_page": "9",
"term": "incidunt",
"vendor_id": "vero",
"company_id": "velit",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"status": "Partnership Declined",
"partnership_code": "0914737",
"active": true,
"partnership_ppv_mode": null,
"pms_ppv": "78",
"ago_ppv": "25",
"discount_mode": null,
"vendor": null,
"company": null
},
{
"status": "Partnership Declined",
"partnership_code": "7510671",
"active": false,
"partnership_ppv_mode": "ON_SITE",
"pms_ppv": "15",
"ago_ppv": "65",
"discount_mode": "MONETARY_VALUE_DISCOUNT",
"vendor": null,
"company": null
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 20,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Create a new vendor company
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/vendor_companies" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"company_id\": 14,
\"vendor_id\": 18,
\"status\": \"veniam\",
\"partnership_code\": \"cupiditate\",
\"active\": false,
\"partnership_ppv_mode\": \"modi\",
\"pms_ppv\": \"nemo\",
\"ago_ppv\": \"modi\",
\"discount_mode\": \"porro\"
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vendor_companies"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"company_id": 14,
"vendor_id": 18,
"status": "veniam",
"partnership_code": "cupiditate",
"active": false,
"partnership_ppv_mode": "modi",
"pms_ppv": "nemo",
"ago_ppv": "modi",
"discount_mode": "porro"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"status": "In Partnership",
"partnership_code": "0955516",
"active": false,
"partnership_ppv_mode": null,
"pms_ppv": "25",
"ago_ppv": "14",
"discount_mode": "MONETARY_VALUE_DISCOUNT",
"vendor": null,
"company": null
}
}
Received response:
Request failed with error:
Show a specified vendor company.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/vendor_companies/17" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vendor_companies/17"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"status": "Partnership Declined",
"partnership_code": "9525352",
"active": true,
"partnership_ppv_mode": null,
"pms_ppv": "65",
"ago_ppv": "34",
"discount_mode": null,
"vendor": null,
"company": null
}
}
Received response:
Request failed with error:
Update the specified vendor company
requires authentication
Example request:
curl --request PUT \
"https://cupidapiv2.smartflowtech.com/api/vendor_companies/11" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"company_id\": 3,
\"vendor_id\": 10,
\"status\": \"mollitia\",
\"partnership_code\": \"praesentium\",
\"active\": true,
\"partnership_ppv_mode\": \"omnis\",
\"pms_ppv\": \"id\",
\"ago_ppv\": \"eum\",
\"discount_mode\": \"libero\"
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vendor_companies/11"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"company_id": 3,
"vendor_id": 10,
"status": "mollitia",
"partnership_code": "praesentium",
"active": true,
"partnership_ppv_mode": "omnis",
"pms_ppv": "id",
"ago_ppv": "eum",
"discount_mode": "libero"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"status": "Partnership Declined",
"partnership_code": "5849689",
"active": false,
"partnership_ppv_mode": "ON_SITE",
"pms_ppv": "48",
"ago_ppv": "61",
"discount_mode": "MONETARY_VALUE_DISCOUNT",
"vendor": null,
"company": null
}
}
Received response:
Request failed with error:
Delete a vendor company
requires authentication
Example request:
curl --request DELETE \
"https://cupidapiv2.smartflowtech.com/api/vendor_companies/13" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vendor_companies/13"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Display a listing of the vendor application configurations or search by app name, hostname
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/vendor_app_configs?per_page=12&term=ex" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vendor_app_configs"
);
const params = {
"per_page": "12",
"term": "ex",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"hostname": "erdman.com",
"logo_path": "https://via.placeholder.com/640x480.png/0033ee?text=nobis",
"app_name": "Monahan and Sons",
"app_name_font_size": 40,
"app_header_color": "#006688",
"app_body_color": "#0088aa",
"menu_header_color": "#00cc77",
"menu_body_color": "#00bb22",
"loyalty_reward_percentage": 3,
"loyalty_min_purchase_amount": 8,
"loyalty_min_point": 9,
"status": null
},
{
"hostname": "bernhard.com",
"logo_path": "https://via.placeholder.com/640x480.png/005588?text=sint",
"app_name": "Greenfelder Ltd",
"app_name_font_size": 96,
"app_header_color": "#0066dd",
"app_body_color": "#00eeff",
"menu_header_color": "#0099aa",
"menu_body_color": "#002288",
"loyalty_reward_percentage": 6,
"loyalty_min_purchase_amount": 1,
"loyalty_min_point": 4,
"status": null
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 20,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Create a new vendor application configuration
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/vendor_app_configs" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "vendor_id=7" \
--form "hostname=http://conn.com/animi-libero-nam-est-enim-voluptates.html" \
--form "app_name=voluptas" \
--form "app_name_font_size=9.179632" \
--form "app_header_color=voluptate" \
--form "app_body_color=voluptate" \
--form "menu_header_color=voluptas" \
--form "menu_body_color=ut" \
--form "status=voluptatem" \
--form "logo_path=@/tmp/phpUCoMJs" const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vendor_app_configs"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('vendor_id', '7');
body.append('hostname', 'http://conn.com/animi-libero-nam-est-enim-voluptates.html');
body.append('app_name', 'voluptas');
body.append('app_name_font_size', '9.179632');
body.append('app_header_color', 'voluptate');
body.append('app_body_color', 'voluptate');
body.append('menu_header_color', 'voluptas');
body.append('menu_body_color', 'ut');
body.append('status', 'voluptatem');
body.append('logo_path', document.querySelector('input[name="logo_path"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Example response (200):
{
"data": {
"hostname": "hoeger.com",
"logo_path": "https://via.placeholder.com/640x480.png/00bb33?text=ea",
"app_name": "Vandervort, Collier and Towne",
"app_name_font_size": 18,
"app_header_color": "#0077ee",
"app_body_color": "#00cc99",
"menu_header_color": "#003344",
"menu_body_color": "#003388",
"loyalty_reward_percentage": 8,
"loyalty_min_purchase_amount": 4,
"loyalty_min_point": 9,
"status": null
}
}
Received response:
Request failed with error:
Show a specified vendor application configuration.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/vendor_app_configs/14" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vendor_app_configs/14"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"hostname": "wiegand.com",
"logo_path": "https://via.placeholder.com/640x480.png/000044?text=consequatur",
"app_name": "Zieme and Sons",
"app_name_font_size": 97,
"app_header_color": "#0000ee",
"app_body_color": "#00ffbb",
"menu_header_color": "#007777",
"menu_body_color": "#00cc55",
"loyalty_reward_percentage": 6,
"loyalty_min_purchase_amount": 1,
"loyalty_min_point": 2,
"status": null
}
}
Received response:
Request failed with error:
Update the specified vendor application configuration
requires authentication
Example request:
curl --request PUT \
"https://cupidapiv2.smartflowtech.com/api/vendor_app_configs/7" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "vendor_id=6" \
--form "hostname=https://deckow.com/unde-qui-reprehenderit-sunt-corporis-accusamus-vero.html" \
--form "app_name=ut" \
--form "app_name_font_size=71394.6647" \
--form "app_header_color=minima" \
--form "app_body_color=quibusdam" \
--form "menu_header_color=id" \
--form "menu_body_color=unde" \
--form "status=nesciunt" \
--form "logo_path=@/tmp/phpo4Rqf2" const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vendor_app_configs/7"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('vendor_id', '6');
body.append('hostname', 'https://deckow.com/unde-qui-reprehenderit-sunt-corporis-accusamus-vero.html');
body.append('app_name', 'ut');
body.append('app_name_font_size', '71394.6647');
body.append('app_header_color', 'minima');
body.append('app_body_color', 'quibusdam');
body.append('menu_header_color', 'id');
body.append('menu_body_color', 'unde');
body.append('status', 'nesciunt');
body.append('logo_path', document.querySelector('input[name="logo_path"]').files[0]);
fetch(url, {
method: "PUT",
headers,
body,
}).then(response => response.json());Example response (200):
{
"data": {
"hostname": "moen.com",
"logo_path": "https://via.placeholder.com/640x480.png/009944?text=quibusdam",
"app_name": "O'Conner Inc",
"app_name_font_size": 7,
"app_header_color": "#00eeaa",
"app_body_color": "#00cc77",
"menu_header_color": "#00eebb",
"menu_body_color": "#008855",
"loyalty_reward_percentage": 5,
"loyalty_min_purchase_amount": 9,
"loyalty_min_point": 5,
"status": null
}
}
Received response:
Request failed with error:
Delete a vendor application configuration
requires authentication
Example request:
curl --request DELETE \
"https://cupidapiv2.smartflowtech.com/api/vendor_app_configs/6" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vendor_app_configs/6"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Display a list of the vendor banking details or search by account number, bank name, account name, paystack ID, paystack sub-account code
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/vendor_bank_accounts?per_page=14&term=voluptatem" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vendor_bank_accounts"
);
const params = {
"per_page": "14",
"term": "voluptatem",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"account_number": "CY935991932037AR5EYT0209UL42",
"bank_name": "Yundt Inc",
"account_name": "Rempel-Haag",
"paystack_id": 8,
"paystack_subaccount_code": "ACCT_802749131",
"payment_mode": "paystack",
"merchantcodes": "420666598205",
"active": true,
"vendor": null
},
{
"account_number": "GI40LVIMY1UNVUSC8N4COQ6",
"bank_name": "Rosenbaum LLC",
"account_name": "Bode, Muller and Waelchi",
"paystack_id": 2,
"paystack_subaccount_code": "ACCT_531549356",
"payment_mode": null,
"merchantcodes": "533987640750",
"active": true,
"vendor": null
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 20,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Create a new vendor banking details
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/vendor_bank_accounts" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"vendor_id\": 6,
\"account_number\": 312062611.06,
\"bank_name\": \"laborum\",
\"account_name\": \"quos\",
\"paystack_id\": 57.53106625,
\"paystack_subaccount_code\": \"voluptatem\",
\"payment_mode\": \"paga\",
\"merchantcodes\": \"enim\",
\"active\": true
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vendor_bank_accounts"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"vendor_id": 6,
"account_number": 312062611.06,
"bank_name": "laborum",
"account_name": "quos",
"paystack_id": 57.53106625,
"paystack_subaccount_code": "voluptatem",
"payment_mode": "paga",
"merchantcodes": "enim",
"active": true
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"account_number": "AT829630647727722656",
"bank_name": "Bode-Hickle",
"account_name": "Zboncak, Barrows and Abbott",
"paystack_id": 6,
"paystack_subaccount_code": "ACCT_271102663",
"payment_mode": null,
"merchantcodes": "117932202911",
"active": true,
"vendor": null
}
}
Received response:
Request failed with error:
Show a specified vendor banking details.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/vendor_bank_accounts/19?vendor_id=10" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vendor_bank_accounts/19"
);
const params = {
"vendor_id": "10",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"account_number": "DE89109939185508046204",
"bank_name": "Schmeler Inc",
"account_name": "Schinner-Powlowski",
"paystack_id": 4,
"paystack_subaccount_code": "ACCT_754703086",
"payment_mode": null,
"merchantcodes": "750257292181",
"active": true,
"vendor": null
}
}
Received response:
Request failed with error:
Update the specified vendor banking details
requires authentication
Example request:
curl --request PUT \
"https://cupidapiv2.smartflowtech.com/api/vendor_bank_accounts/3" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"vendor_id\": 7,
\"account_number\": 37067739.82057198,
\"bank_name\": \"voluptas\",
\"account_name\": \"ratione\",
\"paystack_id\": 9.02,
\"paystack_subaccount_code\": \"doloribus\",
\"payment_mode\": \"paga\",
\"merchantcodes\": \"illo\",
\"active\": false
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vendor_bank_accounts/3"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"vendor_id": 7,
"account_number": 37067739.82057198,
"bank_name": "voluptas",
"account_name": "ratione",
"paystack_id": 9.02,
"paystack_subaccount_code": "doloribus",
"payment_mode": "paga",
"merchantcodes": "illo",
"active": false
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"account_number": "FI7204379745184346",
"bank_name": "Tillman PLC",
"account_name": "Dietrich Ltd",
"paystack_id": 9,
"paystack_subaccount_code": "ACCT_570162390",
"payment_mode": null,
"merchantcodes": "075153548536",
"active": true,
"vendor": null
}
}
Received response:
Request failed with error:
Delete a vendor banking details
requires authentication
Example request:
curl --request DELETE \
"https://cupidapiv2.smartflowtech.com/api/vendor_bank_accounts/7" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vendor_bank_accounts/7"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Display a listing of the vendor Paga details
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/vendor_paga_credentials?per_page=9" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vendor_paga_credentials"
);
const params = {
"per_page": "9",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"hmac": "a080b258-e9be-3f4d-80ca-6f768b75b116",
"secret_key": "f8f2df7b-bad2-32fe-b0de-089d9c14816e",
"public_key": "efcc544a-e854-3a42-a8cd-fcfa48fd1ec2",
"active": true
},
{
"hmac": "167f1a20-47f4-37ea-8411-574a5ca0042e",
"secret_key": "06732444-7bf3-3fa0-b736-2d2df4db8600",
"public_key": "c0dae6a1-8ff0-3fb0-9310-f4dfdd1a56d2",
"active": true
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 20,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Create a new vendor Paga credential
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/vendor_paga_credentials" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"vendor_id\": 9,
\"hmac\": \"et\",
\"secret_key\": \"praesentium\",
\"public_key\": \"eius\",
\"active\": false
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vendor_paga_credentials"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"vendor_id": 9,
"hmac": "et",
"secret_key": "praesentium",
"public_key": "eius",
"active": false
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"hmac": "69d85595-0173-37ba-9a06-ad9c05c80f68",
"secret_key": "6a81f136-0e4a-377f-91bc-7221378ce133",
"public_key": "a52e0e94-7c28-3131-a295-f02d5d2e1dba",
"active": true
}
}
Received response:
Request failed with error:
Show a specified vendor Paga credential.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/vendor_paga_credentials/17" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vendor_paga_credentials/17"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"hmac": "4bea0ebe-7611-37fa-a0ea-ad253f6a1f35",
"secret_key": "ee82dcd0-0c9d-3572-9f42-e3321f06842d",
"public_key": "fdac04c7-4148-3f0a-8585-1b27d703f668",
"active": true
}
}
Received response:
Request failed with error:
Update the specified vendor Paga credential
requires authentication
Example request:
curl --request PUT \
"https://cupidapiv2.smartflowtech.com/api/vendor_paga_credentials/7" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"vendor_id\": 15,
\"hmac\": \"omnis\",
\"secret_key\": \"facere\",
\"public_key\": \"amet\",
\"active\": false
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vendor_paga_credentials/7"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"vendor_id": 15,
"hmac": "omnis",
"secret_key": "facere",
"public_key": "amet",
"active": false
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"hmac": "6229f649-2362-3667-8aff-9bd0ed441fca",
"secret_key": "b1a1e849-2320-3dfe-a04d-1ab5fc8a612e",
"public_key": "d810acc7-8670-3bd7-a06e-463209554107",
"active": true
}
}
Received response:
Request failed with error:
Delete a vendor Paga credential
requires authentication
Example request:
curl --request DELETE \
"https://cupidapiv2.smartflowtech.com/api/vendor_paga_credentials/5" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vendor_paga_credentials/5"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Display a listing of the vendor assign delivery stations or search by station name
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/vendor_assigned_delivery_stations?per_page=7&term=est" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vendor_assigned_delivery_stations"
);
const params = {
"per_page": "7",
"term": "est",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
[],
[]
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 20,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Create a new vendor assigned delivery station
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/vendor_assigned_delivery_stations" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"vendor_id\": 2,
\"station_id\": 5,
\"user_id\": 10,
\"station_name\": \"itaque\"
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vendor_assigned_delivery_stations"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"vendor_id": 2,
"station_id": 5,
"user_id": 10,
"station_name": "itaque"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": []
}
Received response:
Request failed with error:
Show a specified vendor assigned delivery station.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/vendor_assigned_delivery_stations/6" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vendor_assigned_delivery_stations/6"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": []
}
Received response:
Request failed with error:
Update the specified vendor assigned delivery station
requires authentication
Example request:
curl --request PUT \
"https://cupidapiv2.smartflowtech.com/api/vendor_assigned_delivery_stations/18" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"vendor_id\": 18,
\"station_id\": 4,
\"user_id\": 19,
\"station_name\": \"suscipit\"
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vendor_assigned_delivery_stations/18"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"vendor_id": 18,
"station_id": 4,
"user_id": 19,
"station_name": "suscipit"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": []
}
Received response:
Request failed with error:
Delete a vendor assigned delivery station
requires authentication
Example request:
curl --request DELETE \
"https://cupidapiv2.smartflowtech.com/api/vendor_assigned_delivery_stations/4" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vendor_assigned_delivery_stations/4"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Display a listing of the vendor wallets
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/vendor_wallets?per_page=6" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vendor_wallets"
);
const params = {
"per_page": "6",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"current_balance": 2494.579138,
"current_credit_limit": 11293299.6472746,
"active": true
},
{
"current_balance": 20740.5,
"current_credit_limit": 0,
"active": true
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 20,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Create a new vendor wallet
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/vendor_wallets" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"vendor_id\": 14,
\"current_balance\": 16.96313477,
\"current_credit_limit\": 64187883.5,
\"active\": false
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vendor_wallets"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"vendor_id": 14,
"current_balance": 16.96313477,
"current_credit_limit": 64187883.5,
"active": false
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"current_balance": 4138981.91,
"current_credit_limit": 7702.80546779,
"active": true
}
}
Received response:
Request failed with error:
Show a specified vendor wallet.
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/vendor_wallets/10" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vendor_wallets/10"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": {
"current_balance": 0,
"current_credit_limit": 175404.12,
"active": true
}
}
Received response:
Request failed with error:
Update the specified vendor wallet
requires authentication
Example request:
curl --request PUT \
"https://cupidapiv2.smartflowtech.com/api/vendor_wallets/19" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"vendor_id\": 2,
\"current_balance\": 15652.729110571,
\"current_credit_limit\": 78,
\"active\": true
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vendor_wallets/19"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"vendor_id": 2,
"current_balance": 15652.729110571,
"current_credit_limit": 78,
"active": true
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (200):
{
"data": {
"current_balance": 792.187,
"current_credit_limit": 293540.001,
"active": true
}
}
Received response:
Request failed with error:
Delete a vendor wallet
requires authentication
Example request:
curl --request DELETE \
"https://cupidapiv2.smartflowtech.com/api/vendor_wallets/6" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/vendor_wallets/6"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Attach a vendor to a group.
requires authentication
Note: Vendors within the same group will have access to each other's data according to their respective privileges. You need to generate an otp (api/issue_otp) to complete this action
Example request:
curl --request PUT \
"https://cupidapiv2.smartflowtech.com/api/attach_vendor_to_group" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"group_id\": 13,
\"vendor_id\": 20,
\"otp\": \"ut\"
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/attach_vendor_to_group"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"group_id": 13,
"vendor_id": 20,
"otp": "ut"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Detach a vendor from a group.
requires authentication
Note: The referenced vendor will no longer have access to the data of the group it was attached to You need to generate an otp (api/issue_otp) to complete this action
Example request:
curl --request PUT \
"https://cupidapiv2.smartflowtech.com/api/detach_vendor_from_group" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"group_id\": 11,
\"vendor_id\": 13,
\"otp\": \"facere\"
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/detach_vendor_from_group"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"group_id": 11,
"vendor_id": 13,
"otp": "facere"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Display a list of companies by vendor
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/companies_by_vendor/18?per_page=18" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/companies_by_vendor/18"
);
const params = {
"per_page": "18",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"status": "Request Pending",
"partnership_code": "7122852",
"active": false,
"partnership_ppv_mode": "CUSTOM",
"pms_ppv": "07",
"ago_ppv": "85",
"discount_mode": null,
"vendor": null,
"company": null
},
{
"status": "Partnership Declined",
"partnership_code": "1607956",
"active": false,
"partnership_ppv_mode": null,
"pms_ppv": "61",
"ago_ppv": "45",
"discount_mode": null,
"vendor": null,
"company": null
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 20,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
Display a list of companies by vendor
requires authentication
Example request:
curl --request GET \
--get "https://cupidapiv2.smartflowtech.com/api/get_companies_by_vendor/1?per_page=5" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/get_companies_by_vendor/1"
);
const params = {
"per_page": "5",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{
"data": [
{
"status": "Partnership Declined",
"partnership_code": "6022173",
"active": false,
"partnership_ppv_mode": "ON_SITE",
"pms_ppv": "61",
"ago_ppv": "03",
"discount_mode": "MONETARY_VALUE_DISCOUNT",
"vendor": null,
"company": null
},
{
"status": "Partnership Declined",
"partnership_code": "1624436",
"active": true,
"partnership_ppv_mode": "ON_SITE",
"pms_ppv": "86",
"ago_ppv": "34",
"discount_mode": "MONETARY_VALUE_DISCOUNT",
"vendor": null,
"company": null
}
],
"links": {
"first": "/?page=1",
"last": "/?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "/?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "/",
"per_page": 20,
"to": 2,
"total": 2
}
}
Received response:
Request failed with error:
POST api/create_vendor_ussd_account
requires authentication
Example request:
curl --request POST \
"https://cupidapiv2.smartflowtech.com/api/create_vendor_ussd_account" \
--header "Authorization: Bearer {YOUR_AUTH_KEY}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"vendor_id\": 13,
\"payment_mode\": \"ussd\",
\"merchantcodes\": \"et\",
\"active\": true
}"
const url = new URL(
"https://cupidapiv2.smartflowtech.com/api/create_vendor_ussd_account"
);
const headers = {
"Authorization": "Bearer {YOUR_AUTH_KEY}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"vendor_id": 13,
"payment_mode": "ussd",
"merchantcodes": "et",
"active": true
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error: