Professional affiliate tracking and commission management system with comprehensive REST API integration
Clean REST endpoints with JSON responses for seamless integration
JWT token-based authentication with encrypted communication
Full API coverage for all affiliate system operations
Optimized for speed with caching and efficient data handling
https://yourdomain.com
application/json
Authenticate using login endpoint to receive your unique API token
Include token in Authorization header and set Content-Type to JSON
Start making API calls to endpoints with proper authentication
Authentication token are required as an authentication method with Affiliate apis. By using an Authentication token you authenticate access to the specific API. Without authentication access to the API is denied. You can generate and manage Authentication token from within the Affiliate login api. By login api will generate a unique your user token for API authentication.
API token is required for the authentication of the calling program to the API. The API token is sensitive private information that we strongly advise to have and keep restricted access to it. Content-Type: application/json Authorization: {{token}}
All requests with a response status code different than 200 (successful HTTP) are considered as a failure of the particular API call and referred to as “HTTPS errorsâ€. When the response (error) is returned an additional JSON is present in the body containing the error message. Depending on what has gone wrong with the API call, the error message is different.
As best practice we recommend to store all error messages somewhere along with request data for further manual review.
The errors we use follow the HTTP Error Codes Standard.
| HTTP Status Code | Error it represents |
|---|---|
| 3xx | Redirection Error |
| 4xx | Client Error |
| 5xx | Server Error |
The structure of the error always returns the following values, as listed and described in the example:
{"status":"true OR false (boolean)", "message": "Is the human readable error message"}
The structure of the validation parameter error always returns the following values, as listed and described in the example:
{ "message": "Please required field", "errors": { "parameter": "Oops ! parameter is required." } }
We use the following error codes:
| Type of code | HTTP Status Code | Error code | Message |
|---|---|---|---|
| Client Error | 400 | uri_not_found |
"The specified URI has not been found. Check the URI and try again." |
| 401 | missing_api_token |
"The specific authorization header (API token) is missing or invalid, please check our Authorization section in our Documentation." | |
| 404 | resource_not_found |
"The specified resource has not been found." | |
| 405 | request_method_not_supported |
"The specified request method ({method}) is not supported for this endpoint. Please check our Documentation and make sure you set the right request method." | |
allowed_methods |
"The specified method must be one of the following: {methods}." | ||
| 415 | unsupported_media_type |
"The selected Media Type is unavailable. The Content-Type header should be 'application/json'." | |
| 422 | unprocessable_enitity |
"stricly follow on required parameter : missing parameter or attribute error" | |
| Server Error | 500 | technical_issues |
"We are currently facing some technical issues, please try again later." |
unexpected_server_error |
"An unexpected server error has occurred, we are working to fix this. Please try again later and in case it occurs again please report it to our team via email." | ||
| 501 | unimplemented |
"This {feature} has not been implemented yet." | |
| 503 | temporary_shutdown_endpoint |
"This endpoint is temporarily stopped due to performance reasons. For more information please contact our team via email." |
"api_version": 1, "attribute_name": "attribute_value";Access-Control-Allow-Origin: header. Nevertheless, your users shouldn’t make direct API requests from a web application that you are building, as our CORS policy may change at some point without warning and any such requests could be then rejected;Shortly put, all Affiliate requests include:
All our API endpoints are available as a comprehensive Postman collection for easy testing and integration. Import the collection to get started immediately with pre-configured requests and examples.
In Affiliate, the user is the one who is allowed to access and manage the Affiliate records. These users can be defined under various track sales, clicks, and so many actions.
User module in included all user activity related it's personal information data
here user can add it's unique profile, update, delete, login, change password and get details
The registration form can be structured dynamically by the admin at any time from settings. you can access that form's custom field from provided API.
https://afftab.net/user/get_registration_form
{ "status": true, "data": [ { "type": "header", "label": "Firstname" }, { "type": "header", "label": "Lastname" }, { "type": "header", "label": "Email" }, { "type": "text", "label": "Mobile Phone", "placeholder": "Enter your mobile number", "className": "form-control", "name": "text-1621449816785", "mobile_validation": "true", "hide_on_registration": "true" }, { "type": "header", "label": "Username" }, { "type": "header", "label": "Password" }, { "type": "header", "label": "Confirm_password" }, { "type": "textarea", "required": "true", "label": "Text Area", "placeholder": "Your message", "className": "form-control", "name": "textarea-1623347397482" } ] }
Create new user with HTTP POST request.During the creation you can set up all attributes describe in belowIf given email and username doesn't exists it will be created
https://afftab.net/User/registarion
| Parameter | Type | Required | Description |
|---|---|---|---|
| firstname | string |
true |
- |
| lastname | string |
true |
- |
| username | string number |
true |
your unique username |
string |
true |
- | |
| password | string number special character |
true |
- |
| cpassword | string number special character |
true |
password confirmation |
| device_type | number |
true |
(1 = android, 2 = ios) |
| device_token | string |
true |
- |
| custom_text-1621449816785 | Mobile Number |
false |
your mobile number |
| terms | boolean |
true |
You must accept terms and conditions. |
{"status":true,"message":"user registration successfully"}
Login user with HTTP POST request.
you can access all your affiliate system using your credentials. required to enter your username and password
Authentication token are required as an authentication method with Affiliate apis. By using an Authentication token you authenticate access to the specific API. Without authentication access to the API is denied. login api will generate a unique your user token for API authentication.
https://afftab.net/User/login
| Parameter | Type | Position | Description |
|---|---|---|---|
| username | string number |
Body |
you can add your unique username |
| password | string number special character |
Body |
- |
| device_type | number |
Body |
(1 = android, 2 = ios) |
| device_token | string |
Body |
- |
{"status":true,"message":"user login successfully","data":{"token":"raNdom-UniQe-toKEn-wilL-be-HeRe","user_status":"membership-status-active","firstname":"aff1000","lastname":"aff1000","email":"user1@gmail.com","PhoneNumber":"+1234567890","is_vendor":"0","profile_avatar":"https:\/\/yourdomain.com\/assets\/images\/users\/avatar.png","country_id":"75","country_code":"US","country_name":"United States","country_flag":"https:\/\/yourdomain.com\/assets\/vertical\/assets\/images\/flags\/us.png"}}
Change password with HTTP POST request.
API token is required for the authentication of the calling program to the API.
if you want to change your pass to enter old password and after add your new password and also enter confirm password.
| Parameter | Type | Position | Description |
|---|---|---|---|
| old_pass | string |
Body |
- |
| password | string |
Body |
- |
| conf_password | string |
Body |
- |
{ "status": true, "message": "password change successfully" }
My profile details with HTTP POST request.
API token is required for the authentication of the calling program to the API.
there is no need any parameter. we are get your data using your verify token
| Parameter | Type | Position | Description |
|---|---|---|---|
| Authorization | string |
Header |
compolsory pass this authentication token in your header also get from login api |
{"status":true,"message":"user details get successfully","data":{"user_status":"membership-status-refunded","firstname":"aff1000","lastname":"aff1000","email":"user1@gmail.com","PhoneNumber":"+1234567890","is_vendor":"0","profile_image":"https:\/\/yourdomain.com\/assets\/images\/users\/avatar.png","country_id":"75","country_code":"US","country_name":"United States","country_flag":"https:\/\/yourdomain.com\/assets\/vertical\/assets\/images\/flags\/us.png"}}
Update my profile with HTTP POST request. with formate is Content-Type : multipart/form-data
API token is required for the authentication of the calling program to the API.
Here you can update your record and pass all parameter. uploads image set in file formate also updated data return in your update response. country_id data get using get countrie list api.
| Parameter | Type | Required | Description |
|---|---|---|---|
| firstname | string |
true |
- |
| lastname | string |
true |
- |
| username | string number |
true |
your unique username |
string |
true |
- | |
| password | string number special character |
true |
- |
| cpassword | string number special character |
true |
password confirmation |
| device_type | number |
true |
(1 = android, 2 = ios) |
| device_token | string |
true |
- |
| avatar | string File |
true |
- |
| custom_text-1621449816785 | Mobile Number |
false |
your mobile number |
{"status":true,"message":"user details update successfully","data":{"user_status":"membership-status-active","firstname":"aff1","lastname":"aff1","email":"user11@natanphp.com","PhoneNumber":"+1 201-555-0124","is_vendor":"0","profile_image":"https:\/\/yourdomain.com\/assets\/images\/users\/avatar.png","country_id":"75","country_code":"US","country_name":"United States","country_flag":"https:\/\/yourdomain.com\/assets\/vertical\/assets\/images\/flags\/us.png"}}
Dashboard with HTTP GET request.
API token is required for the authentication of the calling program to the API.
Initially, dashboard API provides just basic details about users like refer status and refer links, but you can fetch more data by sending comma (,) separeted optional parameters in the "includes" key, check the below table for more details.
For purpose of use in the dashboard here, we provided limited market tools available for users. If you want to access all tools please check the separate My Affiliate Links API.
https://afftab.net/User/dashboard
| Parameter | Type | Position | Description |
|---|---|---|---|
| Authorization | string |
Header |
compolsory pass this authentication token in your header also get from login api |
| includes | string |
optional |
plan_details,totals_count,top_affiliate,notifications,market_tools,chart_data |
{"refer_status": true,"unique_reseller_link": "http://localhost/aff/4-0-0-7/register/ODg=","top_affiliate": [{"amount": "41","all_commition": "41","user_id": "65","type": "user","avatar": "","firstname": "aff11","lastname": "aff11","Country": "13","email": "aff11@gmail.com","sortname": "AU"}],"isMembershipAccess": true,"user_plan": {"total_day":"7","expire_at":"2021-06-18 15:20:14","started_at":"2021-06-11 15:20:14","status_id":"1","is_active":"1","is_lifetime":"0"},"user_totals": {"click_localstore_total":0,"click_localstore_commission":null,"sale_localstore_total":0,"sale_localstore_commission":0,"sale_localstore_count":0,"click_external_total":0,"click_external_commission":null,"order_external_total":null,"order_external_count":"0","order_external_commission":null,"click_action_total":0,"click_action_commission":null,"vendor_click_localstore_total":0,"vendor_click_localstore_commission_pay":null,"vendor_sale_localstore_total":null,"vendor_sale_localstore_commission_pay":null,"vendor_sale_localstore_count":null,"vendor_click_external_total":0,"vendor_click_external_commission_pay":null,"vendor_action_external_total":0,"vendor_action_external_commission_pay":null,"vendor_order_external_commission_pay":null,"vendor_order_external_count":"0","vendor_order_external_total":null,"click_form_total":0,"click_form_commission":null,"wallet_unpaid_amount":10,"wallet_unpaid_count":1,"user_balance":10},"refer_total": {"total_product_click": {"amounts": null,"clicks": 0},"total_ganeral_click": {"total_clicks": "0"},"total_action": {"click_count": "0"},"total_product_sale": {"amounts": null,"counts": "0","paid": null,"request": null,"unpaid": null}},"user_totals_week": "$10.00","user_totals_month": "$10.00","user_totals_year": "$10.00","notifications": [{"notification_id": "18","notification_viewfor": "admin","notification_view_user_id": null,"notification_title": "New User Registration","notification_url": "/userslist/88","notification_description": "fresh user register as a on affiliate Program on 2021-06-11 16:44:16","notification_actionID": "88","notification_type": "user","store_contactus_description": null,"notification_is_read": "0","notification_ipaddress": "::1","notification_created_date": "2021-06-11 16:44:16"}],"chart": {"order_total": {"January": 0,"February": 0,"March": 0,"April": 0,"May": 0,"June": 0,"July": 0,"August": 0,"September": 0,"October": 0,"November": 0,"December": 0},"order_count": {"January": 0,"February": 0,"March": 0,"April": 0,"May": 0,"June": 0,"July": 0,"August": 0,"September": 0,"October": 0,"November": 0,"December": 0},"order_commission": {"January": 0,"February": 0,"March": 0,"April": 0,"May": 0,"June": 0,"July": 0,"August": 0,"September": 0,"October": 0,"November": 0,"December": 0},"action_commission": {"January": 0,"February": 0,"March": 0,"April": 0,"May": 0,"June": 0,"July": 0,"August": 0,"September": 0,"October": 0,"November": 0,"December": 0},"action_count": {"January": 0,"February": 0,"March": 0,"April": 0,"May": 0,"June": 0,"July": 0,"August": 0,"September": 0,"October": 0,"November": 0,"December": 0},"keys": {"1": "January","2": "February","3": "March","4": "April","5": "May","6": "June","7": "July","8": "August","9": "September","10": "October","11": "November","12": "December"}},"market_tools":{"form_default_commission":{"recaptcha":"","product_commission_type":"percentage","product_commission":"15","product_ppc":"7","product_noofpercommission":"1","form_recursion":"","recursion_custom_time":"0","recursion_endtime":null},"default_commition":{"click_allow":"multiple","product_commission_type":"percentage","product_commission":"10","product_ppc":"5","product_noofpercommission":"1","product_recursion":"","recursion_custom_time":"0","recursion_endtime":null},"data":[{"id":"11","redirectLocation":["https://google.com?af_id=blpHNUswNmVNQzViUitDK3IyWDZnZz09-ODgtMjA="],"program_id":"4","name":"Vendor LInk Ads","vendor_id":"75","program_name":"vendor program","target_link":"https://google.com","status":"1","action_click":"0","action_amount":"0","general_click":"0","general_amount":"0","admin_action_click":"0","admin_action_amount":"0","admin_general_click":"0","admin_general_amount":"0","_tool_type":"program","type":"Link ads","_type":"link_ads","commission_type":"percentage","commission_sale":"30","commission_number_of_click":"1","commission_click_commission":"5","click_status":"1","sale_status":"1","admin_commission_type":"percentage","admin_commission_sale":"25","admin_commission_number_of_click":"1","admin_commission_click_commission":"1","admin_click_status":"1","admin_sale_status":"1","recursion":"","recursion_custom_time":"0","username":"aff1","recursion_endtime":null,"featured_image":"EfdCYkajeqi9lDxMQNTcyK3PBnL4rXZF.png","total_sale_amount":"$0.00","total_click_amount":"$0.00","total_action_click_amount":"$0.00","total_general_click_amount":"$0.00","total_sale_count":0,"total_click_count":0,"total_action_click_count":0,"total_general_click_count":0,"tool_type":"Program","created_at":"11-06-2021 10:20 AM","product_created_date":"11-06-2021 10:20 AM","is_tool":1,"slug":"","groups":""}]}}
My affiliate links with HTTP POST request.
API token is required for the authentication of the calling program to the API.
Here display all affilaite link data. you can filter using below parametr as per your need without filter paramater pass you can get all affiliate link data .
| Parameter | Type | Position | Description |
|---|---|---|---|
| category_id | number |
Body |
this is optional parameter for filter |
| ads_name | string |
Body |
this is optional parameter for filter |
| market_category_id | number |
Body |
this is optional parameter for filter |
| check_vendor | number |
Body |
this is optional parameter for filter this parametr have fixed value false OR true |
{"status":true,"message":"my affiliate links get successfully","data":[{"aff_tool_type":"product","is_campaign_product":false,"public_page":"http:\/\/localhost.aff.com\/store\/Mw==\/product\/best-video-from-youtube-new-2-175","share_url":"http:\/\/localhost.aff.com\/best-youtube-videos","fevi_icon":"http:\/\/localhost.aff.com\/assets\/image_cache\/cache\/assets\/images\/product\/upload\/thumb\/c1oqMnid7C0QjPhGSagN4bXOUA9Tev8f-100x100.jpg","title":"Best Video From YouTube - new 2","sale_commision_you_will_get":"35% Per Sale","click_commision_you_will_get":"$2.00 Per 1 Click","description":"sdfsdf","price":"$785.00","product_sku":"123","sales_commission":"0\/$0.00","clicks_commission":"0\/$0.00","total_commission":"$0.00","displayed_on_store":true},{"aff_tool_type":"product","is_campaign_product":false,"public_page":"http:\/\/localhost.aff.com\/store\/Mw==\/product\/flutter-online-course-links-video-new-1-174","share_url":"http:\/\/localhost.aff.com\/store\/Mw==\/product\/flutter-online-course-links-video-new-1-174","fevi_icon":"http:\/\/localhost.aff.com\/assets\/image_cache\/cache\/assets\/images\/product\/upload\/thumb\/YgfnObI0vWdkwRuDHGcq6t9MyQoZA5jm-100x100.jpeg","title":"Flutter online course - links video - new 1","sale_commision_you_will_get":"35% Per Sale","click_commision_you_will_get":"$2.00 Per 1 Click","description":"Flutter online course - links video\r\nFlutter online course - links video","price":"$79.00","product_sku":"123","sales_commission":"0\/$0.00","clicks_commission":"0\/$0.00","total_commission":"$0.00","displayed_on_store":true},{"public_page":"http:\/\/localhost.aff.com\/ref\/YThIZFUwVnM4VTM1OVBYaXpZN0MvUT09-My03Nw==","fevi_icon":"http:\/\/localhost.aff.com\/assets\/image_cache\/cache\/assets\/images\/product\/upload\/thumb\/woo-100x100.png","title":"test","share_url":"http:\/\/localhost.aff.com\/ref\/YThIZFUwVnM4VTM1OVBYaXpZN0MvUT09-My03Nw==","sale_commision_you_will_get":"5% Per Sale","click_commision_you_will_get":"$1.00 Per 1 Clicks","sale_count":0,"sale_amount":"$0.00","click_count":0,"click_amount":"$0.00"},{"public_page":"http:\/\/localhost.aff.com\/ref\/TUMxK3JNeUc2RnBEc29SQzE2M3c2QT09-My0zOA==","fevi_icon":"http:\/\/localhost.aff.com\/assets\/image_cache\/cache\/assets\/images\/product\/upload\/thumb\/click-100x100.jpg","title":"Admin click","share_url":"http:\/\/localhost.aff.com\/ref\/TUMxK3JNeUc2RnBEc29SQzE2M3c2QT09-My0zOA==","click_commision_you_will_get":"$1.00 Per 1 Clicks","click_ratio":"0%","general_count":0,"general_amount":"$0.00"},{"public_page":"http:\/\/localhost.aff.com\/ref\/NjhQS1hwNURvRllxZGpVcVlDK09sZz09-My00Ng==","fevi_icon":"http:\/\/localhost.aff.com\/assets\/image_cache\/cache\/assets\/images\/product\/upload\/thumb\/order-100x100.jpg","title":"Admin Order","share_url":"http:\/\/localhost.aff.com\/ref\/NjhQS1hwNURvRllxZGpVcVlDK09sZz09-My00Ng==","sale_commision_you_will_get":"50% Per Sale","click_commision_you_will_get":"$1.00 Per 1 Clicks","click_ratio":"0%","sale_ratio":"0%","sale_count":0,"sale_amount":"$0.00","click_count":0,"click_amount":"$0.00"},{"public_page":"http:\/\/localhost.aff.com\/ref\/b0xiQ1psMzluazhSekJHTzUwN3BEdz09-My00NA==","fevi_icon":"http:\/\/localhost.aff.com\/assets\/image_cache\/cache\/assets\/images\/product\/upload\/thumb\/action-100x100.jpg","title":"Admin Action","share_url":"http:\/\/localhost.aff.com\/ref\/b0xiQ1psMzluazhSekJHTzUwN3BEdz09-My00NA==","click_commision_you_will_get":"$5.00 Per 1 Actions","click_ratio":"0%","action_count":0,"action_amount":"$0.00"},{"aff_tool_type":"product","is_campaign_product":false,"public_page":"http:\/\/localhost.aff.com\/store\/Mw==\/product\/flutter-online-course-links-video-168","share_url":"http:\/\/localhost.aff.com\/store\/Mw==\/product\/flutter-online-course-links-video-168","fevi_icon":"http:\/\/localhost.aff.com\/assets\/image_cache\/cache\/assets\/images\/product\/upload\/thumb\/YgfnObI0vWdkwRuDHGcq6t9MyQoZA5jm-100x100.jpeg","title":"Flutter online course - links video","sale_commision_you_will_get":"35% Per Sale","click_commision_you_will_get":"$2.00 Per 1 Click","description":"Flutter online course - links video\r\nFlutter online course - links video","price":"$79.00","product_sku":"123","sales_commission":"0\/$0.00","clicks_commission":"0\/$0.00","total_commission":"$0.00","displayed_on_store":true},{"aff_tool_type":"product","is_campaign_product":false,"public_page":"http:\/\/localhost.aff.com\/store\/Mw==\/product\/flutter-online-course-hosted-files-167","share_url":"http:\/\/localhost.aff.com\/store\/Mw==\/product\/flutter-online-course-hosted-files-167","fevi_icon":"http:\/\/localhost.aff.com\/assets\/image_cache\/cache\/assets\/images\/product\/upload\/thumb\/Qnu8YPTVUA0ZW6mzbqXvaHc7CxB5dkh9-100x100.jpeg","title":"Flutter online course - hosted files","sale_commision_you_will_get":"35% Per Sale","click_commision_you_will_get":"$2.00 Per 1 Click","description":"Flutter online course","price":"$150.00","product_sku":"123","sales_commission":"0\/$0.00","clicks_commission":"0\/$0.00","total_commission":"$0.00","displayed_on_store":true},{"aff_tool_type":"product","is_campaign_product":false,"public_page":"http:\/\/localhost.aff.com\/store\/Mw==\/product\/lms-product-php-cource-mp4-149","share_url":"http:\/\/localhost.aff.com\/store\/Mw==\/product\/lms-product-php-cource-mp4-149","fevi_icon":"http:\/\/localhost.aff.com\/assets\/image_cache\/cache\/assets\/images\/product\/upload\/thumb\/g9tPcXR2yIuw87zDeSYFs01Lqh4GBfbn-100x100.png","title":"LMS Product - PHP Cource - MP4","sale_commision_you_will_get":"35% Per Sale","click_commision_you_will_get":"$2.00 Per 1 Click","recurring":"Every week","description":"gh gh fgh","price":"$10.00","product_sku":"test","sales_commission":"0\/$0.00","clicks_commission":"0\/$0.00","total_commission":"$0.00","displayed_on_store":true},{"aff_tool_type":"product","is_campaign_product":false,"public_page":"http:\/\/localhost.aff.com\/store\/Mw==\/product\/lms-product-php-cource-live-links-148","share_url":"http:\/\/localhost.aff.com\/store\/Mw==\/product\/lms-product-php-cource-live-links-148","fevi_icon":"http:\/\/localhost.aff.com\/assets\/image_cache\/cache\/assets\/images\/product\/upload\/thumb\/g9tPcXR2yIuw87zDeSYFs01Lqh4GBfbn-100x100.png","title":"LMS Product - PHP Cource - Live Links","sale_commision_you_will_get":"35% Per Sale","click_commision_you_will_get":"$2.00 Per 1 Click","recurring":"Every week","description":"This is product short description This is product short description This is product short description This is product short description","price":"$10.00","product_sku":"test","sales_commission":"0\/$0.00","clicks_commission":"0\/$0.00","total_commission":"$0.00","displayed_on_store":true},{"aff_tool_type":"product","is_campaign_product":false,"public_page":"http:\/\/localhost.aff.com\/store\/Mw==\/product\/best-video-from-youtube-147","share_url":"http:\/\/localhost.aff.com\/store\/Mw==\/product\/best-video-from-youtube-147","fevi_icon":"http:\/\/localhost.aff.com\/assets\/image_cache\/cache\/assets\/images\/product\/upload\/thumb\/c1oqMnid7C0QjPhGSagN4bXOUA9Tev8f-100x100.jpg","title":"Best Video From YouTube ","sale_commision_you_will_get":"35% Per Sale","click_commision_you_will_get":"$2.00 Per 1 Click","description":"sdfsdf","price":"$785.00","product_sku":"123","sales_commission":"0\/$0.00","clicks_commission":"0\/$0.00","total_commission":"$0.00","displayed_on_store":true},{"aff_tool_type":"product","is_campaign_product":false,"public_page":"http:\/\/localhost.aff.com\/store\/Mw==\/product\/downloadable-product-php-course-146","share_url":"http:\/\/localhost.aff.com\/store\/Mw==\/product\/downloadable-product-php-course-146","fevi_icon":"http:\/\/localhost.aff.com\/assets\/image_cache\/cache\/assets\/images\/product\/upload\/thumb\/ELnkqy9HXhJtRelOdZm8cjYu3SovAwg2-100x100.png","title":"Downloadable product - PHP Course","sale_commision_you_will_get":"35% Per Sale","click_commision_you_will_get":"$2.00 Per 1 Click","description":"Downloadable product\r\nDownloadable product\r\nDownloadable product","price":"$75.00","product_sku":"123","sales_commission":"0\/$0.00","clicks_commission":"0\/$0.00","total_commission":"$0.00","displayed_on_store":true},{"public_page":"http:\/\/localhost.aff.com\/ref\/UU04TTR5azA2amVpV3phOXY4SDBnUT09-My01NA==","fevi_icon":"http:\/\/localhost.aff.com\/assets\/image_cache\/cache\/assets\/images\/product\/upload\/thumb\/woo-100x100.png","title":"WooCommerce Integration Admin Test","share_url":"http:\/\/localhost.aff.com\/ref\/UU04TTR5azA2amVpV3phOXY4SDBnUT09-My01NA==","sale_commision_you_will_get":"50% Per Sale","click_commision_you_will_get":"$1.00 Per 1 Clicks","sale_count":0,"sale_amount":"$0.00","click_count":0,"click_amount":"$0.00"},{"public_page":"http:\/\/localhost.aff.com\/ref\/MlFQZ3liY2pGM3Nsd0dqcDlCQi9Rdz09-My01MQ==","fevi_icon":"http:\/\/localhost.aff.com\/assets\/image_cache\/cache\/assets\/images\/product\/upload\/thumb\/click-100x100.jpg","title":"Admin click 2","share_url":"http:\/\/localhost.aff.com\/ref\/MlFQZ3liY2pGM3Nsd0dqcDlCQi9Rdz09-My01MQ==","click_commision_you_will_get":"$1.00 Per 1 Clicks","click_ratio":"0%","general_count":0,"general_amount":"$0.00"},{"aff_tool_type":"form","fevi_icon":"aVGrf1yFcnHZzE7OCiJuSjwpM23oqs9B.jpg","title":"test 1","share_url":"http:\/\/localhost.aff.com\/form\/test_1\/Mw==","public_page":"http:\/\/localhost.aff.com\/form\/test_1\/Mw==","sale_commision_you_will_get":"15% Per Sale","click_commision_you_will_get":"$3.00 of Per 1 Click","recurring":"Every week","description":"test<\/p>","coupon_code":"N\/A","coupon_use":"- \/ 0","sales_commission":"0 \/ $0.00","clicks_commission":"0 \/ $0.00","total_commission":"$0.00"},{"public_page":"http:\/\/localhost.aff.com\/ref\/L2h3NkhaYzR4S3YxLzR2bkFNbG9DZz09-My01Mw==","fevi_icon":"http:\/\/localhost.aff.com\/assets\/image_cache\/cache\/assets\/images\/product\/upload\/thumb\/action-100x100.jpg","title":"Admin Action 2","share_url":"http:\/\/localhost.aff.com\/ref\/L2h3NkhaYzR4S3YxLzR2bkFNbG9DZz09-My01Mw==","click_commision_you_will_get":"$5.00 Per 1 Actions","click_ratio":"0%","action_count":0,"action_amount":"$0.00"},{"aff_tool_type":"form","fevi_icon":"i7T3DfGSuJQqHIgpLkrvWsnYAcjV2mhU.png","title":"test 2","share_url":"http:\/\/localhost.aff.com\/form\/test_2\/Mw==","public_page":"http:\/\/localhost.aff.com\/form\/test_2\/Mw==","sale_commision_you_will_get":"15% Per Sale","click_commision_you_will_get":"$3.00 of Per 1 Click","description":"
test 2<\/p>
test 2<\/p>
test 2
<\/p>","coupon_code":"N\/A","coupon_use":"- \/ 0","sales_commission":"0 \/ $0.00","clicks_commission":"0 \/ $0.00","total_commission":"$0.00"},{"aff_tool_type":"product","is_campaign_product":false,"public_page":"http:\/\/localhost.aff.com\/store\/Mw==\/product\/default-store-theme-product-2-137","share_url":"http:\/\/localhost.aff.com\/store\/Mw==\/product\/default-store-theme-product-2-137","fevi_icon":"http:\/\/localhost.aff.com\/assets\/image_cache\/cache\/assets\/images\/product\/upload\/thumb\/sWAclrK6X5bpDMTm7weNJqgVQSfYoxIk-100x100.jpg","title":"Default Store Theme Product - 2","sale_commision_you_will_get":"35% Per Sale","click_commision_you_will_get":"$2.00 Per 1 Click","description":"Soft, cosy and light weight reversible comforter with 200 GSM hollow siliconized polyester filling. ","price":"$25.00","product_sku":"12345","sales_commission":"0\/$0.00","clicks_commission":"0\/$0.00","total_commission":"$0.00","displayed_on_store":true},{"aff_tool_type":"product","is_campaign_product":false,"public_page":"http:\/\/localhost.aff.com\/store\/Mw==\/product\/default-store-theme-product-1-1","share_url":"http:\/\/localhost.aff.com\/store\/Mw==\/product\/default-store-theme-product-1-1","fevi_icon":"http:\/\/localhost.aff.com\/assets\/image_cache\/cache\/assets\/images\/product\/upload\/thumb\/BsLof5wCi0qD1XuIK2AdxTSma94hNJRW-100x100.jpg","title":"Default Store Theme Product -1","sale_commision_you_will_get":"35% Per Sale","click_commision_you_will_get":"$2.00 Per 1 Click","description":"Soft, cosy and light weight reversible comforter with 200 GSM hollow siliconized polyester filling. ","price":"$10.00","product_sku":"123","sales_commission":"0\/$0.00","clicks_commission":"0\/$0.00","total_commission":"$0.00","displayed_on_store":true}]}
My logs list with HTTP POST request.
API token is required for the authentication of the calling program to the API.
Here my logs list data display as pagignation wise. only data get using pass page_id and per_page parameter.
page_id is index of your page so you can pass your page id.
Ex. : display on first page pass 1, display on second page pass 2
per_page is count of data display of per page.
your logs data in display all your activity details types wise.
| Parameter | Type | Position | Description |
|---|---|---|---|
| page_id | number |
Body |
pass your page number index for data display as pagignation wise |
| per_page | number |
Body |
you want to set count for data display |
{ "status": true, "message": "my log list get successfully", "data": { "clicks": [ { "type": "ex", "id": "18", "base_url": "http://localhost/aff/ver-4-0-0-5/store", "link": "http://localhost/aff/ver-4-0-0-5/store", "agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36", "browserName": "Google Chrome", "browserVersion": "89.0.4389.114", "systemString": "Windows NT 10.0; Win64; x64", "osPlatform": "Windows", "osVersion": "10.0", "osShortVersion": "10.0", "isMobile": "0", "mobileName": "", "osArch": "64", "isIntel": "1", "isAMD": "0", "isPPC": "0", "ip": null, "country_code": "", "created_at": "10-04-2021 04:31 PM", "click_id": "3", "username": null, "click_type": "Store sale", "flag": "", "custom_data": [] } ], "start_from": 1 } }
My network with HTTP POST request.
API token is required for the authentication of the calling program to the API.
Here display your affiliate tree.
in this all your child user tree display. also display child user commision and cliks details.
| Parameter | Type | Position | Description |
|---|---|---|---|
| Authorization | string |
Header |
compolsory pass this authentication token in your header also get from login api |
{ "status": true, "message": "my network get successfully", "data": { "userslist": [ { "name": "System Admin", "children": [ { "name": "test", "children": [ { "name": "user12", "children": [] } ] } ] } ], "refer_total": { "total_product_click": { "amounts": null, "clicks": 0 }, "total_ganeral_click": { "total_clicks": "0" }, "total_action": { "click_count": "0" }, "total_product_sale": { "amounts": null, "counts": "0", "paid": null, "request": null, "unpaid": null } }, "referred_users_tree": [ { "title": "user12 user12", "email": "user12@gmail.com", "click": 0, "external_click": 0, "form_click": 0, "aff_click": 0, "click_commission": "$0.00", "external_action_click": 0, "action_click_commission": "$0.00", "amount_external_sale_amount": "$0.00", "sale_commission": "$0.00", "paid_commition": "$0.00", "unpaid_commition": "$0.00", "in_request_commiton": "$0.00", "all_commition": "$0.00", "children": [] } ] } }
Get user reports with HTTP POST request.
API token is required for the authentication of the calling program to the API.
Here user reports list data display as pagignation wise. only data get using pass page_id and per_page parameter.
page_id is index of your page so you can pass your page id.
Ex. : display on first page pass 1, display on second page pass 2
per_page is count of data display of per page.
In this statistics totals and transaction available
1) data display click by country, Action click by country, sale by country, refered user by country, client by country
2) display all transaction data as pagignation wise
3) display all reports statistics data
| Parameter | Type | Position | Description |
|---|---|---|---|
| page_id | number |
Body |
pass your page number index for data display as pagignation wise |
| per_page | number |
Body |
you want to set count for data display |
{"status":true,"message":"get user reports details successfully","data":{"refer_status":true,"statistics":{"sale":[],"clicks":[]},"totals":{"unpaid_commition":10,"total_sale_commi":0,"total_in_request":0,"total_click_commi":0,"total_form_click_commi":0,"total_store_m_commission":0,"total_affiliate_click_commission":0,"total_no_click":0,"total_no_form_click":0,"aff_total_no_click":0,"admin_click_earning":0,"all_clicks_comm":0,"all_sale_comm":0,"affiliates_program":0,"total_sale_count":0,"total_sale":0,"total_vendor_sale":0,"total_sale_balance":0,"total_sale_week":0,"total_sale_month":0,"total_sale_year":0,"admin_click_earning_week":0,"admin_click_earning_month":0,"admin_click_earning_year":0,"admin_total_no_click":1,"all_clicks":0,"vendor_order_count":0,"total_paid":0,"total_paid_commition":0,"paid_commition":0,"requested_commition":0,"aff_paid_commition":0,"aff_unpaid_commition":0,"aff_requested_commition":0,"form_paid_commition":0,"form_unpaid_commition":0,"form_requested_commition":0,"total_transaction":1,"wallet_cancel_count":0,"wallet_cancel_amount":0,"wallet_accept_count":0,"wallet_accept_amount":0,"wallet_request_sent_count":0,"wallet_request_sent_amount":0,"wallet_on_hold_count":0,"wallet_on_hold_amount":0,"wallet_unpaid_amount":10,"wallet_unpaid_count":1,"integration":{"hold_action_count":0,"hold_orders":0,"total_commission":0},"admin_transaction":null,"store":{"hold_orders":0,"balance":0,"sale":0,"click_count":0,"click_amount":0,"total_commission":0},"total_sale_amount":0,"total_balance":0,"weekly_balance":0,"monthly_balance":0,"yearly_balance":0},"transaction":[]}}
Get user reports with HTTP POST request.
API token is required for the authentication of the calling program to the API.
if you want to contact with admin to pass your subject and message. here send mail to admin and it will contact to you.
| Parameter | Type | Position | Description |
|---|---|---|---|
| subject | string |
Body |
- |
string |
Body |
- | |
| fname | string |
Body |
- |
| lastname | string |
Body |
- |
| domain | string |
Body |
- |
| body | string |
Body |
- |
{ "status": true, "message": "contact to admin successfully" }
Fetch all transactions with HTTP GET request.
API token is required for the authentication of the calling program to the API.
Here the transactions list is displayed in a paginated manner. You can fetch data by passing the 'page_id' and 'per_page' parameters.
page_id is the index of your page, so you can pass your page id.
Ex.: To display on the first page, pass 1; to display on the second page, pass 2
per_page is the number of items displayed per page.
| Parameter | Type | Position | Description |
|---|---|---|---|
| page_id | number |
Query |
Pass the page number index for paginated data display. |
| per_page | number |
Query |
Set the number of items you want to display per page. |
{
"status": true,
"message": "Transactions fetched successfully",
"data": [
{
"module": "membership",
"id": "4",
"user_id": "3",
"username": "aff1",
"price": "3",
"payment_gateway": "Default",
"payment_detail": "[]",
"status_id": "1",
"datetime": "2023-10-27 08:52:33"
}
]
}
{"status":false,"message":"Unauthorized Access!"}
Manage your payment details using HTTP requests. This single endpoint handles multiple payment operations.
user/payment_details handles 4 different operations:
An API token is required for authentication. This ensures the secure exchange of information.
Update your Bank Account Details via an HTTP POST request.
If payment_country is required (when bank transfer mode is "specific"), you must also provide the country-specific field (e.g., routing_number for US, ifsc_code for IN).
get_payment_details API first to see which countries are available and their required fields.
| Parameter | Type | Position | Description |
|---|---|---|---|
| Authorization | string |
Header |
compulsory pass this authentication token in your header also get from login api |
| payment_bank_name | string |
Body |
compulsory pass bank name |
| payment_account_number | string |
Body |
compulsory pass account number |
| payment_account_name | string |
Body |
compulsory pass account name |
| payment_id | integer |
Body |
0 for new record, existing ID for update |
| payment_country | string |
Body |
required if bank transfer mode is specific (e.g., US, IN, GB, AU, CA, DE, CN, SG, HK, NZ) |
| payment_routing_number | string |
Body |
required if country is US |
| payment_ifsc_code | string |
Body |
required if country is IN (India) |
| payment_sort_code | string |
Body |
required if country is GB (UK) |
| Other country codes | string |
Body |
AU: bsb_number, CA: transit_institution_number, DE: iban_bic, CN: cnaps_code, SG: swift_code, HK: clearing_code, NZ: bank_branch_number |
{"status":true,"message":"Payment details added successfully","errors":[]}
Save or update your PayPal email address for receiving payments.
add_paypal=1 in the POST body to trigger PayPal update operation.
| Parameter | Type | Position | Description |
|---|---|---|---|
| Authorization | string |
Header |
compolsory pass this authentication token in your header also get from login api |
| add_paypal | integer |
Body |
Set to 1 to trigger PayPal operation |
| id | integer |
Body |
0 for new PayPal account, existing ID for update |
| paypal_email | string |
Body |
Valid PayPal email address (required) |
{"status":true,"message":"Paypal Account saved successfully","errors":[]}
Save payment details for custom gateways like Stripe, Razorpay, Skrill, etc.
add_custom_gateway=1 and gateway_code to specify which gateway you're updating.
stripe_account_holder, stripe_account_number, etc.
| Parameter | Type | Position | Description |
|---|---|---|---|
| Authorization | string |
Header |
Authentication token from login API |
| add_custom_gateway | integer |
Body |
Set to 1 to trigger custom gateway operation |
| gateway_code | string |
Body |
Gateway identifier (e.g., stripe, razorpay, skrill) |
| {gateway_code}_{field_name} | string |
Body |
Dynamic fields prefixed with gateway code (e.g., stripe_account_holder, razorpay_upi_id) |
add_custom_gateway=1gateway_code=stripestripe_account_holder=John Doestripe_account_number=4242424242424242
{"status":true,"message":"Payment details saved successfully","errors":[]}
Set your default payment method for receiving withdrawals (bank_transfer, paypal, stripe, etc.).
add_primary_payment=1 in the POST body to trigger this operation.
| Parameter | Type | Position | Description |
|---|---|---|---|
| Authorization | string |
Header |
compolsory pass this authentication token in your header also get from login api |
| add_primary_payment | integer |
Body |
Set to 1 to trigger primary payment method operation |
| primary_payment_method | string |
Body |
Gateway code: bank_transfer, paypal, stripe, razorpay, etc. (required) |
{"status":true,"message":"Primary payment method saved successfully","errors":[]}
Retrieve all saved payment information using an HTTP GET request.
payment_methods - All enabled payment gateways and their configurationavailable_countries - Allowed countries for bank transfer (if specific mode)primary_payment_method - User's default payment methodpaymentlist - Saved bank details with all country-specific fieldspaypalaccounts - Saved PayPal emailcustom_gateway_settings - Saved details for Stripe, Razorpay, etc.| Parameter | Type | Position | Description |
|---|---|---|---|
| Authorization | string |
Header |
Compulsory: Pass this authentication token in your header. Get it from the login API. |
{"status":true,"data":{"payment_methods":{"bank_transfer":{"status":"1","bank_transfer_mode":"specific","bank_transfer_countries":{"US":"1","IN":"1","GB":"1"}},"paypal":{"status":"1"}},"available_countries":["US","IN","GB"],"primary_payment_method":"bank_transfer","paymentlist":{"payment_id":"1","payment_bank_name":"Bank of America","payment_account_number":"123456789","payment_account_name":"John Doe","payment_country":"US","payment_routing_number":"123456789","payment_ifsc_code":"","payment_sort_code":"","payment_bsb_number":"","payment_transit_institution_number":"","payment_iban_bic":"","payment_cnaps_code":"","payment_swift_code":"","payment_clearing_code":"","payment_bank_branch_number":"","paypalaccounts":{"paypal_email":"user@example.com","id":"1"}},"paypalaccounts":{"paypal_email":"user@example.com","id":"1"},"custom_gateway_settings":{"stripe":{"account_holder":"John Doe"},"razorpay":{"upi_id":"user@upi"}}}}
Here display two types of category 1) integration category 2) store category
Interegation category with HTTP GET request.
API token is required for the authentication of the calling program to the API.
| Parameter | Type | Position | Description |
|---|---|---|---|
| Authorization | string |
Header |
compolsory pass this authentication token in your header also get from login api |
{ "status": true, "message": "integration category list get successfully", "data": [ { "id": "2", "name": "test 2" }, { "id": "1", "name": "test 1" } ] }
Store category with HTTP GET request.
API token is required for the authentication of the calling program to the API.
| Parameter | Type | Position | Description |
|---|---|---|---|
| Authorization | string |
Header |
compolsory pass this authentication token in your header also get from login api |
{ "status": true, "message": "store list get successfully", "data": [ { "id": "8", "name": "Cat Main 4" }, { "id": "7", "name": "Cat Main 3" }, { "id": "6", "name": "Cat Main 2" }, { "id": "5", "name": "Cat Main 1" }, { "id": "4", "name": "sub1" }, { "id": "3", "name": "clothing and footwear" }, { "id": "2", "name": "shoes" }, { "id": "1", "name": "Shirts" } ] }
Here manage user wallet in this includes clicks, balance, sales , withdraw request etc.
My transaction with HTTP POST request.
API token is required for the authentication of the calling program to the API.
Here display all my wallet transaction with filter perameter. filter available filter by type and filter by paid type. this type is fixed for filter.
Here user reports list data display as pagignation wise. only data get using pass page_id and per_page parameter.
page_id is index of your page so you can pass your page id.
Ex. : display on first page pass 1, display on second page pass 2
per_page is count of data display of per page.
POST : https://afftab.net/My_Wallet/my_wallet
| Parameter | Type | Position | Description |
|---|---|---|---|
| page_id | number |
Body |
pass your page number index for data display as pagignation wise |
| per_page | number |
Body |
you want to set count for data display |
| paid_status | sting |
Body |
(optional parameter) paid OR unpaid |
| type | sting |
Body |
(optional parameter) actions OR clicks OR sale OR external_integration |
{"status":true,"message":"my wallet list get successfully","data":{"user_totals":{"click_localstore_total":0,"click_localstore_commission":null,"sale_localstore_total":0,"sale_localstore_commission":0,"sale_localstore_count":0,"click_external_total":0,"click_external_commission":null,"order_external_total":null,"order_external_count":"0","order_external_commission":null,"click_action_total":0,"click_action_commission":null,"vendor_click_localstore_total":0,"vendor_click_localstore_commission_pay":null,"vendor_sale_localstore_total":null,"vendor_sale_localstore_commission_pay":null,"vendor_sale_localstore_count":null,"vendor_click_external_total":0,"vendor_click_external_commission_pay":null,"vendor_action_external_total":0,"vendor_action_external_commission_pay":null,"vendor_order_external_commission_pay":null,"vendor_order_external_count":"0","vendor_order_external_total":null,"click_form_total":0,"click_form_commission":null,"wallet_unpaid_amount":10,"wallet_unpaid_count":1,"user_balance":10},"wallet_unpaid_amount":10,"transaction":[{"id":"28","user_id":"88","from_user_id":null,"amount":"10","comment":"Welcome Bonus","type":"welcome_bonus","dis_type":null,"status":"1","commission_status":"0","reference_id":"41","reference_id_2":null,"ip_details":"[{\"ip\":null,\"country_code\":\"\"}]","comm_from":"store","domain_name":null,"page_name":null,"is_action":"0","parent_id":"0","group_id":"0","is_vendor":"0","wv":null,"created_at":"2021-06-11 15:20:14","username":"fresh_user2","firstname":"test","lastname":"user","wallet_recursion_id":null,"wallet_recursion_status":null,"wallet_recursion_type":null,"wallet_recursion_custom_time":null,"wallet_recursion_next_transaction":null,"wallet_recursion_endtime":null,"payment_method":null,"integration_orders_total":null,"local_orders_total":null,"total_recurring":"0","total_recurring_amount":null}]}}
My transaction with HTTP POST request.
API token is required for the authentication of the calling program to the API.
here display transaction recursion list
POST : https://afftab.net/My_Wallet/getRecurringTransaction
| Parameter | Type | Position | Description |
|---|---|---|---|
| transaction_id | number |
Body |
compolsory pass this transaction ID |
{"status":true,"message":"transaction recursion list get successfully","data":{"transaction":[{"id":"78","user_id":"10","from_user_id":"0","amount":"1","comment":"Commission for 1 Action On localhost\/aff\/test\/admin_action.php | Action Code : admin_action <br> Clicked done from ip_message","type":"external_click_commission","dis_type":"banner","status":"1","commission_status":"0","reference_id":"2","reference_id_2":"admin_action","ip_details":"[{\"id\":\"6\",\"ip\":\"::1\",\"country_code\":\"\",\"script_name\":\"general_integration\",\"page_name\":\"\"}]","comm_from":"ex","domain_name":"localhost\/aff\/test\/admin_action.php","page_name":"","is_action":"1","parent_id":"66","group_id":"167955256314","is_vendor":"0","wv":null,"created_at":"2023-03-23 11:17:45","username":"ven2","firstname":"ven2","lastname":"ven2","usertype":"user","wallet_recursion_id":null,"wallet_recursion_status":null,"wallet_recursion_type":null,"wallet_recursion_custom_time":null,"wallet_recursion_next_transaction":null,"wallet_recursion_endtime":null,"payment_method":"0","integration_orders_total":null,"local_orders_total":null,"total_recurring":"0","total_recurring_amount":null,"has_recursion_records":null},{"id":"72","user_id":"10","from_user_id":"0","amount":"1","comment":"Commission for 1 Action On localhost\/aff\/test\/admin_action.php | Action Code : admin_action <br> Clicked done from ip_message","type":"external_click_commission","dis_type":"banner","status":"1","commission_status":"0","reference_id":"2","reference_id_2":"admin_action","ip_details":"[{\"id\":\"6\",\"ip\":\"::1\",\"country_code\":\"\",\"script_name\":\"general_integration\",\"page_name\":\"\"}]","comm_from":"ex","domain_name":"localhost\/aff\/test\/admin_action.php","page_name":"","is_action":"1","parent_id":"66","group_id":"167955256314","is_vendor":"0","wv":null,"created_at":"2023-03-23 10:45:49","username":"ven2","firstname":"ven2","lastname":"ven2","usertype":"user","wallet_recursion_id":null,"wallet_recursion_status":null,"wallet_recursion_type":null,"wallet_recursion_custom_time":null,"wallet_recursion_next_transaction":null,"wallet_recursion_endtime":null,"payment_method":"0","integration_orders_total":null,"local_orders_total":null,"total_recurring":"0","total_recurring_amount":null,"has_recursion_records":null}]}}
My transaction with HTTP POST request.
API token is required for the authentication of the calling program to the API.
here display new and old request data list
GET : https://afftab.net/Withdraw_Request/withdraw_request_list
| Parameter | Type | Position | Description |
|---|---|---|---|
| Authorization | string |
Header |
compolsory pass this authentication token in your header also get from login api |
{"status":true,"message":"withdraw request list get successfully","data":{"list":[{"id":"2","tran_ids":"1","total":"5","status":"1","user_id":"64","prefer_method":"bank_transfer","settings":"[]","created_at":"2021-06-12 14:32:04"},{"id":"1","tran_ids":"29,14,2","total":"21","status":"0","user_id":"64","prefer_method":"bank_transfer","settings":"[]","created_at":"2021-06-12 14:29:50"}],"status":["ON HOLD","IN WALLET","REQUEST SENT","ACCEPT","DECLINE"],"status_icon":[["<small style='font-size:15px;' class='badge badge-danger'>ON HOLD</small>","<small style='font-size:15px;' class='badge badge-primary'>IN WALLET</small>","<small style='font-size:15px;' class='badge badge-warning'>REQUEST SENT</small>","<small style='font-size:15px;' class='badge badge-success'>ACCEPT</small>","<small style='font-size:15px;' class='badge badge-danger'>DECLINE</small>"]],"payout_transaction":[{"id": "1", "user_id": "3", "from_user_id": null,"amount": "29.75","comment": "Commission for general_integration | external_order_id 426 | Sale done from ip_message","type": "sale_commission","dis_type": null,"status": "0","reference_id": "6","reference_id_2": "1","ip_details": "[{\"ip\":\"::1\",\"country_code\":\"\",\"script_name\":\"general_integration\"}]","comm_from": "ex","domain_name": "localhost/test/order.php","page_name": null,"is_action": "0","parent_id": "0","group_id": "1616082550","is_vendor": "0","wv": null,"created_at": "2021-03-18 15 : 49 : 11","username": "user1","firstname": "user1","lastname": "user1","wallet_recursion_id": null,"wallet_recursion_status": null,"wallet_recursion_type": null,"wallet_recursion_custom_time": null,"wallet_recursion_next_transaction": null,"wallet_recursion_endtime": null,"payment_method": null,"integration_orders_total": "119","local_orders_total": null,"total_recurring": "0","total_recurring_amount": null}]}}
My transaction with HTTP POST request.
API token is required for the authentication of the calling program to the API.
Here you can pass ids in separated coma
POST : https://afftab.net/Withdraw_Request/send_withdraw_request
| Parameter | Type | Position | Description |
|---|---|---|---|
| ids | coma sepreted |
Body |
pass ids as coma seprated |
{"status":true,"message":"withdraw request send successfully"}
Perticular withdraw request with HTTP POST request.
API token is required for the authentication of the calling program to the API.
send withdraw request id (you can get id using withdraw request list)
POST : https://afftab.net/Withdraw_Request/perticular_withdraw_request_details
| Parameter | Type | Position | Description |
|---|---|---|---|
| id | number |
Body |
send withdraw request id (you can get using withdraw request list) |
{"status":true,"message":"perticular withdraw request details get successfully","data":{"request":{"id":"2","tran_ids":"1","total":"5","status":"1","user_id":"64","prefer_method":"bank_transfer","settings":"[]","created_at":"2021-06-12 14:32:04"},"transaction":[{"id":"1","user_id":"64","from_user_id":null,"amount":"5","comment":"Commission for 1 click on product <br> Clicked done from ip_message","type":"click_commission","dis_type":null,"status":"3","commission_status":"0","reference_id":"3","reference_id_2":"","ip_details":"[{\"ip\":\"::1\",\"country_code\":\"\"}]","comm_from":"store","domain_name":null,"page_name":null,"is_action":"0","parent_id":"0","group_id":"1623256015","is_vendor":"0","wv":"V2","created_at":"2021-06-09 16:26:56","username":"aff12","firstname":"aff12","lastname":"aff12","wallet_recursion_id":null,"wallet_recursion_status":null,"wallet_recursion_type":null,"wallet_recursion_custom_time":null,"wallet_recursion_next_transaction":null,"wallet_recursion_endtime":null,"payment_method":null,"integration_orders_total":null,"local_orders_total":null,"total_recurring":"0","total_recurring_amount":null}],"status":["ON HOLD","IN WALLET","REQUEST SENT","ACCEPT","DECLINE"],"status_icon":["<small style='font-size:15px;' class='badge badge-danger'>ON HOLD<\/small>","<small style='font-size:15px;' class='badge badge-primary'>IN WALLET<\/small>","<small style='font-size:15px;' class='badge badge-warning'>REQUEST SENT<\/small>","<small style='font-size:15px;' class='badge badge-success'>ACCEPT<\/small>","<small style='font-size:15px;' class='badge badge-danger'>DECLINE<\/small>"]}}
All order list, payment details, with order information and it's status details available in order section. also display product information and prodcut commision details.
Perticular withdraw request with HTTP POST request.
API token is required for the authentication of the calling program to the API.
You can set filter as order status wise.
Here product order list data display as pagignation wise. only data get using pass page_id and per_page parameter.
page_id is index of your page so you can pass your page id.
Ex. : display on first page pass 1, display on second page pass 2
per_page is count of data display of per page.
| Parameter | Type | Position | Description |
|---|---|---|---|
| page_id | number |
Body |
pass your page number index for data display as pagignation wise |
| per_page | number |
Body |
you want to set count for data display |
| filter_status | string |
Body |
compolsory pass this authentication token in your header also get from login api |
{"status":true,"message":"order list get successfully","data":{"orders":[{"id":"3","wallet_status":"2","wallet_commission_status":"0","type":"ex","order_id":"757","product_ids":"119","total":"114","currency":"USD","user_id":"64","commission_type":"fixed","commission":"10","ip":"::1","country_code":"","base_url":"localhost\/test\/store1.php","ads_id":"5","script_name":"general_integration","custom_data":"[]","created_at":"12-06-2021 10:58 AM","user_name":"aff12 aff12","order_country_flag":"<img style='width: 20px;margin: 0 10px;' src='http://localhost/aff/4-0-0-7/assets/vertical/assets/images/flags/us.png'> IP: 192.168.1.21"},{"id":"1","wallet_status":"2","wallet_commission_status":"0","type":"ex","order_id":"133","product_ids":"169","total":"105","currency":"USD","user_id":"64","commission_type":"fixed","commission":"10","ip":"192.168.1.21","country_code":"","base_url":"localhost/test/store1.php","ads_id":"5","script_name":"general_integration","custom_data":"[]","created_at":"09-06-2021 04:27 PM","user_name":"aff12 aff12","order_country_flag":"<img style='width: 20px;margin: 0 10px;' src='http://localhost/aff/4-0-0-7/assets/vertical/assets/images/flags/us.png'> IP: 192.168.1.21"}],"start_from":1,"wallet_status":["Pending","Complete","Proccessing","Cancel","Decline"]}}
Perticular withdraw request with HTTP POST request.
API token is required for the authentication of the calling program to the API.
Display all order status and it's used for search in order list.
| Parameter | Type | Position | Description |
|---|---|---|---|
| Authorization | string |
Header |
compolsory pass this authentication token in your header also get from login api |
{"status":true,"message":"my orders status list get successfully","data":{"12":"Waiting For Payment","0":"Waiting For Payment","1":"Complete","2":"Total not match","3":"Denied","4":"Expired","5":"Failed","6":"Pending","7":"Processed","8":"Refunded","9":"Reversed","10":"Voided","11":"Canceled Reversal"}}
Admin can create unlimited packages/plans of Time/Price.
also display your plan history. if you want buy any plan to process set in our web. so you can purchase our plan using our web. here only display our packages and price.
Buy memebership plan request with HTTP GET request.
API token is required for the authentication of the calling program to the API.
Here display all plan history and all available payment method. also display here your active plan details.
| Parameter | Type | Position | Description |
|---|---|---|---|
| Authorization | string |
Header |
compolsory pass this authentication token in your header also get from login api |
{
"status": true,
"message": "get membership plan successfully",
"data": {
"notcheckmember": 1,
"MembershipSetting": {
"status": "1",
"notificationbefore": "10",
"default_plan_id": "1",
"default_affiliate_plan_id": "2",
"default_vendor_plan_id": ""
},
"plans": [
{
"id": 2,
"name": "test",
"type": "free",
"billing_period": "monthly",
"price": 0,
"special": 0,
"custom_period": 0,
"have_trail": 0,
"free_trail": 0,
"total_day": 30,
"bonus": 10,
"commission_sale_status": 0,
"level_id": 0,
"status": 1,
"user_type": 1,
"campaign": null,
"product": null,
"description": "",
"plan_icon": null,
"label_text": "Free 30 Days Trial",
"label_background": "#FF9900",
"label_color": "#FFFFFF",
"sort_order": 0,
"updated_at": "2022-08-12 10:18:29",
"created_at": "2022-07-28 08:08:14"
},
{
"id": 3,
"name": "vendor package",
"type": "paid",
"billing_period": "monthly",
"price": 10,
"special": 7,
"custom_period": 0,
"have_trail": 0,
"free_trail": 0,
"total_day": 30,
"bonus": 1,
"commission_sale_status": 0,
"level_id": 0,
"status": 1,
"user_type": 2,
"campaign": null,
"product": 5,
"description": "<p>vendor package</p><p>vendor package</p><p>vendor package</p><p>vendor package<br></p>",
"plan_icon": null,
"label_text": "vendor package",
"label_background": "#0000FF",
"label_color": "#FFFFFF",
"sort_order": 0,
"updated_at": "2022-08-21 18:05:02",
"created_at": "2022-07-28 09:06:56"
}
],
"methods": {
"bank_transfer": {
"is_install": "1",
"title": "Bank Transfer",
"icon": "assets/payment_gateway/bank-transfer.png",
"name": "bank_transfer"
},
"flutterwave": {
"is_install": "1",
"title": "Flutterwave",
"icon": "assets/payment_gateway/flutterwave.png",
"name": "flutterwave"
},
"paypal": {
"is_install": "1",
"title": "Paypal",
"icon": "assets/payment_gateway/paypal.png",
"name": "paypal"
},
"paypalstandard": {
"is_install": "1",
"title": "Paypal Standard",
"icon": "assets/payment_gateway/paypal.png",
"name": "paypalstandard"
},
"paystack": {
"is_install": "1",
"title": "paystack",
"icon": "assets/payment_gateway/paystack.png",
"name": "paystack"
},
"razorpay": {
"is_install": "1",
"title": "Razorpay",
"icon": "assets/payment_gateway/razorpay.png",
"name": "razorpay"
},
"skrill": {
"is_install": "1",
"title": "Skrill",
"icon": "assets/payment_gateway/skrill.png",
"name": "skrill"
},
"stripe": {
"is_install": "1",
"environment": "0",
"test_public_key": "pk_test_51HIplPAflMT1sQX0od48Wk2ZSXpFfk9c2Oy19lJBBDTqgla6Q8uzZpWjF39oeNt05ROLbFAOIZnrXEKzZJiqr4g200HSDMgxRR",
"test_secret_key": "sk_test_51HIplPAflMT1sQX0Vy58Mh9fEIzVJrMxWnRBK2mHnBgafMhO96LEpYDr9ayoEXp1MaJfDnQ1VAI9LsaSjbUJGpir006JxQIE6W",
"live_public_key": "",
"live_secret_key": "",
"order_success_status": "1",
"order_failed_status": "5",
"title": "Stripe",
"icon": "assets/payment_gateway/stripe.png",
"name": "stripe"
},
"toyyibpay": {
"is_install": "1",
"toyyibpay_userSecretKey": "g5e90x5p-zpuy-p70s-zkdw-4e62egju15mq",
"toyyibpay_category_id": "jjm6glon",
"order_success_status_id": "1",
"pending_status_id": "6",
"order_failed_status_id": "5",
"title": "Toyyibpay",
"icon": "assets/payment_gateway/toyyibpay.png",
"name": "toyyibpay"
},
"xendit": {
"is_install": "1",
"title": "Xendit",
"icon": "assets/payment_gateway/xendit.png",
"name": "xendit"
},
"yappy": {
"is_install": "1",
"title": "Yappy",
"icon": "assets/payment_gateway/yappy.png",
"name": "yappy"
},
"yookassa": {
"is_install": "1",
"title": "Yookassa",
"icon": "assets/payment_gateway/yookassa.png",
"name": "yookassa"
}
}
}
}
Plan history request with HTTP GET request.
API token is required for the authentication of the calling program to the API.
Here display all my purchase plan
Here product order list data display as pagignation wise. only data get using pass page_id and per_page parameter.
page_id is index of your page so you can pass your page id.
Ex. : display on first page pass 1, display on second page pass 2
per_page is count of data display of per page.
| Parameter | Type | Position | Description |
|---|---|---|---|
| page_id | number |
Body |
pass your page number index for data display as pagignation wise |
| per_page | number |
Body |
you want to set count for data display |
{"status":true,"message":"get purchase plan successfully",
"data":{"notcheckmember":1,
"plans":{"current_page":1,"data": [
{
"id": 20,
"plan_id": 2,
"user_id": 4,
"total_day": 30,
"expire_at": "2022-10-14 08:43:18",
"started_at": "2022-09-14 08:43:18",
"status_id": 1,
"is_active": 1,
"is_lifetime": 0,
"payment_method": "",
"payment_details": "[]",
"total": 0,
"bonus_commission": 10,
"expire_mail_sent": 0,
"created_at": "2022-09-14 08:43:18",
"plan": {
"id": 2,
"name": "test",
"type": "free",
"billing_period": "monthly",
"price": 0,
"special": 0,
"custom_period": 0,
"have_trail": 0,
"free_trail": 0,
"total_day": 30,
"bonus": 10,
"commission_sale_status": 0,
"level_id": 0,
"status": 1,
"user_type": 1,
"campaign": null,
"product": null,
"description": "",
"plan_icon": null,
"label_text": "Free 30 Days Trial",
"label_background": "#FF9900",
"label_color": "#FFFFFF",
"sort_order": 0,
"updated_at": "2022-08-12 10:18:29",
"created_at": "2022-07-28 08:08:14"
}
},
{
"id": 17,
"plan_id": 2,
"user_id": 4,
"total_day": 30,
"expire_at": "2022-10-13 09:11:59",
"started_at": "2022-09-13 09:11:59",
"status_id": 1,
"is_active": 0,
"is_lifetime": 0,
"payment_method": "",
"payment_details": "[]",
"total": 0,
"bonus_commission": 10,
"expire_mail_sent": 0,
"created_at": "2022-09-13 09:11:59",
"plan": {
"id": 2,
"name": "test",
"type": "free",
"billing_period": "monthly",
"price": 0,
"special": 0,
"custom_period": 0,
"have_trail": 0,
"free_trail": 0,
"total_day": 30,
"bonus": 10,
"commission_sale_status": 0,
"level_id": 0,
"status": 1,
"user_type": 1,
"campaign": null,
"product": null,
"description": "",
"plan_icon": null,
"label_text": "Free 30 Days Trial",
"label_background": "#FF9900",
"label_color": "#FFFFFF",
"sort_order": 0,
"updated_at": "2022-08-12 10:18:29",
"created_at": "2022-07-28 08:08:14"
}
}
],"first_page_url":"\/?page=1","from":null,"last_page":1,"last_page_url":"\/?page=1","next_page_url":null,"path":"\/","per_page":"1","prev_page_url":null,"to":null,"total":0}}}
In this manage your product and coupon also you can manage your store setting.
My product request with HTTP GET request.
API token is required for the authentication of the calling program to the API.
Here display all product listed with it's clicks / commission, sales / commission with all commission details.
https://afftab.net/Vendor_Market_Place/store_product_list
| Parameter | Type | Position | Description |
|---|---|---|---|
| Authorization | string |
Header |
compolsory pass this authentication token in your header also get from login api |
{ "status": true, "message": "store product list get successfully", "data": { "default_commition": { "click_allow": "single", "product_commission_type": "percentage", "product_commission": "25", "product_ppc": "1", "product_noofpercommission": "1", "product_recursion": "", "recursion_custom_time": "0", "recursion_endtime": null }, "productlist": [ { "product_id": "17", "product_name": "check product - Duplicate", "product_description": "this is a test description of the product", "product_short_description": "this is a test product add by me", "product_tags": "", "product_msrp": "0", "product_price": "500", "product_sku": "SKU", "product_slug": "check-product-duplicate-17", "product_share_count": "", "product_click_count": "0", "product_view_count": "0", "product_sales_count": "0", "product_featured_image": "yXgDzuwN6SUFKYGivqBVlchjW598sIn1.jpg", "product_banner": "", "product_video": "", "product_type": "virtual", "product_commision_type": "default", "product_commision_value": "0", "product_status": "0", "product_ipaddress": "::1", "product_created_date": "2021-04-01 18:14:06", "product_updated_date": "0000-00-00 00:00:00", "product_created_by": "3", "product_updated_by": "0", "product_click_commision_type": "default", "product_click_commision_ppc": "0", "product_click_commision_per": "0", "product_total_commission": "0", "product_recursion_type": "custom", "product_recursion": "every_day", "recursion_custom_time": "0", "recursion_endtime": "2021-03-20 03:00:00", "view": "0", "on_store": "1", "downloadable_files": "[]", "allow_shipping": "1", "allow_upload_file": "1", "allow_comment": "1", "state_id": "12", "product_avg_rating": "0", "product_variations": "", "seller_firstname": "user1", "seller_lastname": "user1", "seller_username": "user1", "seller_id": "3", "commission": null, "order_count": "0", "commition_click_count": "0", "commition_click_count_admin": "0", "commition_click": null } ] } }
My product request with HTTP GET request.
API token is required for the authentication of the calling program to the API.
Here display all products name with it's ids.
| Parameter | Type | Position | Description |
|---|---|---|---|
| Authorization | string |
Header |
compolsory pass this authentication token in your header also get from login api |
{ "status": true, "message": "product name list get successfully", "data": [ { "product_id": "2", "product_name": "vendor product" }, { "product_id": "3", "product_name": "vendor product - Duplicate" }, { "product_id": "4", "product_name": "check product" }, { "product_id": "16", "product_name": "check product - Duplicate" }, { "product_id": "17", "product_name": "check product - Duplicate" } ] }
My product request with HTTP POST request.
API token is required for the authentication of the calling program to the API.
Using order manage api you can add and edit your product coupon code.
Used id when update your coupon code
| Parameter | Type | Position | Description |
|---|---|---|---|
| name | string |
Body |
compolsory pass this authentication token in your header also get from login api |
| code | string |
Body |
compolsory pass this authentication token in your header also get from login api |
| type | string |
Body |
P OR F (P = Percentage , F = Fixed) |
| allow_for | string |
Body |
A OR S (A = All, S = Selected Only) |
| discount | date |
Body |
- |
| date_start | date |
Body |
date formate is Y-m-d |
| date_end | string |
Body |
date formate is Y-m-d |
| status | number |
Body |
1 = Enable, 0 = Disable |
| products | string |
Body |
Add product id as a sepreted comma . Used product name service |
| uses_total | number |
Body |
optional variable |
| id | number |
Body |
Used id when update your coupon code |
{ "status": true, "message": "coupon code add successfully" }
My product request with HTTP DELETE request.
API token is required for the authentication of the calling program to the API.
Using this api you can removed your coupon. in this api you can pass id in query string
| Parameter | Type | Position | Description |
|---|---|---|---|
| coupon_id | number |
query string |
- |
{ "status": true, "message": "delete coupon successfully" }
My product request with HTTP GET request.
API token is required for the authentication of the calling program to the API.
Using this api you can get your affiliate store setting details.
| Parameter | Type | Position | Description |
|---|---|---|---|
| Authorization | string |
Header |
compolsory pass this authentication token in your header also get from login api |
{ "status": true, "message": "store setting get successfully", "data": { "user_id": "3", "vendor_status": "1", "affiliate_sale_commission_type": "fixed", "affiliate_commission_value": "10", "affiliate_click_count": "1", "affiliate_click_amount": "20", "form_affiliate_click_count": "60", "form_affiliate_click_amount": "0", "form_affiliate_sale_commission_type": "", "form_affiliate_commission_value": "0" } }
My product request with HTTP POST request.
API token is required for the authentication of the calling program to the API.
Using this api you can change your store setting details
| Parameter | Type | Position | Description |
|---|---|---|---|
| vendor_status | string |
Body |
O OR 1 (0 = No , 1 = Yes) |
| affiliate_click_count | string |
Body |
(optional) |
| affiliate_click_amount | string |
Body |
(optional) |
| affiliate_sale_commission_type | string |
Body |
percentage OR fixed |
| affiliate_commission_value | string |
Body |
(optional) |
| form_affiliate_click_count | string |
Body |
(optional) |
| form_affiliate_click_amount | string |
Body |
(optional) |
| form_affiliate_sale_commission_type | string |
Body |
(optional) |
| form_affiliate_commission_value | string |
Body |
(optional) |
{ "status": true, "message": "store setting change successfully" }
My product request with HTTP GET request.
API token is required for the authentication of the calling program to the API.
Using this api you can get all your coupons
| Parameter | Type | Position | Description |
|---|---|---|---|
| Authorization | string |
Header |
compolsory pass this authentication token in your header also get from login api |
{ "status": true, "message": "get store coupon list successfully", "data": [ { "coupon_id": "2", "name": "Test coupon", "code": "#TTY77", "type": "P", "discount": "5.0000", "date_start": "2021-03-28", "date_end": "2021-03-31", "uses_total": "50", "status": "0", "products": null, "vendor_id": "3", "allow_for": "A", "date_added": "2021-03-28 12:30:15", "product_count": 7, "count_coupon": 0 } ] }
My product request with HTTP GET request.
API token is required for the authentication of the calling program to the API.
You can get all country data using this api. whenever you need countries you can get this api.
| Parameter | Type | Position | Description |
|---|---|---|---|
| Authorization | string |
Header |
compolsory pass this authentication token in your header also get from login api |
{ "status": true, "message": "country list get successfully", "data": [ { "name": "Afghanistan", "id": "1" }, { "name": "Albania", "id": "2" }, { "name": "Algeria", "id": "3" } ] }
My product request with HTTP POST request.
API token is required for the authentication of the calling program to the API.
You can all state as country wise. in this pass country id to get all states of this country.
| Parameter | Type | Position | Description |
|---|---|---|---|
| Authorization | string |
Header |
compolsory pass this authentication token in your header also get from login api |
| country_id | number |
body |
pass country_id to get states for that country |
{ "status": true, "message": "state list get successfully", "data": [ { "id": "42", "name": "Badakhshan" }, { "id": "43", "name": "Badgis" }, { "id": "44", "name": "Baglan" }, { "id": "45", "name": "Balkh" } ] }
My product request with HTTP POST request.
API token is required for the authentication of the calling program to the API.
You can add and edit your product using this api. in this many modules available like that you can add prodcut as multiple category wise, you can add product as sales and click commision wise also you can manage your custom sales and click commision.
| Parameter | Type | Position | Description |
|---|---|---|---|
| product_name | string |
Body |
- |
| product_description | string |
Body |
- |
| product_short_description | string |
Body |
- |
| category[] | string |
Body |
data get from category list and add as a array formate |
| product_price | number |
Body |
- |
| product_sku | string |
Body |
- |
| allow_country | number |
Body |
1 OR 0 (1 = Enable, 0 = Disable) (optional) |
| country_id | number |
Body |
get from country list api (optional if allow_country=0) |
| state_id | number |
Body |
get from state list api ((optional if allow_country=0) |
| product_recursion_type | number |
Body |
custom OR default |
| product_recursion | number |
Body |
every_day OR every_week OR every_month OR every_year OR custom_time |
| recursion_custom_time | number |
Body |
every_day OR every_week OR every_month OR every_year OR custom_time |
| product_id | number |
Body |
if you want to edit record set product id |
| product_featured_image | file |
Body |
- |
| downloadable_file[] | file |
Body |
you can add downloadable_file as a multiple |
| product_type | string |
Body |
downloadable OR virtual |
| keep_files | file |
Body |
uploads zip file |
| admin_comment | string |
Body |
comment add by admin and save |
| affiliate_click_commission_type | string |
Body |
default OR fixed |
| affiliate_click_count | number |
Body |
default OR fixed |
| affiliate_click_amount | number |
Body |
default OR fixed |
| affiliate_sale_commission_type | number |
Body |
default OR percentage OR fixed |
| affiliate_commission_value | number |
Body |
- |
{ "status": true, "message": "product manage successfully" }
My product request with HTTP DELETE request.
API token is required for the authentication of the calling program to the API.
You can delete your product using this api. in this need to pass id in query string.
| Parameter | Type | Position | Description |
|---|---|---|---|
| product_id | number |
Query String |
- |
{ "status": true, "message": "product delete successfully" }
My product request with HTTP POST request.
API token is required for the authentication of the calling program to the API.
You can create new dupliacte product same as your old product using this api. in this you can pass your product id.
| Parameter | Type | Position | Description |
|---|---|---|---|
| product_id | number |
Header |
- |
{ "status": true, "message": "create duplicate product successfully" }
My product request with HTTP POST request.
API token is required for the authentication of the calling program to the API.
In this you can get all product images of perticualr product. need to pass peroduct id and get all product album images.
| Parameter | Type | Position | Description |
|---|---|---|---|
| product_id | number |
Query String |
- |
{ "status": true, "message": "get all images list successfully", "data": [ { "product_media_upload_id": "4", "product_id": "17", "product_media_upload_type": "image", "product_media_upload_path": "idLDZQ4G9jIqXgeh1RmC8HusBPk5NUct.png", "product_media_upload_video_image": "no-image.jpg", "product_media_upload_status": "1", "product_media_upload_ipaddress": "::1", "product_media_upload_created_date": "2021-03-30 17:10:13", "product_media_upload_created_by": "3", "product_media_upload_os": "Unknown Windows OS", "product_media_upload_browser": "Chrome", "product_media_upload_isp": "DESKTOP-1AUGRKG" }, { "product_media_upload_id": "5", "product_id": "17", "product_media_upload_type": "image", "product_media_upload_path": "dShcaoJNY9IK6fPs0l2xqTwEzyFAgWjt.jpg", "product_media_upload_video_image": "no-image.jpg", "product_media_upload_status": "1", "product_media_upload_ipaddress": "::1", "product_media_upload_created_date": "2021-04-01 16:18:05", "product_media_upload_created_by": "3", "product_media_upload_os": "Unknown Windows OS", "product_media_upload_browser": "Chrome", "product_media_upload_isp": "DESKTOP-1AUGRKG" } ] }
My product request with HTTP DELETE request.
API token is required for the authentication of the calling program to the API.
Using this api you can delete your perticular product album image. in this pass images id in query string.
| Parameter | Type | Position | Description |
|---|---|---|---|
| image_id | number |
Body |
- |
{ "status": true, "message": "product image delete successfully" }
My product request with HTTP POST request.
API token is required for the authentication of the calling program to the API.
You can add add images of perticular product. in this need to pass file as multipart formadata and you can also uploads image in multiple files.
| Parameter | Type | Position | Description |
|---|---|---|---|
| product_multiple_image[] | file |
Body |
uploads multiples file |
| product_id | number |
Body |
- |
{ "status": true, "message": "product images add successfully" }
In this section including marketing programs and marketing ads. we have many types of ads available like : banners, text ads, invisible links and viral videos also we can manage this add. in this ads creation, list, edit and delete option available.
Perticular ads have it's unique setting like : general setting, level setting, recurring setting, and postback setting.
My product request with HTTP POST request.
API token is required for the authentication of the calling program to the API.
Using this api you can add you custom program in this you can set your affiliate sale settings and affiliate click settings
| Parameter | Type | Position | Description |
|---|---|---|---|
| name | string |
Body |
- |
| sale_status | number |
Body |
Oprional (0 = Disable, 1 = Enable) |
| commission_type | string |
Body |
if required sale_status = 1 (percentage OR fixed) |
| commission_sale | number |
Body |
if required sale_status = 1 |
| click_status | number |
Body |
Optional (0 = Disable, 1 = Enable) |
| commission_number_of_click | number |
Body |
if required click_status= 1 |
| commission_click_commission | number |
Body |
if required click_status= 1 |
| program_id | number |
Body |
(optional) you can pass when you want edit record |
| comment | string |
Body |
(optional) |
{ "status": true, "message": "my marketing program manage successfully" }
Get my marketing program list request with GET request.
API token is required for the authentication of the calling program to the API.
Using this api you can get all program list data. in this you can see your sales commision and clicks commision
| Parameter | Type | Position | Description |
|---|---|---|---|
| Authorization | string |
Header |
compolsory pass this authentication token in your header also get from login api |
{ "status": true, "message": "my marketing program list get successfully", "data": [ { "id": "14", "vendor_id": "31", "status": "0", "name": "check edit", "commission_type": "percentage", "commission_sale": "1", "sale_status": "1", "commission_number_of_click": "50", "commission_click_commission": "1", "click_status": "1", "admin_commission_type": "", "admin_commission_sale": "0", "admin_commission_number_of_click": "0", "admin_commission_click_commission": "0", "admin_click_status": "0", "admin_sale_status": "0", "comment": "[{'from': 'admin','comment':'check edit'}]", "click_allow": null, "created_at": "2021-04-09 18:17:43", "username": "user1", "associate_programns": "0" } ] }
Delete my marketing program request with DELETE request.
API token is required for the authentication of the calling program to the API.
You can delete your program data using this api. in this api you can pass id in query string
| Parameter | Type | Position | Description |
|---|---|---|---|
| program_id | number |
Body |
- |
{ "status": true, "message": "my marketing program delete successfully" }
Get integration tools request with POST request.
API token is required for the authentication of the calling program to the API.
You can find all intrigatin tools data using this api. also you can filter using category and ads name wise.
Here integration tools data display as pagignation wise. only data get using pass page_id and per_page parameter.
page_id is index of your page so you can pass your page id.
Ex. : display on first page pass 1, display on second page pass 2
per_page is count of data display of per page.
| Parameter | Type | Position | Description |
|---|---|---|---|
| page_id | initger |
Body |
- |
| page_count | number |
Body |
- |
| category_id | number |
Body |
get data from get integration category api (optional) |
| ads_name | string |
Body |
(optional) |
{ "status": true, "message": "integration tools get successfully", "data": [ { "id": "89", "redirectLocation": [], "program_id": "1", "name": "First Ads check", "vendor_id": "31", "program_name": "test", "target_link": "https://localhost/aff/ver-4-0-0-5/usercontrol/integration_tools_form/", "status": "0", "action_click": "100", "action_amount": "5", "general_click": "100", "general_amount": "50", "admin_action_click": null, "admin_action_amount": "0", "admin_general_click": null, "admin_general_amount": "0", "_tool_type": "program", "type": "Banner", "_type": "banner", "commission_type": "percentage", "commission_sale": "50", "commission_number_of_click": "2", "commission_click_commission": "1", "click_status": "1", "sale_status": "1", "admin_commission_type": null, "admin_commission_sale": null, "admin_commission_number_of_click": null, "admin_commission_click_commission": null, "admin_click_status": null, "admin_sale_status": null, "recursion": "every_week", "recursion_custom_time": "0", "username": "user1", "recursion_endtime": "2021-02-18 10:30:05", "featured_image": null, "total_sale_amount": "$0.00", "total_click_amount": "$0.00", "total_action_click_amount": "$0.00", "total_general_click_amount": "$0.00", "total_sale_count": 0, "total_click_count": 0, "total_action_click_count": 0, "total_general_click_count": 0, "tool_type": "Program", "created_at": "09-04-2021 07:10 PM", "product_created_date": "09-04-2021 07:10 PM", "is_tool": 1, "slug": "" } ] }
Get dynamic param request with GET request.
API token is required for the authentication of the calling program to the API.
You can use dynaic param data in integration tools times.
| Parameter | Type | Position | Description |
|---|---|---|---|
| Authorization | string |
Header |
compolsory pass this authentication token in your header also get from login api |
{ "status": true, "message": "dynamic param get successfully", "data": { "city": "City", "regionCode": "Region Code", "regionName": "Region Name", "countryCode": "Country Code", "countryName": "Country Name", "continentName": "Continent Name", "timezone": "Timezone", "currencyCode": "Currency Code", "currencySymbol": "Currency Symbol", "ip": "IP", "type": "Type action,general_click,product_click,sale", "id": "ID (Sale ID OR Click ID)" } }
Get dynamic param request with POST request.
API token is required for the authentication of the calling program to the API.
You can create new duplicate intrigation tools ad same as your old intrigation tools ad using this api. in this you can pass your tools id.
| Parameter | Type | Position | Description |
|---|---|---|---|
| tools_id | number |
Body |
- |
{ "status": true, "message": "duplicate ads create successfully" }
Intrigation tools manage request with POST request.
API token is required for the authentication of the calling program to the API.
Using this api you can create one ads. there is 4 types of ads : banner, text, links and videos.
perticualr ads have 4 setting available general setting, level setting, recurring settting, postback setting
general setting have 3 tool types program, action and general click
level setting have default and custom commission types available in this you can pass referlevel1 to 10.
recurring setting have every day, week, month and year and custom time recursion.
postback setting have default and custom postback setting. also here add our dynamic and statics parameter.
if you can set type banner so in this you can add multiple banner images
if you can set type text so in this you can add test size and text color, background color etc.
if you can set type link so in this you can add link title
if you can set type video so in this you can add video url and it's height width
also you can edit record using this parameter program_tool_id
| Parameter | Type | Position | Description |
|---|---|---|---|
| name | string |
Body |
- |
| type | string |
Body |
banner OR text_ads OR video_ads OR link_ads |
| tool_type | string |
Body |
program OR action OR general_click |
| target_link | url |
Body |
- |
| program_id | number |
Body |
if required you can select vendor program (fixed value = 3) |
| action_click | number |
Body |
if required tool_type = action |
| action_amount | number |
Body |
if required tool_type = action |
| action_code | number |
Body |
if required(unique code) tool_type = action |
| general_click | number |
Body |
if required tool_type = general_click |
| general_amount | number |
Body |
if required tool_type = general_click |
| general_code | number |
Body |
if required (unique code) tool_type = general_click |
| featured_image | file |
Body |
- |
| recursion | string |
Body |
every_day OR every_week OR every_month OR every_year OR custom_time (required) |
| text_ads_content | string |
Body |
if required type = text_ads |
| text_color | string |
Body |
if required type = text_ads |
| text_border_color | string |
Body |
if required type = text_ads |
| text_size | string |
Body |
if required type = text_ads |
| text_bg_color | string |
Body |
if required type = text_ads |
| recursion_custom_time | string |
Body |
if required recursion = custom_time (you can add minitues) |
| allow_for_radio | number |
Body |
1 OR 0 (by default 0 == selected all affiliate user) |
| program_tool_id | number |
Body |
1 OR 0 (by default 0 == selected all affiliate user) |
| category[] | array |
Body |
- |
| allow_for[] | array |
Body |
- |
| recursion_endtime_status | string |
Body |
if you are set allow pass on |
| recursion_endtime | date-time |
Body |
you can pass here date and time |
| custom_banner[] | file |
Body |
optional (you can add type = banner) |
| video_link | link |
Body |
if required type = video_ads |
| button_text | string |
Body |
if required type = video_ads |
| video_height | string |
Body |
if required type = video_ads |
| video_width | string |
Body |
if required type = video_ads |
| link_title | string |
Body |
if required type = link_ads |
| comment | string |
Body |
(optional) |
| commission_type | string |
Body |
optional (custom OR '') |
| referlevel[sale_type] | string |
Body |
optional (percentage OR fixed) add level setting time |
| referlevel_1[commition] | string |
Body |
(number) add level setting time |
| referlevel_1[sale_commition] | string |
Body |
(number) add level setting time |
| referlevel_1[ex_commition] | string |
Body |
(number) add level setting time |
| referlevel_1[ex_action_commition] | string |
Body |
(number) add level setting time |
| marketpostback | string |
Body |
(default OR custom) postback setting time {"status":"custom","url":"","dynamicparam":{"city":"city","countryName":"countryName","currencySymbol":"currencySymbol"},"static":[{"key":"","value":""},{"key":"","value":""}]} |
{ "status": true, "message": "intrigation tools manage successfully" }
Get affiliate list request with GET request.
API token is required for the authentication of the calling program to the API.
Text ads add time if you want to add affiliate so that time you need to call get affiliate api.
| Parameter | Type | Position | Description |
|---|---|---|---|
| Authorization | string |
Header |
compolsory pass this authentication token in your header also get from login api |
{ "status": true, "message": "affiliate list get successfully", "data": [ { "name": "affiliate1", "id": "2" }, { "name": "test", "id": "3" } ] }
Delete intrigation tools request with DELETE request.
API token is required for the authentication of the calling program to the API.
You can delete intrigation tools using this api. in this api you can pass id in query string
| Parameter | Type | Position | Description |
|---|---|---|---|
| tools_id | string |
Body |
- |
{ "status": true, "message": "intrigation tools ads delete successfully" }
Notification section have all notification list available as notification type wise. you can manage you notification here.
Notification list request with POST request.
API token is required for the authentication of the calling program to the API.
Here notification list data display as pagignation wise. only data get using pass page_id and per_page parameter.
page_id is index of your page so you can pass your page id.
Ex. : display on first page pass 1, display on second page pass 2
per_page is count of data display of per page.
| Parameter | Type | Position | Description |
|---|---|---|---|
| page_id | number |
Body |
pass your page number index for data display as pagignation wise |
| per_page | number |
Body |
you want to set count for data display |
{ "status": true, "message": "notification list get successfully", "data": [ { "notification_id": "117", "notification_viewfor": "user", "notification_view_user_id": "3", "notification_title": "New Order Generated With Your Vendor Product by freshclient", "notification_url": "/vieworder/3", "notification_description": "fresh client Last client name created a new order with your vendor product at 2021-04-10 16:31:58", "notification_actionID": "3", "notification_type": "order", "notification_is_read": "0", "notification_ipaddress": "::1", "notification_created_date": "2021-04-10 16:31:58" } ] }
Delete notifications request with POST request.
API token is required for the authentication of the calling program to the API.
Using this api you can remove your notification. in this api you can pass id in query string
| Parameter | Type | Position | Description |
|---|---|---|---|
| delete_ids[] | string |
Body |
pass multiple ids in array |
{ "status": true, "message": "notification delete successfully" }