6574576844<\/td><\/tr>",
"success" : "yes"
}
Responses
Status: 302 - Error
{
"last_name" : "string",
"invoiceId" : "number",
"city" : "string",
"shippaid" : "number",
"address" : "string",
"zipcode" : "number",
"email" : "string",
"first_name" : "string",
"userid" : "number",
"address1" : "string",
"state" : "string",
"phone" : "number",
"companyname" : "string"
}
Remove Unselected Product for Checkout for Shipping
This API can be used to update the Retrieval options and Pay Later concept.
POST
https://api.auction.io/mobileapi/newremovebidcheckout
Usage and Examples
curl --location --request POST "https://api.auction.io/mobileapi/newremovebidcheckout" \
--header "Content-Type: application/json" \
--data "{
\"shipcheck\" : [
{
\"b_id\" : 2408,
\"ship_amt\" : \"11.95\"
},
{
\"ship_amt\" : \"17.0\",
\"b_id\" : 2407
}
],
\"bidid\" : \"\",
\"userid\" : \"1245\",
\"inovType\" : \"storereturns\",
\"cinvoice\" : \"11111\",
\"ship_val\" : 3
}"
var settings = {
"url": "https://api.auction.io/mobileapi/newremovebidcheckout",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
"data": "{\n \"shipcheck\" : [\n {\n \"b_id\" : 2408,\n \"ship_amt\" : \"11.95\"\n },\n {\n \"ship_amt\" : \"17.0\",\n \"b_id\" : 2407\n }\n ],\n \"bidid\" : \"\",\n \"userid\" : \"1245\",\n \"inovType\" : \"storereturns\",\n \"cinvoice\" : \"11111\",\n \"ship_val\" : 3\n}",
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var http = require('http');
var options = {
'method': 'POST',
'hostname': 'api.auction.io',
'path': '/mobileapi/newremovebidcheckout',
'headers': {
'Content-Type': 'application/json'
}
};
var req = http.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
var postData = "{\n \"shipcheck\" : [\n {\n \"b_id\" : 2408,\n \"ship_amt\" : \"11.95\"\n },\n {\n \"ship_amt\" : \"17.0\",\n \"b_id\" : 2407\n }\n ],\n \"bidid\" : \"\",\n \"userid\" : \"1245\",\n \"inovType\" : \"storereturns\",\n \"cinvoice\" : \"11111\",\n \"ship_val\" : 3\n}";
req.write(postData);
req.end();
Headers
{
"key":"Content-Type","value":"multipart/form-data","enabled":true
}
Usage and Examples
Body parameters
Name
Description
userdetails
{
"shipcheck" : [
{
"b_id" : 2408,
"ship_amt" : "11.95"
},
{
"ship_amt" : "17.0",
"b_id" : 2407
}
],
"bidid" : "",
"userid" : "1245",
"inovType" : "storereturns",
"cinvoice" : "11111",
"ship_val" : 3
}
Responses
Status: 202 - Success
{
"shipcheck" : [
{
"b_id" : number,
"ship_amt" : "number"
},
{
"ship_amt" : "number",
"b_id" : number
}
],
"bidid" : "",
"userid" : "number",
"inovType" : "string",
"cinvoice" : "number",
"ship_val" : number
}
Responses
Status: 302 - Error
{
"shipcheck" : [
{
"b_id" : number,
"ship_amt" : "number"
},
{
"ship_amt" : "number",
"b_id" : number
}
],
"bidid" : "",
"userid" : "number",
"inovType" : "string",
"cinvoice" : "number",
"ship_val" : number
}
Remove Unselected Product for Checkout for Local Shipping
This API can be used to update the Retrieval options and Pay Later concept.
POST
https://api.auction.io/mobileapi/newremovebidcheckout
Usage and Examples
curl --location --request POST "https://api.auction.io/mobileapi/newremovebidcheckout" \
--header "Content-Type: application/json" \
--data "{\"bidid\": \"\", \"cinvoice\": \"11111\", \"inovType\": \"storereturns\", \"ship_val\": 2, \"userid\": \"1245\"}"
var settings = {
"url": "https://api.auction.io/mobileapi/newremovebidcheckout",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
"data": "{\"bidid\": \"\", \"cinvoice\": \"11111\", \"inovType\": \"storereturns\", \"ship_val\": 2, \"userid\": \"1245\"}",
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var https = require('https');
var options = {
'method': 'POST',
'hostname': 'api.auction.io',
'path': '/mobileapi/newremovebidcheckout',
'headers': {
'Content-Type': 'application/json'
}
};
var req = https.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
var postData = "{\"bidid\": \"\", \"cinvoice\": \"11111\", \"inovType\": \"storereturns\", \"ship_val\": 2, \"userid\": \"1245\"}";
req.write(postData);
req.end();
Headers
{
"key":"Content-Type","value":"multipart/form-data","enabled":true
}
Usage and Examples
Body parameters
Name
Description
userdetails
{
"bidid": "",
"cinvoice": "11111",
"inovType": "storereturns",
"ship_val": 2,
"userid": "1245"
}
Responses
Status: 202 - Success
{
"bidid": "",
"cinvoice": "number",
"inovType": "string",
"ship_val": number,
"userid": "number"
}
Responses
Status: 302 - Error
{
"bidid": "",
"cinvoice": "number",
"inovType": "string",
"ship_val": number,
"userid": "number"
}
Remove All Shipping fee
This API can be used to update the LTL Price which is updated by Admin.
POST
https://api.auction.io/mobileapi/removeAllShippingNew
Usage and Examples
curl --location --request POST "https://api.auction.io/mobileapi/removeAllShippingNew" \
--form "buyerid= 1245" \
--form "bidid= 2434,2408,2407" \
--form "userid= 1245" \
--form "invoiceid= 11111"
var form = new FormData();
form.append("buyerid", " 1245");
form.append("bidid", " 2434,2408,2407");
form.append("userid", " 1245");
form.append("invoiceid", " 11111");
var settings = {
"url": "https://api.auction.io/mobileapi/removeAllShippingNew",
"method": "POST",
"timeout": 0,
"processData": false,
"mimeType": "multipart/form-data",
"contentType": false,
"data": form
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var https = require('https');
var options = {
'method': 'POST',
'hostname': 'api.auction.io',
'path': '/mobileapi/removeAllShippingNew',
'headers': {
}
};
var req = https.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
var postData = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"buyerid\"\r\n\r\n 1245\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"bidid\"\r\n\r\n 2434,2408,2407\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"userid\"\r\n\r\n 1245\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"invoiceid\"\r\n\r\n 11111\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--";
req.setHeader('content-type', 'multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW');
req.write(postData);
req.end();
Headers
{
"key":"Content-Type","value":"multipart/form-data","enabled":true
}
Usage and Examples
Body parameters
Name
Description
userdetails
{
"buyerid": "1245",
"bidid": "2434,2408,2407",
"userid": "1245",
"invoiceid": "11111"
}
Responses
Status: 202 - Success
{
"buyerid": "number",
"bidid": "number",
"userid": "number",
"invoiceid": "number"
}
Responses
Status: 302 - Error
{
"buyerid": "number",
"bidid": "number",
"userid": "number",
"invoiceid": "number"
}
Concept NRSCA
This API can be used to fetch the Pallet Shipping price based on the State given in the shipping address.
POST
https://api.auction.io/mobileapi/newConceptNRSCA/
Usage and Examples
curl --location --request POST "https://api.auction.io/mobileapi/newConceptNRSCA/" \
--header "Content-Type: application/json" \
--data "{\"first_name\": \"sample\", \"bidid\": \"2434\", \"buyerid\": \"1245\", \"userid\": \"1245\", \"cinvoice\": \"11111\", \"last_name\": \"Michael\", \"cutomermail\": \"sample+300@auction.io\", \"inv_num\": \"11111\"}"
var settings = {
"url": "https://api.auction.io/mobileapi/newConceptNRSCA/",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
"data": "{\"first_name\": \"sample\", \"bidid\": \"2434\", \"buyerid\": \"1245\", \"userid\": \"1245\", \"cinvoice\": \"11111\", \"last_name\": \"Michael\", \"cutomermail\": \"sample+300@auction.io\", \"inv_num\": \"11111\"}",
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var http = require('http');
var options = {
'method': 'POST',
'hostname': 'api.auction.io',
'path': '/mobileapi/newConceptNRSCA/',
'headers': {
'Content-Type': 'application/json'
}
};
var req = http.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
var postData = "{\"first_name\": \"sample\", \"bidid\": \"2434\", \"buyerid\": \"1245\", \"userid\": \"1245\", \"cinvoice\": \"11111\", \"last_name\": \"Michael\", \"cutomermail\": \"sample+300@auction.io\", \"inv_num\": \"11111\"}";
req.write(postData);
req.end();
Headers
{
"key":"Content-Type","value":"multipart/form-data","enabled":true
}
Usage and Examples
Body parameters
Name
Description
userdetails
{
"first_name": "sample",
"bidid": "2434",
"buyerid": "1245",
"userid": "1245",
"cinvoice": "11111",
"last_name": "Michael",
"cutomermail": "sample+300@auction.io",
"inv_num": "11111"
}
Responses
Status: 202 - Success
{
"first_name": "string",
"bidid": "number",
"buyerid": "number",
"userid": "number",
"cinvoice": "number",
"last_name": "string",
"cutomermail": "string",
"inv_num": "number"
}
Responses
Status: 302 - Error
{
"first_name": "string",
"bidid": "number",
"buyerid": "number",
"userid": "number",
"cinvoice": "number",
"last_name": "string",
"cutomermail": "string",
"inv_num": "number"
}
Update Freight Request
This API is update the Request Shipping Price.
POST
https://api.auction.io/mobileapi/newupdatefreightsinvoice
Usage and Examples
curl --location --request POST "https://api.auction.io/mobileapi/newupdatefreightsinvoice" \
--header "Content-Type: application/json" \
--data "{
\"shipstate\" : \"Texas\",
\"userid\" : \"1245\",
\"inovType\" : \"storereturns\",
\"bid\" : [
\"2434\",
\"2408\"
],
\"shipbid\" : [
\"2407\"
],
\"cinvoice\" : \"11111\"
}"
var settings = {
"url": "https://api.auction.io/mobileapi/newupdatefreightsinvoice",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
"data": "{\n \"shipstate\" : \"Texas\",\n \"userid\" : \"1245\",\n \"inovType\" : \"storereturns\",\n \"bid\" : [\n \"2434\",\n \"2408\"\n ],\n \"shipbid\" : [\n \"2407\"\n ],\n \"cinvoice\" : \"11111\"\n}",
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var http = require('http');
var options = {
'method': 'POST',
'hostname': 'api.auction.io',
'path': '/mobileapi/newupdatefreightsinvoice',
'headers': {
'Content-Type': 'application/json'
}
};
var req = http.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
var postData = "{\n \"shipstate\" : \"Texas\",\n \"userid\" : \"1245\",\n \"inovType\" : \"storereturns\",\n \"bid\" : [\n \"2434\",\n \"2408\"\n ],\n \"shipbid\" : [\n \"2407\"\n ],\n \"cinvoice\" : \"11111\"\n}";
req.write(postData);
req.end();
Headers
{
"key":"Content-Type","value":"multipart/form-data","enabled":true
}
Usage and Examples
Body parameters
Name
Description
userdetails
{
"shipstate" : "Texas",
"userid" : "1245",
"inovType" : "storereturns",
"bid" : [
"2434",
"2408"
],
"shipbid" : [
"2407"
],
"cinvoice" : "11111"
}
Responses
Status: 202 - Success
{
"shipstate" : "string",
"userid" : "number",
"inovType" : "string",
"bid" : [
"number",
"number"
],
"shipbid" : [
"number"
],
"cinvoice" : "number"
}
{
"message_val" : "success",
"price" : "11.95"
}
Responses
Status: 302 - Error
{
"shipstate" : "string",
"userid" : "number",
"inovType" : "string",
"bid" : [
"number",
"number"
],
"shipbid" : [
"number"
],
"cinvoice" : "number"
}
{
"message_val" : "error",
"price" : ""
}
Pay with paypal
This API is used to make a Paypal payment using Paypal Credentials.
16.95 - This is total payment amount
11112 - This is Invoice ID
POST
https://api.auction.io/mobileapi/Slibuy-PayPal-Payment/16.95/11112
Usage and Examples
curl --location --request POST "https://api.auction.io/mobileapi/Slibuy-PayPal-Payment/16.95/11112" \
--header "Content-Type: application/json" \
--data "{\"shipOrg\": \"11.95\", \"email\": \"sample+300@auction.io\", \"address\": \"Street Address, Apt, Suite Street Address 2\", \"city\": \"Dallas\", \"persale\": 0.0, \"shipCmb\": \"0.00\", \"userid\": \"1245\", \"l_name\": \"Michael\", \"username\": \"sampleMich300\", \"bPTotal\": \"0.00\", \"f_name\": \"sample\", \"country\": \"United States\", \"buyerid\": \"1245\", \"state\": \"Illinois\", \"shipAmt\": \"11.95\", \"salesAmt\": \"0.00\", \"phone\": \"6574576844\", \"zipcode\": \"62462\", \"totalInvoice\": \"16.95\"}"
var settings = {
"url": "https://api.auction.io/mobileapi/Slibuy-PayPal-Payment/16.95/11112",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
"data": "{\"shipOrg\": \"11.95\", \"email\": \"sample+300@auction.io\", \"address\": \"Street Address, Apt, Suite Street Address 2\", \"city\": \"Dallas\", \"persale\": 0.0, \"shipCmb\": \"0.00\", \"userid\": \"1245\", \"l_name\": \"Michael\", \"username\": \"sampleMich300\", \"bPTotal\": \"0.00\", \"f_name\": \"sample\", \"country\": \"United States\", \"buyerid\": \"1245\", \"state\": \"Illinois\", \"shipAmt\": \"11.95\", \"salesAmt\": \"0.00\", \"phone\": \"6574576844\", \"zipcode\": \"62462\", \"totalInvoice\": \"16.95\"}",
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var http = require('http');
var options = {
'method': 'POST',
'hostname': 'api.auction.io',
'path': '/mobileapi/Slibuy-PayPal-Payment/16.95/11112',
'headers': {
'Content-Type': 'application/json'
}
};
var req = http.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
var postData = "{\"shipOrg\": \"11.95\", \"email\": \"sample+300@auction.io\", \"address\": \"Street Address, Apt, Suite Street Address 2\", \"city\": \"Dallas\", \"persale\": 0.0, \"shipCmb\": \"0.00\", \"userid\": \"1245\", \"l_name\": \"Michael\", \"username\": \"sampleMich300\", \"bPTotal\": \"0.00\", \"f_name\": \"sample\", \"country\": \"United States\", \"buyerid\": \"1245\", \"state\": \"Illinois\", \"shipAmt\": \"11.95\", \"salesAmt\": \"0.00\", \"phone\": \"6574576844\", \"zipcode\": \"62462\", \"totalInvoice\": \"16.95\"}";
req.write(postData);
req.end();
Headers
{
"key":"Content-Type","value":"multipart/form-data","enabled":true
}
Usage and Examples
Body parameters
Name
Description
userdetails
{
"shipOrg": "11.95",
"email": "sample+300@auction.io",
"address": "Street Address, Apt, Suite Street Address 2",
"city": "Dallas",
"persale": 0.0,
"shipCmb": "0.00",
"userid": "1245",
"l_name": "Michael",
"username": "sampleMich300",
"bPTotal": "0.00",
"f_name": "sample",
"country": "United States",
"buyerid": "1245",
"state": "Illinois",
"shipAmt": "11.95",
"salesAmt": "0.00",
"phone": "6574576844",
"zipcode": "62462",
"totalInvoice": "16.95"
}
Responses
Status: 202 - Success
{
"shipOrg": "number",
"email": "string",
"address": "string, string, string",
"city": "string",
"persale": number,
"shipCmb": "number",
"userid": "number",
"l_name": "string",
"username": "string",
"bPTotal": "number",
"f_name": "string",
"country": "string",
"buyerid": "number",
"state": "string",
"shipAmt": "number",
"salesAmt": "number",
"phone": "number",
"zipcode": "number",
"totalInvoice": "number"
}
{
"payUrl" : "https:\/\/www.sandbox.paypal.com\/cgi-bin\/webscr?cmd=_express-checkout&token=",
"errormsg" : "",
"error" : false
}
Responses
Status: 302 - Error
{
"shipOrg": "number",
"email": "string",
"address": "string, string, string",
"city": "string",
"persale": number,
"shipCmb": "number",
"userid": "number",
"l_name": "string",
"username": "string",
"bPTotal": "number",
"f_name": "string",
"country": "string",
"buyerid": "number",
"state": "string",
"shipAmt": "number",
"salesAmt": "number",
"phone": "number",
"zipcode": "number",
"totalInvoice": "number"
}
{
"payUrl" : "",
"errormsg" : "",
"error" : true
}
Pay full Amount with Use Credit
This API is used to make a full payment using only Credits.
POST
https://api.auction.io/mobileapi/ApplyCreditsPay
Usage and Examples
curl --location --request POST "https://api.auction.io/mobileapi/ApplyCreditsPay" \
--header "Content-Type: application/json" \
--data "{\"amount\": \"16.95\", \"totalInvoice\": \"16.95\", \"sstates\": \"Illinois\", \"scities\": \"Dallas\", \"salesAmt\": \"0.00\", \"shipOrg\": \"11.95\", \"sf_name\": \"sample\", \"sl_name\": \"Michael\", \"scountries\": \"United States\", \"szips\": \"62462\", \"userid\": \"1245\", \"sphoneno\": \"6574576844\", \"shipAmt\": \"11.95\", \"ssapi_auid\": \"95217204\", \"tship\": \"11.95\", \"persalescen\": 0.0, \"email\": \"sample+300@auction.io\", \"semails\": \"sample+300@auction.io\", \"ssapi_tamt\": \"16.95\", \"invoiceno\": \"11112\", \"buyerPremiumTotal\": \"0.00\", \"buyerid\": \"1245\", \"shipCmb\": \"0.00\", \"saddresses\": \"Street Address, Apt, Suite Street Address 2\"}"
var settings = {
"url": "https://api.auction.io/mobileapi/ApplyCreditsPay",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
"data": "{\"amount\": \"16.95\", \"totalInvoice\": \"16.95\", \"sstates\": \"Illinois\", \"scities\": \"Dallas\", \"salesAmt\": \"0.00\", \"shipOrg\": \"11.95\", \"sf_name\": \"sample\", \"sl_name\": \"Michael\", \"scountries\": \"United States\", \"szips\": \"62462\", \"userid\": \"1245\", \"sphoneno\": \"6574576844\", \"shipAmt\": \"11.95\", \"ssapi_auid\": \"95217204\", \"tship\": \"11.95\", \"persalescen\": 0.0, \"email\": \"sample+300@auction.io\", \"semails\": \"sample+300@auction.io\", \"ssapi_tamt\": \"16.95\", \"invoiceno\": \"11112\", \"buyerPremiumTotal\": \"0.00\", \"buyerid\": \"1245\", \"shipCmb\": \"0.00\", \"saddresses\": \"Street Address, Apt, Suite Street Address 2\"}",
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var http = require('http');
var options = {
'method': 'POST',
'hostname': 'api.auction.io',
'path': '/mobileapi/ApplyCreditsPay',
'headers': {
'Content-Type': 'application/json'
}
};
var req = http.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
var postData = "{\"amount\": \"16.95\", \"totalInvoice\": \"16.95\", \"sstates\": \"Illinois\", \"scities\": \"Dallas\", \"salesAmt\": \"0.00\", \"shipOrg\": \"11.95\", \"sf_name\": \"sample\", \"sl_name\": \"Michael\", \"scountries\": \"United States\", \"szips\": \"62462\", \"userid\": \"1245\", \"sphoneno\": \"6574576844\", \"shipAmt\": \"11.95\", \"ssapi_auid\": \"95217204\", \"tship\": \"11.95\", \"persalescen\": 0.0, \"email\": \"sample+300@auction.io\", \"semails\": \"sample+300@auction.io\", \"ssapi_tamt\": \"16.95\", \"invoiceno\": \"11112\", \"buyerPremiumTotal\": \"0.00\", \"buyerid\": \"1245\", \"shipCmb\": \"0.00\", \"saddresses\": \"Street Address, Apt, Suite Street Address 2\"}";
req.write(postData);
req.end();
Headers
{
"key":"Content-Type","value":"multipart/form-data","enabled":true
}
Usage and Examples
Body parameters
Name
Description
userdetails
{
"amount": "16.95",
"totalInvoice": "16.95",
"sstates": "Illinois",
"scities": "Dallas",
"salesAmt": "0.00",
"shipOrg": "11.95",
"sf_name": "sample",
"sl_name": "Michael",
"scountries": "United States",
"szips": "62462",
"userid": "1245",
"sphoneno": "6574576844",
"shipAmt": "11.95",
"ssapi_auid": "95217204",
"tship": "11.95",
"persalescen": 0.0,
"email": "sample+300@auction.io",
"semails": "sample+300@auction.io",
"ssapi_tamt": "16.95",
"invoiceno": "11112",
"buyerPremiumTotal": "0.00",
"buyerid": "1245",
"shipCmb": "0.00",
"saddresses": "Street Address, Apt, Suite Street Address 2"
}
Responses
Status: 202 - Success
{
"amount": "number",
"totalInvoice": "number",
"sstates": "string",
"scities": "string",
"salesAmt": "number",
"shipOrg": "number",
"sf_name": "string",
"sl_name": "string",
"scountries": "string",
"szips": "number",
"userid": "number",
"sphoneno": "number",
"shipAmt": "number",
"ssapi_auid": "number",
"tship": "number",
"persalescen": number,
"email": "string",
"semails": "string",
"ssapi_tamt": "number",
"invoiceno": "number",
"buyerPremiumTotal": "number",
"buyerid": "number",
"shipCmb": "number",
"saddresses": "string"
}
{
"error" : "no",
"errormsg" : ""
}
Responses
Status: 302 - Error
{
"amount": "number",
"totalInvoice": "number",
"sstates": "string",
"scities": "string",
"salesAmt": "number",
"shipOrg": "number",
"sf_name": "string",
"sl_name": "string",
"scountries": "string",
"szips": "number",
"userid": "number",
"sphoneno": "number",
"shipAmt": "number",
"ssapi_auid": "number",
"tship": "number",
"persalescen": number,
"email": "string",
"semails": "string",
"ssapi_tamt": "number",
"invoiceno": "number",
"buyerPremiumTotal": "number",
"buyerid": "number",
"shipCmb": "number",
"saddresses": "string"
}
{
"error" : "yes",
"errormsg" : ""
}
Pay using User Credit and remaining with Credit Card or PayPal
This API is used to make a payment using available Credits and clearing the balance amount using PayPal or Credit Cards.
POST
https://api.auction.io/mobileapi/applycreditstoinvoice
Usage and Examples
curl --location --request POST "https://api.auction.io/mobileapi/applycreditstoinvoice" \
--header "Content-Type: application/json" \
--data "{\"isrefund\": 0, \"pay_type\": \"Credit\", \"userid\": \"1245\", \"amount\": \"3.05\", \"first_name\": \"sample\", \"invoiceno\": \"11113\", \"extra_charge\": 0, \"is_reachnot\": 1, \"acredit\": \"yes\", \"buyerid\": \"1245\", \"admin_employeename\": \"sampleMich300\"}"
var settings = {
"url": "https://api.auction.io/mobileapi/applycreditstoinvoice",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
"data": "{\"isrefund\": 0, \"pay_type\": \"Credit\", \"userid\": \"1245\", \"amount\": \"3.05\", \"first_name\": \"sample\", \"invoiceno\": \"11113\", \"extra_charge\": 0, \"is_reachnot\": 1, \"acredit\": \"yes\", \"buyerid\": \"1245\", \"admin_employeename\": \"sampleMich300\"}",
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var http = require('http');
var options = {
'method': 'POST',
'hostname': 'api.auction.io',
'path': '/mobileapi/applycreditstoinvoice',
'headers': {
'Content-Type': 'application/json'
}
};
var req = http.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
var postData = "{\"isrefund\": 0, \"pay_type\": \"Credit\", \"userid\": \"1245\", \"amount\": \"3.05\", \"first_name\": \"sample\", \"invoiceno\": \"11113\", \"extra_charge\": 0, \"is_reachnot\": 1, \"acredit\": \"yes\", \"buyerid\": \"1245\", \"admin_employeename\": \"sampleMich300\"}";
req.write(postData);
req.end();
Headers
{
"key":"Content-Type","value":"multipart/form-data","enabled":true
}
Usage and Examples
Body parameters
Name
Description
userdetails
{
"isrefund": 0,
"pay_type": "Credit",
"userid": "1245",
"amount": "3.05",
"first_name": "sample",
"invoiceno": "11113",
"extra_charge": 0,
"is_reachnot": 1,
"acredit": "yes",
"buyerid": "1245",
"admin_employeename": "sampleMich300"
}
Responses
Status: 202 - Success
{
"isrefund": number,
"pay_type": "string",
"userid": "number",
"amount": "number",
"first_name": "string",
"invoiceno": "number",
"extra_charge": number,
"is_reachnot": number,
"acredit": "string",
"buyerid": "number",
"admin_employeename": "string"
}
Responses
Status: 302 - Error
{
"isrefund": number,
"pay_type": "string",
"userid": "number",
"amount": "number",
"first_name": "string",
"invoiceno": "number",
"extra_charge": number,
"is_reachnot": number,
"acredit": "string",
"buyerid": "number",
"admin_employeename": "string"
}
Seller Dashboard Counts
This API can be used to fetch the Pending Items count, Active Items count and Sold Items count of particular Seller.
1245 - This is UserID
GET
https://api.auction.io/mobileapi/addlisting/1245
Usage and Examples
curl --location --request GET "https://api.auction.io/mobileapi/addlisting/1245"
var settings = {
"url": "https://api.auction.io/mobileapi/addlisting/1245",
"method": "GET",
"timeout": 0,
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var http = require('http');
var options = {
'method': 'GET',
'hostname': 'api.auction.io',
'path': '/mobileapi/addlisting/1245',
'headers': {
}
};
var req = http.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
req.end();
Headers
{
"key":"Content-Type","value":"multipart/form-data","enabled":true
}
Responses
Status: 202 - Success
{
"sold_count" : 5,
"isseller" : "1",
"protitle" : "",
"uid" : "1245",
"byddpage" : "subu11",
"auctionionotes" : "",
"success" : true,
"aid" : 0,
"popup" : 0,
"newType" : "store",
"pending_count" : 11,
"active_count" : 0,
"printlabel" : ""
}
Add New Product
This API allows Seller to post a new product.
POST
https://api.auction.io/mobileapi/sellerpostprojectlive
Usage and Examples
curl --location --request POST "https://api.auction.io/mobileapi/sellerpostprojectlive" \
--header "Content-Type: application/json" \
--data "{\"uid\": \"1245\", \"auctionionotes\": \"Auction.io Notes\", \"freightrequest\": 1, \"localpickup\": 0, \"printlabel\": 1, \"radcondition\": \"Shelf Pull\", \"auctioniotype\": \"storereturns\", \"inlineRadioOptions\": \"Shelf Pull\", \"protitle\": \"Test Title\", \"market_status\": \"draft\", \"first_name\": \"sample\", \"is_avatar\": 1, \"startprice\": 5, \"uploaderfile\": \"IMAGE_MULTIPART_FORM_DATA\"}"
var settings = {
"url": "https://api.auction.io/mobileapi/mylistings/pending/1245",
"method": "GET",
"timeout": 0,
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var http = require('http');
var options = {
'method': 'POST',
'hostname': 'api.auction.io',
'path': '/mobileapi/sellerpostprojectlive',
'headers': {
'Content-Type': 'application/json'
}
};
var req = http.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
var postData = "{\"uid\": \"1245\", \"auctionionotes\": \"Auction.io Notes\", \"freightrequest\": 1, \"localpickup\": 0, \"printlabel\": 1, \"radcondition\": \"Shelf Pull\", \"auctioniotype\": \"storereturns\", \"inlineRadioOptions\": \"Shelf Pull\", \"protitle\": \"Test Title\", \"market_status\": \"draft\", \"first_name\": \"sample\", \"is_avatar\": 1, \"startprice\": 5, \"uploaderfile\": \"IMAGE_MULTIPART_FORM_DATA\"}";
req.write(postData);
req.end();
Headers
{
"key":"Content-Type","value":"multipart/form-data","enabled":true
}
Usage and Examples
Body parameters
Name
Description
userdetails
{
"uid": "1245",
"auctionionotes": "Auction.io Notes",
"freightrequest": 1,
"localpickup": 0,
"printlabel": 1,
"radcondition": "Shelf Pull",
"auctioniotype": "storereturns",
"inlineRadioOptions": "Shelf Pull",
"protitle": "Test Title",
"market_status": "draft",
"first_name": "sample",
"is_avatar": 1,
"startprice": 5,
uploaderfile: "IMAGE_MULTIPART_FORM_DATA"
}
Responses
Status: 202 - Success
{
"uid": "number",
"auctionionotes": "number",
"freightrequest": number,
"localpickup": number,
"printlabel": number,
"radcondition": " string",
"auctioniotype": "string",
"inlineRadioOptions": "string",
"protitle": "string",
"market_status": "string",
"first_name": "string",
"is_avatar": number,
"startprice": number,
uploaderfile: "string"
}
{
"printlabel" : "1",
"auctionioid" : 98456069,
"status" : "success"
}
Responses
Status: 302 - Error
{
"uid": "number",
"auctionionotes": "number",
"freightrequest": number,
"localpickup": number,
"printlabel": number,
"radcondition": " string",
"auctioniotype": "string",
"inlineRadioOptions": "string",
"protitle": "string",
"market_status": "string",
"first_name": "string",
"is_avatar": number,
"startprice": number,
uploaderfile: "string"
}
{
"printlabel" : "1",
"auctionioid" : "",
"status" : "error"
}
Pending List
This API can be used to fetch all the Pending items posted by the seller.
1245 - This is UserID
GET
https://api.auction.io/mobileapi/mylistings/pending/1245
Usage and Examples
curl --location --request GET https:://api.auction.io/mobileapi/mylistings/pending/1245"
var settings = {
"url": "https://api.auction.io/mobileapi/mylistings/pending/1245",
"method": "GET",
"timeout": 0,
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var http = require('http');
var options = {
'method': 'GET',
'hostname': 'api.auction.io',
'path': '/mobileapi/mylistings/pending/1245',
'headers': {
}
};
var req = http.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
req.end();
Headers
{
"key":"Content-Type","value":"multipart/form-data","enabled":true
}
Responses
Status: 202 - Success
{
"mybids" : [
{
"inventory_loc" : "",
"buyerpremium" : "Test Payment<\/p>\r\n",
"date_closed" : "2019-04-17T10:33:05.000Z",
"is_relist" : 0,
"trending_pro_count" : 0,
"user_id" : 1245,
"lotof" : "0",
"inventory_loc_user" : 0,
"manifests" : "",
"auctioniocondition" : "",
"auctionionotes" : "Auction.io Notes",
"remainingDay" : -134797,
"shipping_description" : "",
"ctime" : "April 17th, 2019",
"norefund" : "<\div>Test terms and conditions<\/div>\r\n\r\n<\div> <\/div>\r\n",
"inspectiontime" : "<\div> <\/div>\r\n\r\n<\div>Test Local Pick up<\/div>\r\n\r\n<\div> <\/div>\r\n",
"subcategory" : null,
"invite_people" : null,
"content_head4" : "Returns",
"buyerpremium_percentage" : 0,
"length" : 0,
"country" : null,
"is_same_location" : 0,
"duration" : 0,
"market_status" : "draft",
"width" : 0,
"paypal_address" : "",
"size" : "",
"tracking_number" : null,
"avatarorg" : "https:\/\/s3-us-west-2.amazonaws.com\/myslibuy\/product\/e6433dbcfaed5051fed28c80ddd6a44a.jpeg",
"b_id" : null,
"paid" : null,
"future" : 0,
"content_head6" : "",
"buy_date" : null,
"sold" : 0,
"cashout_amount" : 0,
"id" : 4177,
"payments" : "<\div>Test returns <\/div>\r\n",
"status" : "closed",
"content_head2" : "Local Pick-up ",
"work_loc" : "sample",
"content_head1" : "Payments",
"qcdby" : "",
"shipping_price" : "0.00",
"isphotolive" : 0,
"updated_at" : null,
"auctioniotype" : "storereturns",
"closed" : "2019-04-17T10:33:05.000Z",
"hasshipping" : 0,
"upc" : "",
"state" : null,
"rprice" : "5.00",
"old_loc" : "",
"category_id" : null,
"file_name" : "e6433dbcfaed5051fed28c80ddd6a44a.jpeg",
"location" : "",
"content_head3" : "Combined Shipping",
"shippingcost" : "0",
"dateFclosed" : "2019-04-17T10:33:05.000Z",
"bprice" : "0.00",
"listing_count" : 0,
"buynow" : 0,
"home_page_listing_fee" : 0,
"msrp" : 0,
"multiple_category" : "",
"brand_name" : "",
"show_mspr" : 0,
"tags" : null,
"created_at" : null,
"day" : "0-1d:0-1h:0-3m:0-15s",
"date_add" : null,
"duration_type" : "D",
"is_upclist" : 0,
"content_head5" : "Conditions",
"weight" : 0,
"image" : null,
"cashout_id" : null,
"ptime" : "April 17th, 2019",
"sell_location" : "",
"modelnumber" : "",
"manufacturer" : "",
"seller_type" : 1,
"conditionunique" : "Shelf Pull",
"city" : "",
"mixlotof" : "0",
"inventory_date" : "0000-00-00 00:00:00",
"wprice" : "5.00",
"notes" : "",
"used_image_space" : 0,
"startprice" : "5",
"shipnotavailable" : 0,
"feature" : 0,
"budget_type" : null,
"is_digital" : 0,
"unitcount" : 0,
"finish" : "",
"pid" : 4177,
"paymentmethod" : "[\"Cash (Local Pick-up)\"]",
"buyer_id" : null,
"time_level" : "",
"ended_early" : 0,
"wsprice" : "5.00",
"trending_item" : 0,
"auctionio" : 0,
"qty" : 1,
"multiple_sub_category" : "",
"date_added" : "2019-04-17T10:33:05.000Z",
"sprice" : "5.00",
"common_invoice" : null,
"localpickup" : 1,
"iprice" : "0.00",
"unsold_notes" : "",
"mprice" : "0.00",
"cronjob" : 0,
"height" : 0,
"checkno" : null,
"time" : 0,
"booked" : 0,
"freightrequest" : 1,
"is_avatar" : 1,
"date_close" : "April 17th, 2019",
"ptitle" : "Test Title",
"title" : "Test Title",
"cashout_status" : null,
"stime" : "April 17th, 2019",
"amount" : null,
"calctime" : "-1 days 23 h 57m",
"auctionioid" : 98456069,
"avatar" : "e6433dbcfaed5051fed28c80ddd6a44a.jpeg",
"show_avgprice" : 0,
"extbidding" : "<\div>Test Combined Shipping<\/div>\r\n\r\n<\div> <\/div>\r\n\r\n<\div> <\/div>\r\n",
"catearr" : "&cid%5B%5D=",
"palletcount" : "",
"document" : null,
"description" : "",
"storeqty" : 0,
"is_refund" : 0
}],
"pending_count" : 12,
"total_balance_new" : 30,
"auctionioid" : 0,
"sharrow" : "noshow",
"isseller" : "1",
"listing_count" : 12,
"success" : true,
"sold_count" : 5,
"market_status_type" : "pending",
"conditionpop" : [
{
"condition" : "Shelf Pull",
"id" : 1,
"visible" : 1,
"content" : "Factory Sealed items."
},
{
"condition" : "New\/Other",
"id" : 2,
"visible" : 1,
"content" : "Open Box item, See Description for any Notes."
},
{
"condition" : "Used",
"id" : 3,
"visible" : 1,
"content" : "Shows Signs of Previous Use. See Description For Notes."
},
{
"condition" : "Uninspected Returns",
"id" : 4,
"visible" : 1,
"content" : "Item(s) have not been Inspected.. Lot is being sold as it was returned to retailer. Sold \"As Is\"."
},
{
"condition" : "Salvage (For Parts)",
"id" : 5,
"visible" : 1,
"content" : "Appears to be Non-Functional And\/or Missing Parts. Sold \"As is\"."
}
],
"userid" : "1245",
"active_count" : 0,
"action" : "pending",
"pagination" : 12,
"seller_balance" : "30.00"
}
View Pending Product View
This API allows Seller to Sell Similar.
1245 - This is UserID
98456069 - This is particular Auction.io ID
GET
https://api.auction.io/mobileapi/mylistings/pending/1245/98456069
Usage and Examples
curl --location --request GET "https://api.auction.io/mylistings/pending/1245/98456069"
var settings = {
"url": "https://api.auction.io/mylistings/pending/1245/98456069",
"method": "GET",
"timeout": 0,
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var http = require('http');
var options = {
'method': 'GET',
'hostname': 'api.auction.io',
'path': '/mylistings/pending/1245/98456069',
'headers': {
}
};
var req = http.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
req.end();
Headers
{
"key":"Content-Type","value":"multipart/form-data","enabled":true
}
Responses
Status: 202 - Success
{
"success" : true,
"protitle" : "Test Title",
"sharrow" : "noshow",
"sold_count" : 5,
"active_count" : 0,
"isseller" : "1",
"pagination" : 1,
"pid" : 4177,
"auctionionotes" : "Auction.io Notes",
"auctionioid" : "98456069",
"listing_count" : 1,
"userid" : "1245",
"action" : "pending",
"condition" : "Shelf Pull",
"market_status_type" : "pending",
"uid" : "1245",
"pending_count" : 12,
"pdt_images" : [
{
"image" : "https:\/\/s3-us-west-2.amazonaws.com\/myslibuy\/product\/e6433dbcfaed5051fed28c80ddd6a44a.jpeg",
"id" : 14240
},
{
"image" : "https:\/\/s3-us-west-2.amazonaws.com\/myslibuy\/product\/0e1a94a50e141135fa7dada18ea5107d.jpeg",
"id" : 14241
}
]
}
Update Pending Product
This API can be used to update the details of pending product of the Seller.
POST
https://api.auction.io/mobileapi/sellerupdateproject
Usage and Examples
curl --location --request POST "https://api.auction.io/mobileapi/sellerupdateproject" \
--header "Content-Type: application/json" \
--data "{\"auctionioid\": \"50082326\", \"inlineRadioOptions\": \"Used\", \"auctionionotes\": \"Auction.io Notes\", \"protitle\": \"Test Title\"}"
var settings = {
"url": "https://api.auction.io/mobileapi/sellerupdateproject",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
"data": "{\"auctionioid\": \"50082326\", \"inlineRadioOptions\": \"Used\", \"auctionionotes\": \"Auction.io Notes\", \"protitle\": \"Test Title\"}",
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var http = require('http');
var options = {
'method': 'POST',
'hostname': 'api.auction.io',
'path': '/mobileapi/sellerupdateproject',
'headers': {
'Content-Type': 'application/json'
}
};
var req = http.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
var postData = "{\"auctionioid\": \"50082326\", \"inlineRadioOptions\": \"Used\", \"auctionionotes\": \"Auction.io Notes\", \"protitle\": \"Test Title\"}";
req.write(postData);
req.end();
Headers
{
"key":"Content-Type","value":"multipart/form-data","enabled":true
}
Usage and Examples
Body parameters
Name
Description
userdetails
{
"auctionioid": "50082326",
"inlineRadioOptions": "Used",
"auctionionotes": "Auction.io Notes",
"protitle": "Test Title"
}
Responses
Status: 202 - Success
{
"auctionioid": "number",
"inlineRadioOptions": "string",
"auctionionotes": "string ",
"protitle": " string"
}
{
"status" : "success",
"auctionioid" : 50082326
}
Responses
Status: 302 - Error
{
"auctioniotype": "number",
"inlineRadioOptions": "string",
"auctionionotes": "string "
"protitle": " string"
}
{
"status" : "error",
"reason" : "This Auction.io id does not exist!"
}
Active Products List
This API can be used to fetch all the Active products of the Seller.
1245 - This is UserID
GET
https://api.auction.io/mobileapi/mylistings/active/1245
Usage and Examples
curl --location --request GET "https://api.auction.io/mobileapi/mylistings/active/1245"
var settings = {
"url": "https://api.auction.io/mobileapi/mylistings/active/1245",
"method": "GET",
"timeout": 0,
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var http = require('http');
var options = {
'method': 'GET',
'hostname': 'api.auction.io',
'path': '/mobileapi/mylistings/active/1245',
'headers': {
}
};
var req = http.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
req.end();
Headers
{
"key":"Content-Type","value":"multipart/form-data","enabled":true
}
Responses
Status: 202 - Success
{
"total_balance_new" : 30,
"userid" : "1245",
"mybids" : [
],
"pagination" : 0,
"pending_count" : 13,
"auctionioid" : 0,
"market_status_type" : "active",
"sharrow" : "noshow",
"action" : "active",
"conditionpop" : [
{
"visible" : 1,
"id" : 1,
"content" : "Factory Sealed items.",
"condition" : "Shelf Pull"
},
{
"visible" : 1,
"id" : 2,
"content" : "Open Box item, See Description for any Notes.",
"condition" : "New\/Other"
},
{
"visible" : 1,
"id" : 3,
"content" : "Shows Signs of Previous Use. See Description For Notes.",
"condition" : "Used"
},
{
"visible" : 1,
"id" : 4,
"content" : "Item(s) have not been Inspected.. Lot is being sold as it was returned to retailer. Sold \"As Is\".",
"condition" : "Uninspected Returns"
},
{
"visible" : 1,
"id" : 5,
"content" : "Appears to be Non-Functional And\/or Missing Parts. Sold \"As is\".",
"condition" : "Salvage (For Parts)"
}
],
"isseller" : "1",
"sold_count" : 5,
"seller_balance" : "30.00",
"listing_count" : 0,
"success" : true,
"active_count" : 0
}
Sold Products Listing
This API can be used to fetch all the Sold Products of the Seller.
1245 - This is UserID
GET
https://api.auction.io/mobileapi/mylistings/sold/1245
Usage and Examples
curl --location --request GET "https://api.auction.io/mobileapi/mylistings/sold/1245"
var settings = {
"url": "https://api.auction.io/mobileapi/mylistings/sold/1245",
"method": "GET",
"timeout": 0,
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var https = require('https');
var options = {
'method': 'GET',
'hostname': 'api.auction.io',
'path': '/mobileapi/mylistings/sold/1245',
'headers': {
}
};
var req = https.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
req.end();
Headers
{
"key":"Content-Type","value":"multipart/form-data","enabled":true
}
Responses
Status: 202 - Success
{
"action" : "sold",
"sold_count" : 5,
"total_balance_new" : 30,
"conditionpop" : [
{
"visible" : 1,
"content" : "Factory Sealed items.",
"id" : 1,
"condition" : "Shelf Pull"
},
{
"visible" : 1,
"content" : "Open Box item, See Description for any Notes.",
"id" : 2,
"condition" : "New\/Other"
},
{
"visible" : 1,
"content" : "Shows Signs of Previous Use. See Description For Notes.",
"id" : 3,
"condition" : "Used"
},
{
"visible" : 1,
"content" : "Item(s) have not been Inspected.. Lot is being sold as it was returned to retailer. Sold \"As Is\".",
"id" : 4,
"condition" : "Uninspected Returns"
},
{
"visible" : 1,
"content" : "Appears to be Non-Functional And\/or Missing Parts. Sold \"As is\".",
"id" : 5,
"condition" : "Salvage (For Parts)"
}
],
"listing_count" : 5,
"isseller" : "1",
"userid" : "1245",
"auctionioid" : 0,
"pagination" : 5,
"seller_balance" : "30.00",
"market_status_type" : "sold",
"success" : true,
"sharrow" : "noshow",
"mybids" : [
{
"extbidding" : "Test Combined Shipping<\/div>\r\n\r\n
<\/div>\r\n\r\n
<\/div>\r\n",
"qcdby" : "",
"tracking_number" : "",
"mixlotof" : "0",
"country" : null,
"auctionio" : 0,
"pid" : 3891,
"sold" : 0,
"day" : "0-8d:0-5h:0-10m:0-39s",
"duration" : 0,
"feature" : 0,
"time_level" : "",
"avatarorg" : "https:\/\/s3-us-west-2.amazonaws.com\/myslibuy\/product\/0d2348bddc71104fba94bf15e276b944.jpeg",
"notes" : "",
"date_add" : "April 10th, 2019",
"user_id" : 1245,
"auctionioid" : 69438818,
"shipping_price" : "0.00",
"content_head1" : "Payments",
"home_page_listing_fee" : 0,
"invite_people" : null,
"future" : 0,
"work_loc" : "sample",
"ptitle" : "Iiiiiiiiii",
"inventory_loc" : "TT",
"paymentmethod" : "[\"Cash (Local Pick-up)\"]",
"freightrequest" : 0,
"cashout_id" : null,
"shipping_description" : "",
"paypal_address" : "",
"isphotolive" : 0,
"market_status" : "sold",
"stime" : "March 5th, 2019",
"time" : 0,
"b_id" : 2405,
"bprice" : "0.00",
"modelnumber" : "",
"buy_date" : "2019-04-12T11:25:20.000Z",
"inventory_loc_user" : 1,
"trending_item" : 0,
"content_head4" : "Returns",
"budget_type" : null,
"sell_location" : "",
"is_digital" : 0,
"is_upclist" : 0,
"qty" : 1,
"manifests" : "",
"content_head3" : "Combined Shipping",
"show_avgprice" : 0,
"iprice" : "0.00",
"ptime" : "April 10th, 2019",
"lotof" : "",
"mprice" : "0.00",
"is_avatar" : 1,
"payments" : "
Test returns <\/div>\r\n",
"localpickup" : 0,
"multiple_category" : "75,81",
"is_relist" : 0,
"description" : "",
"hasshipping" : 1,
"avatar" : "0d2348bddc71104fba94bf15e276b944.jpeg",
"auctioniocondition" : "",
"size" : "",
"shippingcost" : "80.98",
"palletcount" : "",
"width" : 12,
"title" : "Iiiiiiiiii",
"ended_early" : 0,
"norefund" : "
Test terms and conditions<\/div>\r\n\r\n
<\/div>\r\n",
"dateFclosed" : "2019-04-10T06:37:48.000Z",
"cashout_status" : null,
"state" : null,
"amount" : 5,
"wprice" : "5.00",
"weight" : 50,
"length" : 25,
"inspectiontime" : "
<\/div>\r\n\r\n
Test Local Pick up<\/div>\r\n\r\n
<\/div>\r\n",
"remainingDay" : -619778588,
"image" : null,
"brand_name" : "",
"common_invoice" : 11096,
"old_loc" : ",",
"used_image_space" : 0,
"booked" : 0,
"file_name" : "0d2348bddc71104fba94bf15e276b944.jpeg",
"is_same_location" : 0,
"content_head2" : "Local Pick-up ",
"unsold_notes" : "",
"unitcount" : 0,
"date_closed" : "2019-04-10T06:37:48.000Z",
"rprice" : "5.00",
"listing_count" : 0,
"content_head5" : "Conditions",
"auctioniotype" : "storereturns",
"calctime" : "-8 days 19 h 50m",
"inventory_date" : "2019-04-10T04:55:42.000Z",
"date_close" : "April 10th, 2019",
"paid" : 1,
"buyerpremium" : "
Test Payment<\/p>\r\n",
"upc" : "",
"checkno" : null,
"show_mspr" : 0,
"seller_type" : 1,
"cronjob" : 1,
"finish" : "",
"buyer_id" : 1247,
"location" : "Shorewood, IL",
"is_refund" : 0,
"msrp" : 0,
"buy_date_new" : "April 12th, 2019",
"date_added" : "2019-03-05T06:01:13.000Z",
"shipnotavailable" : 0,
"buyerpremium_percentage" : 0,
"startprice" : "5",
"ctime" : "April 10th, 2019",
"closed" : "2019-04-10T06:37:48.000Z",
"status" : "sold",
"tags" : null,
"trending_pro_count" : 0,
"sprice" : "5.00",
"multiple_sub_category" : "",
"created_at" : null,
"catearr" : "&cid%5B%5D=75&cid%5B%5D=81",
"subcategory" : null,
"height" : 6,
"storeqty" : 0,
"document" : null,
"city" : "",
"buynow" : 0,
"auctionionotes" : "dfgfg",
"id" : 3891,
"category_id" : null,
"manufacturer" : "",
"wsprice" : "5.00",
"duration_type" : "D",
"conditionunique" : "Shelf Pull",
"updated_at" : null,
"content_head6" : "",
"cashout_amount" : 0
},
{
"extbidding" : "
Test Combined Shipping<\/div>\r\n\r\n
<\/div>\r\n\r\n
<\/div>\r\n",
"qcdby" : "",
"tracking_number" : "",
"mixlotof" : "0",
"country" : null,
"auctionio" : 0,
"pid" : 3890,
"sold" : 0,
"day" : "0-8d:0-5h:0-10m:0-35s",
"duration" : 0,
"feature" : 0,
"time_level" : "",
"avatarorg" : "https:\/\/s3-us-west-2.amazonaws.com\/myslibuy\/product\/50659c6d6afad2277ba0efa2b98d9d42.jpeg",
"notes" : "",
"date_add" : "April 10th, 2019",
"user_id" : 1245,
"auctionioid" : 77945353,
"shipping_price" : "0.00",
"content_head1" : "Payments",
"home_page_listing_fee" : 0,
"invite_people" : null,
"future" : 0,
"work_loc" : "sample",
"ptitle" : "Ttttttt",
"inventory_loc" : "TT",
"paymentmethod" : "[\"Cash (Local Pick-up)\"]",
"freightrequest" : 1,
"cashout_id" : null,
"shipping_description" : "",
"paypal_address" : "",
"isphotolive" : 0,
"market_status" : "sold",
"stime" : "March 4th, 2019",
"time" : 0,
"b_id" : 2406,
"bprice" : "0.00",
"modelnumber" : "",
"buy_date" : "2019-04-12T11:25:20.000Z",
"inventory_loc_user" : 1,
"trending_item" : 0,
"content_head4" : "Returns",
"budget_type" : null,
"sell_location" : "",
"is_digital" : 0,
"is_upclist" : 0,
"qty" : 1,
"manifests" : "",
"content_head3" : "Combined Shipping",
"show_avgprice" : 0,
"iprice" : "0.00",
"ptime" : "April 10th, 2019",
"lotof" : "0",
"mprice" : "0.00",
"is_avatar" : 1,
"payments" : "
Test returns <\/div>\r\n",
"localpickup" : 0,
"multiple_category" : "75",
"is_relist" : 0,
"description" : "",
"hasshipping" : 0,
"avatar" : "50659c6d6afad2277ba0efa2b98d9d42.jpeg",
"auctioniocondition" : "",
"size" : "",
"shippingcost" : "0",
"palletcount" : "",
"width" : 0,
"title" : "Ttttttt",
"ended_early" : 0,
"norefund" : "
Test terms and conditions<\/div>\r\n\r\n
<\/div>\r\n",
"dateFclosed" : "2019-04-10T06:37:52.000Z",
"cashout_status" : null,
"state" : null,
"amount" : 5,
"wprice" : "5.00",
"weight" : 0,
"length" : 0,
"inspectiontime" : "
<\/div>\r\n\r\n
Test Local Pick up<\/div>\r\n\r\n
<\/div>\r\n",
"remainingDay" : -619774589,
"image" : null,
"brand_name" : "",
"common_invoice" : 11096,
"old_loc" : ",",
"used_image_space" : 0,
"booked" : 0,
"file_name" : "50659c6d6afad2277ba0efa2b98d9d42.jpeg",
"is_same_location" : 0,
"content_head2" : "Local Pick-up ",
"unsold_notes" : "",
"unitcount" : 0,
"date_closed" : "2019-04-10T06:37:52.000Z",
"rprice" : "5.00",
"listing_count" : 0,
"content_head5" : "Conditions",
"auctioniotype" : "storereturns",
"calctime" : "-8 days 19 h 50m",
"inventory_date" : "2019-04-10T04:55:42.000Z",
"date_close" : "April 10th, 2019",
"paid" : 1,
"buyerpremium" : "
Test Payment<\/p>\r\n",
"upc" : "",
"checkno" : null,
"show_mspr" : 0,
"seller_type" : 1,
"cronjob" : 1,
"finish" : "",
"buyer_id" : 1247,
"location" : "",
"is_refund" : 0,
"msrp" : 0,
"buy_date_new" : "April 12th, 2019",
"date_added" : "2019-03-05T05:54:34.000Z",
"shipnotavailable" : 0,
"buyerpremium_percentage" : 0,
"startprice" : "5",
"ctime" : "April 10th, 2019",
"closed" : "2019-04-10T06:37:52.000Z",
"status" : "sold",
"tags" : null,
"trending_pro_count" : 0,
"sprice" : "5.00",
"multiple_sub_category" : "",
"created_at" : null,
"catearr" : "&cid%5B%5D=75",
"subcategory" : null,
"height" : 0,
"storeqty" : 0,
"document" : null,
"city" : "",
"buynow" : 0,
"auctionionotes" : "",
"id" : 3890,
"category_id" : null,
"manufacturer" : "",
"wsprice" : "5.00",
"duration_type" : "D",
"conditionunique" : "Shelf Pull",
"updated_at" : null,
"content_head6" : "",
"cashout_amount" : 0
},
{
"extbidding" : "
Test Combined Shipping<\/div>\r\n\r\n
<\/div>\r\n\r\n
<\/div>\r\n",
"qcdby" : "",
"tracking_number" : "",
"mixlotof" : "0",
"country" : null,
"auctionio" : 0,
"pid" : 3889,
"sold" : 0,
"day" : "0-8d:0-3h:0-43m:0-55s",
"duration" : 0,
"feature" : 0,
"time_level" : "",
"avatarorg" : "https:\/\/s3-us-west-2.amazonaws.com\/myslibuy\/product\/0a70b686cdfabf1d4e898b6f718096ce.jpeg",
"notes" : "",
"date_add" : "April 10th, 2019",
"user_id" : 1245,
"auctionioid" : 64421107,
"shipping_price" : "0.00",
"content_head1" : "Payments",
"home_page_listing_fee" : 0,
"invite_people" : null,
"future" : 0,
"work_loc" : "sample",
"ptitle" : "Dfdsfsdfdf",
"inventory_loc" : "TT",
"paymentmethod" : "[\"Cash (Local Pick-up)\"]",
"freightrequest" : 1,
"cashout_id" : null,
"shipping_description" : "",
"paypal_address" : "",
"isphotolive" : 0,
"market_status" : "sold",
"stime" : "March 4th, 2019",
"time" : 0,
"b_id" : 2413,
"bprice" : "0.00",
"modelnumber" : "",
"buy_date" : "2019-04-10T08:16:10.000Z",
"inventory_loc_user" : 1,
"trending_item" : 0,
"content_head4" : "Returns",
"budget_type" : null,
"sell_location" : "",
"is_digital" : 0,
"is_upclist" : 0,
"qty" : 1,
"manifests" : "",
"content_head3" : "Combined Shipping",
"show_avgprice" : 0,
"iprice" : "0.00",
"ptime" : "April 10th, 2019",
"lotof" : "0",
"mprice" : "0.00",
"is_avatar" : 1,
"payments" : "
Test returns <\/div>\r\n",
"localpickup" : 0,
"multiple_category" : "75",
"is_relist" : 0,
"description" : "",
"hasshipping" : 0,
"avatar" : "0a70b686cdfabf1d4e898b6f718096ce.jpeg",
"auctioniocondition" : "",
"size" : "",
"shippingcost" : "0",
"palletcount" : "",
"width" : 0,
"title" : "Dfdsfsdfdf",
"ended_early" : 0,
"norefund" : "
Test terms and conditions<\/div>\r\n\r\n
<\/div>\r\n",
"dateFclosed" : "2019-04-10T08:04:32.000Z",
"cashout_status" : null,
"state" : null,
"amount" : 10,
"wprice" : "10.00",
"weight" : 0,
"length" : 0,
"inspectiontime" : "
<\/div>\r\n\r\n
Test Local Pick up<\/div>\r\n\r\n
<\/div>\r\n",
"remainingDay" : -614574589,
"image" : null,
"brand_name" : "",
"common_invoice" : 11099,
"old_loc" : ",",
"used_image_space" : 0,
"booked" : 0,
"file_name" : "0a70b686cdfabf1d4e898b6f718096ce.jpeg",
"is_same_location" : 0,
"content_head2" : "Local Pick-up ",
"unsold_notes" : "",
"unitcount" : 0,
"date_closed" : "2019-04-10T08:04:32.000Z",
"rprice" : "5.00",
"listing_count" : 0,
"content_head5" : "Conditions",
"auctioniotype" : "storereturns",
"calctime" : "-8 days 21 h 17m",
"inventory_date" : "2019-04-10T04:56:37.000Z",
"date_close" : "April 10th, 2019",
"paid" : 1,
"buyerpremium" : "
Test Payment<\/p>\r\n",
"upc" : "",
"checkno" : null,
"show_mspr" : 0,
"seller_type" : 1,
"cronjob" : 1,
"finish" : "",
"buyer_id" : 1247,
"location" : "",
"is_refund" : 0,
"msrp" : 0,
"buy_date_new" : "April 10th, 2019",
"date_added" : "2019-03-04T10:04:55.000Z",
"shipnotavailable" : 0,
"buyerpremium_percentage" : 0,
"startprice" : "5",
"ctime" : "April 10th, 2019",
"closed" : "2019-04-10T08:04:32.000Z",
"status" : "sold",
"tags" : null,
"trending_pro_count" : 0,
"sprice" : "5.00",
"multiple_sub_category" : "",
"created_at" : null,
"catearr" : "&cid%5B%5D=75",
"subcategory" : null,
"height" : 0,
"storeqty" : 0,
"document" : null,
"city" : "",
"buynow" : 0,
"auctionionotes" : "123455",
"id" : 3889,
"category_id" : null,
"manufacturer" : "",
"wsprice" : "10.00",
"duration_type" : "D",
"conditionunique" : "Salvage (For Parts)",
"updated_at" : null,
"content_head6" : "",
"cashout_amount" : 0
},
{
"extbidding" : "
Test Combined Shipping<\/div>\r\n\r\n
<\/div>\r\n\r\n
<\/div>\r\n",
"qcdby" : "",
"tracking_number" : "",
"mixlotof" : "0",
"country" : null,
"auctionio" : 0,
"pid" : 3887,
"sold" : 0,
"day" : "0-8d:00h:0-43m:0-6s",
"duration" : 0,
"feature" : 0,
"time_level" : "",
"avatarorg" : "https:\/\/s3-us-west-2.amazonaws.com\/myslibuy\/product\/93193cbdfc8fb709957109658e3dc8a1.jpeg",
"notes" : "",
"date_add" : "April 9th, 2019",
"user_id" : 1245,
"auctionioid" : 78392194,
"shipping_price" : "0.00",
"content_head1" : "Payments",
"home_page_listing_fee" : 0,
"invite_people" : null,
"future" : 0,
"work_loc" : "sample",
"ptitle" : "samplemich300 Title 1",
"inventory_loc" : "DR",
"paymentmethod" : "[\"Cash (Local Pick-up)\"]",
"freightrequest" : 1,
"cashout_id" : null,
"shipping_description" : "",
"paypal_address" : "",
"isphotolive" : 0,
"market_status" : "sold",
"stime" : "March 4th, 2019",
"time" : 0,
"b_id" : 2390,
"bprice" : "0.00",
"modelnumber" : "",
"buy_date" : "2019-04-09T11:09:15.000Z",
"inventory_loc_user" : 1,
"trending_item" : 0,
"content_head4" : "Returns",
"budget_type" : null,
"sell_location" : "",
"is_digital" : 0,
"is_upclist" : 0,
"qty" : 1,
"manifests" : "",
"content_head3" : "Combined Shipping",
"show_avgprice" : 0,
"iprice" : "0.00",
"ptime" : "April 9th, 2019",
"lotof" : "",
"mprice" : "0.00",
"is_avatar" : 1,
"payments" : "
Test returns <\/div>\r\n",
"localpickup" : 0,
"multiple_category" : "75,81",
"is_relist" : 0,
"description" : "",
"hasshipping" : 0,
"avatar" : "93193cbdfc8fb709957109658e3dc8a1.jpeg",
"auctioniocondition" : "",
"size" : "",
"shippingcost" : "0",
"palletcount" : "",
"width" : 0,
"title" : "samplemich300 Title 1",
"ended_early" : 0,
"norefund" : "
Test terms and conditions<\/div>\r\n\r\n
<\/div>\r\n",
"dateFclosed" : "2019-04-09T11:05:21.000Z",
"cashout_status" : null,
"state" : null,
"amount" : 5,
"wprice" : "5.00",
"weight" : 0,
"length" : 0,
"inspectiontime" : "
<\/div>\r\n\r\n
Test Local Pick up<\/div>\r\n\r\n
<\/div>\r\n",
"remainingDay" : -690125589,
"image" : null,
"brand_name" : "",
"common_invoice" : 11091,
"old_loc" : ",",
"used_image_space" : 0,
"booked" : 0,
"file_name" : "93193cbdfc8fb709957109658e3dc8a1.jpeg",
"is_same_location" : 0,
"content_head2" : "Local Pick-up ",
"unsold_notes" : "",
"unitcount" : 0,
"date_closed" : "2019-04-09T11:05:21.000Z",
"rprice" : "5.00",
"listing_count" : 0,
"content_head5" : "Conditions",
"auctioniotype" : "storereturns",
"calctime" : "-8 days 0 h 17m",
"inventory_date" : "2019-04-09T10:12:33.000Z",
"date_close" : "April 9th, 2019",
"paid" : 1,
"buyerpremium" : "
Test Payment<\/p>\r\n",
"upc" : "",
"checkno" : null,
"show_mspr" : 0,
"seller_type" : 1,
"cronjob" : 1,
"finish" : "",
"buyer_id" : 1247,
"location" : "Shorewood, IL",
"is_refund" : 0,
"msrp" : 0,
"buy_date_new" : "April 9th, 2019",
"date_added" : "2019-03-04T08:20:50.000Z",
"shipnotavailable" : 0,
"buyerpremium_percentage" : 0,
"startprice" : "5",
"ctime" : "April 9th, 2019",
"closed" : "2019-04-09T11:05:21.000Z",
"status" : "sold",
"tags" : null,
"trending_pro_count" : 0,
"sprice" : "5.00",
"multiple_sub_category" : "",
"created_at" : null,
"catearr" : "&cid%5B%5D=75&cid%5B%5D=81",
"subcategory" : null,
"height" : 0,
"storeqty" : 0,
"document" : null,
"city" : "",
"buynow" : 0,
"auctionionotes" : "",
"id" : 3887,
"category_id" : null,
"manufacturer" : "",
"wsprice" : "5.00",
"duration_type" : "D",
"conditionunique" : "Shelf Pull",
"updated_at" : null,
"content_head6" : "",
"cashout_amount" : 0
},
{
"extbidding" : "
Test Combined Shipping<\/div>\r\n\r\n
<\/div>\r\n\r\n
<\/div>\r\n",
"qcdby" : "",
"tracking_number" : "",
"mixlotof" : "0",
"country" : null,
"auctionio" : 0,
"pid" : 3864,
"sold" : 0,
"day" : "0-8d:0-23h:0-55m:0-3s",
"duration" : 0,
"date_add" : "April 9th, 2019",
"feature" : 0,
"time_level" : "",
"avatarorg" : "https:\/\/s3-us-west-2.amazonaws.com\/myslibuy\/product\/cd711060f07a8ddc91bcd770d41f067b.jpeg",
"notes" : "",
"user_id" : 1245,
"auctionioid" : 64237684,
"shipping_price" : "0.00",
"content_head1" : "Payments",
"home_page_listing_fee" : 0,
"invite_people" : null,
"future" : 0,
"work_loc" : "sample",
"ptitle" : "Dsfsdf",
"inventory_loc" : "DRR",
"paymentmethod" : "[\"Cash (Local Pick-up)\"]",
"freightrequest" : 0,
"cashout_id" : null,
"shipping_description" : "",
"paypal_address" : "",
"isphotolive" : 0,
"market_status" : "sold",
"stime" : "February 28th, 2019",
"time" : 0,
"b_id" : 2401,
"bprice" : "0.00",
"modelnumber" : "",
"buy_date" : "2019-04-09T11:59:22.000Z",
"inventory_loc_user" : 1,
"trending_item" : 0,
"content_head4" : "Returns",
"budget_type" : null,
"sell_location" : "",
"is_digital" : 0,
"is_upclist" : 0,
"qty" : 1,
"manifests" : "",
"content_head3" : "Combined Shipping",
"show_avgprice" : 0,
"iprice" : "0.00",
"ptime" : "April 9th, 2019",
"lotof" : "",
"mprice" : "0.00",
"is_relist" : 0,
"payments" : "
Test returns <\/div>\r\n",
"is_avatar" : 1,
"localpickup" : 0,
"multiple_category" : "81,82",
"description" : "",
"hasshipping" : 1,
"avatar" : "cd711060f07a8ddc91bcd770d41f067b.jpeg",
"auctioniocondition" : "",
"size" : "",
"shippingcost" : "74.63",
"width" : 10,
"palletcount" : "",
"title" : "Dsfsdf",
"ended_early" : 0,
"norefund" : "
Test terms and conditions<\/div>\r\n\r\n
<\/div>\r\n",
"dateFclosed" : "2019-04-09T11:53:24.000Z",
"cashout_status" : null,
"state" : null,
"amount" : 5,
"wprice" : "5.00",
"weight" : 40,
"length" : 20,
"remainingDay" : -687242589,
"inspectiontime" : "
<\/div>\r\n\r\n
Test Local Pick up<\/div>\r\n\r\n
<\/div>\r\n",
"image" : null,
"brand_name" : "",
"common_invoice" : 11094,
"old_loc" : ",",
"used_image_space" : 0,
"booked" : 0,
"file_name" : "cd711060f07a8ddc91bcd770d41f067b.jpeg",
"is_same_location" : 0,
"content_head2" : "Local Pick-up ",
"unsold_notes" : "",
"unitcount" : 0,
"date_closed" : "2019-04-09T11:53:24.000Z",
"listing_count" : 0,
"rprice" : "5.00",
"content_head5" : "Conditions",
"auctioniotype" : "storereturns",
"calctime" : "-8 days 1 h 5m",
"inventory_date" : "2019-04-09T11:50:29.000Z",
"date_close" : "April 9th, 2019",
"paid" : 1,
"buyerpremium" : "
Test Payment<\/p>\r\n",
"upc" : "",
"checkno" : null,
"show_mspr" : 0,
"seller_type" : 1,
"cronjob" : 1,
"finish" : "",
"buyer_id" : 1215,
"location" : "Shorewood, IL",
"is_refund" : 0,
"buy_date_new" : "April 9th, 2019",
"msrp" : 0,
"shipnotavailable" : 0,
"date_added" : "2019-03-01T05:25:21.000Z",
"buyerpremium_percentage" : 0,
"startprice" : "5",
"ctime" : "April 9th, 2019",
"closed" : "2019-04-09T11:53:24.000Z",
"status" : "sold",
"tags" : null,
"trending_pro_count" : 0,
"multiple_sub_category" : "",
"sprice" : "5.00",
"created_at" : null,
"catearr" : "&cid%5B%5D=81&cid%5B%5D=82",
"subcategory" : null,
"height" : 5,
"storeqty" : 0,
"document" : null,
"city" : "",
"auctionionotes" : "dfdsfdsf",
"buynow" : 0,
"id" : 3864,
"category_id" : null,
"manufacturer" : "",
"wsprice" : "5.00",
"duration_type" : "D",
"conditionunique" : "New\/Other",
"updated_at" : null,
"content_head6" : "",
"cashout_amount" : 0
}
],
"active_count" : 0,
"pending_count" : 13
}
View Balance
This API can br used to fetch the Balance amount, Available amount and On Hold amount of the seller.
1245 - This is UserID
GET
https://api.auction.io/mobileapi/sellers-account/1245
Usage and Examples
curl --location --request GET "https://api.auction.io/mobileapi/sellers-account/1245"
var settings = {
"url": "https://api.auction.io/mobileapi/sellers-account/1245",
"method": "GET",
"timeout": 0,
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var http = require('http');
var options = {
'method': 'GET',
'hostname': 'api.auction.io',
'path': '/mobileapi/sellers-account/1245',
'headers': {
}
};
var req = http.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
req.end();
Headers
{
"key":"Content-Type","value":"multipart/form-data","enabled":true
}
Responses
Status: 202 - Success
{
"total_pending" : "10.00",
"total_available" : "20.00",
"userid" : "1245",
"admin_side" : "0",
"isseller" : "1",
"active_count" : 0,
"status" : "success",
"sold_count" : 5,
"byddpage" : "subu10",
"total_balance_new" : 30,
"pending_count" : 13,
"total_balance" : "30.00",
"mycashout" : [
],
"uid" : "1245"
}
Cashout List
This API list out the products paid by the Buyer after 7 days from the paid date to make a Cashout request.
1245 - This is UserID
GET
https://api.auction.io/mobileapi/cashout/1245
Usage and Examples
curl --location --request GET "https://api.auction.io/mobileapi/cashout/1245"
var settings = {
"url": "https://api.auction.io/mobileapi/cashout/1245",
"method": "GET",
"timeout": 0,
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var http = require('http');
var options = {
'method': 'GET',
'hostname': 'api.auction.io',
'path': '/mobileapi/cashout/1245',
'headers': {
}
};
var req = http.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
req.end();
Headers
{
"key":"Content-Type","value":"multipart/form-data","enabled":true
}
Responses
Status: 202 - Success
{
"total_flatfee" : "15.00",
"mybids" : [
{
"tags" : null,
"manufacturer" : "",
"user_id" : 1245,
"qcdby" : "",
"upc" : "",
"updated_at" : null,
"future" : 0,
"shipping_description" : "",
"mprice" : "0.00",
"ptitle" : "Dfdsfsdfdf",
"height" : 0,
"old_loc" : ",",
"finish" : "",
"paymentmethod" : "[\"Cash (Local Pick-up)\"]",
"content_head6" : "",
"unitcount" : 0,
"checkno" : null,
"paypal_address" : "",
"stime" : "March 4th, 2019",
"lotof" : "0",
"cashout_amount" : 0,
"status" : "sold",
"shipnotavailable" : 0,
"inventory_loc" : "TT",
"amount" : 10,
"rprice" : "5.00",
"sell_location" : "",
"show_avgprice" : 0,
"paid" : 1,
"date_close" : "April 10th, 2019",
"location" : "",
"pid" : 3889,
"hasshipping" : 0,
"sold" : 0,
"state" : null,
"calctime" : "-8 days 21 h 10m",
"weight" : 0,
"duration" : 0,
"width" : 0,
"ended_early" : 0,
"auctionionotes" : "123455",
"startprice" : "5",
"is_digital" : 0,
"palletcount" : "",
"created_at" : null,
"catearr" : "&cid%5B%5D=75",
"modelnumber" : "",
"duration_type" : "D",
"auctioniocondition" : "",
"auctionioid" : 64421107,
"buyer_id" : 1247,
"brand_name" : "",
"content_head5" : "Conditions",
"avatar" : "0a70b686cdfabf1d4e898b6f718096ce.jpeg",
"buynow" : 0,
"is_upclist" : 0,
"content_head1" : "Payments",
"time_level" : "",
"home_page_listing_fee" : 0,
"title" : "Dfdsfsdfdf",
"wprice" : "10.00",
"date_closed" : "2019-04-10T08:04:32.000Z",
"manifests" : "",
"booked" : 0,
"shipping_price" : "0.00",
"length" : 0,
"file_name" : "0a70b686cdfabf1d4e898b6f718096ce.jpeg",
"seller_type" : 1,
"multiple_category" : "75",
"avatarorg" : "https:\/\/s3-us-west-2.amazonaws.com\/myslibuy\/product\/0a70b686cdfabf1d4e898b6f718096ce.jpeg",
"content_head3" : "Combined Shipping",
"id" : 3889,
"used_image_space" : 0,
"remainingDay" : -614948964,
"cashout_id" : null,
"category_id" : null,
"inspectiontime" : " <\/div>\r\n\r\n
Test Local Pick up<\/div>\r\n\r\n
<\/div>\r\n",
"trending_pro_count" : 0,
"conditionunique" : "Salvage (For Parts)",
"content_head2" : "Local Pick-up ",
"is_same_location" : 0,
"date_add" : "April 10th, 2019",
"listing_count" : 0,
"shippingcost" : "0",
"city" : "",
"freightrequest" : 1,
"buyerpremium_percentage" : 0,
"invite_people" : null,
"notes" : "",
"sprice" : "5.00",
"auctioniotype" : "storereturns",
"is_relist" : 0,
"tracking_number" : "",
"multiple_sub_category" : "",
"country" : null,
"is_refund" : 0,
"payments" : "
Test returns <\/div>\r\n",
"date_added" : "2019-03-04T10:04:55.000Z",
"qty" : 1,
"msrp" : 0,
"closed" : "2019-04-10T08:04:32.000Z",
"budget_type" : null,
"unsold_notes" : "",
"cashout_status" : null,
"wsprice" : "10.00",
"b_id" : 2413,
"ctime" : "April 10th, 2019",
"inventory_date" : "2019-04-10T04:56:37.000Z",
"ptime" : "April 10th, 2019",
"buyerpremium" : "
Test Payment<\/p>\r\n",
"show_mspr" : 0,
"buy_date" : "2019-04-10T08:16:10.000Z",
"trending_item" : 0,
"work_loc" : "sample",
"isphotolive" : 0,
"is_avatar" : 1,
"inventory_loc_user" : 1,
"common_invoice" : 11099,
"iprice" : "0.00",
"localpickup" : 0,
"cronjob" : 1,
"description" : "",
"mixlotof" : "0",
"day" : "0-8d:0-3h:0-50m:0-9s",
"extbidding" : "
Test Combined Shipping<\/div>\r\n\r\n
<\/div>\r\n\r\n
<\/div>\r\n",
"feature" : 0,
"wth_status" : "
<\/span>",
"dateFclosed" : "2019-04-10T08:04:32.000Z",
"document" : null,
"bprice" : "0.00",
"auctionio" : 0,
"norefund" : "Test terms and conditions<\/div>\r\n\r\n
<\/div>\r\n",
"market_status" : "sold",
"subcategory" : null,
"content_head4" : "Returns",
"time" : 0,
"size" : "",
"storeqty" : 0,
"image" : null
},
{
"home_page_listing_fee" : 0,
"height" : 0,
"title" : "samplemich300 Title 1",
"unitcount" : 0,
"norefund" : "
Test terms and conditions<\/div>\r\n\r\n
<\/div>\r\n",
"pid" : 3887,
"date_added" : "2019-03-04T08:20:50.000Z",
"description" : "",
"is_refund" : 0,
"paymentmethod" : "[\"Cash (Local Pick-up)\"]",
"multiple_sub_category" : "",
"day" : "0-8d:00h:0-49m:0-20s",
"is_digital" : 0,
"cashout_status" : null,
"auctioniotype" : "storereturns",
"manufacturer" : "",
"auctionioid" : 78392194,
"subcategory" : null,
"tracking_number" : "",
"extbidding" : "
Test Combined Shipping<\/div>\r\n\r\n
<\/div>\r\n\r\n
<\/div>\r\n",
"msrp" : 0,
"inventory_loc" : "DR",
"listing_count" : 0,
"paid" : 1,
"status" : "sold",
"is_avatar" : 1,
"show_mspr" : 0,
"invite_people" : null,
"document" : null,
"time_level" : "",
"localpickup" : 0,
"ptime" : "April 9th, 2019",
"market_status" : "sold",
"multiple_category" : "75,81",
"size" : "",
"width" : 0,
"trending_pro_count" : 0,
"qcdby" : "",
"used_image_space" : 0,
"freightrequest" : 1,
"cashout_amount" : 0,
"updated_at" : null,
"inventory_date" : "2019-04-09T10:12:33.000Z",
"is_relist" : 0,
"rprice" : "5.00",
"content_head1" : "Payments",
"sold" : 0,
"shippingcost" : "0",
"manifests" : "",
"iprice" : "0.00",
"content_head6" : "",
"catearr" : "&cid%5B%5D=75&cid%5B%5D=81",
"calctime" : "-8 days 0 h 11m",
"time" : 0,
"isphotolive" : 0,
"seller_type" : 1,
"file_name" : "93193cbdfc8fb709957109658e3dc8a1.jpeg",
"created_at" : null,
"upc" : "",
"unsold_notes" : "",
"date_add" : "April 9th, 2019",
"content_head5" : "Conditions",
"content_head4" : "Returns",
"duration_type" : "D",
"buyerpremium" : "
Test Payment<\/p>\r\n",
"brand_name" : "",
"finish" : "",
"mprice" : "0.00",
"ptitle" : "samplemich300 Title 1",
"remainingDay" : -690499964,
"modelnumber" : "",
"tags" : null,
"ended_early" : 0,
"id" : 3887,
"buy_date" : "2019-04-09T11:09:15.000Z",
"mixlotof" : "0",
"wprice" : "5.00",
"location" : "Shorewood, IL",
"image" : null,
"buyerpremium_percentage" : 0,
"sell_location" : "",
"dateFclosed" : "2019-04-09T11:05:21.000Z",
"city" : "",
"closed" : "2019-04-09T11:05:21.000Z",
"is_upclist" : 0,
"date_close" : "April 9th, 2019",
"qty" : 1,
"b_id" : 2390,
"shipnotavailable" : 0,
"content_head3" : "Combined Shipping",
"lotof" : "",
"is_same_location" : 0,
"state" : null,
"booked" : 0,
"conditionunique" : "Shelf Pull",
"work_loc" : "sample",
"inventory_loc_user" : 1,
"ctime" : "April 9th, 2019",
"payments" : "
Test returns <\/div>\r\n",
"auctioniocondition" : "",
"content_head2" : "Local Pick-up ",
"stime" : "March 4th, 2019",
"shipping_price" : "0.00",
"notes" : "",
"buyer_id" : 1247,
"feature" : 0,
"buynow" : 0,
"bprice" : "0.00",
"user_id" : 1245,
"show_avgprice" : 0,
"country" : null,
"storeqty" : 0,
"budget_type" : null,
"hasshipping" : 0,
"old_loc" : ",",
"auctionio" : 0,
"avatar" : "93193cbdfc8fb709957109658e3dc8a1.jpeg",
"common_invoice" : 11091,
"palletcount" : "",
"duration" : 0,
"startprice" : "5",
"amount" : 5,
"cashout_id" : null,
"paypal_address" : "",
"shipping_description" : "",
"avatarorg" : "https:\/\/s3-us-west-2.amazonaws.com\/myslibuy\/product\/93193cbdfc8fb709957109658e3dc8a1.jpeg",
"weight" : 0,
"wth_status" : "
<\/span>",
"trending_item" : 0,
"inspectiontime" : " <\/div>\r\n\r\n
Test Local Pick up<\/div>\r\n\r\n
<\/div>\r\n",
"wsprice" : "5.00",
"date_closed" : "2019-04-09T11:05:21.000Z",
"future" : 0,
"checkno" : null,
"cronjob" : 1,
"sprice" : "5.00",
"length" : 0,
"category_id" : null,
"auctionionotes" : ""
},
{
"home_page_listing_fee" : 0,
"height" : 5,
"title" : "Dsfsdf",
"unitcount" : 0,
"norefund" : "
Test terms and conditions<\/div>\r\n\r\n
<\/div>\r\n",
"pid" : 3864,
"date_added" : "2019-03-01T05:25:21.000Z",
"description" : "",
"is_refund" : 0,
"paymentmethod" : "[\"Cash (Local Pick-up)\"]",
"multiple_sub_category" : "",
"day" : "0-8d:00h:0-1m:0-17s",
"is_digital" : 0,
"cashout_status" : null,
"auctioniotype" : "storereturns",
"manufacturer" : "",
"auctionioid" : 64237684,
"subcategory" : null,
"tracking_number" : "",
"extbidding" : "
Test Combined Shipping<\/div>\r\n\r\n
<\/div>\r\n\r\n
<\/div>\r\n",
"msrp" : 0,
"inventory_loc" : "DRR",
"listing_count" : 0,
"paid" : 1,
"status" : "sold",
"is_avatar" : 1,
"show_mspr" : 0,
"invite_people" : null,
"document" : null,
"time_level" : "",
"localpickup" : 0,
"ptime" : "April 9th, 2019",
"market_status" : "sold",
"multiple_category" : "81,82",
"size" : "",
"width" : 10,
"trending_pro_count" : 0,
"qcdby" : "",
"used_image_space" : 0,
"freightrequest" : 0,
"cashout_amount" : 0,
"updated_at" : null,
"inventory_date" : "2019-04-09T11:50:29.000Z",
"is_relist" : 0,
"rprice" : "5.00",
"content_head1" : "Payments",
"sold" : 0,
"shippingcost" : "74.63",
"manifests" : "",
"iprice" : "0.00",
"content_head6" : "",
"catearr" : "&cid%5B%5D=81&cid%5B%5D=82",
"calctime" : "-8 days 0 h 59m",
"time" : 0,
"isphotolive" : 0,
"seller_type" : 1,
"file_name" : "cd711060f07a8ddc91bcd770d41f067b.jpeg",
"created_at" : null,
"upc" : "",
"unsold_notes" : "",
"date_add" : "April 9th, 2019",
"content_head5" : "Conditions",
"content_head4" : "Returns",
"duration_type" : "D",
"buyerpremium" : "
Test Payment<\/p>\r\n",
"brand_name" : "",
"finish" : "",
"mprice" : "0.00",
"ptitle" : "Dsfsdf",
"remainingDay" : -687616964,
"modelnumber" : "",
"tags" : null,
"ended_early" : 0,
"id" : 3864,
"buy_date" : "2019-04-09T11:59:22.000Z",
"mixlotof" : "0",
"wprice" : "5.00",
"location" : "Shorewood, IL",
"image" : null,
"buyerpremium_percentage" : 0,
"sell_location" : "",
"dateFclosed" : "2019-04-09T11:53:24.000Z",
"city" : "",
"closed" : "2019-04-09T11:53:24.000Z",
"is_upclist" : 0,
"date_close" : "April 9th, 2019",
"qty" : 1,
"b_id" : 2401,
"shipnotavailable" : 0,
"content_head3" : "Combined Shipping",
"lotof" : "",
"is_same_location" : 0,
"state" : null,
"booked" : 0,
"conditionunique" : "New\/Other",
"work_loc" : "sample",
"inventory_loc_user" : 1,
"ctime" : "April 9th, 2019",
"payments" : "
Test returns <\/div>\r\n",
"auctioniocondition" : "",
"content_head2" : "Local Pick-up ",
"stime" : "February 28th, 2019",
"shipping_price" : "0.00",
"notes" : "",
"buyer_id" : 1215,
"feature" : 0,
"buynow" : 0,
"bprice" : "0.00",
"user_id" : 1245,
"show_avgprice" : 0,
"country" : null,
"storeqty" : 0,
"budget_type" : null,
"hasshipping" : 1,
"old_loc" : ",",
"auctionio" : 0,
"avatar" : "cd711060f07a8ddc91bcd770d41f067b.jpeg",
"common_invoice" : 11094,
"palletcount" : "",
"duration" : 0,
"startprice" : "5",
"amount" : 5,
"cashout_id" : null,
"paypal_address" : "",
"shipping_description" : "",
"avatarorg" : "https:\/\/s3-us-west-2.amazonaws.com\/myslibuy\/product\/cd711060f07a8ddc91bcd770d41f067b.jpeg",
"weight" : 40,
"wth_status" : "
<\/span>",
"trending_item" : 0,
"inspectiontime" : " <\/div>\r\n\r\n
Test Local Pick up<\/div>\r\n\r\n
<\/div>\r\n",
"wsprice" : "5.00",
"date_closed" : "2019-04-09T11:53:24.000Z",
"future" : 0,
"checkno" : null,
"cronjob" : 1,
"sprice" : "5.00",
"length" : 20,
"category_id" : null,
"auctionionotes" : "dfdsfdsf"
}
],
"status" : "success",
"total_commission" : "2.00",
"pending_count" : 13,
"admin_side" : "0",
"total_amount" : "20.00",
"sold_count" : 5,
"userid" : "1245",
"myshipping" : {
"companyname" : "DSLLC",
"country" : "United States",
"phone" : "",
"address" : "Street Address, Apt, Suite",
"zipcode" : "54543",
"id" : 980,
"address1" : "",
"is_default" : 0,
"email" : "sample+300@auction.io",
"user_id" : 1245,
"first_name" : "sample",
"state" : "Texas",
"city" : "Dallas",
"last_name" : "Michael"
},
"byddpage" : "subu10",
"isseller" : "1",
"mypids" : [
3889,
3887,
3864
],
"active_count" : 0,
"uid" : "1245",
"total_cashout" : "3.00"
}
Cashout
This API allows sellers to make a cashout request to the admin.
POST
https://api.auction.io/mobileapi/cashout
Usage and Examples
curl --location --request POST "https://api.auction.io/mobileapi/cashout" \
--header "Content-Type: application/json" \
--data "{
\"total_flatfee\" : \"15.00\",
\"sellerid\" : \"1245\",
\"zipcode\" : \"54543\",
\"total_amount\" : \"20.00\",
\"email\" : \"sample+300@auction.io\",
\"mypids\" : \"3889,3887,3864\",
\"payemail\" : \"\",
\"address\" : \"Street Address, Apt, Suite\",
\"total_cashout\" : \"3.00\",
\"optionsRadios\" : \"checkemail\",
\"uname\" : \"sampleMich300\",
\"type_val\" : 2,
\"address1\" : \"\",
\"total_commission\" : \"2.00\",
\"state\" : \"Texas\",
\"uid\" : \"1245\",
\"city\" : \"Dallas\"
}"
var settings = {
"url": "https://api.auction.io/mobileapi/cashout",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/json"
},
"data": "{\n \"total_flatfee\" : \"15.00\",\n \"sellerid\" : \"1245\",\n \"zipcode\" : \"54543\",\n \"total_amount\" : \"20.00\",\n \"email\" : \"sample+300@auction.io\",\n \"mypids\" : \"3889,3887,3864\",\n \"payemail\" : \"\",\n \"address\" : \"Street Address, Apt, Suite\",\n \"total_cashout\" : \"3.00\",\n \"optionsRadios\" : \"checkemail\",\n \"uname\" : \"sampleMich300\",\n \"type_val\" : 2,\n \"address1\" : \"\",\n \"total_commission\" : \"2.00\",\n \"state\" : \"Texas\",\n \"uid\" : \"1245\",\n \"city\" : \"Dallas\"\n}",
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var http = require('http');
var options = {
'method': 'POST',
'hostname': 'api.auction.io',
'path': '/mobileapi/cashout',
'headers': {
'Content-Type': 'application/json'
}
};
var req = http.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
var postData = "{\n \"total_flatfee\" : \"15.00\",\n \"sellerid\" : \"1245\",\n \"zipcode\" : \"54543\",\n \"total_amount\" : \"20.00\",\n \"email\" : \"sample+300@auction.io\",\n \"mypids\" : \"3889,3887,3864\",\n \"payemail\" : \"\",\n \"address\" : \"Street Address, Apt, Suite\",\n \"total_cashout\" : \"3.00\",\n \"optionsRadios\" : \"checkemail\",\n \"uname\" : \"sampleMich300\",\n \"type_val\" : 2,\n \"address1\" : \"\",\n \"total_commission\" : \"2.00\",\n \"state\" : \"Texas\",\n \"uid\" : \"1245\",\n \"city\" : \"Dallas\"\n}";
req.write(postData);
req.end();
Headers
{
"key":"Content-Type","value":"multipart/form-data","enabled":true
}
Usage and Examples
Body parameters
Name
Description
userdetails
{
"total_flatfee" : "15.00",
"sellerid" : "1245",
"zipcode" : "54543",
"total_amount" : "20.00",
"email" : "sample+300@auction.io",
"mypids" : "3889,3887,3864",
"payemail" : "",
"address" : "Street Address, Apt, Suite",
"total_cashout" : "3.00",
"optionsRadios" : "checkemail",
"uname" : "sampleMich300",
"type_val" : 2,
"address1" : "",
"total_commission" : "2.00",
"state" : "Texas",
"uid" : "1245",
"city" : "Dallas"
}
Responses
Status: 202 - Success
{
"total_flatfee" : "number",
"sellerid" : "number",
"zipcode" : "number",
"total_amount" : "number",
"email" : "string",
"mypids" : "number",
"payemail" : "",
"address" : "string",
"total_cashout" : "number",
"optionsRadios" : "string",
"uname" : "string",
"type_val" : number,
"address1" : "",
"total_commission" : "number",
"state" : "string",
"uid" : "number",
"city" : "string"
}
Responses
Status: 302 - Error
{
"total_flatfee" : "number",
"sellerid" : "number",
"zipcode" : "number",
"total_amount" : "number",
"email" : "string",
"mypids" : "number",
"payemail" : "",
"address" : "string",
"total_cashout" : "number",
"optionsRadios" : "string",
"uname" : "string",
"type_val" : number,
"address1" : "",
"total_commission" : "number",
"state" : "string",
"uid" : "number",
"city" : "string"
}
Sales Tax
POST
https://api.auction.io/mobileapi/TaxConsultationI
Usage and Examples
curl -X POST "https://api.auction.io/mobileapi/TaxConsultationI"
var settings = {
"url": "https://api.auction.io/mobileapi/TaxConsultationI",
"method": "POST",
"timeout": 0,
"processData": false,
"mimeType": "application/json",
"contentType": false,
"data": {
"address1" : "205 Barnes Mill Road",
"address2" : " ",
"city" : "Richmond",
"state" : "Kentucky",
"zipcode" : "4534540475",
"total" : "450"
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var http = require('http');
var options = {
'method': 'POST',
'hostname': 'api.auction.io',
'path': '/mobileapi/TaxConsultationI',
'headers': {
'Content-Type': 'application/json'
}
};
var req = http.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
var postData = {
"address1" : "205 Barnes Mill Road",
"address2" : " ",
"city" : "Richmond",
"state" : "Kentucky",
"zipcode" : "4534540475",
"total" : "450"
}
req.write(postData);
req.end();
Headers
{ Content-Type:application/json }
Usage and Examples
Body parameters
Name
Description
userdetails
{
"address1" : "205 Barnes Mill Road",
"address2" : " ",
"city" : "Richmond",
"state" : "Kentucky",
"zipcode" : "40475",
"total" : "450"
}
Responses
Status: 202 - Success
{
msg:string,
returndata : {
"IRTotal": string,
"IRSubTotal": string,
"IRTotalTax": string
}
}
{
"msg": "success",
"returndata": {
"IRTotal": "477.0",
"IRSubTotal": "450.0",
"IRTotalTax": "27.0"
}
}
Responses
Status: 302 - Error
{
msg : string,
returndata : string
}
{
"msg": "failure",
"returndata": "Invalid Data"
}
All Languages
This API can be used to fetch all languages.
GET
https://api.auction.io/mobileapi/langauge
Usage and Examples
curl -X POST "https://api.auction.io/mobileapi/langauge"
var settings = {
"url": "https://api.auction.io/mobileapi/langauge",
"method": "GET",
"timeout": 0,
"processData": false,
"contentType": false
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var http = require('http');
var options = {
'method': 'GET',
'hostname': 'api.auction.io',
'path': '/mobileapi/langauge'
};
var req = http.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
req.write();
req.end();
Responses
Status: 200 - Success
{
msg:string,
returndata : {
"English": { variable : value},
"French": { variable : value},
"Spanish": { variable : value},
"Mandarin" : { variable : value}
}
}
{
"msg": "success",
"returndata": {
"English": {
"first_name": "First Name",
"last_name": "Last Name",
"company_name": "Company Name",
"user_name": "User Name",
"email": "Email",
"confirm_mail": "Confirm Email",
"password": "Password",
"confirm_password": "Confirm Password",
"s_address": "Street Address",
"city": "City",
"state": "State",
"zip": "Zip",
"p_number": "Phone Number",
"Time_zone": "Time Zone (US)",
"lanugage": "Language",
"register_from": "REGISTRATION FORM",
"match_card": "Must Match Credit Card Info",
"next": "Next",
"required": "Required",
"optinal": "Optional",
"pick_val": "Pick an Alias, It Will Be Seen Online",
"email_not": "Emails do not match",
"chart_length": "Must Be at-least 8 Characters long",
"apt_optional": "Apt, Suite, Unit, etc. (Optional)",
"time_zone_1": "(GMT-08:00) Pacific Time Zone",
"time_zone_2": "(GMT-07:00) Mountain Time Zone",
"time_zone_3": "(GMT-06:00) Central Time Zone",
"time_zone_4": "(GMT-05:00) Eastern Time Zone",
"pay_info": "Payment Information",
"card_info": "You have not yet finished setting up your account. Please add a Credit card or Register with paypal to bid. We do this to insure all buyers are serious.",
"add_card": "Add a Credit Card",
"or": "OR",
"card_holder": "Card Holder Name",
"card_no": "Credit Card Number",
"cvv": "CVV",
"ex_date": "Expiration Date",
"i_agree": "I agree to",
"terms_condtion": "Terms and Conditions",
"back": "Back",
"skip": "Skip",
"verify": "Verify",
"appear_card": "As Appears On Card",
"cvv_vaild": "3 Digit Security Code on Back of Card",
"select_month": "Select Month",
"select_year": "Select Year",
"jan": "January",
"feb": "February",
"mar": "March",
"apr": "April",
"may": "May",
"jun": "June",
"jul": "July",
"aug": "August",
"sep": "September",
"oct": "October",
"nov": "November",
"dec": "December",
"choice_1": "You must select at least 1 choices.",
"tihs_value": "This value",
"is_require": "is required.",
"password_not": "Passwords do not match.",
"username": "Username",
"already_ex": "Already Exist!",
"verifyed": "Verified",
"no_verifyed": "Not Verified",
"click_here": "Click Here",
"english": "English",
"mandarin": "Mandarin",
"french": "French",
"speanish": "Spanish",
"s_or": "or",
"remender_me": "Remember me",
"invalid": "Invalid",
"new_slibuy": "New to sliBuy?",
"store_returns": "STORE RETURNS AUCTION",
"forget_password": "Forgot password?",
"login": "Login",
"register_now": "Register Now",
"sign_in": "SIGN IN",
"c_forget_password": "Forgot Password",
"address": "Address",
"your": "Your ",
"enter": "Enter",
"c_your": "your ",
"send": "Send",
"no_account": "No account found with this email address.",
"email_type": "Email address needs to be in the format yourname@domain.com.",
"contact_us": "Contact us",
"email_us": "EMAIL US",
"welcome": "Welcome",
"register": "Register",
"looking_spe": "Looking for something specific?",
"upcoming": "Upcoming",
"auctionio": "auctionio",
"email_alert": "Signup for email alerts",
"copy_right": "Copyright",
"slibuy_com": "sliBuy.com",
"subscribe": "Subscribe",
"home": "Home",
"privacy": "Privacy Policy",
"trems_con": "Terms & Conditions",
"myaccount": "My Account",
"sell": "Sell",
"logout": "Log Out"
},
"French": {
"first_name": "Prénom",
"last_name": "Nom de famille",
"company_name": "Nom de la compagnie",
"user_name": "Nom d'utilisateur",
"email": "Email",
"confirm_mail": "Confirmez votre e-mail",
"password": "Mot de passe",
"confirm_password": "Confirmez le mot de passe",
"s_address": "Adresse de rue",
"city": "Ville",
"state": "Etat",
"zip": "français",
"p_number": "Numéro de téléphone",
"Time_zone": "Fuseau horaire (US)",
"lanugage": "La langue",
"register_from": "FORMULAIRE D'INSCRIPTION",
"match_card": "Doit correspondre aux informations de carte de crédit",
"next": "Suivant",
"required": "Champs obligatoires",
"optinal": "Optionnel",
"pick_val": "Choisissez un alias, il sera vu en ligne",
"email_not": "Les e-mails ne correspondent pas",
"chart_length": "Doit être au moins composé de 8 caractères",
"apt_optional": "Apt, Suite, Unit, etc. (Facultatif)",
"time_zone_1": "(GMT-08: 00) Fuseau horaire du Pacifique",
"time_zone_2": "(GMT-07: 00) Fuseau horaire montagne",
"time_zone_3": "(GMT-06: 00) Fuseau horaire central",
"time_zone_4": "(GMT - 05: 00) Fuseau horaire est",
"pay_info": "Informations de paiement",
"card_info": "Vous n'avez pas encore fini de configurer votre compte. Veuillez ajouter une carte de crédit ou vous inscrire auprès de PayPal pour enchérir. Nous faisons cela pour assurer que tous les acheteurs sont séri",
"add_card": "Ajouter une carte de crédit",
"or": "OU",
"card_holder": "Nom du titulaire",
"card_no": "Numéro de Carte de Crédit",
"cvv": "CVV",
"ex_date": "Date d'expiration",
"i_agree": "Je suis d'accord pour",
"terms_condtion": "Termes et conditions",
"back": "Retour",
"skip": "Sauter",
"verify": "Vérifier",
"appear_card": "Comme apparaît sur la carte",
"cvv_vaild": "Code de sécurité à 3 chiffres au verso de la carte",
"select_month": "Sélectionnez un mois",
"select_year": "Sélectionnez l'année",
"jan": "janvier",
"feb": "février",
"mar": "Mars",
"apr": "avril",
"may": "Peut",
"jun": "juin",
"jul": "juillet",
"aug": "août",
"sep": "septembre",
"oct": "octobre",
"nov": "novembre",
"dec": "décembre",
"choice_1": "Vous devez sélectionner au moins 1 choix.",
"tihs_value": "Cette valeur",
"is_require": "est requis.",
"password_not": "Les mots de passe ne correspondent pas.",
"username": "Nom d'utilisateur",
"already_ex": "Existe déjà !",
"verifyed": "Vérifié",
"no_verifyed": "Non vérifié",
"click_here": "Cliquez ici",
"english": "Anglais",
"mandarin": "mandarin",
"french": "français",
"speanish": "Espanol",
"s_or": "ou",
"remender_me": "Souviens-toi de moi",
"invalid": "Invalide",
"new_slibuy": "Nouveau sur sliBuy?",
"store_returns": "RETOURS EN MAGASIN",
"forget_password": "mot de passe oublié?",
"login": "S'identifier",
"register_now": "Inscrire maintenant",
"sign_in": "SE CONNECTER",
"c_forget_password": "Mot de passe oublié",
"address": "Adresse",
"your": "Votre",
"enter": "Entrer",
"c_your": "votre",
"send": "Envoyer",
"no_account": "Aucun compte trouvé avec cette adresse email.",
"email_type": "L'adresse email doit être au format votrenom@domaine.com.",
"contact_us": null,
"email_us": "Contactez nous",
"welcome": "ENVOYEZ-NOUS UN EMAIL",
"register": "Bienvenue",
"looking_spe": "registre",
"upcoming": "Vous cherchez quelque chose en particulier?",
"auctionio": "Prochain",
"email_alert": "Les enchères",
"copy_right": "Inscrivez-vous à nos alertes email",
"slibuy_com": "sliBuy.com",
"subscribe": "Souscrire",
"home": "Accueil",
"privacy": "Politique de confidentialité",
"trems_con": "termes et conditions",
"myaccount": "Mon compte",
"sell": "Vendre",
"logout": "Connectez - Out"
},
"Spanish": {
"first_name": "Nombre de pila",
"last_name": "Apellido",
"company_name": "nombre de empresa",
"user_name": "Nombre de usuario",
"email": "Email",
"confirm_mail": "Confirmar correo electrónico",
"password": "Contraseña",
"confirm_password": "Confirmar contraseña",
"s_address": "Dirección",
"city": "Ciudad",
"state": "Estado",
"zip": "Cremallera",
"p_number": "Número de teléfono",
"Time_zone": "Zona horaria (US)",
"lanugage": "Idioma",
"register_from": "FORMULARIO DE INSCRIPCIÓN",
"match_card": "Debe coincidir con la información de la tarjeta de crédito",
"next": "Siguiente",
"required": "Necesario",
"optinal": "Opcional",
"pick_val": "Elige un alias, se verá en lÃ\u00adnea",
"email_not": "Los correos no concuerdan",
"chart_length": "Debe tener al menos 8 caracteres de longitud",
"apt_optional": "Apt, Suite, Unidad, etc. (Opcional)",
"time_zone_1": "(GMT-08: 00) Zona horaria del PacÃ\u00adfico",
"time_zone_2": "(GMT-07: 00) Zona horaria de la montaña",
"time_zone_3": "(GMT-06: 00) Zona horaria central",
"time_zone_4": "(GMT-05: 00) Zona horaria del este",
"pay_info": "Información del pago",
"card_info": "Aún no has terminado de configurar tu cuenta. Agregue una tarjeta de crédito o regÃ\u00adstrese con PayPal para ofertar. Hacemos esto para asegurar que todos los compradores sean seri",
"add_card": "Añade una tarjeta de crédito",
"or": "O",
"card_holder": "Nombre del titular de la tarjeta",
"card_no": "Número de tarjeta de crédito",
"cvv": "CVV",
"ex_date": "Fecha de caducidad",
"i_agree": "estoy de acuerdo con",
"terms_condtion": "Términos y Condiciones",
"back": "Espalda",
"skip": "Omitir",
"verify": "Verificar",
"appear_card": "Como aparece en la tarjeta",
"cvv_vaild": "Código de seguridad de 3 dÃ\u00adgitos en el reverso de la tarjeta",
"select_month": "Seleccione mes",
"select_year": "Seleccione el año",
"jan": "enero",
"feb": "febrero",
"mar": "marzo",
"apr": "abril",
"may": "Mayo",
"jun": "junio",
"jul": "julio",
"aug": "agosto",
"sep": "septiembre",
"oct": "octubre",
"nov": "noviembre",
"dec": "diciembre",
"choice_1": "Debe seleccionar al menos 1 opciones.",
"tihs_value": "Este valor",
"is_require": "es requerido.",
"password_not": "Las contraseñas no coinciden.",
"username": "Nombre de usuario",
"already_ex": "¡Ya existe!",
"verifyed": "Verificado",
"no_verifyed": "No verificado",
"click_here": "Haga clic aquÃ\u00ad",
"english": "Inglés",
"mandarin": "mandarÃ\u00adn",
"french": "francés",
"speanish": "Español",
"s_or": "o",
"remender_me": "Recuérdame",
"invalid": "Inválido",
"new_slibuy": "Nuevo en sliBuy?",
"store_returns": "TIENDA DEVOLUCIONES DE SUBASTAS",
"forget_password": "¿Se te olvidó tu contraseña?",
"login": "Iniciar sesión",
"register_now": "RegÃ\u00adstrate ahora",
"sign_in": "REGISTRARSE",
"c_forget_password": "Se te olvidó tu contraseña",
"address": "Dirección",
"your": "Tu",
"enter": "Entrar",
"c_your": "tu",
"send": "Enviar",
"no_account": "No se ha encontrado ninguna cuenta con esta dirección de correo electrónico.",
"email_type": "La dirección de correo electrónico debe estar en el formato yourname@domain.com.",
"contact_us": "Contáctenos",
"email_us": "ENVÃ\u008dENOS UN CORREO ELECTRÓNICO",
"welcome": "Bienvenido",
"register": "Registro",
"looking_spe": "Buscando algo especÃ\u00adfico?",
"upcoming": "Próximo",
"auctionio": "Subastas",
"email_alert": "Registrarse para recibir alertas por correo electrónico",
"copy_right": "Derechos de autor",
"slibuy_com": "sliBuy.com",
"subscribe": "Suscribir",
"home": "Casa",
"privacy": "PolÃ\u00adtica de privacidad",
"trems_con": "Términos y condiciones",
"myaccount": "Mi cuenta",
"sell": "Vender",
"logout": "Cerrar sesión"
},
"Mandarin": {
"first_name": "å\u0090\u008då\u00ad—",
"last_name": "å§“",
"company_name": "å…¬å\u008f¸å\u0090\u008d",
"user_name": "用户å\u0090\u008d",
"email": "电å\u00ad\u0090邮件",
"confirm_mail": "确认邮件",
"password": "密ç \u0081",
"confirm_password": "确认密ç \u0081",
"s_address": "è¡—é\u0081“地å\u009d€",
"city": "市",
"state": "å·ž",
"zip": "压缩",
"p_number": "电è¯\u009då\u008f·ç \u0081",
"Time_zone": "时区(美国)",
"lanugage": "è¯\u00ad言",
"register_from": "报å\u0090\u008dè¡¨æ ¼",
"match_card": "必须匹é…\u008d信用å\u008d¡ä¿¡æ\u0081¯",
"next": "下一个",
"required": "需è¦\u0081",
"optinal": "å\u008f¯é€‰çš„",
"pick_val": "选择一个别å\u0090\u008d,它将在网上看到",
"email_not": "电å\u00ad\u0090邮件内容ä¸\u008d符",
"chart_length": "必须至少8个å\u00ad—符长",
"apt_optional": "公寓,套房,å\u008d•ä½\u008dç\u00ad‰ï¼ˆå\u008f¯é€‰ï¼‰",
"time_zone_1": "ï¼ˆæ ¼æž—å¨\u0081æ²»æ ‡å‡†æ—¶é—´-08:00)太平洋时å",
"time_zone_2": "ï¼ˆæ ¼æž—å¨\u0081æ²»æ ‡å‡†æ—¶é—´-07:00)山区时区",
"time_zone_3": "ï¼ˆæ ¼æž—å¨\u0081æ²»æ ‡å‡†æ—¶é—´-06:00)ä¸\u00ad部时区",
"time_zone_4": "ï¼ˆæ ¼æž—å¨\u0081æ²»æ ‡å‡†æ—¶é—´-05:00)东部时区",
"pay_info": "支付信æ\u0081¯",
"card_info": "您尚未完æˆ\u0090å¸\u0090æˆ·è®¾ç½®ã€‚è¯·æ·»åŠ ä¿¡ç”¨å\u008d¡æˆ–",
"add_card": "æ·»åŠ ä¿¡ç”¨å\u008d¡",
"or": "è¦\u0081么",
"card_holder": "æŒ\u0081å\u008d¡äººå§“å\u0090\u008d",
"card_no": "信用å\u008d¡å\u008f·",
"cvv": "CVV",
"ex_date": "截æ\u00ad¢æ—¥æœŸ",
"i_agree": "我å\u0090Œæ„\u008f",
"terms_condtion": "æ\u009d¡æ¬¾å’Œæ\u009d¡ä»¶",
"back": "背部",
"skip": "跳跃",
"verify": "æ ¡éªŒ",
"appear_card": "出现在å\u008d¡ä¸Š",
"cvv_vaild": "å\u008d¡èƒŒé\u009d¢çš„3ä½\u008d数安全代ç \u0081",
"select_month": "选择一个月",
"select_year": "选择年份",
"jan": "一月",
"feb": "二月",
"mar": "游行",
"apr": "四月",
"may": "å\u008f¯ä»¥",
"jun": "å…\u00ad月",
"jul": "七月",
"aug": "八月",
"sep": "ä¹\u009d月",
"oct": "å\u008d\u0081月",
"nov": "å\u008d\u0081一月",
"dec": "å\u008d\u0081二月",
"choice_1": "您必须至少选择1个选项。",
"tihs_value": "这个值",
"is_require": "是必须的。",
"password_not": "密ç \u0081ä¸\u008d匹é…\u008d。",
"username": "用户å\u0090\u008d",
"already_ex": "å·²ç»\u008få\u00ad˜åœ¨ï¼\u0081",
"verifyed": "验è¯\u0081",
"no_verifyed": "未验è¯\u0081",
"click_here": "点击这里",
"english": "英è¯\u00ad",
"mandarin": "普通è¯\u009d",
"french": "法国",
"speanish": "西ç\u008f\u00ad牙è¯\u00ad",
"s_or": "è¦\u0081么",
"remender_me": "è®°ä½\u008fè´¦å\u008f·",
"invalid": "æ— æ•ˆ",
"new_slibuy": "sliBuy新手?",
"store_returns": "商店退货æ‹\u008då\u008d–",
"forget_password": "忘记密ç \u0081?",
"login": "登录",
"register_now": "现在注册",
"sign_in": "登入",
"c_forget_password": "忘记密ç \u0081",
"address": "地å\u009d€",
"your": "您的",
"enter": "输入",
"c_your": "您的",
"send": "å\u008f‘é€\u0081",
"no_account": "æ\u00ad¤ç”µå\u00ad\u0090邮件地å\u009d€æœªæ‰¾åˆ°ä»»ä½•å¸\u0090户。",
"email_type": "电å\u00ad\u0090邮件地å\u009d€å¿…须采用yourname@domain.comæ ",
"contact_us": "è\u0081”系我们",
"email_us": "电å\u00ad\u0090邮件美国",
"welcome": "欢迎",
"register": "寄å\u00ad˜å™¨",
"looking_spe": "寻找特定的东西?",
"upcoming": "å\u008d³å°†åˆ°æ\u009d¥",
"auctionio": "æ‹\u008då\u008d–会",
"email_alert": "注册电å\u00ad\u0090邮件æ\u008f\u0090醒",
"copy_right": "版æ\u009dƒ",
"slibuy_com": "sliBuy.com",
"subscribe": "订阅",
"home": "å®¶",
"privacy": "éš\u0090ç§\u0081政ç\u00ad–",
"trems_con": "æ\u009d¡æ¬¾å’Œæ\u009d¡ä»¶",
"myaccount": "我的å¸\u0090户",
"sell": "å\u008d–",
"logout": "登出"
}
}
}
Responses
Status: 302 - Error
{
msg : string,
returndata : string
}
{
"msg": "failure",
"returndata": "Something went worng, please try again later"
}
Specific Languages
This API can be used to fetch specific language.
GET
https://api.auction.io/mobileapi/langauge/spanish
Usage and Examples
curl -X POST "https://api.auction.io/mobileapi/langauge/spanish"
var settings = {
"url": "https://api.auction.io/mobileapi/langauge/spanish",
"method": "GET",
"timeout": 0,
"processData": false,
"contentType": false
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var http = require('http');
var options = {
'method': 'GET',
'hostname': 'api.auction.io',
'path': '/mobileapi/langauge/spanish'
};
var req = http.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
req.write();
req.end();
Responses
Status: 200 - Success
{
msg:string,
returndata : {
"Spanish": { variable : value}
}
}
{
"msg": "success",
"returndata": {
"Spanish": {
"first_name": "Nombre de pila",
"last_name": "Apellido",
"company_name": "nombre de empresa",
"user_name": "Nombre de usuario",
"email": "Email",
"confirm_mail": "Confirmar correo electrónico",
"password": "Contraseña",
"confirm_password": "Confirmar contraseña",
"s_address": "Dirección",
"city": "Ciudad",
"state": "Estado",
"zip": "Cremallera",
"p_number": "Número de teléfono",
"Time_zone": "Zona horaria (US)",
"lanugage": "Idioma",
"register_from": "FORMULARIO DE INSCRIPCIÓN",
"match_card": "Debe coincidir con la información de la tarjeta de crédito",
"next": "Siguiente",
"required": "Necesario",
"optinal": "Opcional",
"pick_val": "Elige un alias, se verá en lÃ\u00adnea",
"email_not": "Los correos no concuerdan",
"chart_length": "Debe tener al menos 8 caracteres de longitud",
"apt_optional": "Apt, Suite, Unidad, etc. (Opcional)",
"time_zone_1": "(GMT-08: 00) Zona horaria del PacÃ\u00adfico",
"time_zone_2": "(GMT-07: 00) Zona horaria de la montaña",
"time_zone_3": "(GMT-06: 00) Zona horaria central",
"time_zone_4": "(GMT-05: 00) Zona horaria del este",
"pay_info": "Información del pago",
"card_info": "Aún no has terminado de configurar tu cuenta. Agregue una tarjeta de crédito o regÃ\u00adstrese con PayPal para ofertar. Hacemos esto para asegurar que todos los compradores sean seri",
"add_card": "Añade una tarjeta de crédito",
"or": "O",
"card_holder": "Nombre del titular de la tarjeta",
"card_no": "Número de tarjeta de crédito",
"cvv": "CVV",
"ex_date": "Fecha de caducidad",
"i_agree": "estoy de acuerdo con",
"terms_condtion": "Términos y Condiciones",
"back": "Espalda",
"skip": "Omitir",
"verify": "Verificar",
"appear_card": "Como aparece en la tarjeta",
"cvv_vaild": "Código de seguridad de 3 dÃ\u00adgitos en el reverso de la tarjeta",
"select_month": "Seleccione mes",
"select_year": "Seleccione el año",
"jan": "enero",
"feb": "febrero",
"mar": "marzo",
"apr": "abril",
"may": "Mayo",
"jun": "junio",
"jul": "julio",
"aug": "agosto",
"sep": "septiembre",
"oct": "octubre",
"nov": "noviembre",
"dec": "diciembre",
"choice_1": "Debe seleccionar al menos 1 opciones.",
"tihs_value": "Este valor",
"is_require": "es requerido.",
"password_not": "Las contraseñas no coinciden.",
"username": "Nombre de usuario",
"already_ex": "¡Ya existe!",
"verifyed": "Verificado",
"no_verifyed": "No verificado",
"click_here": "Haga clic aquÃ\u00ad",
"english": "Inglés",
"mandarin": "mandarÃ\u00adn",
"french": "francés",
"speanish": "Español",
"s_or": "o",
"remender_me": "Recuérdame",
"invalid": "Inválido",
"new_slibuy": "Nuevo en sliBuy?",
"store_returns": "TIENDA DEVOLUCIONES DE SUBASTAS",
"forget_password": "¿Se te olvidó tu contraseña?",
"login": "Iniciar sesión",
"register_now": "RegÃ\u00adstrate ahora",
"sign_in": "REGISTRARSE",
"c_forget_password": "Se te olvidó tu contraseña",
"address": "Dirección",
"your": "Tu",
"enter": "Entrar",
"c_your": "tu",
"send": "Enviar",
"no_account": "No se ha encontrado ninguna cuenta con esta dirección de correo electrónico.",
"email_type": "La dirección de correo electrónico debe estar en el formato yourname@domain.com.",
"contact_us": "Contáctenos",
"email_us": "ENVÃ\u008dENOS UN CORREO ELECTRÓNICO",
"welcome": "Bienvenido",
"register": "Registro",
"looking_spe": "Buscando algo especÃ\u00adfico?",
"upcoming": "Próximo",
"auctionio": "Subastas",
"email_alert": "Registrarse para recibir alertas por correo electrónico",
"copy_right": "Derechos de autor",
"slibuy_com": "sliBuy.com",
"subscribe": "Suscribir",
"home": "Casa",
"privacy": "PolÃ\u00adtica de privacidad",
"trems_con": "Términos y condiciones",
"myaccount": "Mi cuenta",
"sell": "Vender",
"logout": "Cerrar sesión"
}
}
}
Responses
Status: 302 - Error
{
msg : string,
returndata : string
}
{
"msg": "failure",
"returndata": "Invalid language selected - titan"
}
Create Variables
This API can be used to create variables for language.
POST
https://api.auction.io/mobileapi/langaugeCreate
Usage and Examples
curl -X POST "https://api.auction.io/mobileapi/langaugeCreate"
var settings = {
"url": "https://api.auction.io/mobileapi/langaugeCreate",
"method": "POST",
"timeout": 0,
"processData": false,
"content-type": "application/json",
"data":{
"data" : [{"phrase":"izaw","for_english":"IZaw","for_french":"IZaw","for_spanish":"IZaw","for_mandarin":"IZaw"},{"phrase":"asimo","for_english":"Asimo","for_french":"Asimo","for_spanish":"Asimo","for_mandarin":"Asimo"},{"phrase":"shivaay","for_english":"Shivaay","for_french":"Shivaay","for_spanish":"Shivaay","for_mandarin":"Shivaay"}]
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var http = require('http');
var options = {
'method': 'POST',
'hostname': 'api.auction.io',
'path': '/mobileapi/langaugeCreate',
"headers": {
"content-type": "application/json",
}
};
var req = http.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
req.write(JSON.stringify({
"data" : [{"phrase":"izaw","for_english":"IZaw","for_french":"IZaw","for_spanish":"IZaw","for_mandarin":"IZaw"},{"phrase":"asimo","for_english":"Asimo","for_french":"Asimo","for_spanish":"Asimo","for_mandarin":"Asimo"},{"phrase":"shivaay","for_english":"Shivaay","for_french":"Shivaay","for_spanish":"Shivaay","for_mandarin":"Shivaay"}]
}));
req.end();
Headers
{ Content-Type:application/json }
Usage and Examples
Body parameters
Name
Description
Array of Variables
{
"data" : [{"phrase":"izaw","for_english":"IZaw","for_french":"IZaw","for_spanish":"IZaw","for_mandarin":"IZaw"},{"phrase":"asimo","for_english":"Asimo","for_french":"Asimo","for_spanish":"Asimo","for_mandarin":"Asimo"},{"phrase":"shivaay","for_english":"Shivaay","for_french":"Shivaay","for_spanish":"Shivaay","for_mandarin":"Shivaay"}]
}
Responses
Status: 200 - Success
{
msg:string,
returndata : string
}
{
"msg": "success",
"returndata": "Success"
}
Responses
Status: 302 - Error
{
msg : string,
returndata : string
}
{
"msg": "failure",
"returndata": "Required Fields for all languages is missing, for element at index : 3 , please re-try again"
}
Tokenization Card
This API can be used to create tokenization card by using card details.
POST
https://api.auction.io/auctioniopay/tokenizationcardapi
Usage and Examples
curl --location --request POST 'https://api.auction.io/auctioniopay/tokenizationcardapi' \
--header 'Origin: https://api.auction.io' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'cardnumber=4111111111111111' \
--data-urlencode 'card_name=sathish' \
--data-urlencode 'card_expiry_month=02' \
--data-urlencode 'card_expiry_year=2020' \
--data-urlencode 'phone=8695685029' \
--data-urlencode 'email=sathish@auction.io' \
--data-urlencode 'address=chennai' \
--data-urlencode 'postalcode=23454' \
--data-urlencode 'state_code=TX' \
--data-urlencode 'country_code=US' \
--data-urlencode 'mode=sandbox' \
--data-urlencode 'type=zift'
var settings = {
"url": "https://api.auction.io/auctioniopay/tokenizationcardapi",
"method": "POST",
"timeout": 0,
"headers": {
"Origin": "https://api.auction.io",
"Content-Type": "application/x-www-form-urlencoded"
},
"data": {
"cardnumber": "4111111111111111",
"card_name": "sathish",
"card_expiry_month": "02",
"card_expiry_year": "2020",
"phone": "8695685029",
"email": "sathish@auction.io",
"address": "chennai",
"postalcode": "23454",
"state_code": "TX",
"country_code": "US",
"mode": "sandbox",
"type": "zift"
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var https = require('follow-redirects').https;
var fs = require('fs');
var qs = require('querystring');
var options = {
'method': 'POST',
'hostname': 'api.auction.io',
'path': '/auctioniopay/tokenizationcardapi',
'headers': {
'Origin': 'https://api.auction.io',
'Content-Type': 'application/x-www-form-urlencoded'
},
'maxRedirects': 20
};
var req = https.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
var postData = qs.stringify({
'cardnumber': '4111111111111111',
'card_name': 'sathish',
'card_expiry_month': '02',
'card_expiry_year': '2020',
'phone': '8695685029',
'email': 'sathish@auction.io',
'address': 'chennai',
'postalcode': '23454',
'state_code': 'TX',
'country_code': 'US',
'mode': 'sandbox',
'type': 'zift'
});
req.write(postData);
req.end();
Headers
{"key":"Origin","value":"https://api.auction.io","type":"text","enabled":true}
{"key":"Content-Type","value":"application/x-www-form-urlencoded","type":"text","enabled":true}
Usage and Examples
Body parameters
Name
Description
carddetails
{
'cardnumber': '4111111111111111',
'card_name': 'sathish',
'card_expiry_month': '02',
'card_expiry_year': '2020',
'phone': '8695685029',
'email': 'sathish@auction.io',
'address': 'chennai',
'postalcode': '23454',
'state_code': 'TX',
'country_code': 'US',
'mode': 'sandbox',
'type': 'zift'
}
Responses
Status: 200 - Success
{
'cardnumber': 'number',
'card_name': 'string',
'card_expiry_month': 'number',
'card_expiry_year': 'number',
'phone': 'number',
'email': 'string',
'address': 'string',
'postalcode': 'number',
'state_code': 'string',
'country_code': 'string',
'mode': 'string',
'type': 'string'
}
Responses
Status: 302 - Error
{
'cardnumber': 'number',
'card_name': 'string',
'card_expiry_month': 'number',
'card_expiry_year': 'number',
'phone': 'number',
'email': 'string',
'address': 'string',
'postalcode': 'number',
'state_code': 'string',
'country_code': 'string',
'mode': 'string',
'type': 'string'
}
{
"msg": "failure",
"returndata": "Invalid language selected - titan"
}
Tokenization Bank
This API can be used to create tokenization bank by using bank details.
POST
https://api.auction.io/auctioniopay/tokenizationbankapi
Usage and Examples
curl --location --request POST 'https://api.auction.io/auctioniopay/tokenizationbankapi' \
--form 'account_no=0123456789' \
--form 'rounting_no=110000000' \
--form 'username=sathish' \
--form 'phone=8695685029' \
--form 'email=sathish@auction.io' \
--form 'address=chennai' \
--form 'postalcode=23454' \
--form 'state_code=TX' \
--form 'country_code=US' \
--form 'mode=sandbox' \
--form 'type=zift'
var form = new FormData();
form.append("account_no", "0123456789");
form.append("rounting_no", "110000000");
form.append("username", "sathish");
form.append("phone", "8695685029");
form.append("email", "sathish@auction.io");
form.append("address", "chennai");
form.append("postalcode", "23454");
form.append("state_code", "TX");
form.append("country_code", "US");
form.append("mode", "sandbox");
form.append("type", "zift");
var settings = {
"url": "https://api.auction.io/auctioniopay/tokenizationbankapi",
"method": "POST",
"timeout": 0,
"processData": false,
"mimeType": "multipart/form-data",
"contentType": false,
"data": form
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var https = require('follow-redirects').https;
var https = require('follow-redirects').https;
var fs = require('fs');
var options = {
'method': 'POST',
'hostname': 'api.auction.io',
'path': '/auctioniopay/tokenizationbankapi',
'headers': {
},
'maxRedirects': 20
};
var req = https.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
var postData = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"account_no\"\r\n\r\n0123456789\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"rounting_no\"\r\n\r\n110000000\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"username\"\r\n\r\nsathish\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"phone\"\r\n\r\n8695685029\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"email\"\r\n\r\nsathish@auction.io\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"address\"\r\n\r\nchennai\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"postalcode\"\r\n\r\n23454\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"state_code\"\r\n\r\nTX\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"country_code\"\r\n\r\nUS\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"mode\"\r\n\r\nsandbox\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"type\"\r\n\r\nzift\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--";
req.setHeader('content-type', 'multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW');
req.write(postData);
req.end();
Headers
{"key":"Origin","value":"https://api.auction.io","type":"text","enabled":true}
{"key":"Content-Type","value":"application/x-www-form-urlencoded","type":"text","enabled":true}
Usage and Examples
Body parameters
Name
Description
carddetails
{
'account_no': '0123456789',
'rounting_no': '110000000',
'username': 'sathish',
'phone': '8695685029',
'email': 'sathish@auction.io',
'address': 'chennai',
'postalcode': '23454',
'state_code': 'TX',
'country_code': 'US',
'mode': 'sandbox',
'type': 'zift'
}
Responses
Status: 200 - Success
{
'account_no': 'number',
'rounting_no': 'number',
'username': 'string',
'phone': 'number',
'email': 'string',
'address': 'string',
'postalcode': 'number',
'state_code': 'string',
'country_code': 'string',
'mode': 'string',
'type': 'string'
}
Responses
Status: 302 - Error
{
'account_no': 'number',
'rounting_no': 'number',
'username': 'string',
'phone': 'number',
'email': 'string',
'address': 'string',
'postalcode': 'number',
'state_code': 'string',
'country_code': 'string',
'mode': 'string',
'type': 'string'
}
{
"msg": "failure",
"returndata": "Invalid language selected - titan"
}
Tokenization Payment (card)
This API can be used to create tokenization payment by using card details.
POST
https://api.auction.io/auctioniopay/tokenizationpaymentapi
Usage and Examples
curl --location --request POST 'https://api.auction.io/auctioniopay/tokenizationpaymentapi' \
--header 'Cookie: connect.sid=s%3A2zLGLlhe_XTBpZbkWVy0KeQnOuxeNOOO.ImUfCXv9NmRAEU8ltfOk4VbfxLjU7WIYON8IZD0PWh0' \
--form 'cardtoken=VC10000000000008591111' \
--form 'username=sathish' \
--form 'card_expiry_month=02' \
--form 'card_expiry_year=2020' \
--form 'payamt=5000' \
--form 'mode=sandbox' \
--form 'type=zift' \
--form 'user_id=2'
var form = new FormData();
form.append("cardtoken", "VC10000000000008591111");
form.append("username", "sathish");
form.append("card_expiry_month", "02");
form.append("card_expiry_year", "2020");
form.append("payamt", "5000");
form.append("mode", "sandbox");
form.append("type", "zift");
form.append("user_id", "2");
var settings = {
"url": "https://api.auction.io/auctioniopay/tokenizationpaymentapi",
"method": "POST",
"timeout": 0,
"headers": {
"Cookie": "connect.sid=s%3A2zLGLlhe_XTBpZbkWVy0KeQnOuxeNOOO.ImUfCXv9NmRAEU8ltfOk4VbfxLjU7WIYON8IZD0PWh0"
},
"processData": false,
"mimeType": "multipart/form-data",
"contentType": false,
"data": form
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var https = require('follow-redirects').https;
var fs = require('fs');
var options = {
'method': 'POST',
'hostname': 'api.auction.io',
'path': '/auctioniopay/tokenizationpaymentapi',
'headers': {
'Cookie': 'connect.sid=s%3A2zLGLlhe_XTBpZbkWVy0KeQnOuxeNOOO.ImUfCXv9NmRAEU8ltfOk4VbfxLjU7WIYON8IZD0PWh0'
},
'maxRedirects': 20
};
var req = https.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
var postData = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"cardtoken\"\r\n\r\nVC10000000000008591111\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"username\"\r\n\r\nsathish\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"card_expiry_month\"\r\n\r\n02\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"card_expiry_year\"\r\n\r\n2020\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"payamt\"\r\n\r\n5000\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"mode\"\r\n\r\nsandbox\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"type\"\r\n\r\nzift\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"user_id\"\r\n\r\n2\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--";
req.setHeader('content-type', 'multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW');
req.write(postData);
req.end();
Headers
{"key":"Origin","value":"https://api.auction.io","type":"text","enabled":true}
{"key":"Content-Type","value":"application/x-www-form-urlencoded","type":"text","enabled":true}
Usage and Examples
Body parameters
Name
Description
carddetails
{
'account_no': '0123456789',
'rounting_no': '110000000',
'username': 'sathish',
'phone': '8695685029',
'email': 'sathish@auction.io',
'address': 'chennai',
'postalcode': '23454',
'state_code': 'TX',
'country_code': 'US',
'mode': 'sandbox',
'type': 'zift'
}
Responses
Status: 200 - Success
{
'account_no': 'number',
'rounting_no': 'number',
'username': 'string',
'phone': 'number',
'email': 'string',
'address': 'string',
'postalcode': 'number',
'state_code': 'string',
'country_code': 'string',
'mode': 'string',
'type': 'string'
}
Responses
Status: 302 - Error
{
'account_no': 'number',
'rounting_no': 'number',
'username': 'string',
'phone': 'number',
'email': 'string',
'address': 'string',
'postalcode': 'number',
'state_code': 'string',
'country_code': 'string',
'mode': 'string',
'type': 'string'
}
{
"msg": "failure",
"returndata": "Invalid language selected - titan"
}
Tokenization Payment (bank)
This API can be used to create tokenization payment by using bank details.
POST
https://api.auction.io/auctioniopay/tokenizationpaymentapi
Usage and Examples
curl --location --request POST 'https://api.auction.io/auctioniopay/tokenizationpaymentapi' \
--header 'Cookie: connect.sid=s%3A2zLGLlhe_XTBpZbkWVy0KeQnOuxeNOOO.ImUfCXv9NmRAEU8ltfOk4VbfxLjU7WIYON8IZD0PWh0' \
--form 'cardtoken=BC10000000000012696789' \
--form 'username=sathish' \
--form 'payamt=5000' \
--form 'rounting_no=110000000' \
--form 'mode=sandbox' \
--form 'type=zift' \
--form 'user_id=2'
var form = new FormData();
form.append("cardtoken", "BC10000000000012696789");
form.append("username", "sathish");
form.append("payamt", "5000");
form.append("rounting_no", "110000000");
form.append("mode", "sandbox");
form.append("type", "zift");
form.append("user_id", "2");
var settings = {
"url": "https://api.auction.io/auctioniopay/tokenizationpaymentapi",
"method": "POST",
"timeout": 0,
"headers": {
"Cookie": "connect.sid=s%3A2zLGLlhe_XTBpZbkWVy0KeQnOuxeNOOO.ImUfCXv9NmRAEU8ltfOk4VbfxLjU7WIYON8IZD0PWh0"
},
"processData": false,
"mimeType": "multipart/form-data",
"contentType": false,
"data": form
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var https = require('follow-redirects').https;
var fs = require('fs');
var options = {
'method': 'POST',
'hostname': 'api.auction.io',
'path': '/auctioniopay/tokenizationpaymentapi',
'headers': {
'Cookie': 'connect.sid=s%3A2zLGLlhe_XTBpZbkWVy0KeQnOuxeNOOO.ImUfCXv9NmRAEU8ltfOk4VbfxLjU7WIYON8IZD0PWh0'
},
'maxRedirects': 20
};
var req = https.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
var postData = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"cardtoken\"\r\n\r\nBC10000000000012696789\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"username\"\r\n\r\nsathish\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"payamt\"\r\n\r\n5000\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"rounting_no\"\r\n\r\n110000000\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"mode\"\r\n\r\nsandbox\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"type\"\r\n\r\nzift\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"user_id\"\r\n\r\n2\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--";
req.setHeader('content-type', 'multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW');
req.write(postData);
req.end();
Usage and Examples
Body parameters
Name
Description
carddetails
{
'cardtoken': 'BC10000000000012696789',
'rounting_no': 'number',
'username': 'sathish',
'payamt': '5000',
'mode': 'sandbox',
'user_id': '2',
'type': 'zift'
}
Responses
Status: 200 - Success
{
'cardtoken': 'number',
'rounting_no': 'number',
'username': 'string',
'payamt': 'number',
'mode': 'string',
'user_id': 'number',
}
Responses
Status: 302 - Error
{
'cardtoken': 'number',
'rounting_no': 'number',
'username': 'string',
'payamt': 'number',
'mode': 'string',
'user_id': 'number',
}
Direct Card Payment
This API can be used to create direct card payment by using card details.
POST
https://api.auction.io/auctioniopay/zift_card_paymentapi
Usage and Examples
curl --location --request POST 'https://api.auction.io/auctioniopay/zift_card_paymentapi' \
--header 'Cookie: connect.sid=s%3A2zLGLlhe_XTBpZbkWVy0KeQnOuxeNOOO.ImUfCXv9NmRAEU8ltfOk4VbfxLjU7WIYON8IZD0PWh0' \
--form 'cardtoken=5499740000000057' \
--form 'username=sathish' \
--form 'card_expiry_month=02' \
--form 'card_expiry_year=2020' \
--form 'payamt=5000' \
--form 'mode=sandbox' \
--form 'type=zift' \
--form 'user_id=2'
var form = new FormData();
form.append("cardtoken", "5499740000000057");
form.append("username", "sathish");
form.append("card_expiry_month", "02");
form.append("card_expiry_year", "2020");
form.append("payamt", "5000");
form.append("mode", "sandbox");
form.append("type", "zift");
form.append("user_id", "2");
var settings = {
"url": "https://api.auction.io/auctioniopay/zift_card_paymentapi",
"method": "POST",
"timeout": 0,
"headers": {
"Cookie": "connect.sid=s%3A2zLGLlhe_XTBpZbkWVy0KeQnOuxeNOOO.ImUfCXv9NmRAEU8ltfOk4VbfxLjU7WIYON8IZD0PWh0"
},
"processData": false,
"mimeType": "multipart/form-data",
"contentType": false,
"data": form
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var https = require('follow-redirects').https;
var fs = require('fs');
var options = {
'method': 'POST',
'hostname': 'api.auction.io',
'path': '/auctioniopay/zift_card_paymentapi',
'headers': {
'Cookie': 'connect.sid=s%3A2zLGLlhe_XTBpZbkWVy0KeQnOuxeNOOO.ImUfCXv9NmRAEU8ltfOk4VbfxLjU7WIYON8IZD0PWh0'
},
'maxRedirects': 20
};
var req = https.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
var postData = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"cardtoken\"\r\n\r\n5499740000000057\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"username\"\r\n\r\nsathish\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"card_expiry_month\"\r\n\r\n02\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"card_expiry_year\"\r\n\r\n2020\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"payamt\"\r\n\r\n5000\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"mode\"\r\n\r\nsandbox\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"type\"\r\n\r\nzift\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"user_id\"\r\n\r\n2\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--";
req.setHeader('content-type', 'multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW');
req.write(postData);
req.end();
Usage and Examples
Body parameters
Name
Description
carddetails
{
'cardtoken': 'BC10000000000012696789',
'rounting_no': 'number',
'username': 'sathish',
'payamt': '5000',
'mode': 'sandbox',
'user_id': '2',
'card_expiry_month': '02',
'card_expiry_year': '2022',
'type': 'zift',
'payment': '2000',
}
Responses
Status: 200 - Success
{
'cardtoken': 'number',
'rounting_no': 'number',
'username': 'string',
'card_expiry_month': 'date',
'card_expiry_year': 'number',
'mode': 'string',
'payment': 'number',
'user_id': 'number',
}
Responses
Status: 302 - Error
{
'cardtoken': 'number',
'rounting_no': 'number',
'username': 'string',
'card_expiry_month': 'date',
'card_expiry_year': 'number',
'mode': 'string',
'payment': 'number',
'user_id': 'number',
}
Merchant ID Create
This API can be used to create Merchant ID.
POST
https://api.auction.io/auctioniopay/merchantidcreateviaapi
Usage and Examples
curl --location --request POST 'https://api.auction.io/auctioniopay/merchantidcreateviaapi' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkYXRhIjp7InVzZXJpZCI6IjlhZWU3YTlmLTNiYmItNGE3MC05MmJiLTc4YTM3NGE5ZDIzMSIsImVtYWlsIjoidmluYXlhZ2FtLmF1Y3Rpb25zb2Z0d2FyZSsxQGdtYWlsLmNvbSIsInVzZXJuYW1lIjoic3MxIn0sImlhdCI6MTU4ODMxMTMyMCwiZXhwIjoxNTg4Mzk3NzIwfQ.Dq0zEeYOaimBPqhew6tO_xXMqV-aY-RB87ni9TAQTkI' \
--header 'Cookie: connect.sid=s%3A2zLGLlhe_XTBpZbkWVy0KeQnOuxeNOOO.ImUfCXv9NmRAEU8ltfOk4VbfxLjU7WIYON8IZD0PWh0' \
--form 'notify_url=http://localhost:2001/' \
--form 'cancel_url=http://localhost:2001/' \
--form 'success_url=http://localhost:2001/' \
--form 'mode=sandbox' \
--form 'type=zift_onboarding' \
--form 'profileId=11257624370' \
--form 'resellerId=166' \
--form 'portfolioId=100' \
--form 'feeTemplateId=100026' \
--form 'processingConfigurationScript=zift10' \
--form 'merchantType=M' \
--form 'merchantId=' \
--form 'returnURLPolicy=page' \
--form 'isEmbedded=0' \
--form 'pageFormat=' \
--form 'officer_firstName=Tony' \
--form 'officer_lastName=Stark' \
--form 'officer_street1=41 E 300 N' \
--form 'officer_street2=' \
--form 'officer_city=Spanish Fork' \
--form 'officer_state=UT' \
--form 'officer_zipCode=84653' \
--form 'officer_phone=5555551212' \
--form 'officer_email=tony@ziftpay.com' \
--form 'officer_birthDate=19670210' \
--form 'officer_socialSecurity=123456789' \
--form 'officer_countryCode=US' \
--form 'officer_stakePercentage=10' \
--form 'owner_firstName=First' \
--form 'owner_lastName=Owner' \
--form 'owner_street1=41 E 300 N' \
--form 'owner_street2=' \
--form 'owner_city=Spanish Fork' \
--form 'owner_state=UT' \
--form 'owner_zipCode=84653' \
--form 'owner_phone=5555551212' \
--form 'owner_email=tony@ziftpay.com' \
--form 'owner_birthDate=19670210' \
--form 'owner_socialSecurity=123456789' \
--form 'owner_countryCode=US' \
--form 'owner_stakePercentage=10' \
--form 'business_businessName=Start Industries' \
--form 'business_legalName=Start Industries' \
--form 'business_street1=41 E 300 N' \
--form 'business_street2=' \
--form 'business_city=Anywhere' \
--form 'business_state=CT' \
--form 'business_zipCode=06000' \
--form 'business_timeZoneCode=EST' \
--form 'business_descriptorPhone=8604500119' \
--form 'business_email=tony@ziftpay.com' \
--form 'business_webSite=' \
--form 'business_taxId=147852369' \
--form 'business_ownershipStructureType=C' \
--form 'business_description=Ghostbusting' \
--form 'estimates_annualCardsVolume=111111' \
--form 'estimates_annualDirectDebitVolume=222222' \
--form 'estimates_avgCardsTransactionAmount=2222' \
--form 'estimates_avgDirectDebitTransactionAmount=1111' \
--form 'estimates_maxTransactionAmount=12123' \
--form 'business_countryCode=US' \
--form 'business_merchantCategoryCode=7399' \
--form 'business_currencyCode=USD' \
--form 'deposit_bankName=Stark Bank' \
--form 'deposit_holderName=Tony Stark' \
--form 'deposit_accountType=C' \
--form 'deposit_routingNumber=324377516' \
--form 'deposit_accountNumber=123456789'
var form = new FormData();
form.append("notify_url", "http://localhost:2001/");
form.append("cancel_url", "http://localhost:2001/");
form.append("success_url", "http://localhost:2001/");
form.append("mode", "sandbox");
form.append("type", "zift_onboarding");
form.append("profileId", "11257624370");
form.append("resellerId", "166");
form.append("portfolioId", "100");
form.append("feeTemplateId", "100026");
form.append("processingConfigurationScript", "zift10");
form.append("merchantType", "M");
form.append("merchantId", "");
form.append("returnURLPolicy", "page");
form.append("isEmbedded", "0");
form.append("pageFormat", "");
form.append("officer_firstName", "Tony");
form.append("officer_lastName", "Stark");
form.append("officer_street1", "41 E 300 N");
form.append("officer_street2", "");
form.append("officer_city", "Spanish Fork");
form.append("officer_state", "UT");
form.append("officer_zipCode", "84653");
form.append("officer_phone", "5555551212");
form.append("officer_email", "tony@ziftpay.com");
form.append("officer_birthDate", "19670210");
form.append("officer_socialSecurity", "123456789");
form.append("officer_countryCode", "US");
form.append("officer_stakePercentage", "10");
form.append("owner_firstName", "First");
form.append("owner_lastName", "Owner");
form.append("owner_street1", "41 E 300 N");
form.append("owner_street2", "");
form.append("owner_city", "Spanish Fork");
form.append("owner_state", "UT");
form.append("owner_zipCode", "84653");
form.append("owner_phone", "5555551212");
form.append("owner_email", "tony@ziftpay.com");
form.append("owner_birthDate", "19670210");
form.append("owner_socialSecurity", "123456789");
form.append("owner_countryCode", "US");
form.append("owner_stakePercentage", "10");
form.append("business_businessName", "Start Industries");
form.append("business_legalName", "Start Industries");
form.append("business_street1", "41 E 300 N");
form.append("business_street2", "");
form.append("business_city", "Anywhere");
form.append("business_state", "CT");
form.append("business_zipCode", "06000");
form.append("business_timeZoneCode", "EST");
form.append("business_descriptorPhone", "8604500119");
form.append("business_email", "tony@ziftpay.com");
form.append("business_webSite", "");
form.append("business_taxId", "147852369");
form.append("business_ownershipStructureType", "C");
form.append("business_description", "Ghostbusting");
form.append("estimates_annualCardsVolume", "111111");
form.append("estimates_annualDirectDebitVolume", "222222");
form.append("estimates_avgCardsTransactionAmount", "2222");
form.append("estimates_avgDirectDebitTransactionAmount", "1111");
form.append("estimates_maxTransactionAmount", "12123");
form.append("business_countryCode", "US");
form.append("business_merchantCategoryCode", "7399");
form.append("business_currencyCode", "USD");
form.append("deposit_bankName", "Stark Bank");
form.append("deposit_holderName", "Tony Stark");
form.append("deposit_accountType", "C");
form.append("deposit_routingNumber", "324377516");
form.append("deposit_accountNumber", "123456789");
var settings = {
"url": "https://api.auction.io/auctioniopay/merchantidcreateviaapi",
"method": "POST",
"timeout": 0,
"headers": {
"Authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkYXRhIjp7InVzZXJpZCI6IjlhZWU3YTlmLTNiYmItNGE3MC05MmJiLTc4YTM3NGE5ZDIzMSIsImVtYWlsIjoidmluYXlhZ2FtLmF1Y3Rpb25zb2Z0d2FyZSsxQGdtYWlsLmNvbSIsInVzZXJuYW1lIjoic3MxIn0sImlhdCI6MTU4ODMxMTMyMCwiZXhwIjoxNTg4Mzk3NzIwfQ.Dq0zEeYOaimBPqhew6tO_xXMqV-aY-RB87ni9TAQTkI",
"Cookie": "connect.sid=s%3A2zLGLlhe_XTBpZbkWVy0KeQnOuxeNOOO.ImUfCXv9NmRAEU8ltfOk4VbfxLjU7WIYON8IZD0PWh0"
},
"processData": false,
"mimeType": "multipart/form-data",
"contentType": false,
"data": form
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var https = require('follow-redirects').https;
var fs = require('fs');
var options = {
'method': 'POST',
'hostname': 'api.auction.io',
'path': '/auctioniopay/merchantidcreateviaapi',
'headers': {
'Authorization': 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkYXRhIjp7InVzZXJpZCI6IjlhZWU3YTlmLTNiYmItNGE3MC05MmJiLTc4YTM3NGE5ZDIzMSIsImVtYWlsIjoidmluYXlhZ2FtLmF1Y3Rpb25zb2Z0d2FyZSsxQGdtYWlsLmNvbSIsInVzZXJuYW1lIjoic3MxIn0sImlhdCI6MTU4ODMxMTMyMCwiZXhwIjoxNTg4Mzk3NzIwfQ.Dq0zEeYOaimBPqhew6tO_xXMqV-aY-RB87ni9TAQTkI',
'Cookie': 'connect.sid=s%3A2zLGLlhe_XTBpZbkWVy0KeQnOuxeNOOO.ImUfCXv9NmRAEU8ltfOk4VbfxLjU7WIYON8IZD0PWh0'
},
'maxRedirects': 20
};
var req = https.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
var postData = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"notify_url\"\r\n\r\nhttp://localhost:2001/\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"cancel_url\"\r\n\r\nhttp://localhost:2001/\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"success_url\"\r\n\r\nhttp://localhost:2001/\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"mode\"\r\n\r\nsandbox\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"type\"\r\n\r\nzift_onboarding\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"profileId\"\r\n\r\n11257624370\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"resellerId\"\r\n\r\n166\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"portfolioId\"\r\n\r\n100\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"feeTemplateId\"\r\n\r\n100026\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"processingConfigurationScript\"\r\n\r\nzift10\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"merchantType\"\r\n\r\nM\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"merchantId\"\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"returnURLPolicy\"\r\n\r\npage\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"isEmbedded\"\r\n\r\n0\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"pageFormat\"\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"officer_firstName\"\r\n\r\nTony\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"officer_lastName\"\r\n\r\nStark\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"officer_street1\"\r\n\r\n41 E 300 N\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"officer_street2\"\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"officer_city\"\r\n\r\nSpanish Fork\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"officer_state\"\r\n\r\nUT\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"officer_zipCode\"\r\n\r\n84653\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"officer_phone\"\r\n\r\n5555551212\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"officer_email\"\r\n\r\ntony@ziftpay.com\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"officer_birthDate\"\r\n\r\n19670210\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"officer_socialSecurity\"\r\n\r\n123456789\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"officer_countryCode\"\r\n\r\nUS\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"officer_stakePercentage\"\r\n\r\n10\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"owner_firstName\"\r\n\r\nFirst\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"owner_lastName\"\r\n\r\nOwner\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"owner_street1\"\r\n\r\n41 E 300 N\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"owner_street2\"\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"owner_city\"\r\n\r\nSpanish Fork\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"owner_state\"\r\n\r\nUT\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"owner_zipCode\"\r\n\r\n84653\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"owner_phone\"\r\n\r\n5555551212\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"owner_email\"\r\n\r\ntony@ziftpay.com\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"owner_birthDate\"\r\n\r\n19670210\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"owner_socialSecurity\"\r\n\r\n123456789\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"owner_countryCode\"\r\n\r\nUS\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"owner_stakePercentage\"\r\n\r\n10\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"business_businessName\"\r\n\r\nStart Industries\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"business_legalName\"\r\n\r\nStart Industries\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"business_street1\"\r\n\r\n41 E 300 N\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"business_street2\"\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"business_city\"\r\n\r\nAnywhere\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"business_state\"\r\n\r\nCT\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"business_zipCode\"\r\n\r\n06000\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"business_timeZoneCode\"\r\n\r\nEST\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"business_descriptorPhone\"\r\n\r\n8604500119\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"business_email\"\r\n\r\ntony@ziftpay.com\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"business_webSite\"\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"business_taxId\"\r\n\r\n147852369\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"business_ownershipStructureType\"\r\n\r\nC\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"business_description\"\r\n\r\nGhostbusting\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"estimates_annualCardsVolume\"\r\n\r\n111111\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"estimates_annualDirectDebitVolume\"\r\n\r\n222222\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"estimates_avgCardsTransactionAmount\"\r\n\r\n2222\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"estimates_avgDirectDebitTransactionAmount\"\r\n\r\n1111\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"estimates_maxTransactionAmount\"\r\n\r\n12123\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"business_countryCode\"\r\n\r\nUS\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"business_merchantCategoryCode\"\r\n\r\n7399\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"business_currencyCode\"\r\n\r\nUSD\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"deposit_bankName\"\r\n\r\nStark Bank\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"deposit_holderName\"\r\n\r\nTony Stark\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"deposit_accountType\"\r\n\r\nC\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"deposit_routingNumber\"\r\n\r\n324377516\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"deposit_accountNumber\"\r\n\r\n123456789\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--";
req.setHeader('content-type', 'multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW');
req.write(postData);
req.end();
Usage and Examples
Body parameters
Name
Description
merchantdetails
{
notify_url=http://localhost:2001/
cancel_url=http://localhost:2001/
success_url=http://localhost:2001/
mode=sandbox
type=zift_onboarding
profileId=11257624370
resellerId=166
portfolioId=100
feeTemplateId=100026
processingConfigurationScript=zift10
merchantType=M
merchantId=
returnURLPolicy=page
isEmbedded=0
pageFormat=
officer_firstName=Tony
officer_lastName=Stark
officer_street1=41 E 300 N
officer_street2=
officer_city=Spanish Fork
officer_state=UT
officer_zipCode=84653
officer_phone=5555551212
officer_email=tony@ziftpay.com
officer_birthDate=19670210
officer_socialSecurity=123456789
officer_countryCode=US
officer_stakePercentage=10
owner_firstName=First
owner_lastName=Owner
owner_street1=41 E 300 N
owner_street2=
owner_city=Spanish Fork
owner_state=UT
owner_zipCode=84653
owner_phone=5555551212
owner_email=tony@ziftpay.com
owner_birthDate=19670210
owner_socialSecurity=123456789
owner_countryCode=US
owner_stakePercentage=10
business_businessName=Start Industries
business_legalName=Start Industries
business_street1=41 E 300 N
business_street2=
business_city=Anywhere
business_state=CT
business_zipCode=06000
business_timeZoneCode=EST
business_descriptorPhone=8604500119
business_email=tony@ziftpay.com
business_webSite=
business_taxId=147852369
business_ownershipStructureType=C
business_description=Ghostbusting
estimates_annualCardsVolume=111111
estimates_annualDirectDebitVolume=222222
estimates_avgCardsTransactionAmount=2222
estimates_avgDirectDebitTransactionAmount=1111
estimates_maxTransactionAmount=12123
business_countryCode=US
business_merchantCategoryCode=7399
business_currencyCode=USD
deposit_bankName=Stark Bank
deposit_holderName=Tony Stark
deposit_accountType=C
deposit_routingNumber=324377516
deposit_accountNumber=123456789
}
Responses
Status: 200 - Success
Responses
Status: 302 - Error
Merchant ID Create Using Host
This API can be used to create Merchant ID by using host details.
POST
https://api.auction.io/auctioniopay/merchantidcreateapi
Usage and Examples
curl --location --request POST 'https://api.auction.io/auctioniopay/merchantidcreateapi' \
--header 'Cookie: connect.sid=s%3A2zLGLlhe_XTBpZbkWVy0KeQnOuxeNOOO.ImUfCXv9NmRAEU8ltfOk4VbfxLjU7WIYON8IZD0PWh0' \
--form 'notify_url=http://localhost:2001/' \
--form 'cancel_url=http://localhost:2001/' \
--form 'success_url=http://localhost:2001/' \
--form 'mode=sandbox' \
--form 'type=zift_onboarding'
var form = new FormData();
form.append("notify_url", "http://localhost:2001/");
form.append("cancel_url", "http://localhost:2001/");
form.append("success_url", "http://localhost:2001/");
form.append("mode", "sandbox");
form.append("type", "zift_onboarding");
var settings = {
"url": "https://api.auction.io/auctioniopay/merchantidcreateapi",
"method": "POST",
"timeout": 0,
"headers": {
"Cookie": "connect.sid=s%3A2zLGLlhe_XTBpZbkWVy0KeQnOuxeNOOO.ImUfCXv9NmRAEU8ltfOk4VbfxLjU7WIYON8IZD0PWh0"
},
"processData": false,
"mimeType": "multipart/form-data",
"contentType": false,
"data": form
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var https = require('follow-redirects').https;
var fs = require('fs');
var options = {
'method': 'POST',
'hostname': 'api.auction.io',
'path': '/auctioniopay/merchantidcreateapi',
'headers': {
'Cookie': 'connect.sid=s%3A2zLGLlhe_XTBpZbkWVy0KeQnOuxeNOOO.ImUfCXv9NmRAEU8ltfOk4VbfxLjU7WIYON8IZD0PWh0'
},
'maxRedirects': 20
};
var req = https.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
var postData = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"notify_url\"\r\n\r\nhttp://localhost:2001/\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"cancel_url\"\r\n\r\nhttp://localhost:2001/\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"success_url\"\r\n\r\nhttp://localhost:2001/\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"mode\"\r\n\r\nsandbox\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"type\"\r\n\r\nzift_onboarding\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--";
req.setHeader('content-type', 'multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW');
req.write(postData);
req.end();
Usage and Examples
Body parameters
Name
Description
merchantdetails
{
notify_url=http://localhost:2001/
cancel_url=http://localhost:2001/
success_url=http://localhost:2001/
mode=sandbox
type=zift_onboarding
}
Responses
Status: 200 - Success
Responses
Status: 302 - Error
Split Payment Using Card
This API can be used to create split payment by using card details.
POST
https://api.auction.io/auctioniopay/splitpaymentapi
Usage and Examples
curl --location --request POST 'https://api.auction.io/auctioniopay/splitpaymentapi' \
--header 'Cookie: connect.sid=s%3A2zLGLlhe_XTBpZbkWVy0KeQnOuxeNOOO.ImUfCXv9NmRAEU8ltfOk4VbfxLjU7WIYON8IZD0PWh0' \
--form 'accountId=4785001' \
--form 'cardtoken=VC10000000000008591111' \
--form 'total_amt=5000' \
--form 'seller_amount=3000' \
--form 'owner_amount=2000' \
--form 'username=sathish' \
--form 'card_expiry_month=02' \
--form 'card_expiry_year=2020' \
--form 'mode=sandbox' \
--form 'type=zift' \
--form 'user_id=2'
var form = new FormData();
form.append("accountId", "4785001");
form.append("cardtoken", "VC10000000000008591111");
form.append("total_amt", "5000");
form.append("seller_amount", "3000");
form.append("owner_amount", "2000");
form.append("username", "sathish");
form.append("card_expiry_month", "02");
form.append("card_expiry_year", "2020");
form.append("mode", "sandbox");
form.append("type", "zift");
form.append("user_id", "2");
var settings = {
"url": "https://api.auction.io/auctioniopay/splitpaymentapi",
"method": "POST",
"timeout": 0,
"headers": {
"Cookie": "connect.sid=s%3A2zLGLlhe_XTBpZbkWVy0KeQnOuxeNOOO.ImUfCXv9NmRAEU8ltfOk4VbfxLjU7WIYON8IZD0PWh0"
},
"processData": false,
"mimeType": "multipart/form-data",
"contentType": false,
"data": form
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var https = require('follow-redirects').https;
var fs = require('fs');
var options = {
'method': 'POST',
'hostname': 'api.auction.io',
'path': '/auctioniopay/splitpaymentapi',
'headers': {
'Cookie': 'connect.sid=s%3A2zLGLlhe_XTBpZbkWVy0KeQnOuxeNOOO.ImUfCXv9NmRAEU8ltfOk4VbfxLjU7WIYON8IZD0PWh0'
},
'maxRedirects': 20
};
var req = https.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
var postData = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"accountId\"\r\n\r\n4785001\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"cardtoken\"\r\n\r\nVC10000000000008591111\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"total_amt\"\r\n\r\n5000\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"seller_amount\"\r\n\r\n3000\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"owner_amount\"\r\n\r\n2000\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"username\"\r\n\r\nsathish\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"card_expiry_month\"\r\n\r\n02\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"card_expiry_year\"\r\n\r\n2020\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"mode\"\r\n\r\nsandbox\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"type\"\r\n\r\nzift\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"user_id\"\r\n\r\n2\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--";
req.setHeader('content-type', 'multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW');
req.write(postData);
req.end();
Usage and Examples
Body parameters
Name
Description
carddetails
{
accountId=4785001
cardtoken=VC10000000000008591111
total_amt=5000
seller_amount=3000
owner_amount=2000
username=sathish
card_expiry_month=02
card_expiry_year=2020
mode=sandbox
type=zift
user_id=2
}
Responses
Status: 200 - Success
Responses
Status: 302 - Error
Split Payment Using Bank
This API can be used to create split payment by using bank details.
POST
https://api.auction.io/auctioniopay/splitpaymentapi
Usage and Examples
curl --location --request POST 'https://api.auction.io/auctioniopay/splitpaymentapi' \
--header 'Cookie: connect.sid=s%3A2zLGLlhe_XTBpZbkWVy0KeQnOuxeNOOO.ImUfCXv9NmRAEU8ltfOk4VbfxLjU7WIYON8IZD0PWh0' \
--form 'accountId=4785001' \
--form 'cardtoken=VC10000000000008591111' \
--form 'total_amt=5000' \
--form 'seller_amount=3000' \
--form 'owner_amount=2000' \
--form 'username=sathish' \
--form 'card_expiry_month=02' \
--form 'card_expiry_year=2020' \
--form 'mode=sandbox' \
--form 'type=zift' \
--form 'user_id=2'
var form = new FormData();
form.append("accountId", "4785001");
form.append("cardtoken", "VC10000000000008591111");
form.append("total_amt", "5000");
form.append("seller_amount", "3000");
form.append("owner_amount", "2000");
form.append("username", "sathish");
form.append("card_expiry_month", "02");
form.append("card_expiry_year", "2020");
form.append("mode", "sandbox");
form.append("type", "zift");
form.append("user_id", "2");
var settings = {
"url": "https://api.auction.io/auctioniopay/splitpaymentapi",
"method": "POST",
"timeout": 0,
"headers": {
"Cookie": "connect.sid=s%3A2zLGLlhe_XTBpZbkWVy0KeQnOuxeNOOO.ImUfCXv9NmRAEU8ltfOk4VbfxLjU7WIYON8IZD0PWh0"
},
"processData": false,
"mimeType": "multipart/form-data",
"contentType": false,
"data": form
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var https = require('follow-redirects').https;
var fs = require('fs');
var options = {
'method': 'POST',
'hostname': 'api.auction.io',
'path': '/auctioniopay/splitpaymentapi',
'headers': {
'Cookie': 'connect.sid=s%3A2zLGLlhe_XTBpZbkWVy0KeQnOuxeNOOO.ImUfCXv9NmRAEU8ltfOk4VbfxLjU7WIYON8IZD0PWh0'
},
'maxRedirects': 20
};
var req = https.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
var postData = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"accountId\"\r\n\r\n4785001\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"cardtoken\"\r\n\r\nVC10000000000008591111\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"total_amt\"\r\n\r\n5000\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"seller_amount\"\r\n\r\n3000\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"owner_amount\"\r\n\r\n2000\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"username\"\r\n\r\nsathish\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"card_expiry_month\"\r\n\r\n02\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"card_expiry_year\"\r\n\r\n2020\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"mode\"\r\n\r\nsandbox\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"type\"\r\n\r\nzift\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"user_id\"\r\n\r\n2\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--";
req.setHeader('content-type', 'multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW');
req.write(postData);
req.end();
Usage and Examples
Body parameters
Name
Description
bankdetails
{
accountId=4785001
cardtoken=VC10000000000008591111
total_amt=5000
seller_amount=3000
owner_amount=2000
username=sathish
card_expiry_month=02
card_expiry_year=2020
mode=sandbox
type=zift
user_id=2
}
Responses
Status: 200 - Success
Responses
Status: 302 - Error
Split Payment Using Single
This API can be used to create split payment by using card details.
POST
https://api.auction.io/auctioniopay/splitpaymentapisingle
Usage and Examples
curl --location --request POST 'https://api.auction.io/auctioniopay/splitpaymentapisingle' \
--header 'Cookie: connect.sid=s%3A2zLGLlhe_XTBpZbkWVy0KeQnOuxeNOOO.ImUfCXv9NmRAEU8ltfOk4VbfxLjU7WIYON8IZD0PWh0' \
--form 'cardtoken=VC10000000000008591111' \
--form 'total_amt=50' \
--form 'username=sathish' \
--form 'card_expiry_month=02' \
--form 'card_expiry_year=2020' \
--form 'mode=sandbox' \
--form 'type=zift' \
--form 'user_id=2'
var form = new FormData();
form.append("cardtoken", "VC10000000000008591111");
form.append("total_amt", "50");
form.append("username", "sathish");
form.append("card_expiry_month", "02");
form.append("card_expiry_year", "2020");
form.append("mode", "sandbox");
form.append("type", "zift");
form.append("user_id", "2");
var settings = {
"url": "https://api.auction.io/auctioniopay/splitpaymentapisingle",
"method": "POST",
"timeout": 0,
"headers": {
"Cookie": "connect.sid=s%3A2zLGLlhe_XTBpZbkWVy0KeQnOuxeNOOO.ImUfCXv9NmRAEU8ltfOk4VbfxLjU7WIYON8IZD0PWh0"
},
"processData": false,
"mimeType": "multipart/form-data",
"contentType": false,
"data": form
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var request = require('request');
var options = {
'method': 'POST',
'url': 'https://api.auction.io/auctioniopay/splitpaymentapisingle',
'headers': {
'Cookie': 'connect.sid=s%3A2zLGLlhe_XTBpZbkWVy0KeQnOuxeNOOO.ImUfCXv9NmRAEU8ltfOk4VbfxLjU7WIYON8IZD0PWh0'
},
formData: {
'cardtoken': 'VC10000000000008591111',
'total_amt': '50',
'username': 'sathish',
'card_expiry_month': '02',
'card_expiry_year': '2020',
'mode': 'sandbox',
'type': 'zift',
'user_id': '2'
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
Usage and Examples
Body parameters
Name
Description
bankdetails
{
'cardtoken': 'VC10000000000008591111',
'total_amt': '50',
'username': 'sathish',
'card_expiry_month': '02',
'card_expiry_year': '2020',
'mode': 'sandbox',
'type': 'zift',
'user_id': '2'
}
Responses
Status: 200 - Success
Responses
Status: 302 - Error
Split Payment Using Multiple
This API can be used to create split payment by using card details.
POST
https://api.auction.io/auctioniopay/splitpaymentapimuli
Usage and Examples
curl --location --request POST 'https://api.auction.io/auctioniopay/splitpaymentapimuli' \
--header 'Cookie: connect.sid=s%3A2zLGLlhe_XTBpZbkWVy0KeQnOuxeNOOO.ImUfCXv9NmRAEU8ltfOk4VbfxLjU7WIYON8IZD0PWh0' \
--form 'accountId=2990001' \
--form 'cardtoken=VC10000000000011561111' \
--form 'total_amt=60' \
--form 'username=sathish' \
--form 'card_expiry_month=02' \
--form 'card_expiry_year=2020' \
--form 'mode=sandbox' \
--form 'type=zift' \
--form 'user_id=2'
var form = new FormData();
form.append("accountId", "2990001");
form.append("cardtoken", "VC10000000000011561111");
form.append("total_amt", "60");
form.append("username", "sathish");
form.append("card_expiry_month", "02");
form.append("card_expiry_year", "2020");
form.append("mode", "sandbox");
form.append("type", "zift");
form.append("user_id", "2");
var settings = {
"url": "https://api.auction.io/auctioniopay/splitpaymentapimuli",
"method": "POST",
"timeout": 0,
"headers": {
"Cookie": "connect.sid=s%3A2zLGLlhe_XTBpZbkWVy0KeQnOuxeNOOO.ImUfCXv9NmRAEU8ltfOk4VbfxLjU7WIYON8IZD0PWh0"
},
"processData": false,
"mimeType": "multipart/form-data",
"contentType": false,
"data": form
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var https = require('follow-redirects').https;
var fs = require('fs');
var options = {
'method': 'POST',
'hostname': 'api.auction.io',
'path': '/auctioniopay/splitpaymentapimuli',
'headers': {
'Cookie': 'connect.sid=s%3A2zLGLlhe_XTBpZbkWVy0KeQnOuxeNOOO.ImUfCXv9NmRAEU8ltfOk4VbfxLjU7WIYON8IZD0PWh0'
},
'maxRedirects': 20
};
var req = https.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
var postData = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"accountId\"\r\n\r\n2990001\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"cardtoken\"\r\n\r\nVC10000000000011561111\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"total_amt\"\r\n\r\n60\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"username\"\r\n\r\nsathish\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"card_expiry_month\"\r\n\r\n02\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"card_expiry_year\"\r\n\r\n2020\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"mode\"\r\n\r\nsandbox\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"type\"\r\n\r\nzift\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"user_id\"\r\n\r\n2\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--";
req.setHeader('content-type', 'multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW');
req.write(postData);
req.end();
Usage and Examples
Body parameters
Name
Description
bankdetails
{
'accountId': '2990001',
'cardtoken': 'VC10000000000011561111',
'total_amt': '60',
'username': 'sathish',
'card_expiry_month': '02',
'card_expiry_year': '2020',
'mode': 'sandbox',
'type': 'zift',
'user_id': '2'
}
Responses
Status: 200 - Success
Responses
Status: 302 - Error
Add Payment Token Details
This API can be used to add payment method by using token details.
POST
https://api.auction.io/auctioniopay/paymenttokendetils
Usage and Examples
curl --location --request POST 'https://api.auction.io/auctioniopay/paymenttokendetils' \
--header 'Cookie: connect.sid=s%3A2zLGLlhe_XTBpZbkWVy0KeQnOuxeNOOO.ImUfCXv9NmRAEU8ltfOk4VbfxLjU7WIYON8IZD0PWh0' \
--form 'client_id=3f21ef5ec9ebc579b36f80b275b271ec2874' \
--form 'secret_id=0e1fc719d9bd853cbd2dc19652ab649f6c18bcd4b45ee1f5030229a9977b988b' \
--form 'account_token=6a66be4798b880' \
--form 'zift_url=https://sandbox-secure.ziftpay.com/gates/xurl' \
--form 'mode=sandbox' \
--form 'type=zift'
var form = new FormData();
form.append("client_id", "3f21ef5ec9ebc579b36f80b275b271ec2874");
form.append("secret_id", "0e1fc719d9bd853cbd2dc19652ab649f6c18bcd4b45ee1f5030229a9977b988b");
form.append("account_token", "6a66be4798b880");
form.append("zift_url", "https://sandbox-secure.ziftpay.com/gates/xurl");
form.append("mode", "sandbox");
form.append("type", "zift");
var settings = {
"url": "https://api.auction.io/auctioniopay/paymenttokendetils",
"method": "POST",
"timeout": 0,
"headers": {
"Cookie": "connect.sid=s%3A2zLGLlhe_XTBpZbkWVy0KeQnOuxeNOOO.ImUfCXv9NmRAEU8ltfOk4VbfxLjU7WIYON8IZD0PWh0"
},
"processData": false,
"mimeType": "multipart/form-data",
"contentType": false,
"data": form
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var https = require('follow-redirects').https;
var fs = require('fs');
var options = {
'method': 'POST',
'hostname': 'api.auction.io',
'path': '/auctioniopay/paymenttokendetils',
'headers': {
'Cookie': 'connect.sid=s%3A2zLGLlhe_XTBpZbkWVy0KeQnOuxeNOOO.ImUfCXv9NmRAEU8ltfOk4VbfxLjU7WIYON8IZD0PWh0'
},
'maxRedirects': 20
};
var req = https.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
var postData = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"client_id\"\r\n\r\n3f21ef5ec9ebc579b36f80b275b271ec2874\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"secret_id\"\r\n\r\n0e1fc719d9bd853cbd2dc19652ab649f6c18bcd4b45ee1f5030229a9977b988b\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"account_token\"\r\n\r\n6a66be4798b880\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"zift_url\"\r\n\r\nhttps://sandbox-secure.ziftpay.com/gates/xurl\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"mode\"\r\n\r\nsandbox\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"type\"\r\n\r\nzift\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--";
req.setHeader('content-type', 'multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW');
req.write(postData);
req.end();
Usage and Examples
Body parameters
Name
Description
tokendetails
{
'client_id': '3f21ef5ec9ebc579b36f80b275b271ec2874',
'secret_id': '0e1fc719d9bd853cbd2dc19652ab649f6c18bcd4b45ee1f5030229a9977b988b',
'account_token': '6a66be4798b880',
'zift_url': 'https://sandbox-secure.ziftpay.com/gates/xurl',
'mode': 'sandbox',
'type': 'zift'
}
Responses
Status: 200 - Success
Responses
Status: 302 - Error
Get Payment Token Details
This API can be used to get payment methods by using token details.
GET
https://api.auction.io/auctioniopay/paymentdetils
Usage and Examples
curl --location --request GET 'https://api.auction.io/auctioniopay/paymentdetils?mode=sandbox&type=zift' \
--header 'Origin: https://api.auction.io' \
--header 'Cookie: connect.sid=s%3A2zLGLlhe_XTBpZbkWVy0KeQnOuxeNOOO.ImUfCXv9NmRAEU8ltfOk4VbfxLjU7WIYON8IZD0PWh0'
var settings = {
"url": "https://api.auction.io/auctioniopay/paymentdetils?mode=sandbox&type=zift",
"method": "GET",
"timeout": 0,
"headers": {
"Origin": "https://api.auction.io",
"Cookie": "connect.sid=s%3A2zLGLlhe_XTBpZbkWVy0KeQnOuxeNOOO.ImUfCXv9NmRAEU8ltfOk4VbfxLjU7WIYON8IZD0PWh0"
},
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var https = require('follow-redirects').https;
var fs = require('fs');
var options = {
'method': 'GET',
'hostname': 'api.auction.io',
'path': '/auctioniopay/paymentdetils?mode=sandbox&type=zift',
'headers': {
'Origin': 'https://api.auction.io',
'Cookie': 'connect.sid=s%3A2zLGLlhe_XTBpZbkWVy0KeQnOuxeNOOO.ImUfCXv9NmRAEU8ltfOk4VbfxLjU7WIYON8IZD0PWh0'
},
'maxRedirects': 20
};
var req = https.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
req.end();
Headers
[{"key":"Origin","value":"https://api.auction.io"}]
Params
[{"key":"mode","value":"sandbox","equals":true,"description":"","enabled":true},{"key":"type","value":"zift","equals":true,"description":"","enabled":true}]
Responses
Status: 200 - Success
{
"success": true,
"error": false,
"data": [
{
"id": 10,
"client_id": "api-actsft-rst-166",
"secret_id": "PNAjq546h6lVTm8BrZmVVeiTGFeIP85t",
"account_token": "4784001",
"site_id": "AS0008",
"date_added": "2020-04-28T14:16:41.000Z",
"mode": "sandbox",
"type": "zift",
"payment_url": "https://sandbox-secure.ziftpay.com/gates/xurl",
"updated_at": "2020-04-28T14:16:41.000Z",
"commission_fee": 0
}
]
}
Responses
Status: 302 - Error
{
"success": false,
"error": true,
"data": {
"error": "Please enter the payment type"
}
}
Product Message
This API can be used to fetch product message details.
POST
https://api.auction.io/mobileapi/product_message
Usage and Examples
curl --location --request POST 'https://api.auction.io/mobileapi/product_message' \
--form 'to_id=98' \
--form 'to_email=sat@gmail.com' \
--form 'from_id=99' \
--form 'message=test' \
--form 'pro_id=56' \
--form 'type=msg'
var form = new FormData();
form.append("to_id", "98");
form.append("to_email", "sat@gmail.com");
form.append("from_id", "99");
form.append("message", "test");
form.append("pro_id", "56");
form.append("type", "msg");
var settings = {
"url": "https://api.auction.io/mobileapi/product_message",
"method": "POST",
"timeout": 0,
"processData": false,
"mimeType": "multipart/form-data",
"contentType": false,
"data": form
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var https = require('follow-redirects').https;
var fs = require('fs');
var options = {
'method': 'POST',
'hostname': 'api.auction.io',
'path': '/mobileapi/product_message',
'headers': {
},
'maxRedirects': 20
};
var req = https.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
var postData = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"to_id\"\r\n\r\n98\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"to_email\"\r\n\r\nsat@gmail.com\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"from_id\"\r\n\r\n99\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"message\"\r\n\r\ntest\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"pro_id\"\r\n\r\n56\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"type\"\r\n\r\nmsg\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--";
req.setHeader('content-type', 'multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW');
req.write(postData);
req.end();
Responses
Status: 200 - Success
{
{
"success": true,
"error": false,
"data": [
{
"id": 344,
"from_id": 99,
"to_id": 98,
"subject": "",
"message": "test",
"date_sent": "2020-02-20T09:30:19.000Z",
"read": 0,
"from_status": "open",
"to_status": "open",
"date_read": "0000-00-00 00:00:00",
"r_id": 80849454,
"project_id": 56,
"classified_id": 0,
"auctionioid": 0,
"to_email": "sat@gmail.com",
"site_id": "AS0008",
"type": "msg",
"fromfirst_name": null,
"fromlast_name": null,
"tofirst_name": null,
"tolast_name": null
},
{
"id": 2338,
"from_id": 99,
"to_id": 98,
"subject": "",
"message": "test",
"date_sent": "2020-04-21T10:03:09.000Z",
"read": 0,
"from_status": "open",
"to_status": "open",
"date_read": "0000-00-00 00:00:00",
"r_id": 94132875,
"project_id": 56,
"classified_id": 0,
"auctionioid": 0,
"to_email": "sat@gmail.com",
"site_id": "AS0008",
"type": "msg",
"fromfirst_name": null,
"fromlast_name": null,
"tofirst_name": null,
"tolast_name": null
},
{
"id": 2339,
"from_id": 99,
"to_id": 98,
"subject": "",
"message": "test",
"date_sent": "2020-04-22T05:52:25.000Z",
"read": 0,
"from_status": "open",
"to_status": "open",
"date_read": "0000-00-00 00:00:00",
"r_id": 15538852,
"project_id": 56,
"classified_id": 0,
"auctionioid": 0,
"to_email": "sat@gmail.com",
"site_id": "AS0008",
"type": "msg",
"fromfirst_name": null,
"fromlast_name": null,
"tofirst_name": null,
"tolast_name": null
},
{
"id": 2340,
"from_id": 99,
"to_id": 98,
"subject": "",
"message": "test",
"date_sent": "2020-04-22T05:52:47.000Z",
"read": 0,
"from_status": "open",
"to_status": "open",
"date_read": "0000-00-00 00:00:00",
"r_id": 36820861,
"project_id": 56,
"classified_id": 0,
"auctionioid": 0,
"to_email": "sat@gmail.com",
"site_id": "AS0008",
"type": "msg",
"fromfirst_name": null,
"fromlast_name": null,
"tofirst_name": null,
"tolast_name": null
},
{
"id": 2341,
"from_id": 99,
"to_id": 98,
"subject": "",
"message": "test",
"date_sent": "2020-04-22T05:58:24.000Z",
"read": 0,
"from_status": "open",
"to_status": "open",
"date_read": "0000-00-00 00:00:00",
"r_id": 45475986,
"project_id": 56,
"classified_id": 0,
"auctionioid": 0,
"to_email": "sat@gmail.com",
"site_id": "AS0008",
"type": "msg",
"fromfirst_name": null,
"fromlast_name": null,
"tofirst_name": null,
"tolast_name": null
}
]
}
}
Responses
Status: 302 - Error
{
"success": false,
"error": true,
"data": {
"error": "Invaild type"
}
}
Product Message Buyer
This API can be used to fetch product message details of Buyer.
POST
https://api.auction.io/mobileapi/product_message_buyer
Usage and Examples
curl --location --request POST 'https://api.auction.io/mobileapi/product_message_buyer' \
--form 'to_id=98' \
--form 'from_id=99' \
--form 'pro_id=56' \
--form 'type=files'
var form = new FormData();
form.append("to_id", "98");
form.append("from_id", "99");
form.append("pro_id", "56");
form.append("type", "files");
var settings = {
"url": "https://api.auction.io/mobileapi/product_message_buyer",
"method": "POST",
"timeout": 0,
"processData": false,
"mimeType": "multipart/form-data",
"contentType": false,
"data": form
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var https = require('follow-redirects').https;
var fs = require('fs');
var options = {
'method': 'POST',
'hostname': 'api.auction.io',
'path': '/mobileapi/product_message_buyer',
'headers': {
},
'maxRedirects': 20
};
var req = https.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
var postData = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"to_id\"\r\n\r\n98\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"from_id\"\r\n\r\n99\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"pro_id\"\r\n\r\n56\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"type\"\r\n\r\nfiles\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--";
req.setHeader('content-type', 'multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW');
req.write(postData);
req.end();
Responses
Status: 200 - Success
{
"success": true,
"error": false,
"data": [
{
"id": 347,
"from_id": 99,
"to_id": 98,
"subject": "",
"message": "263613b566be1ee8a7f0752a536e417f.docx",
"date_sent": "2020-02-20T09:35:18.000Z",
"read": 0,
"from_status": "open",
"to_status": "open",
"date_read": "0000-00-00 00:00:00",
"r_id": 73370293,
"project_id": 56,
"classified_id": 0,
"auctionioid": 0,
"to_email": "sat@gmail.com",
"site_id": "AS0008",
"type": "files",
"fromfirst_name": null,
"fromlast_name": null,
"tofirst_name": null,
"tolast_name": null
},
{
"id": 2267,
"from_id": 99,
"to_id": 98,
"subject": "",
"message": "032b4e822fcdf12418989b8beea49715.docx",
"date_sent": "2020-04-10T11:00:48.000Z",
"read": 0,
"from_status": "open",
"to_status": "open",
"date_read": "0000-00-00 00:00:00",
"r_id": 83809765,
"project_id": 56,
"classified_id": 0,
"auctionioid": 0,
"to_email": "sat@gmail.com",
"site_id": "AS0008",
"type": "files",
"fromfirst_name": null,
"fromlast_name": null,
"tofirst_name": null,
"tolast_name": null
}
}
Responses
Status: 302 - Error
{
"success": false,
"error": true,
"data": {
"error": "Invaild type"
}
}
Product Message Seller
This API can be used to fetch product message details of seller.
POST
https://api.auction.io/mobileapi/product_message_seller
Usage and Examples
curl --location --request POST 'https://api.auction.io/mobileapi/product_message_seller' \
--form 'seller_id=98' \
--form 'pro_id=56' \
--form 'type=file'
var form = new FormData();
form.append("seller_id", "98");
form.append("pro_id", "56");
form.append("type", "file");
var settings = {
"url": "https://api.auction.io/mobileapi/product_message_seller",
"method": "POST",
"timeout": 0,
"processData": false,
"mimeType": "multipart/form-data",
"contentType": false,
"data": form
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var https = require('follow-redirects').https;
var fs = require('fs');
var options = {
'method': 'POST',
'hostname': 'api.auction.io',
'path': '/mobileapi/register',
'headers': {
'domain': 'auction.io:2097',
'Cookie': 'connect.sid=s%3AhM2TvvFlXTfvJ84_M8tdFblSdCwmYw7o.FlzRS8UqwsYrbtE6%2B4dT5WZYMST%2Bg8C6B4C0bA9WkDU'
},
'maxRedirects': 20
};
var req = https.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
var postData = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"role\"\r\n\r\nhatchery\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"first_name\"\r\n\r\nprimary\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"middle_name\"\r\n\r\nhatchery\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"last_name\"\r\n\r\nhatchery\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"vessel_name\"\r\n\r\nhatchery\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"mailing_address\"\r\n\r\ntest.auction.io\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"email\"\r\n\r\nrajkumar.auctionio+hatcherytest155@gmail.com\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"phone\"\r\n\r\n0123456789\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"alternate_phone\"\r\n\r\n0123456789\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"vhf_channel\"\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"tertiary_phone\"\r\n\r\n3456789012\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"category\"\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"company_name\"\r\n\r\nhatchery company\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"primary_office_number\"\r\n\r\n0123456789\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"secondary_first_name\"\r\n\r\nsecondary \r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"secondary_phone\"\r\n\r\n2345678901\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"secondary_mailing_address\"\r\n\r\ntest.auction.io\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"tertiary_first_name\"\r\n\r\ntertiary\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"tertiary_mailing_address\"\r\n\r\ntest.auction.io\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"registered_number\"\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"nmfs_number\"\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"password_hash\"\r\n\r\n12345678\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--";
req.setHeader('content-type', 'multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW');
req.write(postData);
req.end();
Responses
Status: 200 - Success
{
"success": true,
"error": false,
"data": []
}
Responses
Status: 302 - Error
{
"success": false,
"error": true,
"data": {
"error": "Invaild type"
}
}
Buyer Register
This API can be used to create new user with the role of buyer. New user need to enter the registration details to complete the registration.
POST
https://api.auction.io/mobileapi/register
Usage and Examples
curl --location --request POST 'https://api.auction.io/mobileapi/register' \
--header 'domain: auction.io:2097' \
--header 'Cookie: connect.sid=s%3AhM2TvvFlXTfvJ84_M8tdFblSdCwmYw7o.FlzRS8UqwsYrbtE6%2B4dT5WZYMST%2Bg8C6B4C0bA9WkDU' \
--form 'role=buyer' \
--form 'first_name=buyer' \
--form 'middle_name=buyer' \
--form 'last_name=user' \
--form 'vessel_name=' \
--form 'mailing_address=test.auction.io' \
--form 'email=rajkumar.auctionio+buyertest2@gmail.com' \
--form 'phone=1234567890' \
--form 'alternate_phone=' \
--form 'vhf_channel=' \
--form 'sat_phone=' \
--form 'iridium_phone=' \
--form 'category=Hatchery Salmon' \
--form 'company_name=buyer company' \
--form 'secondary_first_name=' \
--form 'secondary_phone=' \
--form 'secondary_mailing_address=' \
--form 'tertiary_first_name=' \
--form 'tertiary_phone=' \
--form 'tertiary_mailing_address=' \
--form 'registered_number=REG123456' \
--form 'nmfs_number=NMF12345' \
--form 'license_number=LIC123456' \
--form 'landing_port=Cordova, AK|Petersburg, AK|Seward, AK|California' \
--form 'password_hash=12345678'
var form = new FormData();
form.append("role", "buyer");
form.append("first_name", "buyer");
form.append("middle_name", "buyer");
form.append("last_name", "user");
form.append("vessel_name", "");
form.append("mailing_address", "test.auction.io");
form.append("email", "rajkumar.auctionio+buyertest2@gmail.com");
form.append("phone", "1234567890");
form.append("alternate_phone", "");
form.append("vhf_channel", "");
form.append("sat_phone", "");
form.append("iridium_phone", "");
form.append("category", "Hatchery Salmon");
form.append("company_name", "buyer company");
form.append("secondary_first_name", "");
form.append("secondary_phone", "");
form.append("secondary_mailing_address", "");
form.append("tertiary_first_name", "");
form.append("tertiary_phone", "");
form.append("tertiary_mailing_address", "");
form.append("registered_number", "REG123456");
form.append("nmfs_number", "NMF12345");
form.append("license_number", "LIC123456");
form.append("landing_port", "Cordova, AK|Petersburg, AK|Seward, AK|California");
form.append("password_hash", "12345678");
var settings = {
"url": "https://api.auction.io/mobileapi/register",
"method": "POST",
"timeout": 0,
"headers": {
"domain": "auction.io:2097",
"Cookie": "connect.sid=s%3AhM2TvvFlXTfvJ84_M8tdFblSdCwmYw7o.FlzRS8UqwsYrbtE6%2B4dT5WZYMST%2Bg8C6B4C0bA9WkDU"
},
"processData": false,
"mimeType": "multipart/form-data",
"contentType": false,
"data": form
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var https = require('follow-redirects').https;
var fs = require('fs');
var options = {
'method': 'POST',
'hostname': 'api.auction.io',
'path': '/mobileapi/register',
'headers': {
'domain': 'auction.io:2097',
'Cookie': 'connect.sid=s%3AhM2TvvFlXTfvJ84_M8tdFblSdCwmYw7o.FlzRS8UqwsYrbtE6%2B4dT5WZYMST%2Bg8C6B4C0bA9WkDU'
},
'maxRedirects': 20
};
var req = https.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
var postData = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"role\"\r\n\r\nbuyer\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"first_name\"\r\n\r\nbuyer\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"middle_name\"\r\n\r\nbuyer\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"last_name\"\r\n\r\nuser\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"vessel_name\"\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"mailing_address\"\r\n\r\ntest.auction.io\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"email\"\r\n\r\nrajkumar.auctionio+buyertest2@gmail.com\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"phone\"\r\n\r\n1234567890\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"alternate_phone\"\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"vhf_channel\"\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"sat_phone\"\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"iridium_phone\"\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"category\"\r\n\r\nHatchery Salmon\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"company_name\"\r\n\r\nbuyer company\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"secondary_first_name\"\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"secondary_phone\"\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"secondary_mailing_address\"\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"tertiary_first_name\"\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"tertiary_phone\"\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"tertiary_mailing_address\"\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"registered_number\"\r\n\r\nREG123456\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"nmfs_number\"\r\n\r\nNMF12345\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"license_number\"\r\n\r\nLIC123456\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"landing_port\"\r\n\r\nCordova, AK|Petersburg, AK|Seward, AK|California\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"password_hash\"\r\n\r\n12345678\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--";
req.setHeader('content-type', 'multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW');
req.write(postData);
req.end();
Headers
{"key":"domain","value":"auction.io:2097","type":"text"}
Usage and Examples
Body parameters
Name
Description
registrationdetails
{
"role":"buyer"
"first_name":"primary"
"middle_name":"buyer"
"last_name":"buyer"
"vessel_name":"buyer"
"mailing_address":"test.auction.io"
"email":"testuser@gmail.com"
"phone":"0123456789"
"alternate_phone":"0123456789"
"vhf_channel":""
"tertiary_phone":"3456789012"
"category":""
"company_name":"buyer company"
"primary_office_number":"0123456789"
"secondary_first_name":"secondary "
"secondary_phone":"2345678901"
"secondary_mailing_address":"test.auction.io"
"tertiary_first_name":"tertiary"
"tertiary_mailing_address":"test.auction.io"
"registered_number":""
"nmfs_number":""
"password_hash":"12345678"
}
Responses
Status: 200 - Success
{
"role":"string"
"first_name":"string"
"middle_name":"string"
"last_name":"string"
"vessel_name":"string"
"mailing_address":"string"
"email":"string"
"phone":"number"
"alternate_phone":"number"
"vhf_channel":"string"
"tertiary_phone":"number"
"category":"string"
"company_name":"string"
"primary_office_number":"number"
"secondary_first_name":"string"
"secondary_phone":"number"
"secondary_mailing_address":"string"
"tertiary_first_name":"string"
"tertiary_mailing_address":"string"
"registered_number":"number"
"nmfs_number":"number"
"password_hash":"number"
}
{
"role":"buyer"
"first_name":"primary"
"middle_name":"buyer"
"last_name":"buyer"
"vessel_name":"buyer"
"mailing_address":"test.auction.io"
"email":"testuser@gmail.com"
"phone":"0123456789"
"alternate_phone":"0123456789"
"vhf_channel":""
"tertiary_phone":"3456789012"
"category":""
"company_name":"buyer company"
"primary_office_number":"0123456789"
"secondary_first_name":"secondary "
"secondary_phone":"2345678901"
"secondary_mailing_address":"test.auction.io"
"tertiary_first_name":"tertiary"
"tertiary_mailing_address":"test.auction.io"
"registered_number":""
"nmfs_number":""
"password_hash":"12345678"
}
Responses
Status: 302 - Error
{
msg : string,
returndata : string
}
{
"success": "no",
"failedreason": "Email already exists"
}
Hatchery Register
This API can be used to create new user with the role of hatchery. New user need to enter the registration details to complete the registration.
POST
https://api.auction.io/mobileapi/register
Usage and Examples
curl --location --request POST 'https://api.auction.io/mobileapi/register' \
--header 'domain: auction.io:2097' \
--header 'Cookie: connect.sid=s%3AhM2TvvFlXTfvJ84_M8tdFblSdCwmYw7o.FlzRS8UqwsYrbtE6%2B4dT5WZYMST%2Bg8C6B4C0bA9WkDU' \
--form 'role=hatchery' \
--form 'first_name=primary' \
--form 'middle_name=hatchery' \
--form 'last_name=hatchery' \
--form 'vessel_name=hatchery' \
--form 'mailing_address=test.auction.io' \
--form 'email=rajkumar.auctionio+hatcherytest155@gmail.com' \
--form 'phone=0123456789' \
--form 'alternate_phone=0123456789' \
--form 'vhf_channel=' \
--form 'tertiary_phone=3456789012' \
--form 'category=' \
--form 'company_name=hatchery company' \
--form 'primary_office_number=0123456789' \
--form 'secondary_first_name=secondary ' \
--form 'secondary_phone=2345678901' \
--form 'secondary_mailing_address=test.auction.io' \
--form 'tertiary_first_name=tertiary' \
--form 'tertiary_mailing_address=test.auction.io' \
--form 'registered_number=' \
--form 'nmfs_number=' \
--form 'password_hash=12345678'
var form = new FormData();
form.append("role", "hatchery");
form.append("first_name", "primary");
form.append("middle_name", "hatchery");
form.append("last_name", "hatchery");
form.append("vessel_name", "hatchery");
form.append("mailing_address", "test.auction.io");
form.append("email", "rajkumar.auctionio+hatcherytest155@gmail.com");
form.append("phone", "0123456789");
form.append("alternate_phone", "0123456789");
form.append("vhf_channel", "");
form.append("tertiary_phone", "3456789012");
form.append("category", "");
form.append("company_name", "hatchery company");
form.append("primary_office_number", "0123456789");
form.append("secondary_first_name", "secondary ");
form.append("secondary_phone", "2345678901");
form.append("secondary_mailing_address", "test.auction.io");
form.append("tertiary_first_name", "tertiary");
form.append("tertiary_mailing_address", "test.auction.io");
form.append("registered_number", "");
form.append("nmfs_number", "");
form.append("password_hash", "12345678");
var settings = {
"url": "https://api.auction.io/mobileapi/register",
"method": "POST",
"timeout": 0,
"headers": {
"domain": "auction.io:2097",
"Cookie": "connect.sid=s%3AhM2TvvFlXTfvJ84_M8tdFblSdCwmYw7o.FlzRS8UqwsYrbtE6%2B4dT5WZYMST%2Bg8C6B4C0bA9WkDU"
},
"processData": false,
"mimeType": "multipart/form-data",
"contentType": false,
"data": form
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var http = require('follow-redirects').http;
var fs = require('fs');
var options = {
'method': 'POST',
'hostname': 'grazr.moblearn.net',
'port': 7095,
'path': '/mobileapi/register',
'headers': {
'Origin': 'auction.io:2097',
'Cookie': 'connect.sid=s%3A1fIvfHZbDtzydG54xj_AaRfd3Wk44F94.c40v37vPIb%2FdRipFWrQl719%2FP9Fi7JiW3kAaPw9UzxY'
},
'maxRedirects': 20
};
var req = http.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
var postData = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"role\"\r\n\r\nhatchery\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"first_name\"\r\n\r\nprimary\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"middle_name\"\r\n\r\nhatchery\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"last_name\"\r\n\r\nhatchery\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"vessel_name\"\r\n\r\nhatchery\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"mailing_address\"\r\n\r\ntest.auction.io\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"email\"\r\n\r\ntestuser@gmail.com\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"phone\"\r\n\r\n0123456789\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"alternate_phone\"\r\n\r\n0123456789\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"vhf_channel\"\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"tertiary_phone\"\r\n\r\n3456789012\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"category\"\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"company_name\"\r\n\r\nhatchery company\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"primary_office_number\"\r\n\r\n0123456789\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"secondary_first_name\"\r\n\r\nsecondary \r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"secondary_phone\"\r\n\r\n2345678901\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"secondary_mailing_address\"\r\n\r\ntest.auction.io\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"tertiary_first_name\"\r\n\r\ntertiary\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"tertiary_mailing_address\"\r\n\r\ntest.auction.io\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"registered_number\"\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"nmfs_number\"\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"password_hash\"\r\n\r\n12345678\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--";
req.setHeader('content-type', 'multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW');
req.write(postData);
req.end();
Headers
{"key":"domain","value":"auction.io:2097","type":"text"}
Usage and Examples
Body parameters
Name
Description
registrationdetails
{
"role":"Hatchery"
"first_name":"primary"
"middle_name":"Hatchery"
"last_name":"Hatchery"
"vessel_name":"Hatchery"
"mailing_address":"test.auction.io"
"email":"testuser@gmail.com"
"phone":"0123456789"
"alternate_phone":"0123456789"
"vhf_channel":""
"tertiary_phone":"3456789012"
"category":""
"company_name":"Hatchery company"
"primary_office_number":"0123456789"
"secondary_first_name":"secondary "
"secondary_phone":"2345678901"
"secondary_mailing_address":"test.auction.io"
"tertiary_first_name":"tertiary"
"tertiary_mailing_address":"test.auction.io"
"registered_number":""
"nmfs_number":""
"password_hash":"12345678"
}
Responses
Status: 200 - Success
{
"role":"string"
"first_name":"string"
"middle_name":"string"
"last_name":"string"
"vessel_name":"string"
"mailing_address":"string"
"email":"string"
"phone":"number"
"alternate_phone":"number"
"vhf_channel":"string"
"tertiary_phone":"number"
"category":"string"
"company_name":"string"
"primary_office_number":"number"
"secondary_first_name":"string"
"secondary_phone":"number"
"secondary_mailing_address":"string"
"tertiary_first_name":"string"
"tertiary_mailing_address":"string"
"registered_number":"number"
"nmfs_number":"number"
"password_hash":"number"
}
{
"role":"hatchery"
"first_name":"primary"
"middle_name":"hatchery"
"last_name":"hatchery"
"vessel_name":"hatchery"
"mailing_address":"test.auction.io"
"email":"testuser@gmail.com"
"phone":"0123456789"
"alternate_phone":"0123456789"
"vhf_channel":""
"tertiary_phone":"3456789012"
"category":""
"company_name":"hatchery company"
"primary_office_number":"0123456789"
"secondary_first_name":"secondary "
"secondary_phone":"2345678901"
"secondary_mailing_address":"test.auction.io"
"tertiary_first_name":"tertiary"
"tertiary_mailing_address":"test.auction.io"
"registered_number":""
"nmfs_number":""
"password_hash":"12345678"
}
Responses
Status: 302 - Error
{
msg : string,
returndata : string
}
{
"success": "no",
"failedreason": "Email already exists"
}
Fisherman Register
This API can be used to create new user with the role of fisherman. New user need to enter the registration details to complete the registration.
POST
https://api.auction.io/mobileapi/register
Usage and Examples
curl --location --request POST 'https://api.auction.io/mobileapi/register' \
--header 'domain: auction.io:2097' \
--header 'Cookie: connect.sid=s%3AhM2TvvFlXTfvJ84_M8tdFblSdCwmYw7o.FlzRS8UqwsYrbtE6%2B4dT5WZYMST%2Bg8C6B4C0bA9WkDU' \
--form 'role=fisherman' \
--form 'first_name=fisherman' \
--form 'middle_name=test' \
--form 'last_name=user' \
--form 'vessel_name=vessel name' \
--form 'mailing_address=test.auction.io' \
--form 'email=rajkumar.auctionio+fishermantest@gmail.com' \
--form 'phone=1234567890' \
--form 'alternate_phone=1234567890' \
--form 'vhf_channel=VHF123456' \
--form 'sat_phone=SAT123456' \
--form 'iridium_phone=IRI123456' \
--form 'category=1' \
--form 'company_name=' \
--form 'secondary_first_name= ' \
--form 'secondary_phone=' \
--form 'secondary_mailing_address=' \
--form 'tertiary_first_name=' \
--form 'tertiary_phone=' \
--form 'tertiary_mailing_address=' \
--form 'registered_number=' \
--form 'nmfs_number=' \
--form 'password_hash=12345678' \
--form 'password_salt=' \
--form 'site_id=' \
--form 'created_at='
var form = new FormData();
form.append("role", "fisherman");
form.append("first_name", "fisherman");
form.append("middle_name", "test");
form.append("last_name", "user");
form.append("vessel_name", "vessel name");
form.append("mailing_address", "test.auction.io");
form.append("email", "rajkumar.auctionio+fishermantest@gmail.com");
form.append("phone", "1234567890");
form.append("alternate_phone", "1234567890");
form.append("vhf_channel", "VHF123456");
form.append("sat_phone", "SAT123456");
form.append("iridium_phone", "IRI123456");
form.append("category", "1");
form.append("company_name", "");
form.append("secondary_first_name", " ");
form.append("secondary_phone", "");
form.append("secondary_mailing_address", "");
form.append("tertiary_first_name", "");
form.append("tertiary_phone", "");
form.append("tertiary_mailing_address", "");
form.append("registered_number", "");
form.append("nmfs_number", "");
form.append("password_hash", "12345678");
form.append("password_salt", "");
form.append("site_id", "");
form.append("created_at", "");
var settings = {
"url": "https://api.auction.io/mobileapi/register",
"method": "POST",
"timeout": 0,
"headers": {
"domain": "auction.io:2097",
"Cookie": "connect.sid=s%3AhM2TvvFlXTfvJ84_M8tdFblSdCwmYw7o.FlzRS8UqwsYrbtE6%2B4dT5WZYMST%2Bg8C6B4C0bA9WkDU"
},
"processData": false,
"mimeType": "multipart/form-data",
"contentType": false,
"data": form
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var https = require('follow-redirects').https;
var fs = require('fs');
var options = {
'method': 'POST',
'hostname': 'api.auction.io',
'path': '/mobileapi/register',
'headers': {
'domain': 'auction.io:2097',
'Cookie': 'connect.sid=s%3AhM2TvvFlXTfvJ84_M8tdFblSdCwmYw7o.FlzRS8UqwsYrbtE6%2B4dT5WZYMST%2Bg8C6B4C0bA9WkDU'
},
'maxRedirects': 20
};
var req = https.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
var postData = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"role\"\r\n\r\nfisherman\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"first_name\"\r\n\r\nfisherman\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"middle_name\"\r\n\r\ntest\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"last_name\"\r\n\r\nuser\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"vessel_name\"\r\n\r\nvessel name\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"mailing_address\"\r\n\r\ntest.auction.io\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"email\"\r\n\r\nrajkumar.auctionio+fishermantest@gmail.com\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"phone\"\r\n\r\n1234567890\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"alternate_phone\"\r\n\r\n1234567890\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"vhf_channel\"\r\n\r\nVHF123456\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"sat_phone\"\r\n\r\nSAT123456\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"iridium_phone\"\r\n\r\nIRI123456\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"category\"\r\n\r\n1\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"company_name\"\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"secondary_first_name\"\r\n\r\n \r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"secondary_phone\"\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"secondary_mailing_address\"\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"tertiary_first_name\"\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"tertiary_phone\"\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"tertiary_mailing_address\"\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"registered_number\"\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"nmfs_number\"\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"password_hash\"\r\n\r\n12345678\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"password_salt\"\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"site_id\"\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"created_at\"\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--";
req.setHeader('content-type', 'multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW');
req.write(postData);
req.end();
Headers
{"key":"domain","value":"auction.io:2097","type":"text"}
Usage and Examples
Body parameters
Name
Description
registrationdetails
{
"role":"fisherman"
"first_name":"primary"
"middle_name":"fisherman"
"last_name":"fisherman"
"vessel_name":"fisherman"
"mailing_address":"test.auction.io"
"email":"testuser@gmail.com"
"phone":"0123456789"
"alternate_phone":"0123456789"
"vhf_channel":""
"tertiary_phone":"3456789012"
"category":""
"company_name":"fisherman company"
"primary_office_number":"0123456789"
"secondary_first_name":"secondary "
"secondary_phone":"2345678901"
"secondary_mailing_address":"test.auction.io"
"tertiary_first_name":"tertiary"
"tertiary_mailing_address":"test.auction.io"
"registered_number":""
"nmfs_number":""
"password_hash":"12345678"
}
Responses
Status: 200 - Success
{
"role":"string"
"first_name":"string"
"middle_name":"string"
"last_name":"string"
"vessel_name":"string"
"mailing_address":"string"
"email":"string"
"phone":"number"
"alternate_phone":"number"
"vhf_channel":"string"
"tertiary_phone":"number"
"category":"string"
"company_name":"string"
"primary_office_number":"number"
"secondary_first_name":"string"
"secondary_phone":"number"
"secondary_mailing_address":"string"
"tertiary_first_name":"string"
"tertiary_mailing_address":"string"
"registered_number":"number"
"nmfs_number":"number"
"password_hash":"number"
}
{
"status": "yes",
"message": "Register successful",
"data": {
"email": "rajkumar.auctionio+fishermantest@gmail.com",
"userid": 2227,
"username": "fisherman"
}
}
Responses
Status: 302 - Error
{
msg : string,
returndata : string
}
{
"success": "no",
"failedreason": "Email already exists"
}
Login
This method creates a JWT token for authorization. When given a username and password, JWT Token will be sent as a response. Expiry time can be set based on the requirement. Must include the Token in Authorization Header on all requests.
POST
http://grazr.moblearn.net:7095/mobileapi/login
Usage and Examples
curl --location --request POST 'http://grazr.moblearn.net:7095/mobileapi/login' \
--header 'Origin: grazr.moblearn.net' \
--header 'Cookie: connect.sid=s%3Ag5rCkJHz68Uqj9j7-YPMs-zpW5d5DnHD.pbHid2c5FmsVA%2B6fyfNP9KpjxDFPg9ENi8n9bCkTGyY' \
--form 'username=test1.auctionio+06@gmail.com' \
--form 'password=123456789'
var form = new FormData();
form.append("username", "test1.auctionio+06@gmail.com");
form.append("password", "123456789");
var settings = {
"url": "http://grazr.moblearn.net:7095/mobileapi/login",
"method": "POST",
"timeout": 0,
"headers": {
"Origin": "grazr.moblearn.net",
"Cookie": "connect.sid=s%3Ag5rCkJHz68Uqj9j7-YPMs-zpW5d5DnHD.pbHid2c5FmsVA%2B6fyfNP9KpjxDFPg9ENi8n9bCkTGyY"
},
"processData": false,
"mimeType": "multipart/form-data",
"contentType": false,
"data": form
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var http = require('follow-redirects').http;
var fs = require('fs');
var options = {
'method': 'POST',
'hostname': 'grazr.moblearn.net',
'port': 7095,
'path': '/mobileapi/login',
'headers': {
'Origin': 'grazr.moblearn.net',
'Cookie': 'connect.sid=s%3Ag5rCkJHz68Uqj9j7-YPMs-zpW5d5DnHD.pbHid2c5FmsVA%2B6fyfNP9KpjxDFPg9ENi8n9bCkTGyY'
},
'maxRedirects': 20
};
var req = http.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
var postData = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"username\"\r\n\r\ntest1.auctionio+06@gmail.com\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"password\"\r\n\r\n123456789\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--";
req.setHeader('content-type', 'multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW');
req.write(postData);
req.end();
Headers
{"key":"Origin","value":"grazr.moblearn.net","type":"text"}
Responses
Status: 200 - Success
{
{
username": "string",
"password": "number"
}
}
{
{
"status": "yes",
"message": "Login successful",
"data": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZWNvbmRhcnlfbWFpbGluZ19hZGRyZXNzIjoiIiwiY2l0eSI6IlRleGFzIiwiZW1haWwiOiJ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_YIvNmB1rW7tpUM4d2tGZWA"
}
}
Responses
Status: 302 - Error
{
"username": "string",
"password": "number"
}
{
"jurl" : "Invalid Username or Password",
"msg" : "no"
}
Get All Products
This API can be used to fetch all products by location and cid.
cid = customerID.
POST
http://grazr.moblearn.net:7095/mobileapi/mobilesearch?cid=3,2&location=sitka,US&orderby=1
Usage and Examples
curl --location --request GET 'http://grazr.moblearn.net:7095/mobileapi/mobilesearch?cid=3,2&location=sitka,US&orderby=1' \
--header 'Origin: auction.io:2097' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZWNvbmRhcnlfbWFpbGluZ19hZGRyZXNzIjoidGVzdCBzZWNvbmRhcnkgbWFpbCBhZGRyZXNzIiwiY2l0eSI6ImNoZW5uYWkiLCJlbWFpbCI6InJhamt1bWFyLmF1Y3Rpb25zb2Z0d2FyZStidXllcnRlc3RAZ21haWwuY29tIiwicmVnaXN0ZXJlZF9udW1iZXIiOiIxMjMxMjMiLCJubWZzX251bWJlciI6Ijc3Nzc3NyIsInBhc3N3b3JkX2hhc2giOiIzYzMxY2YxMjJjZDliZTJhYzQ4OGRkM2M5ZjYwM2U2NyIsInN0YXRlIjoidG4iLCJpc2VtcCI6MCwiY2F0ZWdvcnkiOiJ0ZXN0IiwibGljZW5zZV9udW1iZXIiOiI4OTg5ODkiLCJmaXJzdF9uYW1lIjoidGVzdDEiLCJ2ZXNzZWxfbmFtZSI6InRlc3QgdmVzc2VsIG5hbWUiLCJ0ZXJ0aWFyeV9maXJzdF9uYW1lIjoidGVzdCB0ZXJ0aWFyeSBmaXJzdCBuYW1lIiwiYWx0ZXJuYXRlX3Bob25lIjoiMTIzNDU2NzgiLCJpcmlkaXVtX3Bob25lIjoiNDQ0NDQ0IiwidGVydGlhcnlfbWFpbGluZ19hZGRyZXNzIjoidGVydGlhcnkgbWFpbCBhZGRyZXNzIiwiYWRtaW4iOjAsInZoZl9jaGFubmVsIjoidGVzdCB2aGYgY2hhbm5lbCIsIm1haWxpbmdfYWRkcmVzcyI6InRlc3RAdGVzdC5jb20iLCJzYXRfcGhvbmUiOiIzMzMzMzMiLCJjb3VudHJ5IjoiaW5kb2EiLCJyb2xlIjoiIiwiaWQiOjEyODksInNlY29uZGFyeV9waG9uZSI6IjU1NTU1IiwibWlkZGxlX25hbWUiOiJ0ZXN0IG1pZGRsZW5hbWUxIiwibGFuZGluZ19wb3J0IjoiVVMiLCJ6aXAiOiI2MDAwMDEiLCJ2ZXJpZnlfcGF5cGFsIjowLCJzdGF0dXMiOiJhY3RpdmUiLCJjYXJkX3Byb2ZpbGVpZCI6IiIsImxhc3RfbmFtZSI6InRlc3QgbGFzdG5hbWUxIiwicGFzc3dvcmRfc2FsdCI6IjEyMzQ1IiwiY29tcGFueV9uYW1lIjoidGVzdCBjb21wYW55X25hbWUiLCJzZWNvbmRhcnlfZmlyc3RfbmFtZSI6InRlc3Qgc2Vjb25kYXkgZmlyc3QgbmFtZSIsImNhcmRfcGF5bWVudGlkIjoiIiwidGVydGlhcnlfcGhvbmUiOiIxMTExMTEiLCJwaG9uZSI6Ijg0Mjg4Mzk0MzMiLCJpYXQiOjE1NzM3MTg1Njl9.IPFKilYnoR5Vx-aZ_ts0kYsTjx0POMeEp7VbcFNvxvM' \
--header 'Cookie: connect.sid=s%3Ag5rCkJHz68Uqj9j7-YPMs-zpW5d5DnHD.pbHid2c5FmsVA%2B6fyfNP9KpjxDFPg9ENi8n9bCkTGyY'
var settings = {
"url": "http://grazr.moblearn.net:7095/mobileapi/mobilesearch?cid=3,2&location=sitka,US&orderby=1",
"method": "GET",
"timeout": 0,
"headers": {
"Origin": "auction.io:2097",
"Authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZWNvbmRhcnlfbWFpbGluZ19hZGRyZXNzIjoidGVzdCBzZWNvbmRhcnkgbWFpbCBhZGRyZXNzIiwiY2l0eSI6ImNoZW5uYWkiLCJlbWFpbCI6InJhamt1bWFy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LCJzZWNvbmRhcnlfZmlyc3RfbmFtZSI6InRlc3Qgc2Vjb25kYXkgZmlyc3QgbmFtZSIsImNhcmRfcGF5bWVudGlkIjoiIiwidGVydGlhcnlfcGhvbmUiOiIxMTExMTEiLCJwaG9uZSI6Ijg0Mjg4Mzk0MzMiLCJpYXQiOjE1NzM3MTg1Njl9.IPFKilYnoR5Vx-aZ_ts0kYsTjx0POMeEp7VbcFNvxvM",
"Cookie": "connect.sid=s%3Ag5rCkJHz68Uqj9j7-YPMs-zpW5d5DnHD.pbHid2c5FmsVA%2B6fyfNP9KpjxDFPg9ENi8n9bCkTGyY"
},
"processData": false,
"mimeType": "multipart/form-data",
"contentType": false,
"data": form
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var http = require('follow-redirects').http;
var fs = require('fs');
var options = {
'method': 'GET',
'hostname': 'grazr.moblearn.net',
'port': 7095,
'path': '/mobileapi/mobilesearch?cid=3%2C2&location=sitka%2CUS&orderby=1',
'headers': {
'Origin': 'auction.io:2097',
'Authorization': 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZWNvbmRhcnlfbWFpbGluZ19hZGRyZXNzIjoidGVzdCBzZWNvbmRhcnkgbWFpbCBhZGRyZXNzIiwiY2l0eSI6ImNoZW5uYWkiLCJlbWFpbCI6InJhamt1bWFyLmF1Y3Rpb25zb2Z0d2FyZStidXllcnRlc3RAZ21haWwuY29tIiwicmVnaXN0ZXJlZF9udW1iZXIiOiIxMjMxMjMiLCJubWZzX251bWJlciI6Ijc3Nzc3NyIsInBhc3N3b3JkX2hhc2giOiIzYzMxY2YxMjJjZDliZTJhYzQ4OGRkM2M5ZjYwM2U2NyIsInN0YXRlIjoidG4iLCJpc2VtcCI6MCwiY2F0ZWdvcnkiOiJ0ZXN0IiwibGljZW5zZV9udW1iZXIiOiI4OTg5ODkiLCJmaXJzdF9uYW1lIjoidGVzdDEiLCJ2ZXNzZWxfbmFtZSI6InRlc3QgdmVzc2VsIG5hb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
var req = http.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
req.end();
Headers
{"key":"Origin","value":"auction.io:2097","type":"text"},
{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZWNvbmRhcnlfbWFpbGluZ19hZGRyZXNzIjoidGVzdCBzZWNvbmRhcnkgbWFpbCBhZGRyZXNzIiwiY2l0eSI6ImNoZW5uYWkiLCJlbWFpbCI6InJhamt1bWFyLmF1Y3Rpb25zb2Z0d2FyZStidXllcnRlc3RAZ21haWwuY29tIiwicmVnaXN0ZXJlZF9udW1iZXIiOiIxMjMxMjMiLCJubWZzX251bWJlciI6Ijc3Nzc3NyIsInBhc3N3b3JkX2hhc2giOiIzYzMxY2YxMjJjZDliZTJhYzQ4OGRkM2M5ZjYwM2U2NyIsInN0YXRlIjoidG4iLCJpc2VtcCI6MCwiY2F0ZWdvcnkiOiJ0ZXN0IiwibGljZW5zZV9udW1iZXIiOiI4OTg5ODkiLCJmaXJzdF9uYW1lIjoidGVzdDEiLCJ2ZXNzZWxfbmFtZSI6InRlc3QgdmVzc2VsIG5hbWUiLCJ0ZXJ0aWFyeV9maXJzdF9uYW1lIjoidGVzdCB0ZXJ0aWFyeSBmaXJzdCBuYW1lIiwiYWx0ZXJuYXRlX3Bob25lIjoiMTIzNDU2NzgiLCJpcmlkaXVtX3Bob25lIjoiNDQ0NDQ0IiwidGVydGlhcnlfbWFpbGluZ19hZGRyZXNzIjoidGVydGlhcnkgbWFpbCBhZGRyZXNzIiwiYWRtaW4iOjAsInZoZl9jaGFubmVsIjoidGVzdCB2aGYgY2hhbm5lbCIsIm1haWxpbmdfYWRkcmVzcyI6InRlc3RAdGVzdC5jb20iLCJzYXRfcGhvbmUiOiIzMzMzMzMiLCJjb3VudHJ5IjoiaW5kb2EiLCJyb2xlIjoiIiwiaWQiOjEyODksInNlY29uZGFyeV9waG9uZSI6IjU1NTU1IiwibWlkZGxlX25hbWUiOiJ0ZXN0IG1pZGRsZW5hbWUxIiwibGFuZGluZ19wb3J0IjoiVVMiLCJ6aXAiOiI2MDAwMDEiLCJ2ZXJpZnlfcGF5cGFsIjowLCJzdGF0dXMiOiJhY3RpdmUiLCJjYXJkX3Byb2ZpbGVpZCI6IiIsImxhc3RfbmFtZSI6InRlc3QgbGFzdG5hbWUxIiwicGFzc3dvcmRfc2FsdCI6IjEyMzQ1IiwiY29tcGFueV9uYW1lIjoidGVzdCBjb21wYW55X25hbWUiLCJzZWNvbmRhcnlfZmlyc3RfbmFtZSI6InRlc3Qgc2Vjb25kYXkgZmlyc3QgbmFtZSIsImNhcmRfcGF5bWVudGlkIjoiIiwidGVydGlhcnlfcGhvbmUiOiIxMTExMTEiLCJwaG9uZSI6Ijg0Mjg4Mzk0MzMiLCJpYXQiOjE1NzM3MTg1Njl9.IPFKilYnoR5Vx-aZ_ts0kYsTjx0POMeEp7VbcFNvxvM","type":"text"}
Params
{"key":"cid","value":"3,2","equals":true,"description":"","enabled":true},{"key":"location","value":"sitka,US","equals":true,"description":"","enabled":true},{"key":"orderby","value":"1","equals":true,"description":"","enabled":true}
Responses
Status: 200 - Success
{
{
"success": "yes",
"results": [
{
"id": 41,
"user_id": 1289,
"title": "Hunt",
"weight": 60,
"length": 0,
"width": 0,
"height": 0,
"qty": 4,
"state": "",
"city": "",
"description": "hunt",
"file_name": null,
"is_avatar": "",
"image": "3c9506d168ce5b9cec7418a943975997.jpg",
"date_added": "2019-12-31T07:43:21.000Z",
"date_closed": "2019-12-31T07:43:21.000Z",
"sprice": "0",
"rprice": "0",
"wprice": 0,
"market_status": "open",
"auctionioid": 91790748,
"auctioniotype": "",
"storeqty": 0,
"upc": "",
"modelnumber": "",
"lotof": "91790748",
"mixlotof": "0",
"manufacturer": "",
"size": "",
"finish": "",
"auctionionotes": "",
"qcdby": "",
"auctioniocondition": "",
"conditionunique": "",
"multiple_category": "3",
"hasshipping": 0,
"shippingcost": "0",
"shipnotavailable": 0,
"freightrequest": 0,
"localpickup": 1,
"location": "US",
"paymentmethod": "[\"Cash (Local Pick-up)\"]",
"msrp": 0,
"startprice": 0,
"ended_early": 0,
"palletcount": "",
"unitcount": 0,
"inventory_loc": "",
"latestbid": null,
"starttext": "Starting Price",
"pricestart": 0,
"wlist": 0,
"remainingDay": -9866254833,
"dateFclosed": "2019-12-31T07:43:21.000Z",
"closed": "2019-12-31T07:43:21.000Z",
"avatarorg": "http://grazr.moblearn.net:7095/images/logo.ico.png",
"ptitle": "Hunt"
},
{
"id": 166,
"user_id": 1289,
"title": "Hunt",
"weight": 60,
"length": 0,
"width": 0,
"height": 0,
"qty": 4,
"state": "",
"city": "",
"description": "hunt",
"file_name": null,
"is_avatar": "",
"image": "",
"date_added": "2020-04-23T07:50:27.000Z",
"date_closed": "2020-04-23T07:50:27.000Z",
"sprice": "0",
"rprice": "0",
"wprice": 0,
"market_status": "open",
"auctionioid": 47363889,
"auctioniotype": "",
"storeqty": 0,
"upc": "",
"modelnumber": "",
"lotof": "47363889",
"mixlotof": "0",
"manufacturer": "",
"size": "",
"finish": "",
"auctionionotes": "",
"qcdby": "",
"auctioniocondition": "",
"conditionunique": "",
"multiple_category": "3",
"hasshipping": 0,
"shippingcost": "0",
"shipnotavailable": 0,
"freightrequest": 0,
"localpickup": 1,
"location": "US",
"paymentmethod": "[\"Cash (Local Pick-up)\"]",
"msrp": 0,
"startprice": 0,
"ended_early": 0,
"palletcount": "",
"unitcount": 0,
"inventory_loc": "",
"latestbid": null,
"starttext": "Starting Price",
"pricestart": 0,
"wlist": 0,
"remainingDay": -16228833,
"dateFclosed": "2020-04-23T07:50:27.000Z",
"closed": "2020-04-23T07:50:27.000Z",
"avatarorg": "http://grazr.moblearn.net:7095/images/logo.ico.png",
"ptitle": "Hunt"
},
{
"id": 167,
"user_id": 1289,
"title": "Hunt",
"weight": 60,
"length": 0,
"width": 0,
"height": 0,
"qty": 4,
"state": "",
"city": "",
"description": "hunt",
"file_name": null,
"is_avatar": "",
"image": "",
"date_added": "2020-04-23T07:50:47.000Z",
"date_closed": "2020-04-23T07:50:47.000Z",
"sprice": "0",
"rprice": "0",
"wprice": 0,
"market_status": "open",
"auctionioid": 25888658,
"auctioniotype": "",
"storeqty": 0,
"upc": "",
"modelnumber": "",
"lotof": "25888658",
"mixlotof": "0",
"manufacturer": "",
"size": "",
"finish": "",
"auctionionotes": "",
"qcdby": "",
"auctioniocondition": "",
"conditionunique": "",
"multiple_category": "3",
"hasshipping": 0,
"shippingcost": "0",
"shipnotavailable": 0,
"freightrequest": 0,
"localpickup": 1,
"location": "US",
"paymentmethod": "[\"Cash (Local Pick-up)\"]",
"msrp": 0,
"startprice": 0,
"ended_early": 0,
"palletcount": "",
"unitcount": 0,
"inventory_loc": "",
"latestbid": null,
"starttext": "Starting Price",
"pricestart": 0,
"wlist": 0,
"remainingDay": -16208833,
"dateFclosed": "2020-04-23T07:50:47.000Z",
"closed": "2020-04-23T07:50:47.000Z",
"avatarorg": "http://grazr.moblearn.net:7095/images/logo.ico.png",
"ptitle": "Hunt"
},
{
"id": 168,
"user_id": 1289,
"title": "Hunt",
"weight": 60,
"length": 0,
"width": 0,
"height": 0,
"qty": 4,
"state": "",
"city": "",
"description": "hunt",
"file_name": null,
"is_avatar": "",
"image": "",
"date_added": "2020-04-23T07:51:23.000Z",
"date_closed": "2020-04-23T07:51:23.000Z",
"sprice": "0",
"rprice": "0",
"wprice": 0,
"market_status": "open",
"auctionioid": 93775168,
"auctioniotype": "",
"storeqty": 0,
"upc": "",
"modelnumber": "",
"lotof": "93775168",
"mixlotof": "0",
"manufacturer": "",
"size": "",
"finish": "",
"auctionionotes": "",
"qcdby": "",
"auctioniocondition": "",
"conditionunique": "",
"multiple_category": "3",
"hasshipping": 0,
"shippingcost": "0",
"shipnotavailable": 0,
"freightrequest": 0,
"localpickup": 1,
"location": "US",
"paymentmethod": "[\"Cash (Local Pick-up)\"]",
"msrp": 0,
"startprice": 0,
"ended_early": 0,
"palletcount": "",
"unitcount": 0,
"inventory_loc": "",
"latestbid": null,
"starttext": "Starting Price",
"pricestart": 0,
"wlist": 0,
"remainingDay": -16172833,
"dateFclosed": "2020-04-23T07:51:23.000Z",
"closed": "2020-04-23T07:51:23.000Z",
"avatarorg": "http://grazr.moblearn.net:7095/images/logo.ico.png",
"ptitle": "Hunt"
},
{
"id": 169,
"user_id": 1289,
"title": "Hunt",
"weight": 60,
"length": 0,
"width": 0,
"height": 0,
"qty": 4,
"state": "",
"city": "",
"description": "hunt",
"file_name": null,
"is_avatar": "",
"image": "",
"date_added": "2020-04-23T07:51:36.000Z",
"date_closed": "2020-04-23T07:51:36.000Z",
"sprice": "0",
"rprice": "0",
"wprice": 0,
"market_status": "open",
"auctionioid": 95309390,
"auctioniotype": "",
"storeqty": 0,
"upc": "",
"modelnumber": "",
"lotof": "95309390",
"mixlotof": "0",
"manufacturer": "",
"size": "",
"finish": "",
"auctionionotes": "",
"qcdby": "",
"auctioniocondition": "",
"conditionunique": "",
"multiple_category": "3",
"hasshipping": 0,
"shippingcost": "0",
"shipnotavailable": 0,
"freightrequest": 0,
"localpickup": 1,
"location": "US",
"paymentmethod": "[\"Cash (Local Pick-up)\"]",
"msrp": 0,
"startprice": 0,
"ended_early": 0,
"palletcount": "",
"unitcount": 0,
"inventory_loc": "",
"latestbid": null,
"starttext": "Starting Price",
"pricestart": 0,
"wlist": 0,
"remainingDay": -16159833,
"dateFclosed": "2020-04-23T07:51:36.000Z",
"closed": "2020-04-23T07:51:36.000Z",
"avatarorg": "http://grazr.moblearn.net:7095/images/logo.ico.png",
"ptitle": "Hunt"
},
{
"id": 170,
"user_id": 1289,
"title": "Hunt",
"weight": 60,
"length": 0,
"width": 0,
"height": 0,
"qty": 4,
"state": "",
"city": "",
"description": "hunt",
"file_name": null,
"is_avatar": "",
"image": "",
"date_added": "2020-04-23T07:52:44.000Z",
"date_closed": "2020-04-23T07:52:44.000Z",
"sprice": "0",
"rprice": "0",
"wprice": 0,
"market_status": "open",
"auctionioid": 51394383,
"auctioniotype": "",
"storeqty": 0,
"upc": "",
"modelnumber": "",
"lotof": "51394383",
"mixlotof": "0",
"manufacturer": "",
"size": "",
"finish": "",
"auctionionotes": "",
"qcdby": "",
"auctioniocondition": "",
"conditionunique": "",
"multiple_category": "3",
"hasshipping": 0,
"shippingcost": "0",
"shipnotavailable": 0,
"freightrequest": 0,
"localpickup": 1,
"location": "US",
"paymentmethod": "[\"Cash (Local Pick-up)\"]",
"msrp": 0,
"startprice": 0,
"ended_early": 0,
"palletcount": "",
"unitcount": 0,
"inventory_loc": "",
"latestbid": null,
"starttext": "Starting Price",
"pricestart": 0,
"wlist": 0,
"remainingDay": -16091833,
"dateFclosed": "2020-04-23T07:52:44.000Z",
"closed": "2020-04-23T07:52:44.000Z",
"avatarorg": "http://grazr.moblearn.net:7095/images/logo.ico.png",
"ptitle": "Hunt"
},
{
"id": 171,
"user_id": 1289,
"title": "Hunt",
"weight": 60,
"length": 0,
"width": 0,
"height": 0,
"qty": 4,
"state": "",
"city": "",
"description": "hunt",
"file_name": null,
"is_avatar": "",
"image": "",
"date_added": "2020-04-23T07:52:52.000Z",
"date_closed": "2020-04-23T07:52:52.000Z",
"sprice": "0",
"rprice": "0",
"wprice": 0,
"market_status": "open",
"auctionioid": 82563055,
"auctioniotype": "",
"storeqty": 0,
"upc": "",
"modelnumber": "",
"lotof": "82563055",
"mixlotof": "0",
"manufacturer": "",
"size": "",
"finish": "",
"auctionionotes": "",
"qcdby": "",
"auctioniocondition": "",
"conditionunique": "",
"multiple_category": "3",
"hasshipping": 0,
"shippingcost": "0",
"shipnotavailable": 0,
"freightrequest": 0,
"localpickup": 1,
"location": "US",
"paymentmethod": "[\"Cash (Local Pick-up)\"]",
"msrp": 0,
"startprice": 0,
"ended_early": 0,
"palletcount": "",
"unitcount": 0,
"inventory_loc": "",
"latestbid": null,
"starttext": "Starting Price",
"pricestart": 0,
"wlist": 0,
"remainingDay": -16083833,
"dateFclosed": "2020-04-23T07:52:52.000Z",
"closed": "2020-04-23T07:52:52.000Z",
"avatarorg": "http://grazr.moblearn.net:7095/images/logo.ico.png",
"ptitle": "Hunt"
},
{
"id": 172,
"user_id": 1289,
"title": "Hunt",
"weight": 60,
"length": 0,
"width": 0,
"height": 0,
"qty": 4,
"state": "",
"city": "",
"description": "hunt",
"file_name": null,
"is_avatar": "",
"image": "",
"date_added": "2020-04-23T07:53:02.000Z",
"date_closed": "2020-04-23T07:53:02.000Z",
"sprice": "0",
"rprice": "0",
"wprice": 0,
"market_status": "open",
"auctionioid": 73358912,
"auctioniotype": "",
"storeqty": 0,
"upc": "",
"modelnumber": "",
"lotof": "73358912",
"mixlotof": "0",
"manufacturer": "",
"size": "",
"finish": "",
"auctionionotes": "",
"qcdby": "",
"auctioniocondition": "",
"conditionunique": "",
"multiple_category": "3",
"hasshipping": 0,
"shippingcost": "0",
"shipnotavailable": 0,
"freightrequest": 0,
"localpickup": 1,
"location": "US",
"paymentmethod": "[\"Cash (Local Pick-up)\"]",
"msrp": 0,
"startprice": 0,
"ended_early": 0,
"palletcount": "",
"unitcount": 0,
"inventory_loc": "",
"latestbid": null,
"starttext": "Starting Price",
"pricestart": 0,
"wlist": 0,
"remainingDay": -16073833,
"dateFclosed": "2020-04-23T07:53:02.000Z",
"closed": "2020-04-23T07:53:02.000Z",
"avatarorg": "http://grazr.moblearn.net:7095/images/logo.ico.png",
"ptitle": "Hunt"
},
{
"id": 173,
"user_id": 1289,
"title": "Hunt",
"weight": 60,
"length": 0,
"width": 0,
"height": 0,
"qty": 4,
"state": "",
"city": "",
"description": "hunt",
"file_name": null,
"is_avatar": "",
"image": "",
"date_added": "2020-04-23T08:05:07.000Z",
"date_closed": "2020-04-23T08:05:07.000Z",
"sprice": "0",
"rprice": "0",
"wprice": 0,
"market_status": "open",
"auctionioid": 97484241,
"auctioniotype": "",
"storeqty": 0,
"upc": "",
"modelnumber": "",
"lotof": "97484241",
"mixlotof": "0",
"manufacturer": "",
"size": "",
"finish": "",
"auctionionotes": "",
"qcdby": "",
"auctioniocondition": "",
"conditionunique": "",
"multiple_category": "3",
"hasshipping": 0,
"shippingcost": "0",
"shipnotavailable": 0,
"freightrequest": 0,
"localpickup": 1,
"location": "US",
"paymentmethod": "[\"Cash (Local Pick-up)\"]",
"msrp": 0,
"startprice": 0,
"ended_early": 0,
"palletcount": "",
"unitcount": 0,
"inventory_loc": "",
"latestbid": null,
"starttext": "Starting Price",
"pricestart": 0,
"wlist": 0,
"remainingDay": -15348833,
"dateFclosed": "2020-04-23T08:05:07.000Z",
"closed": "2020-04-23T08:05:07.000Z",
"avatarorg": "http://grazr.moblearn.net:7095/images/logo.ico.png",
"ptitle": "Hunt"
},
{
"id": 174,
"user_id": 1289,
"title": "Hunt",
"weight": 60,
"length": 0,
"width": 0,
"height": 0,
"qty": 4,
"state": "",
"city": "",
"description": "hunt",
"file_name": null,
"is_avatar": "",
"image": "",
"date_added": "2020-04-23T08:05:18.000Z",
"date_closed": "2020-04-23T08:05:18.000Z",
"sprice": "0",
"rprice": "0",
"wprice": 0,
"market_status": "open",
"auctionioid": 26309593,
"auctioniotype": "",
"storeqty": 0,
"upc": "",
"modelnumber": "",
"lotof": "26309593",
"mixlotof": "0",
"manufacturer": "",
"size": "",
"finish": "",
"auctionionotes": "",
"qcdby": "",
"auctioniocondition": "",
"conditionunique": "",
"multiple_category": "3",
"hasshipping": 0,
"shippingcost": "0",
"shipnotavailable": 0,
"freightrequest": 0,
"localpickup": 1,
"location": "US",
"paymentmethod": "[\"Cash (Local Pick-up)\"]",
"msrp": 0,
"startprice": 0,
"ended_early": 0,
"palletcount": "",
"unitcount": 0,
"inventory_loc": "",
"latestbid": null,
"starttext": "Starting Price",
"pricestart": 0,
"wlist": 0,
"remainingDay": -15337833,
"dateFclosed": "2020-04-23T08:05:18.000Z",
"closed": "2020-04-23T08:05:18.000Z",
"avatarorg": "http://grazr.moblearn.net:7095/images/logo.ico.png",
"ptitle": "Hunt"
},
{
"id": 177,
"user_id": 1289,
"title": "Hunt",
"weight": 60,
"length": 0,
"width": 0,
"height": 0,
"qty": 4,
"state": "",
"city": "",
"description": "hunt",
"file_name": null,
"is_avatar": "",
"image": "",
"date_added": "2020-04-23T12:05:06.000Z",
"date_closed": "2020-04-23T12:05:06.000Z",
"sprice": "0",
"rprice": "0",
"wprice": 0,
"market_status": "open",
"auctionioid": 78529593,
"auctioniotype": "",
"storeqty": 0,
"upc": "",
"modelnumber": "",
"lotof": "78529593",
"mixlotof": "0",
"manufacturer": "",
"size": "",
"finish": "",
"auctionionotes": "",
"qcdby": "",
"auctioniocondition": "",
"conditionunique": "",
"multiple_category": "3",
"hasshipping": 0,
"shippingcost": "0",
"shipnotavailable": 0,
"freightrequest": 0,
"localpickup": 1,
"location": "US",
"paymentmethod": "[\"Cash (Local Pick-up)\"]",
"msrp": 0,
"startprice": 0,
"ended_early": 0,
"palletcount": "",
"unitcount": 0,
"inventory_loc": "",
"latestbid": null,
"starttext": "Starting Price",
"pricestart": 0,
"wlist": 0,
"remainingDay": -949833,
"dateFclosed": "2020-04-23T12:05:06.000Z",
"closed": "2020-04-23T12:05:06.000Z",
"avatarorg": "http://grazr.moblearn.net:7095/images/logo.ico.png",
"ptitle": "Hunt"
}
],
"maincategory": [],
"locate": [
{
"typelc": "whole",
"name": "US",
"value": "US"
}
],
"retrival": [
{
"org_name": "Local Pick Up",
"name": "localavail",
"value": 1
}
],
"set_disp": "1-11",
"total_pagecnt": 11,
"total_only": 11,
"pagination": ""
}
}
Responses
Status: 302 - Error
Get All Products Pagination
This API can be used to fetch all products with pagination.
limit = number of products to display.
page = number of total pages.
GET
http://grazr.moblearn.net:7095/mobileapi/mobilesearch?page=2&sh_limit=5
Usage and Examples
curl --location --request GET 'http://grazr.moblearn.net:7095/mobileapi/mobilesearch?page=2&sh_limit=5' \
--header 'Origin: auction.io:2097' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1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dmUiLCJjYXJkX3Byb2ZpbGVpZCI6IiIsImxhc3RfbmFtZSI6InRlc3QgbGFzdG5hbWUxIiwicGFzc3dvcmRfc2FsdCI6IjEyMzQ1IiwiY29tcGFueV9uYW1lIjoidGVzdCBjb21wYW55X25hbWUiLCJzZWNvbmRhcnlfZmlyc3RfbmFtZSI6InRlc3Qgc2Vjb25kYXkgZmlyc3QgbmFtZSIsImNhcmRfcGF5bWVudGlkIjoiIiwidGVydGlhcnlfcGhvbmUiOiIxMTExMTEiLCJwaG9uZSI6Ijg0Mjg4Mzk0MzMiLCJpYXQiOjE1NzM3MTg1Njl9.IPFKilYnoR5Vx-aZ_ts0kYsTjx0POMeEp7VbcFNvxvM' \
--header 'Cookie: connect.sid=s%3Ag5rCkJHz68Uqj9j7-YPMs-zpW5d5DnHD.pbHid2c5FmsVA%2B6fyfNP9KpjxDFPg9ENi8n9bCkTGyY'
var settings = {
"url": "http://grazr.moblearn.net:7095/mobileapi/mobilesearch?page=2&sh_limit=5",
"method": "GET",
"timeout": 0,
"headers": {
"Origin": "auction.io:2097",
"Authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZWNvbmRhcnlfbWFpbGluZ19hZGRyZXNzIjoidGVzdCBzZWNvbmRhcnkgbWFpbCBhZGRyZXNzIiwiY2l0eSI6ImNoZW5uYWkiLCJlbWFpbCI6InJhamt1bWFyLmF1Y3Rpb25zb2Z0d2FyZStidXllcnRlc3RAZ21haWwuY29tIiwicmVnaXN0ZXJlZF9udW1iZXIiOiIxMjMxMjMiLCJubWZzX251bWJlciI6Ijc3Nzc3NyIsInBhc3N3b3JkX2hhc2giOiIzYzMxY2YxMjJjZDliZTJhYzQ4OGRkM2M5ZjYwM2U2NyIsInN0YXRlIjoidG4iLCJpc2VtcCI6MCwiY2F0ZWdvcnkiOiJ0ZXN0IiwibGljZW5zZV9udW1iZXIiOiI4OTg5ODkiLCJmaXJzdF9uYW1lIjoidGVzdDEiLCJ2ZX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FPg9ENi8n9bCkTGyY"
},
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var http = require('follow-redirects').http;
var fs = require('fs');
var options = {
'method': 'GET',
'hostname': 'grazr.moblearn.net',
'port': 7095,
'path': '/mobileapi/mobilesearch?page=2&sh_limit=5',
'headers': {
'Origin': 'auction.io:2097',
'Authorization': 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZWNvbmRhcnlfbWFpbGluZ19hZGRyZXNzIjoidGVzdCBzZWNvbmRhcnkgbWFpbCBhZGRyZXNzIiwiY2l0eSI6ImNoZW5uYWkiLCJlbWFpbCI6InJhamt1bWFyLmF1Y3Rpb25zb2Z0d2FyZStidXllcnRlc3RAZ21haWwuY29tIiwicmVnaXN0ZXJlZF9udW1iZXIiOiIxMjMxMjMiLCJubWZzX251bWJlciI6Ijc3Nzc3NyIsInBhc3N3b3JkX2hhc2giOiIzYzMxY2YxMjJjZDliZTJhYzQ4OGRkM2M5ZjYwM2U2NyIsInN0YXRlIjoidG4iLCJpc2VtcCI6MCwiY2F0ZWdvcnkiOiJ0ZXN0IiwibGljZW5zZV9udW1iZXIiOiI4OTg5ODkiLCJmaXJzdF9uYW1lIjoidGVzdDEiLCJ2ZXNzZWxfbmFtZSI6InRlc3QgdmVzc2VsIG5hbWUiLCJ0ZXJ0aWFyeV9maXJzdF9uYW1lIjoidGVzdCB0ZXJ0aWFyeSBmaXJzdCBuYW1lIiwiYWx0ZXJuYXRlX3Bob25lIjoiMTIzNDU2NzgiLCJpcmlkaXVtX3Bob25lIjoiNDQ0NDQ0IiwidGVydGlhcnlfbWFpbGluZ19hZGRyZXNzIjoidGVydGlhcnkgbWFpbCBhZGRyZXNzIiwiYWRtaW4iOjAsInZoZl9jaGFubmVsIjoidGVzdCB2aGYgY2hhbm5lbCIsIm1haWxpbmdfYWRkcmVzcyI6InRlc3RAdGVzdC5jb20iLCJzYXRfcGhvbmUiOiIzMzMzMzMiLCJjb3VudHJ5IjoiaW5kb2EiLCJyb2xlIjoiIiwiaWQiOjEyODksInNlY29uZGFyeV9waG9uZSI6IjU1NTU1IiwibWlkZGxlX25hbWUiOiJ0ZXN0IG1pZGRsZW5hbWUxIiwibGFuZGluZ19wb3J0IjoiVVMiLCJ6aXAiOiI2MDAwMDEiLCJ2ZXJpZnlfcGF5cGFsIjowLCJzdGF0dXMiOiJhY3RpdmUiLCJjYXJkX3Byb2ZpbGVpZCI6IiIsImxhc3RfbmFtZSI6InRlc3QgbGFzdG5hbWUxIiwicGFzc3dvcmRfc2FsdCI6IjEyMzQ1IiwiY29tcGFueV9uYW1lIjoidGVzdCBjb21wYW55X25hbWUiLCJzZWNvbmRhcnlfZmlyc3RfbmFtZSI6InRlc3Qgc2Vjb25kYXkgZmlyc3QgbmFtZSIsImNhcmRfcGF5bWVudGlkIjoiIiwidGVydGlhcnlfcGhvbmUiOiIxMTExMTEiLCJwaG9uZSI6Ijg0Mjg4Mzk0MzMiLCJpYXQiOjE1NzM3MTg1Njl9.IPFKilYnoR5Vx-aZ_ts0kYsTjx0POMeEp7VbcFNvxvM',
'Cookie': 'connect.sid=s%3Ag5rCkJHz68Uqj9j7-YPMs-zpW5d5DnHD.pbHid2c5FmsVA%2B6fyfNP9KpjxDFPg9ENi8n9bCkTGyY'
},
'maxRedirects': 20
};
var req = http.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
req.end();
Headers
[{"key":"Origin","value":"auction.io:2097","type":"text"},
{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZWNvbmRhcnlfbWFpbGluZ19hZGRyZXNzIjoidGVzdCBzZWNvbmRhcnkgbWFpbCBhZGRyZXNzIiwiY2l0eSI6ImNoZW5uYWkiLCJlbWFpbCI6InJhamt1bWFyLmF1Y3Rpb25zb2Z0d2FyZStidX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FtZSI6InRlc3Qgc2Vjb25kYXkgZmlyc3QgbmFtZSIsImNhcmRfcGF5bWVudGlkIjoiIiwidGVydGlhcnlfcGhvbmUiOiIxMTExMTEiLCJwaG9uZSI6Ijg0Mjg4Mzk0MzMiLCJpYXQiOjE1NzM3MTg1Njl9.IPFKilYnoR5Vx-aZ_ts0kYsTjx0POMeEp7VbcFNvxvM","type":"text"}]
Params
[{"key":"page","value":"2","equals":true,"description":"","enabled":true},{"key":"sh_limit","value":"5","equals":true,"description":"","enabled":true}]
Responses
Status: 200 - Success
{
"success": "yes",
"results": [
{
"id": 11,
"user_id": 1323,
"title": "Calender Test",
"weight": 0,
"length": 0,
"width": 0,
"height": 0,
"qty": 1,
"state": "",
"city": "",
"description": "Calender TestCalender Test",
"file_name": null,
"is_avatar": "14909b8d61a34b5c4f8e74f621b38eb2.png",
"image": "",
"date_added": "2019-12-30T13:07:53.000Z",
"date_closed": "2019-12-30T13:07:53.000Z",
"sprice": "5",
"rprice": "5",
"wprice": 5,
"market_status": "open",
"auctionioid": 20238350,
"auctioniotype": "",
"storeqty": 0,
"upc": "",
"modelnumber": "",
"lotof": "20238350",
"mixlotof": "0",
"manufacturer": "",
"size": "",
"finish": "",
"auctionionotes": "",
"qcdby": "",
"auctioniocondition": "",
"conditionunique": "",
"multiple_category": "beef",
"hasshipping": 0,
"shippingcost": "0",
"shipnotavailable": 0,
"freightrequest": 0,
"localpickup": 1,
"location": "",
"paymentmethod": "[\"Cash (Local Pick-up)\"]",
"msrp": 0,
"startprice": 5,
"ended_early": 0,
"palletcount": "",
"unitcount": 0,
"inventory_loc": "",
"latestbid": null,
"starttext": "Starting Price",
"pricestart": 5,
"wlist": 0,
"remainingDay": -9932289345,
"dateFclosed": "2019-12-30T13:07:53.000Z",
"closed": "2019-12-30T13:07:53.000Z",
"avatarorg": "http://grazr.moblearn.net:7095/images/logo.ico.png",
"ptitle": "Calender Test"
},
{
"id": 12,
"user_id": 1323,
"title": "Calender Test",
"weight": 0,
"length": 0,
"width": 0,
"height": 0,
"qty": -3,
"state": "",
"city": "",
"description": "Calender TestCalender Test",
"file_name": null,
"is_avatar": "18d3d692bbaac61a0ed72e7066193114.png",
"image": "",
"date_added": "2019-12-30T13:08:02.000Z",
"date_closed": "2019-12-30T13:08:02.000Z",
"sprice": "5",
"rprice": "5",
"wprice": 5,
"market_status": "open",
"auctionioid": 14209702,
"auctioniotype": "",
"storeqty": 0,
"upc": "",
"modelnumber": "",
"lotof": "14209702",
"mixlotof": "0",
"manufacturer": "",
"size": "",
"finish": "",
"auctionionotes": "",
"qcdby": "",
"auctioniocondition": "",
"conditionunique": "",
"multiple_category": "beef",
"hasshipping": 0,
"shippingcost": "0",
"shipnotavailable": 0,
"freightrequest": 0,
"localpickup": 1,
"location": "",
"paymentmethod": "[\"Cash (Local Pick-up)\"]",
"msrp": 0,
"startprice": 5,
"ended_early": 0,
"palletcount": "",
"unitcount": 0,
"inventory_loc": "",
"latestbid": null,
"starttext": "Starting Price",
"pricestart": 5,
"wlist": 0,
"remainingDay": -9932280345,
"dateFclosed": "2019-12-30T13:08:02.000Z",
"closed": "2019-12-30T13:08:02.000Z",
"avatarorg": "http://grazr.moblearn.net:7095/images/logo.ico.png",
"ptitle": "Calender Test"
},
{
"id": 13,
"user_id": 1323,
"title": "Cal Test",
"weight": 0,
"length": 0,
"width": 0,
"height": 0,
"qty": 1,
"state": "",
"city": "",
"description": "Cal TestCal Test",
"file_name": null,
"is_avatar": "fc75634060e6bc3a7dca17378f0f04cc.jpeg",
"image": "",
"date_added": "2019-12-30T13:13:29.000Z",
"date_closed": "2019-12-30T13:13:29.000Z",
"sprice": "10",
"rprice": "10",
"wprice": 10,
"market_status": "open",
"auctionioid": 30279756,
"auctioniotype": "",
"storeqty": 0,
"upc": "",
"modelnumber": "",
"lotof": "30279756",
"mixlotof": "0",
"manufacturer": "",
"size": "",
"finish": "",
"auctionionotes": "",
"qcdby": "",
"auctioniocondition": "",
"conditionunique": "",
"multiple_category": "goat",
"hasshipping": 0,
"shippingcost": "0",
"shipnotavailable": 0,
"freightrequest": 0,
"localpickup": 1,
"location": "",
"paymentmethod": "[\"Cash (Local Pick-up)\"]",
"msrp": 0,
"startprice": 10,
"ended_early": 0,
"palletcount": "",
"unitcount": 0,
"inventory_loc": "",
"latestbid": null,
"starttext": "Starting Price",
"pricestart": 10,
"wlist": 0,
"remainingDay": -9931953345,
"dateFclosed": "2019-12-30T13:13:29.000Z",
"closed": "2019-12-30T13:13:29.000Z",
"avatarorg": "http://grazr.moblearn.net:7095/images/logo.ico.png",
"ptitle": "Cal Test"
},
{
"id": 14,
"user_id": 1323,
"title": "Cal Test",
"weight": 0,
"length": 0,
"width": 0,
"height": 0,
"qty": 1,
"state": "",
"city": "",
"description": "Cal TestCal Test",
"file_name": null,
"is_avatar": "795dc95b12e2579f2916035a65260882.jpeg",
"image": "",
"date_added": "2019-12-30T13:13:31.000Z",
"date_closed": "2019-12-30T13:13:31.000Z",
"sprice": "10",
"rprice": "10",
"wprice": 10,
"market_status": "open",
"auctionioid": 20503972,
"auctioniotype": "",
"storeqty": 0,
"upc": "",
"modelnumber": "",
"lotof": "20503972",
"mixlotof": "0",
"manufacturer": "",
"size": "",
"finish": "",
"auctionionotes": "",
"qcdby": "",
"auctioniocondition": "",
"conditionunique": "",
"multiple_category": "goat",
"hasshipping": 0,
"shippingcost": "0",
"shipnotavailable": 0,
"freightrequest": 0,
"localpickup": 1,
"location": "",
"paymentmethod": "[\"Cash (Local Pick-up)\"]",
"msrp": 0,
"startprice": 10,
"ended_early": 0,
"palletcount": "",
"unitcount": 0,
"inventory_loc": "",
"latestbid": 250,
"pricestart": 250,
"starttext": "Current Price",
"wlist": 0,
"remainingDay": -9931951345,
"dateFclosed": "2019-12-30T13:13:31.000Z",
"closed": "2019-12-30T13:13:31.000Z",
"avatarorg": "http://grazr.moblearn.net:7095/images/logo.ico.png",
"ptitle": "Cal Test"
},
{
"id": 15,
"user_id": 1323,
"title": "Cal Test",
"weight": 0,
"length": 0,
"width": 0,
"height": 0,
"qty": 1,
"state": "",
"city": "",
"description": "Cal TestCal Test",
"file_name": null,
"is_avatar": "803d6b89627fdb69f3740eaff7d91fd1.jpeg",
"image": "",
"date_added": "2019-12-30T13:13:34.000Z",
"date_closed": "2019-12-30T13:13:34.000Z",
"sprice": "10",
"rprice": "10",
"wprice": 10,
"market_status": "open",
"auctionioid": 69304772,
"auctioniotype": "",
"storeqty": 0,
"upc": "",
"modelnumber": "",
"lotof": "69304772",
"mixlotof": "0",
"manufacturer": "",
"size": "",
"finish": "",
"auctionionotes": "",
"qcdby": "",
"auctioniocondition": "",
"conditionunique": "",
"multiple_category": "goat",
"hasshipping": 0,
"shippingcost": "0",
"shipnotavailable": 0,
"freightrequest": 0,
"localpickup": 1,
"location": "",
"paymentmethod": "[\"Cash (Local Pick-up)\"]",
"msrp": 0,
"startprice": 10,
"ended_early": 0,
"palletcount": "",
"unitcount": 0,
"inventory_loc": "",
"latestbid": null,
"starttext": "Starting Price",
"pricestart": 10,
"wlist": 0,
"remainingDay": -9931948345,
"dateFclosed": "2019-12-30T13:13:34.000Z",
"closed": "2019-12-30T13:13:34.000Z",
"avatarorg": "http://grazr.moblearn.net:7095/images/logo.ico.png",
"ptitle": "Cal Test"
}
],
"maincategory": [],
"locate": [],
"retrival": [
{
"org_name": "Local Pick Up",
"name": "localavail",
"value": 1
}
],
"set_disp": "6-10",
"total_pagecnt": 176,
"total_only": 5
}
Responses
Status: 302 - Error
{
{
"status": "no",
"message": "Error in Request"
}
}
Get Store Details
This API can be used to fetch store details.User need to paste the login token in the header section for authorization
POST
http://grazr.moblearn.net:7095/mobileapi/getStoreDetails
Usage and Examples
curl --location --request POST 'http://grazr.moblearn.net:7095/mobileapi/getStoreDetails' \
--header 'Origin: grazr.moblearn.net' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MTM1NSwiZmlyc3RfbmFtZSI6IkNsaW50b24iLCJtaWRkbGVfbm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qZOvxryLFmGzvXP6I87PxfwPnQ' \
--header 'Cookie: connect.sid=s%3Ag5rCkJHz68Uqj9j7-YPMs-zpW5d5DnHD.pbHid2c5FmsVA%2B6fyfNP9KpjxDFPg9ENi8n9bCkTGyY'
var settings = {
"url": "http://grazr.moblearn.net:7095/mobileapi/getStoreDetails",
"method": "POST",
"timeout": 0,
"headers": {
"Origin": "grazr.moblearn.net",
"Authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MTM1NSwiZmlyc3RfbmFtZSI6IkNsaW50b24iLCJtaWRkbGVfbmFtZSI6IiIsImxhc3RfbmFtZSI6Ik1pY2siLCJ2ZXNzZWxfbmFtZSI6IiIsIm1haWxpbmdfYWRkcmVzcyI6IiIsImVtYWlsIjoidGVzdDEuYXVjdGlvbnNvZnR3YXJlKzA2QGdtYWlsLmNvbSIsInBob25lIjoiIiwiYWx0ZXJuYXRlX3Bob25lIjoiIiwidmhmX2NoYW5uZWwiOiIiLCJzYXRfcGhvbmUiOiIiLCJpcmlkaXVtX3Bob25lIjoiIiwiY2F0ZWdvcnkiOiIiLCJyb2xlIjoic2VsbGVyIiwiY29tcGFueV9uYW1lIjoiIiwic2Vjb25kYXJ5X2ZpcnN0X25hbWUiOiIiLCJzZWNvbmRhcnlfcGhvbmUiOiIiLCJzZWNvbmRhcnlfbWFpbGluZ19hZGRyZXNzIjoiIiwidGVydGlhcnlfZmlyc3RfbmFtZSI6IiIsInRlcnRpYXJ5X3Bob25lIjoiIiwidGVydGlhcnlfbWFpbGluZ19hZGRyZXNzIjoiIiwicmVnaXN0ZXJlZF9udW1iZXIiOiIiLCJubWZzX251bWJlciI6IiIsImxpY2Vuc2VfbnVtYmVyIjoiIiwibGFuZGluZ19wb3J0IjoiIiwicGFzc3dvcmRfaGFzaCI6IjNjMzFjZjEyMmNkOWJlMmFjNDg4ZGQzYzlmNjAzZTY3IiwicGFzc3dvcmRfc2FsdCI6IjEyMzQ1IiwiYWRtaW4iOjAsImNhcmRfcHJvZmlsZWlkIjoiIiwiY2FyZF9wYXltZW50aWQiOiIiLCJpc2VtcCI6MCwidmVyaWZ5X3BheXBhbCI6MCwic3RhdHVzIjoiYWN0aXZlIiwiY291bnRyeSI6IkJhaGFtYXMiLCJzdGF0ZSI6Ik1heWFndWFuYSIsImNpdHkiOiJUZXhhcyIsInppcCI6Ijk5NTA1IiwiYXZhdGFyIjoiYTc2YTU3ZTE2YzNhNzg0ZTYwOTBmYTZhN2FiMTNjYTMuanBnIiwiaWF0IjoxNTc0Mzk5MzIyfQ.b5FFzMd0wQSH06yXoqZOvxryLFmGzvXP6I87PxfwPnQ",
"Cookie": "connect.sid=s%3Ag5rCkJHz68Uqj9j7-YPMs-zpW5d5DnHD.pbHid2c5FmsVA%2B6fyfNP9KpjxDFPg9ENi8n9bCkTGyY"
},
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var http = require('follow-redirects').http;
var fs = require('fs');
var options = {
'method': 'POST',
'hostname': 'grazr.moblearn.net',
'port': 7095,
'path': '/mobileapi/getStoreDetails',
'headers': {
'Origin': 'grazr.moblearn.net',
'Authorization': 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MTM1NSwiZmlyc3RfbmFtZSI6IkNsaW50b24iLCJtaWRkbGVfbmFtZSI6IiIsImxhc3RfbmFtZSI6Ik1pY2siLCJ2ZXNzZWxfbmFtZSI6IiIsIm1haWxpbmdfYWRkcmVzcyI6IiIsImVtYWlsIjoidGVzdDEuYXVjdGlvbnNvZnR3YXJlKzA2QGdtYWlsLmNvbSIsInBob25lIjoiIiwiYWx0ZXJuYXRlX3Bob25lIjoiIiwidmhmX2NoYW5uZWwiOiIiLCJzYXRfcGhvbmUiOiIiLCJpcmlkaXVtX3Bob25lIjoiIiwiY2F0ZWdvcnkiOiIiLCJyb2xlIjoic2VsbGVyIiwiY29tcGFueV9uYW1lIjoiIiwic2Vjb25kYXJ5X2ZpcnN0X25hbWUiOiIiLCJzZWNvbmRhcnlfcGhvbmUiOiIiLCJzZWNvbmRhcnlfbWFpbGluZ19hZGRyZXNzIjoiIiwidGVydGlhcnlfZmlyc3RfbmFtZSI6IiIsInRlcnRpYXJ5X3Bob25lIjoiIiwidGVydGlhcnlfbWFpbGluZ19hZGRyZXNzIjoiIiwicmVnaXN0ZXJlZF9udW1iZXIiOiIiLCJubWZzX251bWJlciI6IiIsImxpY2Vuc2VfbnVtYmVyIjoiIiwibGFuZGluZ19wb3J0IjoiIiwicGFzc3dvcmRfaGFzaCI6IjNjMzFjZjEyMmNkOWJlMmFjNDg4ZGQzYzlmNjAzZTY3IiwicGFzc3dvcmRfc2FsdCI6IjEyMzQ1IiwiYWRtaW4iOjAsImNhcmRfcHJvZmlsZWlkIjoiIiwiY2FyZF9wYXltZW50aWQiOiIiLCJpc2VtcCI6MCwidmVyaWZ5X3BheXBhbCI6MCwic3RhdHVzIjoiYWN0aXZlIiwiY291bnRyeSI6IkJhaGFtYXMiLCJzdGF0ZSI6Ik1heWFndWFuYSIsImNpdHkiOiJUZXhhcyIsInppcCI6Ijk5NTA1IiwiYXZhdGFyIjoiYTc2YTU3ZTE2YzNhNzg0ZTYwOTBmYTZhN2FiMTNjYTMuanBnIiwiaWF0IjoxNTc0Mzk5MzIyfQ.b5FFzMd0wQSH06yXoqZOvxryLFmGzvXP6I87PxfwPnQ',
'Cookie': 'connect.sid=s%3Ag5rCkJHz68Uqj9j7-YPMs-zpW5d5DnHD.pbHid2c5FmsVA%2B6fyfNP9KpjxDFPg9ENi8n9bCkTGyY'
},
'maxRedirects': 20
};
var req = http.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
req.end();
Headers
[{"key":"Origin","value":"grazr.moblearn.net","type":"text","enabled":true},{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6I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mYTZhN2FiMTNjYTMuanBnIiwiaWF0IjoxNTc0Mzk5MzIyfQ.b5FFzMd0wQSH06yXoqZOvxryLFmGzvXP6I87PxfwPnQ","type":"text"}]
Responses
Status: 200 - Success
{
{
"status": "yes",
"message": "Store details",
"data": [
{
"id": 4,
"name": "test",
"description": "test",
"user_id": 1355,
"location": "UK",
"date_added": "0000-00-00 00:00:00",
"logo": "",
"status": "active",
"website": "test",
"date_started": "2019-11-25T11:02:44.000Z",
"views": 0,
"banner": "d9b7007742f7a534aff95eb9cbf58261.jpg",
"images": "88c2213c4e784c16c84d443ef26028ae.jpg",
"videos": "b9a9df1c71076b6085f4dcd09170a69b.jpg,d355283b4abfee904d11e376a78ff989.jpg",
"site_id": "AS0013"
},
{
"id": 27,
"name": "test",
"description": "test",
"user_id": 1355,
"location": "UK",
"date_added": "0000-00-00 00:00:00",
"logo": "",
"status": "active",
"website": "test",
"date_started": "2020-04-23T08:09:15.000Z",
"views": 0,
"banner": "",
"images": "",
"videos": "",
"site_id": "AS0013"
}
]
}
}
Responses
Status: 302 - Error
{
{
"status": "no",
"message": "Error in Request"
}
}
Post a Product
This API can be used to post a product. Only the seller can post a new product
POST
http://grazr.moblearn.net:7095/mobileapi/sellerpostprojectlive
Usage and Examples
curl --location --request POST 'http://grazr.moblearn.net:7095/mobileapi/sellerpostprojectlive' \
--header 'Origin: grazr.moblearn.net' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MTM1NSwiZmlyc3RfbmFtZSI6IkNsaW50b24iLCJtaWRkbGVfbmFtZSI6IiIsImxhc3RfbmFtZSI6Ik1pY2siLCJ2ZXNzZWxfbmFtZSI6IiIsIm1haWxpbmdfYWRkcmVzcyI6IiIsImVtYWlsIjoidGVzdDEuYXVjdGlvbnNvZnR3YXJlKzA2QGdtYWlsLmNvbSIsInBob25lIjoiIiwiYWx0ZXJuYXRlX3Bob25lIjoiIiwidmhmX2NoYW5uZWwiOiIiLCJzYXRfcGhvbmUiOiIiLCJpcmlkaXVtX3Bob25lIjoiIiwiY2F0ZWdvcnkiOiIiLCJyb2xlIjoic2VsbGVyIiwiY29tcGFueV9uYW1lIjoiIiwic2Vjb25kYXJ5X2ZpcnN0X25hbWUiOiIiLCJzZWNvbmRhcnlfcGhvbmUiOiIiLCJzZWNvbmRhcnlfbWFpbGluZ19hZGRyZXNzIjoiIiwidGVydGlhcnlfZmlyc3RfbmFtZSI6IiIsInRlcnRpYXJ5X3Bob25lIjoiIiwidGVydGlhcnlfbWFpbGluZ19hZGRyZXNzIjoiIiwicmVnaXN0ZXJlZF9udW1iZXIiOiIiLCJubWZzX251bWJlciI6IiIsImxpY2Vuc2VfbnVtYmVyIjoiIiwibGFuZGluZ19wb3J0IjoiIiwicGFzc3dvcmRfaGFzaCI6IjNjMzFjZjEyMmNkOWJlMmFjNDg4ZGQzYzlmNjAzZTY3IiwicGFzc3dvcmRfc2FsdCI6IjEyMzQ1IiwiYWRtaW4iOjAsImNhcmRfcHJvZmlsZWlkIjoiIiwiY2FyZF9wYXltZW50aWQiOiIiLCJpc2VtcCI6MCwidmVyaWZ5X3BheXBhbCI6MCwic3RhdHVzIjoiYWN0aXZlIiwiY291bnRyeSI6IkJhaGFtYXMiLCJzdGF0ZSI6Ik1heWFndWFuYSIsImNpdHkiOiJUZXhhcyIsInppcCI6Ijk5NTA1IiwiYXZhdGFyIjoiYTc2YTU3ZTE2YzNhNzg0ZTYwOTBmYTZhN2FiMTNjYTMuanBnIiwiaWF0IjoxNTc0MjQzMjEzfQ.3hxvVqteZ5_2YcToGPnwucV_jNbVRbTy8SbSrVKmz68' \
--header 'Cookie: connect.sid=s%3Ag5rCkJHz68Uqj9j7-YPMs-zpW5d5DnHD.pbHid2c5FmsVA%2B6fyfNP9KpjxDFPg9ENi8n9bCkTGyY' \
--form 'protitle=Grazr test' \
--form 'description=Grazr test' \
--form 'sublot_description=Grazr sublot test' \
--form 'startprice= 500' \
--form 'quantity= 5' \
--form 'product_posting= 0' \
--form 'product_id= 21' \
--form 'country= India' \
--form 'state= Tamil Nadu' \
--form 'city= chennai' \
--form 'zipcodes= 600001' \
--form 'location_details[0][country]= India' \
--form 'location_details[0][state]= Tamil Nadu' \
--form 'location_details[0][city]= chennai' \
--form 'location_details[0][zipcodes]= 600001' \
--form 'category_id=1' \
--form 'lot_image=@/C:/Users/User/Downloads/fish1.jpg'
var form = new FormData();
form.append("protitle", "Grazr test");
form.append("description", "Grazr test");
form.append("sublot_description", "Grazr sublot test");
form.append("startprice", " 500");
form.append("quantity", " 5");
form.append("product_posting", " 0");
form.append("product_id", " 21");
form.append("country", " India");
form.append("state", " Tamil Nadu");
form.append("city", " chennai");
form.append("zipcodes", " 600001");
form.append("location_details[0][country]", " India");
form.append("location_details[0][state]", " Tamil Nadu");
form.append("location_details[0][city]", " chennai");
form.append("location_details[0][zipcodes]", " 600001");
form.append("category_id", "1");
form.append("lot_image", fileInput.files[0], "/C:/Users/User/Downloads/fish1.jpg");
var settings = {
"url": "http://grazr.moblearn.net:7095/mobileapi/sellerpostprojectlive",
"method": "POST",
"timeout": 0,
"headers": {
"Origin": "grazr.moblearn.net",
"Authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MTM1NSwiZmlyc3RfbmFtZSI6IkNsaW50b24iLCJtaWRkbGVfbmFtZSI6IiIsImxhc3RfbmFtZSI6Ik1pY2siLCJ2ZXNzZWxfbmFtZSI6IiIsIm1haWxpbmdfYWRkcmVzcyI6IiIsImVtYWlsIjoidGVzdDEuYXVjdGlvbnNvZnR3YXJlKzA2QGdtYWlsLmNvbSIsInBob25lIjoiIiwiYWx0ZXJuYXRlX3Bob25lIjoiIiwidmhmX2NoYW5uZWwiOiIiLCJzYXRfcGhvbmUiOiIiLCJpcmlkaXVtX3Bob25lIjoiIiwiY2F0ZWdvcnkiOiIiLCJyb2xlIjoic2VsbGVyIiwiY29tcGFueV9uYW1lIjoiIiwic2Vjb25kYXJ5X2ZpcnN0X25hbWUiOiIiLCJzZWNvbmRhcnlfcGhvbmUiOiIiLCJzZWNvbmRhcnlfbWFpbGluZ19hZGRyZXNzIjoiIiwidGVydGlhcnlfZmlyc3RfbmFtZSI6IiIsInRlcnRpYXJ5X3Bob25lIjoiIiwidGVydGlhcnlfbWFpbGluZ19hZGRyZXNzIjoiIiwicmVnaXN0ZXJlZF9udW1iZXIiOiIiLCJubWZzX251bWJlciI6IiIsImxpY2Vuc2VfbnVtYmVyIjoiIiwibGFuZGluZ19wb3J0IjoiIiwicGFzc3dvcmRfaGFzaCI6IjNjMzFjZjEyMmNkOWJlMmFjNDg4ZGQzYzlmNjAzZTY3IiwicGFzc3dvcmRfc2FsdCI6IjEyMzQ1IiwiYWRtaW4iOjAsImNhcmRfcHJvZmlsZWlkIjoiIiwiY2FyZF9wYXltZW50aWQiOiIiLCJpc2VtcCI6MCwidmVyaWZ5X3BheXBhbCI6MCwic3RhdHVzIjoiYWN0aXZlIiwiY291bnRyeSI6IkJhaGFtYXMiLCJzdGF0ZSI6Ik1heWFndWFuYSIsImNpdHkiOiJUZXhhcyIsInppcCI6Ijk5NTA1IiwiYXZhdGFyIjoiYTc2YTU3ZTE2YzNhNzg0ZTYwOTBmYTZhN2FiMTNjYTMuanBnIiwiaWF0IjoxNTc0MjQzMjEzfQ.3hxvVqteZ5_2YcToGPnwucV_jNbVRbTy8SbSrVKmz68",
"Cookie": "connect.sid=s%3Ag5rCkJHz68Uqj9j7-YPMs-zpW5d5DnHD.pbHid2c5FmsVA%2B6fyfNP9KpjxDFPg9ENi8n9bCkTGyY"
},
"processData": false,
"mimeType": "multipart/form-data",
"contentType": false,
"data": form
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var http = require('follow-redirects').http;
var fs = require('fs');
var options = {
'method': 'POST',
'hostname': 'grazr.moblearn.net',
'port': 7095,
'path': '/mobileapi/sellerpostprojectlive',
'headers': {
'Origin': 'grazr.moblearn.net',
'Authorization': 'Bearer eyJhbGciOi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E2YzNhNzg0ZTYwOTBmYTZhN2FiMTNjYTMuanBnIiwiaWF0IjoxNTc0MjQzMjEzfQ.3hxvVqteZ5_2YcToGPnwucV_jNbVRbTy8SbSrVKmz68',
'Cookie': 'connect.sid=s%3Ag5rCkJHz68Uqj9j7-YPMs-zpW5d5DnHD.pbHid2c5FmsVA%2B6fyfNP9KpjxDFPg9ENi8n9bCkTGyY'
},
'maxRedirects': 20
};
var req = http.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
var postData = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"protitle\"\r\n\r\nGrazr test\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"description\"\r\n\r\nGrazr test\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"sublot_description\"\r\n\r\nGrazr sublot test\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"startprice\"\r\n\r\n 500\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"quantity\"\r\n\r\n 5\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"product_posting\"\r\n\r\n 0\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"product_id\"\r\n\r\n 21\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"country\"\r\n\r\n India\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"state\"\r\n\r\n Tamil Nadu\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"city\"\r\n\r\n chennai\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"zipcodes\"\r\n\r\n 600001\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"location_details[0][country]\"\r\n\r\n India\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"location_details[0][state]\"\r\n\r\n Tamil Nadu\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"location_details[0][city]\"\r\n\r\n chennai\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"location_details[0][zipcodes]\"\r\n\r\n 600001\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"category_id\"\r\n\r\n1\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"lot_image\"; filename=\"/C:/Users/User/Downloads/fish1.jpg\"\r\nContent-Type: \"{Insert_File_Content_Type}\"\r\n\r\n" + fs.readFileSync('/C:/Users/User/Downloads/fish1.jpg') + "\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--";
req.setHeader('content-type', 'multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW');
req.write(postData);
req.end();
Headers
[{"key":"Origin","value":"grazr.moblearn.net","type":"text"},{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MTM1NSwiZmlyc3RfbmFtZSI6IkNsaW50b24iLCJtaWRkbGVfbmFtZSI6IiIsImxhc3RfbmFtZSI6Ik1pY2siLCJ2ZXNzZWxfbmFtZSI6IiIsIm1haWxpbmdfYWRkcmVzcyI6IiIsImVtYWlsIjoidGVzdDEuYXVjdGlvbnNvZnR3YXJlKzA2QGdtYWlsLmNvbSIsInBob25lIjoiIiwiYWx0ZXJuYXRlX3Bob25lIjoiIiwidmhmX2NoYW5uZWwiOiIiLCJzYXRfcGhvbmUiOiIiLCJpcmlkaXVtX3Bob25lIjoiIiwiY2F0ZWdvcnkiOiIiLCJyb2xlIjoic2VsbGVyIiwiY29tcGFueV9uYW1lIjoiIiwic2Vjb25kYXJ5X2ZpcnN0X25hbWUiOiIiLCJzZWNvbmRhcnlfcGhvbmUiOiIiLCJzZWNvbmRhcnlfbWFpbGluZ19hZGRyZXNzIjoiIiwidGVydGlhcnlfZmlyc3RfbmFtZSI6IiIsInRlcnRpYXJ5X3Bob25lIjoiIiwidGVydGlhcnlfbWFpbGluZ19hZGRyZXNzIjoiIiwicmVnaXN0ZXJlZF9udW1iZXIiOiIiLCJubWZzX251bWJlciI6IiIsImxpY2Vuc2VfbnVtYmVyIjoiIiwibGFuZGluZ19wb3J0IjoiIiwicGFzc3dvcmRfaGFzaCI6IjNjMzFjZjEyMmNkOWJlMmFjNDg4ZGQzYzlmNjAzZTY3IiwicGFzc3dvcmRfc2FsdCI6IjEyMzQ1IiwiYWRtaW4iOjAsImNhcmRfcHJvZmlsZWlkIjoiIiwiY2FyZF9wYXltZW50aWQiOiIiLCJpc2VtcCI6MCwidmVyaWZ5X3BheXBhbCI6MCwic3RhdHVzIjoiYWN0aXZlIiwiY291bnRyeSI6IkJhaGFtYXMiLCJzdGF0ZSI6Ik1heWFndWFuYSIsImNpdHkiOiJUZXhhcyIsInppcCI6Ijk5NTA1IiwiYXZhdGFyIjoiYTc2YTU3ZTE2YzNhNzg0ZTYwOTBmYTZhN2FiMTNjYTMuanBnIiwiaWF0IjoxNTc0MjQzMjEzfQ.3hxvVqteZ5_2YcToGPnwucV_jNbVRbTy8SbSrVKmz68","type":"text"}]
Responses
Status: 200 - Success
{
"status": "true",
"message": "Success"
}
Responses
Status: 302 - Error
{
{
"status": "false",
"message": "falied"
}
}
Update Store Details
This API can be used to update the existing store details.
POST
http://grazr.moblearn.net:7095/mobileapi/updateUserStoreDetails
Usage and Examples
curl --location --request POST 'http://grazr.moblearn.net:7095/mobileapi/updateUserStoreDetails' \
--header 'Origin: grazr.moblearn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IiwiY2FyZF9wYXltZW50aWQiOiIiLCJ0ZXJ0aWFyeV9waG9uZSI6IiIsInBob25lIjoiIiwiaWF0IjoxNTc0Njc5MDQ1fQ.04hLswe5GFSi3ae7GrI8ZJdVHuxi1CuuzpgySMAfXEU' \
--header 'Cookie: connect.sid=s%3ATB5I-MBdrY4TacfdlGHYF5U20NJ2HrJ5.sF88AWEVKdTjJxEtxLte9cBt%2FBM%2BITxoVd5U%2FbLF6rc' \
--form 'store_name=test' \
--form 'description=test' \
--form 'status=1' \
--form 'website=test' \
--form 'banner=@/C:/Users/User/Downloads/farm.jpg' \
--form 'store_images=@/C:/Users/User/Downloads/fish1.jpg' \
--form 'store_videos=@/C:/Users/User/Downloads/farm.jpg' \
--form 'store_videos=@/C:/Users/User/Downloads/fish1.jpg' \
--form 'location[1]=UK'
var form = new FormData();
form.append("store_name", "test");
form.append("description", "test");
form.append("status", "1");
form.append("website", "test");
form.append("banner", fileInput.files[0], "/C:/Users/User/Downloads/farm.jpg");
form.append("store_images", fileInput.files[0], "/C:/Users/User/Downloads/fish1.jpg");
form.append("store_videos", fileInput.files[0], "/C:/Users/User/Downloads/farm.jpg");
form.append("store_videos", fileInput.files[0], "/C:/Users/User/Downloads/fish1.jpg");
form.append("location[1]", "UK");
var settings = {
"url": "http://grazr.moblearn.net:7095/mobileapi/updateUserStoreDetails",
"method": "POST",
"timeout": 0,
"headers": {
"Origin": "grazr.moblearn.net",
"Authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZWNvbmRhcnlfbWFpbGluZ19hZGRyZXNzIjoiIiwiY2l0eSI6IlRleGFzIiwiZW1haWwiOiJ0ZXN0MS5hdWN0aW9uc29mdHdhcmUrMDZAZ21haWwuY29tIiwicmVnaXN0ZXJlZF9udW1iZXIiOiIiLCJubWZzX251bWJlciI6IiIsInBhc3N3b3JkX2hhc2giOiIzYzMxY2YxMjJjZDliZTJhYzQ4OGRkM2M5ZjYwM2U2NyIsInN0YXRlIjoiTWF5YWd1YW5hIiwiaXNlbXAiOjAsImNhdGVnb3J5IjoiIiwibGljZW5zZV9udW1iZXIiOiIiLCJmaXJzdF9uYW1lIjoiQ2xpbnRvbiIsInZlc3NlbF9uYW1lIjoiIiwidGVydGlhcnlfZmlyc3RfbmFtZSI6IiIsImFsdGVybmF0ZV9waG9uZSI6IiIsImlyaWRpdW1fcGhvbmUiOiIiLCJ0ZXJ0aWFyeV9tYWlsaW5nX2FkZHJlc3MiOiIiLCJhZG1pbiI6MCwidmhmX2NoYW5uZWwiOiIiLCJtYWlsaW5nX2FkZHJlc3MiOiIiLCJzYXRfcGhvbmUiOiIiLCJjb3VudHJ5IjoiQmFoYW1hcyIsInJvbGUiOiJzZWxsZXIiLCJpZCI6MTM1NSwic2Vjb25kYXJ5X3Bob25lIjoiIiwiYXZhdGFyIjoiYTc2YTU3ZTE2YzNhNzg0ZTYwOTBmYTZhN2FiMTNjYTMuanBnIiwibWlkZGxlX25hbWUiOiIiLCJsYW5kaW5nX3BvcnQiOiIiLCJ6aXAiOiI5OTUwNSIsInZlcmlmeV9wYXlwYWwiOjAsInN0YXR1cyI6ImFjdGl2ZSIsImNhcmRfcHJvZmlsZWlkIjoiIiwibGFzdF9uYW1lIjoiTWljayIsInBhc3N3b3JkX3NhbHQiOiIxMjM0NSIsImNvbXBhbnlfbmFtZSI6IiIsInNlY29uZGFyeV9maXJzdF9uYW1lIjoiIiwiY2FyZF9wYXltZW50aWQiOiIiLCJ0ZXJ0aWFyeV9waG9uZSI6IiIsInBob25lIjoiIiwiaWF0IjoxNTc0Njc5MDQ1fQ.04hLswe5GFSi3ae7GrI8ZJdVHuxi1CuuzpgySMAfXEU",
"Cookie": "connect.sid=s%3ATB5I-MBdrY4TacfdlGHYF5U20NJ2HrJ5.sF88AWEVKdTjJxEtxLte9cBt%2FBM%2BITxoVd5U%2FbLF6rc"
},
"processData": false,
"mimeType": "multipart/form-data",
"contentType": false,
"data": form
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var http = require('follow-redirects').http;
var fs = require('fs');
var options = {
'method': 'POST',
'hostname': 'grazr.moblearn.net',
'port': 7095,
'path': '/mobileapi/updateUserStoreDetails',
'headers': {
'Origin': 'grazr.moblearn.net',
'Authorization': 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZWNvbmRhcnlfbWFpbGluZ19hZGRyZXNzIjoiIiwiY2l0eSI6IlRleGFzIiwiZW1haWwiOiJ0ZXN0MS5hdWN0aW9uc29mdHdhcmUrMDZAZ21haWwuY29tIiwicmVnaXN0ZXJlZF9udW1iZXIiOiIiLCJubWZzX251bWJlciI6IiIsInBhc3N3b3JkX2hhc2giOiIzYzMxY2YxMjJjZDliZTJhYzQ4OGRkM2M5ZjYwM2U2NyIsInN0YXRlIjoiTWF5YWd1YW5hIiwiaXNlbXAiOjAsImNhdGVnb3J5IjoiIiwibGljZW5zZV9udW1iZXIiOiIiLCJmaXJzdF9uYW1lIjoiQ2xpbnRvbiIsInZlc3NlbF9uYW1lIjoiIiwidGVydGlhcnlfZmlyc3RfbmFtZSI6IiIsImFsdGVybmF0ZV9waG9uZSI6IiIsImlyaWRpdW1fcGhvbmUiOiIiLCJ0ZXJ0aWFyeV9tYWlsaW5nX2FkZHJlc3MiOiIiLCJhZG1pbiI6MCwidmhmX2NoYW5uZWwiOiIiLCJtYWlsaW5nX2FkZHJlc3MiOiIiLCJzYXRfcGhvbmUiOiIiLCJjb3VudHJ5IjoiQmFoYW1hcyIsInJvbGUiOiJzZWxsZXIiLCJpZCI6MTM1NSwic2Vjb25kYXJ5X3Bob25lIjoiIiwiYXZhdGFyIjoiYTc2YTU3ZTE2YzNhNzg0ZTYwOTBmYTZhN2FiMTNjYTMuanBnIiwibWlkZGxlX25hbWUiOiIiLCJsYW5kaW5nX3BvcnQiOiIiLCJ6aXAiOiI5OTUwNSIsInZlcmlmeV9wYXlwYWwiOjAsInN0YXR1cyI6ImFjdGl2ZSIsImNhcmRfcHJvZmlsZWlkIjoiIiwibGFzdF9uYW1lIjoiTWljayIsInBhc3N3b3JkX3NhbHQiOiIxMjM0NSIsImNvbXBhbnlfbmFtZSI6IiIsInNlY29uZGFyeV9maXJzdF9uYW1lIjoiIiwiY2FyZF9wYXltZW50aWQiOiIiLCJ0ZXJ0aWFyeV9waG9uZSI6IiIsInBob25lIjoiIiwiaWF0IjoxNTc0Njc5MDQ1fQ.04hLswe5GFSi3ae7GrI8ZJdVHuxi1CuuzpgySMAfXEU',
'Cookie': 'connect.sid=s%3ATB5I-MBdrY4TacfdlGHYF5U20NJ2HrJ5.sF88AWEVKdTjJxEtxLte9cBt%2FBM%2BITxoVd5U%2FbLF6rc'
},
'maxRedirects': 20
};
var req = http.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
var postData = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"store_name\"\r\n\r\ntest\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"description\"\r\n\r\ntest\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"status\"\r\n\r\n1\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"website\"\r\n\r\ntest\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"banner\"; filename=\"/C:/Users/User/Downloads/farm.jpg\"\r\nContent-Type: \"{Insert_File_Content_Type}\"\r\n\r\n" + fs.readFileSync('/C:/Users/User/Downloads/farm.jpg') + "\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"store_images\"; filename=\"/C:/Users/User/Downloads/fish1.jpg\"\r\nContent-Type: \"{Insert_File_Content_Type}\"\r\n\r\n" + fs.readFileSync('/C:/Users/User/Downloads/fish1.jpg') + "\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"store_videos\"; filename=\"/C:/Users/User/Downloads/farm.jpg\"\r\nContent-Type: \"{Insert_File_Content_Type}\"\r\n\r\n" + fs.readFileSync('/C:/Users/User/Downloads/farm.jpg') + "\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"store_videos\"; filename=\"/C:/Users/User/Downloads/fish1.jpg\"\r\nContent-Type: \"{Insert_File_Content_Type}\"\r\n\r\n" + fs.readFileSync('/C:/Users/User/Downloads/fish1.jpg') + "\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"location[1]\"\r\n\r\nUK\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--";
req.setHeader('content-type', 'multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW');
req.write(postData);
req.end();
Headers
{"key":"Origin","value":"grazr.moblearn.net","type":"text"},{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZWNvbmRhcnlfbWFpbGluZ19hZGRyZXNzIjoiIiwiY2l0eSI6IlRleGFzIiwiZW1haWwiOiJ0ZXN0MS5hdWN0aW9uc29mdHdhcmUrMDZAZ21haWwuY29tIiwicmVnaXN0ZXJlZF9udW1iZXIiOiIiLCJubWZzX251bWJlciI6IiIsInBhc3N3b3JkX2hhc2giOiIzYzMxY2YxMjJjZDliZTJhYzQ4OGRkM2M5ZjYwM2U2NyIsInN0YXRlIjoiTWF5YWd1YW5hIiwiaXNlbXAiOjAsImNhdGVnb3J5IjoiIiwibGljZW5zZV9udW1iZXIiOiIiLCJmaXJzdF9uYW1lIjoiQ2xpbnRvbiIsInZlc3NlbF9uYW1lIjoiIiwidGVydGlhcnlfZmlyc3RfbmFtZSI6IiIsImFsdGVybmF0ZV9waG9uZSI6IiIsImlyaWRpdW1fcGhvbmUiOiIiLCJ0ZXJ0aWFyeV9tYWlsaW5nX2FkZHJlc3MiOiIiLCJhZG1pbiI6MCwidmhmX2NoYW5uZWwiOiIiLCJtYWlsaW5nX2FkZHJlc3MiOiIiLCJzYXRfcGhvbmUiOiIiLCJjb3VudHJ5IjoiQmFoYW1hcyIsInJvbGUiOiJzZWxsZXIiLCJpZCI6MTM1NSwic2Vjb25kYXJ5X3Bob25lIjoiIiwiYXZhdGFyIjoiYTc2YTU3ZTE2YzNhNzg0ZTYwOTBmYTZhN2FiMTNjYTMuanBnIiwibWlkZGxlX25hbWUiOiIiLCJsYW5kaW5nX3BvcnQiOiIiLCJ6aXAiOiI5OTUwNSIsInZlcmlmeV9wYXlwYWwiOjAsInN0YXR1cyI6ImFjdGl2ZSIsImNhcmRfcHJvZmlsZWlkIjoiIiwibGFzdF9uYW1lIjoiTWljayIsInBhc3N3b3JkX3NhbHQiOiIxMjM0NSIsImNvbXBhbnlfbmFtZSI6IiIsInNlY29uZGFyeV9maXJzdF9uYW1lIjoiIiwiY2FyZF9wYXltZW50aWQiOiIiLCJ0ZXJ0aWFyeV9waG9uZSI6IiIsInBob25lIjoiIiwiaWF0IjoxNTc0Njc5MDQ1fQ.04hLswe5GFSi3ae7GrI8ZJdVHuxi1CuuzpgySMAfXEU","type":"text"}
Usage and Examples
Body parameters
Name
Description
storedetails
{
"store_name": "test"
"description": "test"
"location[0]":"US"
"status":"1"
"website":"test"
"banner":"/C:/Users/User/Downloads/farm.jpg"
"store_images":"/C:/Users/User/Downloads/fish1.jpg"
"store_videos": "/C:/Users/User/Downloads/farm.mp4"
"user_id":"1295"
"store_id":"4"
"location[1]":"UK"
}
Responses
Status: 200 - Success
{
"status": "yes",
"message": "Success"
}
Responses
Status: 302 - Error
{
{
"status": "false",
"message": "falied"
}
}
Search
This API can be used to fetch records with specific keyword. Keyword should be in text format.
GET
http://grazr.moblearn.net:7095/mobileapi/mobilesearch?searchbar=hunt
Usage and Examples
curl --location --request GET 'http://grazr.moblearn.net:7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oiVVMiLCJ6aXAiOiI2MDAwMDEiLCJ2ZXJpZnlfcGF5cGFsIjowLCJzdGF0dXMiOiJhY3RpdmUiLCJjYXJkX3Byb2ZpbGVpZCI6IiIsImxhc3RfbmFtZSI6InRlc3QgbGFzdG5hbWUxIiwicGFzc3dvcmRfc2FsdCI6IjEyMzQ1IiwiY29tcGFueV9uYW1lIjoidGVzdCBjb21wYW55X25hbWUiLCJzZWNvbmRhcnlfZmlyc3RfbmFtZSI6InRlc3Qgc2Vjb25kYXkgZmlyc3QgbmFtZSIsImNhcmRfcGF5bWVudGlkIjoiIiwidGVydGlhcnlfcGhvbmUiOiIxMTExMTEiLCJwaG9uZSI6Ijg0Mjg4Mzk0MzMiLCJpYXQiOjE1NzQxMzc4NTV9.Yc99empkGDCSlTmb_Fpmnc18MD2H73_y6zexdTZhNFE' \
--header 'Cookie: connect.sid=s%3ATB5I-MBdrY4TacfdlGHYF5U20NJ2HrJ5.sF88AWEVKdTjJxEtxLte9cBt%2FBM%2BITxoVd5U%2FbLF6rc'
var form = new FormData();
var settings = {
"url": "http://grazr.moblearn.net:7095/mobileapi/mobilesearch?searchbar=hunt",
"method": "GET",
"timeout": 0,
"headers": {
"Origin": "auction.io:2097",
"Authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZWNvbmRhcnlfbWFpbGluZ19hZGRyZXNzIjoidGVzdCBzZWNvbmRhcnkgbWFpbCBhZGRyZXNzIiwiY2l0eSI6ImNoZW5uYWkiLCJlbWFpbCI6InJhamt1bWFyLmF1Y3Rpb25zb2Z0d2FyZStidXllcnRlc3RAZ21haWwuY29tIiwicmVnaXN0ZXJlZF9udW1iZXIiOiIxMjMxMjMiLCJubWZzX251bWJlciI6Ijc3Nzc3NyIsInBhc3N3b3JkX2hhc2giOiIzYzMxY2YxMjJjZDliZTJhYzQ4OGRkM2M5ZjYwM2U2NyIsInN0YXRlIjoidG4iLCJpc2VtcCI6MCwiY2F0ZWdvcnkiOiJ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connect.sid=s%3ATB5I-MBdrY4TacfdlGHYF5U20NJ2HrJ5.sF88AWEVKdTjJxEtxLte9cBt%2FBM%2BITxoVd5U%2FbLF6rc"
},
"processData": false,
"mimeType": "multipart/form-data",
"contentType": false,
"data": form
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var http = require('follow-redirects').http;
var fs = require('fs');
var options = {
'method': 'GET',
'hostname': 'grazr.moblearn.net',
'port': 7095,
'path': '/mobileapi/mobilesearch?searchbar=hunt',
'headers': {
'Origin': 'auction.io:2097',
'Authorization': 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZWNvbmRhcnlfbWFpbGluZ19hZGRyZXNzIjoidGVzdCBzZWNvbmRhcnkgbWFpbCBhZGRyZXNzIiwiY2l0eSI6ImNoZW5uYWkiLCJlbWFpbCI6InJhamt1bWFyLmF1Y3Rpb25zb2Z0d2FyZStidXllcnRlc3RAZ21haWwuY29tIiwicmVnaXN0ZXJlZF9udW1iZXIiOiIxMjMxMjMiLCJubWZzX251bWJlciI6Ijc3Nzc3NyIsInBhc3N3b3JkX2hhc2giOiIzYzMxY2YxMjJjZDliZTJhYzQ4OGRkM2M5ZjYwM2U2NyIsInN0YXRlIjoidG4iLCJpc2VtcCI6MCwiY2F0ZWdvcnkiOiJ0ZXN0IiwibGljZW5zZV9udW1iZXIiOiI4OTg5ODkiLCJmaXJzdF9uYW1lIjoidGVzdDEiLCJ2ZXNzZWxfbmFtZSI6InRlc3QgdmVzc2VsIG5hbWUiLCJ0ZXJ0aWFyeV9maXJzdF9uYW1lIjoidGVzdCB0ZXJ0aWFyeSBmaXJzdCBuYW1lIiwiYWx0ZXJuYXRlX3Bob25lIjoiMTIzNDU2NzgiLCJpcmlkaXVtX3Bob25lIjoiNDQ0NDQ0IiwidGVydGlhcnlfbWFpbGluZ19hZGRyZXNzIjoidGVydGlhcnkgbWFpbCBhZGRyZXNzIiwiYWRtaW4iOjAsInZoZl9jaGFubmVsIjoidGVzdCB2aGYgY2hhbm5lbCIsIm1haWxpbmdfYWRkcmVzcyI6InRlc3RAdGVzdC5jb20iLCJzYXRfcGhvbmUiOiIzMzMzMzMiLCJjb3VudHJ5IjoiaW5kb2EiLCJyb2xlIjoiIiwiaWQiOjEyODksInNlY29uZGFyeV9waG9uZSI6IjU1NTU1IiwibWlkZGxlX25hbWUiOiJ0ZXN0IG1pZGRsZW5hbWUxIiwibGFuZGluZ19wb3J0IjoiVVMiLCJ6aXAiOiI2MDAwMDEiLCJ2ZXJpZnlfcGF5cGFsIjowLCJzdGF0dXMiOiJhY3RpdmUiLCJjYXJkX3Byb2ZpbGVpZCI6IiIsImxhc3RfbmFtZSI6InRlc3QgbGFzdG5hbWUxIiwicGFzc3dvcmRfc2FsdCI6IjEyMzQ1IiwiY29tcGFueV9uYW1lIjoidGVzdCBjb21wYW55X25hbWUiLCJzZWNvbmRhcnlfZmlyc3RfbmFtZSI6InRlc3Qgc2Vjb25kYXkgZmlyc3QgbmFtZSIsImNhcmRfcGF5bWVudGlkIjoiIiwidGVydGlhcnlfcGhvbmUiOiIxMTExMTEiLCJwaG9uZSI6Ijg0Mjg4Mzk0MzMiLCJpYXQiOjE1NzQxMzc4NTV9.Yc99empkGDCSlTmb_Fpmnc18MD2H73_y6zexdTZhNFE',
'Cookie': 'connect.sid=s%3ATB5I-MBdrY4TacfdlGHYF5U20NJ2HrJ5.sF88AWEVKdTjJxEtxLte9cBt%2FBM%2BITxoVd5U%2FbLF6rc'
},
'maxRedirects': 20
};
var req = http.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
req.end();
Headers
[{"key":"Origin","value":"auction.io:2097","type":"text"},{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZWNvbmRhcnlfbWFpbGluZ19hZGRyZXNzIjoidGVzdCB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xIiwicGFzc3dvcmRfc2FsdCI6IjEyMzQ1IiwiY29tcGFueV9uYW1lIjoidGVzdCBjb21wYW55X25hbWUiLCJzZWNvbmRhcnlfZmlyc3RfbmFtZSI6InRlc3Qgc2Vjb25kYXkgZmlyc3QgbmFtZSIsImNhcmRfcGF5bWVudGlkIjoiIiwidGVydGlhcnlfcGhvbmUiOiIxMTExMTEiLCJwaG9uZSI6Ijg0Mjg4Mzk0MzMiLCJpYXQiOjE1NzQxMzc4NTV9.Yc99empkGDCSlTmb_Fpmnc18MD2H73_y6zexdTZhNFE","type":"text"}]
Params
[{"key":"searchbar","value":"hunt","equals":true,"description":"","enabled":true}]x`
Responses
Status: 200 - Success
{
{
"success": "yes",
"results": [
{
"id": 41,
"user_id": 1289,
"title": "Hunt",
"weight": 60,
"length": 0,
"width": 0,
"height": 0,
"qty": 4,
"state": "",
"city": "",
"description": "hunt",
"file_name": null,
"is_avatar": "",
"image": "3c9506d168ce5b9cec7418a943975997.jpg",
"date_added": "2019-12-31T07:43:21.000Z",
"date_closed": "2019-12-31T07:43:21.000Z",
"sprice": "0",
"rprice": "0",
"wprice": 0,
"market_status": "open",
"auctionioid": 91790748,
"auctioniotype": "",
"storeqty": 0,
"upc": "",
"modelnumber": "",
"lotof": "91790748",
"mixlotof": "0",
"manufacturer": "",
"size": "",
"finish": "",
"auctionionotes": "",
"qcdby": "",
"auctioniocondition": "",
"conditionunique": "",
"multiple_category": "3",
"hasshipping": 0,
"shippingcost": "0",
"shipnotavailable": 0,
"freightrequest": 0,
"localpickup": 1,
"location": "US",
"paymentmethod": "[\"Cash (Local Pick-up)\"]",
"msrp": 0,
"startprice": 0,
"ended_early": 0,
"palletcount": "",
"unitcount": 0,
"inventory_loc": "",
"latestbid": null,
"starttext": "Starting Price",
"pricestart": 0,
"wlist": 0,
"remainingDay": -9929464613,
"dateFclosed": "2019-12-31T07:43:21.000Z",
"closed": "2019-12-31T07:43:21.000Z",
"avatarorg": "http://grazr.moblearn.net:7095/images/logo.ico.png",
"ptitle": "Hunt"
},
{
"id": 166,
"user_id": 1289,
"title": "Hunt",
"weight": 60,
"length": 0,
"width": 0,
"height": 0,
"qty": 4,
"state": "",
"city": "",
"description": "hunt",
"file_name": null,
"is_avatar": "",
"image": "",
"date_added": "2020-04-23T07:50:27.000Z",
"date_closed": "2020-04-23T07:50:27.000Z",
"sprice": "0",
"rprice": "0",
"wprice": 0,
"market_status": "open",
"auctionioid": 47363889,
"auctioniotype": "",
"storeqty": 0,
"upc": "",
"modelnumber": "",
"lotof": "47363889",
"mixlotof": "0",
"manufacturer": "",
"size": "",
"finish": "",
"auctionionotes": "",
"qcdby": "",
"auctioniocondition": "",
"conditionunique": "",
"multiple_category": "3",
"hasshipping": 0,
"shippingcost": "0",
"shipnotavailable": 0,
"freightrequest": 0,
"localpickup": 1,
"location": "US",
"paymentmethod": "[\"Cash (Local Pick-up)\"]",
"msrp": 0,
"startprice": 0,
"ended_early": 0,
"palletcount": "",
"unitcount": 0,
"inventory_loc": "",
"latestbid": null,
"starttext": "Starting Price",
"pricestart": 0,
"wlist": 0,
"remainingDay": -79438613,
"dateFclosed": "2020-04-23T07:50:27.000Z",
"closed": "2020-04-23T07:50:27.000Z",
"avatarorg": "http://grazr.moblearn.net:7095/images/logo.ico.png",
"ptitle": "Hunt"
},
{
"id": 167,
"user_id": 1289,
"title": "Hunt",
"weight": 60,
"length": 0,
"width": 0,
"height": 0,
"qty": 4,
"state": "",
"city": "",
"description": "hunt",
"file_name": null,
"is_avatar": "",
"image": "",
"date_added": "2020-04-23T07:50:47.000Z",
"date_closed": "2020-04-23T07:50:47.000Z",
"sprice": "0",
"rprice": "0",
"wprice": 0,
"market_status": "open",
"auctionioid": 25888658,
"auctioniotype": "",
"storeqty": 0,
"upc": "",
"modelnumber": "",
"lotof": "25888658",
"mixlotof": "0",
"manufacturer": "",
"size": "",
"finish": "",
"auctionionotes": "",
"qcdby": "",
"auctioniocondition": "",
"conditionunique": "",
"multiple_category": "3",
"hasshipping": 0,
"shippingcost": "0",
"shipnotavailable": 0,
"freightrequest": 0,
"localpickup": 1,
"location": "US",
"paymentmethod": "[\"Cash (Local Pick-up)\"]",
"msrp": 0,
"startprice": 0,
"ended_early": 0,
"palletcount": "",
"unitcount": 0,
"inventory_loc": "",
"latestbid": null,
"starttext": "Starting Price",
"pricestart": 0,
"wlist": 0,
"remainingDay": -79418613,
"dateFclosed": "2020-04-23T07:50:47.000Z",
"closed": "2020-04-23T07:50:47.000Z",
"avatarorg": "http://grazr.moblearn.net:7095/images/logo.ico.png",
"ptitle": "Hunt"
},
{
"id": 168,
"user_id": 1289,
"title": "Hunt",
"weight": 60,
"length": 0,
"width": 0,
"height": 0,
"qty": 4,
"state": "",
"city": "",
"description": "hunt",
"file_name": null,
"is_avatar": "",
"image": "",
"date_added": "2020-04-23T07:51:23.000Z",
"date_closed": "2020-04-23T07:51:23.000Z",
"sprice": "0",
"rprice": "0",
"wprice": 0,
"market_status": "open",
"auctionioid": 93775168,
"auctioniotype": "",
"storeqty": 0,
"upc": "",
"modelnumber": "",
"lotof": "93775168",
"mixlotof": "0",
"manufacturer": "",
"size": "",
"finish": "",
"auctionionotes": "",
"qcdby": "",
"auctioniocondition": "",
"conditionunique": "",
"multiple_category": "3",
"hasshipping": 0,
"shippingcost": "0",
"shipnotavailable": 0,
"freightrequest": 0,
"localpickup": 1,
"location": "US",
"paymentmethod": "[\"Cash (Local Pick-up)\"]",
"msrp": 0,
"startprice": 0,
"ended_early": 0,
"palletcount": "",
"unitcount": 0,
"inventory_loc": "",
"latestbid": null,
"starttext": "Starting Price",
"pricestart": 0,
"wlist": 0,
"remainingDay": -79382613,
"dateFclosed": "2020-04-23T07:51:23.000Z",
"closed": "2020-04-23T07:51:23.000Z",
"avatarorg": "http://grazr.moblearn.net:7095/images/logo.ico.png",
"ptitle": "Hunt"
},
{
"id": 169,
"user_id": 1289,
"title": "Hunt",
"weight": 60,
"length": 0,
"width": 0,
"height": 0,
"qty": 4,
"state": "",
"city": "",
"description": "hunt",
"file_name": null,
"is_avatar": "",
"image": "",
"date_added": "2020-04-23T07:51:36.000Z",
"date_closed": "2020-04-23T07:51:36.000Z",
"sprice": "0",
"rprice": "0",
"wprice": 0,
"market_status": "open",
"auctionioid": 95309390,
"auctioniotype": "",
"storeqty": 0,
"upc": "",
"modelnumber": "",
"lotof": "95309390",
"mixlotof": "0",
"manufacturer": "",
"size": "",
"finish": "",
"auctionionotes": "",
"qcdby": "",
"auctioniocondition": "",
"conditionunique": "",
"multiple_category": "3",
"hasshipping": 0,
"shippingcost": "0",
"shipnotavailable": 0,
"freightrequest": 0,
"localpickup": 1,
"location": "US",
"paymentmethod": "[\"Cash (Local Pick-up)\"]",
"msrp": 0,
"startprice": 0,
"ended_early": 0,
"palletcount": "",
"unitcount": 0,
"inventory_loc": "",
"latestbid": null,
"starttext": "Starting Price",
"pricestart": 0,
"wlist": 0,
"remainingDay": -79369613,
"dateFclosed": "2020-04-23T07:51:36.000Z",
"closed": "2020-04-23T07:51:36.000Z",
"avatarorg": "http://grazr.moblearn.net:7095/images/logo.ico.png",
"ptitle": "Hunt"
},
{
"id": 170,
"user_id": 1289,
"title": "Hunt",
"weight": 60,
"length": 0,
"width": 0,
"height": 0,
"qty": 4,
"state": "",
"city": "",
"description": "hunt",
"file_name": null,
"is_avatar": "",
"image": "",
"date_added": "2020-04-23T07:52:44.000Z",
"date_closed": "2020-04-23T07:52:44.000Z",
"sprice": "0",
"rprice": "0",
"wprice": 0,
"market_status": "open",
"auctionioid": 51394383,
"auctioniotype": "",
"storeqty": 0,
"upc": "",
"modelnumber": "",
"lotof": "51394383",
"mixlotof": "0",
"manufacturer": "",
"size": "",
"finish": "",
"auctionionotes": "",
"qcdby": "",
"auctioniocondition": "",
"conditionunique": "",
"multiple_category": "3",
"hasshipping": 0,
"shippingcost": "0",
"shipnotavailable": 0,
"freightrequest": 0,
"localpickup": 1,
"location": "US",
"paymentmethod": "[\"Cash (Local Pick-up)\"]",
"msrp": 0,
"startprice": 0,
"ended_early": 0,
"palletcount": "",
"unitcount": 0,
"inventory_loc": "",
"latestbid": null,
"starttext": "Starting Price",
"pricestart": 0,
"wlist": 0,
"remainingDay": -79301613,
"dateFclosed": "2020-04-23T07:52:44.000Z",
"closed": "2020-04-23T07:52:44.000Z",
"avatarorg": "http://grazr.moblearn.net:7095/images/logo.ico.png",
"ptitle": "Hunt"
},
{
"id": 171,
"user_id": 1289,
"title": "Hunt",
"weight": 60,
"length": 0,
"width": 0,
"height": 0,
"qty": 4,
"state": "",
"city": "",
"description": "hunt",
"file_name": null,
"is_avatar": "",
"image": "",
"date_added": "2020-04-23T07:52:52.000Z",
"date_closed": "2020-04-23T07:52:52.000Z",
"sprice": "0",
"rprice": "0",
"wprice": 0,
"market_status": "open",
"auctionioid": 82563055,
"auctioniotype": "",
"storeqty": 0,
"upc": "",
"modelnumber": "",
"lotof": "82563055",
"mixlotof": "0",
"manufacturer": "",
"size": "",
"finish": "",
"auctionionotes": "",
"qcdby": "",
"auctioniocondition": "",
"conditionunique": "",
"multiple_category": "3",
"hasshipping": 0,
"shippingcost": "0",
"shipnotavailable": 0,
"freightrequest": 0,
"localpickup": 1,
"location": "US",
"paymentmethod": "[\"Cash (Local Pick-up)\"]",
"msrp": 0,
"startprice": 0,
"ended_early": 0,
"palletcount": "",
"unitcount": 0,
"inventory_loc": "",
"latestbid": null,
"starttext": "Starting Price",
"pricestart": 0,
"wlist": 0,
"remainingDay": -79293613,
"dateFclosed": "2020-04-23T07:52:52.000Z",
"closed": "2020-04-23T07:52:52.000Z",
"avatarorg": "http://grazr.moblearn.net:7095/images/logo.ico.png",
"ptitle": "Hunt"
},
{
"id": 172,
"user_id": 1289,
"title": "Hunt",
"weight": 60,
"length": 0,
"width": 0,
"height": 0,
"qty": 4,
"state": "",
"city": "",
"description": "hunt",
"file_name": null,
"is_avatar": "",
"image": "",
"date_added": "2020-04-23T07:53:02.000Z",
"date_closed": "2020-04-23T07:53:02.000Z",
"sprice": "0",
"rprice": "0",
"wprice": 0,
"market_status": "open",
"auctionioid": 73358912,
"auctioniotype": "",
"storeqty": 0,
"upc": "",
"modelnumber": "",
"lotof": "73358912",
"mixlotof": "0",
"manufacturer": "",
"size": "",
"finish": "",
"auctionionotes": "",
"qcdby": "",
"auctioniocondition": "",
"conditionunique": "",
"multiple_category": "3",
"hasshipping": 0,
"shippingcost": "0",
"shipnotavailable": 0,
"freightrequest": 0,
"localpickup": 1,
"location": "US",
"paymentmethod": "[\"Cash (Local Pick-up)\"]",
"msrp": 0,
"startprice": 0,
"ended_early": 0,
"palletcount": "",
"unitcount": 0,
"inventory_loc": "",
"latestbid": null,
"starttext": "Starting Price",
"pricestart": 0,
"wlist": 0,
"remainingDay": -79283613,
"dateFclosed": "2020-04-23T07:53:02.000Z",
"closed": "2020-04-23T07:53:02.000Z",
"avatarorg": "http://grazr.moblearn.net:7095/images/logo.ico.png",
"ptitle": "Hunt"
},
{
"id": 173,
"user_id": 1289,
"title": "Hunt",
"weight": 60,
"length": 0,
"width": 0,
"height": 0,
"qty": 4,
"state": "",
"city": "",
"description": "hunt",
"file_name": null,
"is_avatar": "",
"image": "",
"date_added": "2020-04-23T08:05:07.000Z",
"date_closed": "2020-04-23T08:05:07.000Z",
"sprice": "0",
"rprice": "0",
"wprice": 0,
"market_status": "open",
"auctionioid": 97484241,
"auctioniotype": "",
"storeqty": 0,
"upc": "",
"modelnumber": "",
"lotof": "97484241",
"mixlotof": "0",
"manufacturer": "",
"size": "",
"finish": "",
"auctionionotes": "",
"qcdby": "",
"auctioniocondition": "",
"conditionunique": "",
"multiple_category": "3",
"hasshipping": 0,
"shippingcost": "0",
"shipnotavailable": 0,
"freightrequest": 0,
"localpickup": 1,
"location": "US",
"paymentmethod": "[\"Cash (Local Pick-up)\"]",
"msrp": 0,
"startprice": 0,
"ended_early": 0,
"palletcount": "",
"unitcount": 0,
"inventory_loc": "",
"latestbid": null,
"starttext": "Starting Price",
"pricestart": 0,
"wlist": 0,
"remainingDay": -78558613,
"dateFclosed": "2020-04-23T08:05:07.000Z",
"closed": "2020-04-23T08:05:07.000Z",
"avatarorg": "http://grazr.moblearn.net:7095/images/logo.ico.png",
"ptitle": "Hunt"
},
{
"id": 174,
"user_id": 1289,
"title": "Hunt",
"weight": 60,
"length": 0,
"width": 0,
"height": 0,
"qty": 4,
"state": "",
"city": "",
"description": "hunt",
"file_name": null,
"is_avatar": "",
"image": "",
"date_added": "2020-04-23T08:05:18.000Z",
"date_closed": "2020-04-23T08:05:18.000Z",
"sprice": "0",
"rprice": "0",
"wprice": 0,
"market_status": "open",
"auctionioid": 26309593,
"auctioniotype": "",
"storeqty": 0,
"upc": "",
"modelnumber": "",
"lotof": "26309593",
"mixlotof": "0",
"manufacturer": "",
"size": "",
"finish": "",
"auctionionotes": "",
"qcdby": "",
"auctioniocondition": "",
"conditionunique": "",
"multiple_category": "3",
"hasshipping": 0,
"shippingcost": "0",
"shipnotavailable": 0,
"freightrequest": 0,
"localpickup": 1,
"location": "US",
"paymentmethod": "[\"Cash (Local Pick-up)\"]",
"msrp": 0,
"startprice": 0,
"ended_early": 0,
"palletcount": "",
"unitcount": 0,
"inventory_loc": "",
"latestbid": null,
"starttext": "Starting Price",
"pricestart": 0,
"wlist": 0,
"remainingDay": -78547613,
"dateFclosed": "2020-04-23T08:05:18.000Z",
"closed": "2020-04-23T08:05:18.000Z",
"avatarorg": "http://grazr.moblearn.net:7095/images/logo.ico.png",
"ptitle": "Hunt"
},
{
"id": 177,
"user_id": 1289,
"title": "Hunt",
"weight": 60,
"length": 0,
"width": 0,
"height": 0,
"qty": 4,
"state": "",
"city": "",
"description": "hunt",
"file_name": null,
"is_avatar": "",
"image": "",
"date_added": "2020-04-23T12:05:06.000Z",
"date_closed": "2020-04-23T12:05:06.000Z",
"sprice": "0",
"rprice": "0",
"wprice": 0,
"market_status": "open",
"auctionioid": 78529593,
"auctioniotype": "",
"storeqty": 0,
"upc": "",
"modelnumber": "",
"lotof": "78529593",
"mixlotof": "0",
"manufacturer": "",
"size": "",
"finish": "",
"auctionionotes": "",
"qcdby": "",
"auctioniocondition": "",
"conditionunique": "",
"multiple_category": "3",
"hasshipping": 0,
"shippingcost": "0",
"shipnotavailable": 0,
"freightrequest": 0,
"localpickup": 1,
"location": "US",
"paymentmethod": "[\"Cash (Local Pick-up)\"]",
"msrp": 0,
"startprice": 0,
"ended_early": 0,
"palletcount": "",
"unitcount": 0,
"inventory_loc": "",
"latestbid": null,
"starttext": "Starting Price",
"pricestart": 0,
"wlist": 0,
"remainingDay": -64159613,
"dateFclosed": "2020-04-23T12:05:06.000Z",
"closed": "2020-04-23T12:05:06.000Z",
"avatarorg": "http://grazr.moblearn.net:7095/images/logo.ico.png",
"ptitle": "Hunt"
}
],
"maincategory": [],
"locate": [
{
"typelc": "whole",
"name": "US",
"value": "US"
}
],
"retrival": [
{
"org_name": "Local Pick Up",
"name": "localavail",
"value": 1
}
],
"set_disp": "1-11",
"total_pagecnt": 11,
"total_only": 11
}
}
Responses
Status: 302 - Error
{
"status": "no",
"message": "Error in Request"
}
Get Particular Product Details
This API can be used to fetch particular product details.
POST
http://grazr.moblearn.net:7095/mobileapi/getProductDetails
Usage and Examples
curl --location --request POST 'http://grazr.moblearn.net:7095/mobileapi/getProductDetails' \
--header 'Origin: auction.io:2097' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyZWdpc3RlcmVkX251bWJlciI6IlJFRzEyMzQ1NiIsImNhdGVnb3J5IjoiSGF0Y2hlcnkgU2FsbW9uIiwic2Vjb25kYXJ5X21haWxpbmdfYWRkcmVzcyI6IiIsInRlcnRpYXJ5X3Bob25lIjoiIiwicGFzc3dvcmRfc2FsdCI6IjEyMzQ1IiwiY2l0eSI6bnVsbCwidmhmX2NoYW5uZWwiOiIiLCJtYWlsaW5nX2FkZHJlc3MiOiJ0ZXN0LmF1Y3Rpb25zb2Z0d2FyZUBnbWFpbC5jb20iLCJmaXJzdF9uYW1lIjoiYnV5ZXIiLCJzYXRfcGhvbmUiOiIiLCJhZG1pbiI6MCwiY2FyZF9wYXltZW50aWQiOiIiLCJtaWRkbGVfbmFtZSI6ImJ1eWVyIiwiY2FyZF9wcm9maWxlaWQiOiIiLCJzZWNvbmRhcnlfcGhvbmUiOiIiLCJpcmlkaXVtX3Bob25lIjoiIiwibm1mc19udW1iZXIiOiJOTUYxMjM0NSIsInZlcmlmeV9wYXlwYWwiOjAsInN0YXRlIjpudWxsLCJ6aXAiOm51bGwsImxhc3RfbmFtZSI6InVzZXIiLCJwaG9uZSI6IjEyMzQ1Njc4OTAiLCJ0ZXJ0aWFyeV9tYWlsaW5nX2FkZHJlc3MiOiIiLCJpc2VtcCI6MCwic3RhdHVzIjoiYWN0aXZlIiwic2Vjb25kYXJ5X2ZpcnN0X25hbWUiOiIiLCJhbHRlcm5hdGVfcGhvbmUiOiIiLCJsaWNlbnNlX251bWJlciI6IiIsImNvdW50cnkiOm51bGwsImNvbXBhbnlfbmFtZSI6ImJ1eWVyIGNvbXBhbnkiLCJyb2xlIjoiYnV5ZXIiLCJ2ZXNzZWxfbmFtZSI6IiIsImxhbmRpbmdfcG9ydCI6IiIsInBhc3N3b3JkX2hhc2giOiI1ZGY1MWJjNTA4OWFiNDZkNTkwMTA4YzVjMjM5ZWZmZiIsInRlcnRpYXJ5X2ZpcnN0X25hbWUiOiIiLCJlbWFpbCI6InJhamt1bWFyLmF1Y3Rpb25zb2Z0d2FyZStidXllckBnbWFpbC5jb20iLCJpZCI6MTI4NSwiaWF0IjoxNTczNjI3NDU4fQ.O8fCejAVSkFaomUIl3JNnYoTqequvcA0UY3J888ANvc' \
--header 'Cookie: connect.sid=s%3ATB5I-MBdrY4TacfdlGHYF5U20NJ2HrJ5.sF88AWEVKdTjJxEtxLte9cBt%2FBM%2BITxoVd5U%2FbLF6rc' \
--form 'product_id=197'
var form = new FormData();
form.append("product_id", "197");
var settings = {
"url": "http://grazr.moblearn.net:7095/mobileapi/getProductDetails",
"method": "POST",
"timeout": 0,
"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MTA4YzVjMjM5ZWZmZiIsInRlcnRpYXJ5X2ZpcnN0X25hbWUiOiIiLCJlbWFpbCI6InJhamt1bWFyLmF1Y3Rpb25zb2Z0d2FyZStidXllckBnbWFpbC5jb20iLCJpZCI6MTI4NSwiaWF0IjoxNTczNjI3NDU4fQ.O8fCejAVSkFaomUIl3JNnYoTqequvcA0UY3J888ANvc",
"Cookie": "connect.sid=s%3ATB5I-MBdrY4TacfdlGHYF5U20NJ2HrJ5.sF88AWEVKdTjJxEtxLte9cBt%2FBM%2BITxoVd5U%2FbLF6rc"
},
"processData": false,
"mimeType": "multipart/form-data",
"contentType": false,
"data": form
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var http = require('follow-redirects').http;
var fs = require('fs');
var options = {
'method': 'POST',
'hostname': 'grazr.moblearn.net',
'port': 7095,
'path': '/mobileapi/getProductDetails',
'headers': {
'Origin': 'auction.io:2097',
'Authorization': 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyZWdpc3RlcmVkX251bWJlciI6IlJFRzEyMzQ1NiIsImNhdGVnb3J5IjoiSGF0Y2hlcnkgU2FsbW9uIiwic2Vjb25kYXJ5X21haWxpbmdfYWRkcmVzcyI6IiIsInRlcnRpYXJ5X3Bob25lIjoiIiwicGFzc3dvcmRfc2FsdCI6IjEyMzQ1IiwiY2l0eSI6bnVsbCwidmhmX2NoYW5uZWwiOiIiLCJtYWlsaW5nX2FkZHJlc3MiOiJ0ZXN0LmF1Y3Rpb25zb2Z0d2FyZUBnbWFpbC5jb20iLCJmaXJzdF9uYW1lIjoiYnV5ZXIiLCJzYXRfcGhvbmUiOiIiLCJhZG1pbiI6MCwiY2FyZF9wYXltZW50aWQiOiIiLCJtaWRkbGVfbmFtZSI6ImJ1eWVyIiwiY2FyZF9wcm9maWxlaWQiOiIiLCJzZWNvbmRhcnlfcGhvbmUiOiIiLCJpcmlkaXVtX3Bob25lIjoiIiwibm1mc19udW1iZXIiOiJOTUYxMjM0NSIsInZlcmlmeV9wYXlwYWwiOjAsInN0YXRlIjpudWxsLCJ6aXAiOm51bGwsImxhc3RfbmFtZSI6InVzZXIiLCJwaG9uZSI6IjEyMzQ1Njc4OTAiLCJ0ZXJ0aWFyeV9tYWlsaW5nX2FkZHJlc3MiOiIiLCJpc2VtcCI6MCwic3RhdHVzIjoiYWN0aXZlIiwic2Vjb25kYXJ5X2ZpcnN0X25hbWUiOiIiLCJhbHRlcm5hdGVfcGhvbmUiOiIiLCJsaWNlbnNlX251bWJlciI6IiIsImNvdW50cnkiOm51bGwsImNvbXBhbnlfbmFtZSI6ImJ1eWVyIGNvbXBhbnkiLCJyb2xlIjoiYnV5ZXIiLCJ2ZXNzZWxfbmFtZSI6IiIsImxhbmRpbmdfcG9ydCI6IiIsInBhc3N3b3JkX2hhc2giOiI1ZGY1MWJjNTA4OWFiNDZkNTkwMTA4YzVjMjM5ZWZmZiIsInRlcnRpYXJ5X2ZpcnN0X25hbWUiOiIiLCJlbWFpbCI6InJhamt1bWFyLmF1Y3Rpb25zb2Z0d2FyZStidXllckBnbWFpbC5jb20iLCJpZCI6MTI4NSwiaWF0IjoxNTczNjI3NDU4fQ.O8fCejAVSkFaomUIl3JNnYoTqequvcA0UY3J888ANvc',
'Cookie': 'connect.sid=s%3ATB5I-MBdrY4TacfdlGHYF5U20NJ2HrJ5.sF88AWEVKdTjJxEtxLte9cBt%2FBM%2BITxoVd5U%2FbLF6rc'
},
'maxRedirects': 20
};
var req = http.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
var postData = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"product_id\"\r\n\r\n197\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--";
req.setHeader('content-type', 'multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW');
req.write(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1ZGY1MWJjNTA4OWFiNDZkNTkwMTA4YzVjMjM5ZWZmZiIsInRlcnRpYXJ5X2ZpcnN0X25hbWUiOiIiLCJlbWFpbCI6InJhamt1bWFyLmF1Y3Rpb25zb2Z0d2FyZStidXllckBnbWFpbC5jb20iLCJpZCI6MTI4NSwiaWF0IjoxNTczNjI3NDU4fQ.O8fCejAVSkFaomUIl3JNnYoTqequvcA0UY3J888ANvc","type":"text"}]
Usage and Examples
Body parameters
Name
Description
productdetails
{
"user_id":"1295",
"id":"47"
}
Responses
Status: 200 - Success
{
"user_id":"number",
"id":"number"
}
{
"status": "yes",
"message": "Success"
}
Responses
Status: 302 - Error
{
{
"status": "false",
"message": "falied"
}
}
Create Community
This API can be used to craete new community. The user need to enter the comunity details.
POST
http://grazr.moblearn.net:7095/mobileapi/createCommunity
Usage and Examples
curl --location --request POST 'http://grazr.moblearn.net:7095/mobileapi/createCommunity' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZWNvbmRhcnlfbWFpbGluZ19hZGRyZXNzIjoiIiwiY2l0eSI6IlRleGFzIiwiZW1haWwiOiJ0ZXN0MS5hdWN0aW9uc29mdHdhcmUrMDZAZ21haWwuY29tIiwicmVnaXN0ZXJlZF9udW1iZXIiOiIiLCJubWZzX251bWJlciI6IiIsInBhc3N3b3JkX2hhc2giOiIzYzMxY2YxMjJjZDliZTJhYzQ4OGRkM2M5ZjYwM2U2NyIsInN0YXRlIjoiTWF5YWd1YW5hIiwiaXNlbXAiOjAsImNhdGVnb3J5IjoiIiwibGljZW5zZV9udW1iZXIiOiIiLCJmaXJzdF9uYW1lIjoiQ2xpbnRvbiIsInZlc3NlbF9uYW1lIjoiIiwidGVydGlhcnlfZmlyc3RfbmFtZSI6IiIsImFsdGVybmF0ZV9waG9uZSI6IiIsImlyaWRpdW1fcGhvbmUiOiIiLCJ0ZXJ0aWFyeV9tYWlsaW5nX2FkZHJlc3MiOiIiLCJhZG1pbiI6MCwidmhmX2NoYW5uZWwiOiIiLCJtYWlsaW5nX2FkZHJlc3MiOiIiLCJzYXRfcGhvbmUiOiIiLCJjb3VudHJ5IjoiQmFoYW1hcyIsInJvbGUiOiJzZWxsZXIiLCJpZCI6MTM1NSwic2Vjb25kYXJ5X3Bob25lIjoiIiwiYXZhdGFyIjoiYTc2YTU3ZTE2YzNhNzg0ZTYwOTBmYTZhN2FiMTNjYTMuanBnIiwibWlkZGxlX25hbWUiOiIiLCJsYW5kaW5nX3BvcnQiOiIiLCJ6aXAiOiI5OTUwNSIsInZlcmlmeV9wYXlwYWwiOjAsInN0YXR1cyI6ImFjdGl2ZSIsImNhcmRfcHJvZmlsZWlkIjoiIiwibGFzdF9uYW1lIjoiTWljayIsInBhc3N3b3JkX3NhbHQiOiIxMjM0NSIsImNvbXBhbnlfbmFtZSI6IiIsInNlY29uZGFyeV9maXJzdF9uYW1lIjoiIiwiY2FyZF9wYXltZW50aWQiOiIiLCJ0ZXJ0aWFyeV9waG9uZSI6IiIsInBob25lIjoiIiwiaWF0IjoxNTc0NDI4MjI4fQ.DJMdtJ-2kw1CYTg0fKGhbWFr4XLEu8pGAEQutXVMpeE' \
--header 'Origin: grazr.moblearn.net' \
--header 'Cookie: connect.sid=s%3AFZh-AX0oj-Ei45ILdEIncGHqjHVrNVPn.qHo255QrsQte6nokDxQGx8c2ST1Z4mspcmYOKJQ2zyI' \
--form 'title=gcommunity' \
--form 'description=test description' \
--form 'keyword=test keyword'
var form = new FormData();
form.append("title", "gcommunity");
form.append("description", "test description");
form.append("keyword", "test keyword");
var settings = {
"url": "http://grazr.moblearn.net:7095/mobileapi/createCommunity",
"method": "POST",
"timeout": 0,
"headers": {
"Authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZWNvbmRhcnlfbWFpbGluZ19hZGRyZXNzIjoiIiwiY2l0eSI6IlRleGFzIiwiZW1haWwiOiJ0ZXN0MS5hdWN0aW9uc29mdHdhcmUrMDZA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ie": "connect.sid=s%3AFZh-AX0oj-Ei45ILdEIncGHqjHVrNVPn.qHo255QrsQte6nokDxQGx8c2ST1Z4mspcmYOKJQ2zyI"
},
"processData": false,
"mimeType": "multipart/form-data",
"contentType": false,
"data": form
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var http = require('follow-redirects').http;
var fs = require('fs');
var options = {
'method': 'POST',
'hostname': 'grazr.moblearn.net',
'port': 7095,
'path': '/mobileapi/createCommunity',
'headers': {
'Authorization': 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZWNvbmRhcnlfbWFpbGluZ19hZGRyZXNzIjoiIiwiY2l0eSI6IlRleGFzIiwiZW1haWwiOiJ0ZXN0MS5hdWN0aW9uc29mdHdhcmUrMDZAZ21haWwuY29tIiwicmVnaXN0ZXJlZF9udW1iZXIiOiIiLCJubWZzX251bWJlciI6IiIsInBhc3N3b3JkX2hhc2giOiIzYzMxY2YxMjJjZDliZTJhYzQ4OGRkM2M5ZjYwM2U2NyIsInN0YXRlIjoiTWF5YWd1YW5hIiwiaXNlbXAiOjAsImNhdGVnb3J5IjoiIiwibGljZW5zZV9udW1iZXIiOiIiLCJmaXJzdF9uYW1lIjoiQ2xpbnRvbiIsInZlc3NlbF9uYW1lIjoiIiwidGVydGlhcnlfZmlyc3RfbmFtZSI6IiIsImFsdGVybmF0ZV9waG9uZSI6IiIsImlyaWRpdW1fcGhvbmUiOiIiLCJ0ZXJ0aWFyeV9tYWlsaW5nX2FkZHJlc3MiOiIiLCJhZG1pbiI6MCwidmhmX2NoYW5uZWwiOiIiLCJtYWlsaW5nX2FkZHJlc3MiOiIiLCJzYXRfcGhvbmUiOiIiLCJjb3VudHJ5IjoiQmFoYW1hcyIsInJvbGUiOiJzZWxsZXIiLCJpZCI6MTM1NSwic2Vjb25kYXJ5X3Bob25lIjoiIiwiYXZhdGFyIjoiYTc2YTU3ZTE2YzNhNzg0ZTYwOTBmYTZhN2FiMTNjYTMuanBnIiwibWlkZGxlX25hbWUiOiIiLCJsYW5kaW5nX3BvcnQiOiIiLCJ6aXAiOiI5OTUwNSIsInZlcmlmeV9wYXlwYWwiOjAsInN0YXR1cyI6ImFjdGl2ZSIsImNhcmRfcHJvZmlsZWlkIjoiIiwibGFzdF9uYW1lIjoiTWljayIsInBhc3N3b3JkX3NhbHQiOiIxMjM0NSIsImNvbXBhbnlfbmFtZSI6IiIsInNlY29uZGFyeV9maXJzdF9uYW1lIjoiIiwiY2FyZF9wYXltZW50aWQiOiIiLCJ0ZXJ0aWFyeV9waG9uZSI6IiIsInBob25lIjoiIiwiaWF0IjoxNTc0NDI4MjI4fQ.DJMdtJ-2kw1CYTg0fKGhbWFr4XLEu8pGAEQutXVMpeE',
'Origin': 'grazr.moblearn.net',
'Cookie': 'connect.sid=s%3AFZh-AX0oj-Ei45ILdEIncGHqjHVrNVPn.qHo255QrsQte6nokDxQGx8c2ST1Z4mspcmYOKJQ2zyI'
},
'maxRedirects': 20
};
var req = http.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
var postData = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"title\"\r\n\r\ngcommunity\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"description\"\r\n\r\ntest description\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"keyword\"\r\n\r\ntest keyword\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--";
req.setHeader('content-type', 'multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW');
req.write(postData);
req.end();
Headers
[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZWNvbmRhcnlfbWFpbGluZ19hZGRyZXNzIjoiIiwiY2l0eSI6I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YTg0fKGhbWFr4XLEu8pGAEQutXVMpeE","type":"text"},{"key":"Origin","value":"grazr.moblearn.net","type":"text"}]
Usage and Examples
Body parameters
Name
Description
communitydetails
{
"title":"gcommunity"
"description":"testdesc"
"keyword":"test"
}
Responses
Status: 200 - Success
{
"title":"string"
"description":"string"
"keyword":"string"
}
{
"status": "yes",
"message": "Success",
"data": 0
}
Responses
Status: 302 - Error
{
"title":"string"
"description":"string"
"keyword":"string"
}
{
"status": "no",
"message": "Error in Request"
}
Add User To Community
This API can be used to add users to existing community.
POST
http://grazr.moblearn.net:7095/mobileapi/addUserToCommunity
Usage and Examples
curl --location --request POST 'http://grazr.moblearn.net:7095/mobileapi/addUserToCommunity' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZWNvbmRhcnlfbWFpbGluZ19hZGRyZXNzIjoiIiwiY2l0eSI6IlRleGFzIiwiZW1haWwiOiJ0ZXN0MS5hdWN0aW9uc29mdHdhcmUrMDZAZ21haWwuY29tIiwicmVnaXN0ZXJlZF9udW1iZXIiOiIiLCJubWZzX251bWJlciI6IiIsInBhc3N3b3JkX2hhc2giOiIzYzMxY2YxMjJjZDliZTJhYzQ4OGRkM2M5ZjYwM2U2NyIsInN0YXRlIjoiTWF5YWd1YW5hIiwiaXNlbXAiOjAsImNhdGVnb3J5IjoiIiwibGljZW5zZV9udW1iZXIiOiIiLCJmaXJzdF9uYW1lIjoiQ2xpbnRvbiIsInZlc3NlbF9uYW1lIjoiIiwidGVydGlhcnlfZmlyc3RfbmFtZSI6IiIsImFsdGVybmF0ZV9waG9uZSI6IiIsImlyaWRpdW1fcGhvbmUiOiIiLCJ0ZXJ0aWFyeV9tYWlsaW5nX2FkZHJlc3MiOiIiLCJhZG1pbiI6MCwidmhmX2NoYW5uZWwiOiIiLCJtYWlsaW5nX2FkZHJlc3MiOiIiLCJzYXRfcGhvbmUiOiIiLCJjb3VudHJ5IjoiQmFoYW1hcyIsInJvbGUiOiJzZWxsZXIiLCJpZCI6MTM1NSwic2Vjb25kYXJ5X3Bob25lIjoiIiwiYXZhdGFyIjoiYTc2YTU3ZTE2YzNhNzg0ZTYwOTBmYTZhN2FiMTNjYTMuanBnIiwibWlkZGxlX25hbWUiOiIiLCJsYW5kaW5nX3BvcnQiOiIiLCJ6aXAiOiI5OTUwNSIsInZlcmlmeV9wYXlwYWwiOjAsInN0YXR1cyI6ImFjdGl2ZSIsImNhcmRfcHJvZmlsZWlkIjoiIiwibGFzdF9uYW1lIjoiTWljayIsInBhc3N3b3JkX3NhbHQiOiIxMjM0NSIsImNvbXBhbnlfbmFtZSI6IiIsInNlY29uZGFyeV9maXJzdF9uYW1lIjoiIiwiY2FyZF9wYXltZW50aWQiOiIiLCJ0ZXJ0aWFyeV9waG9uZSI6IiIsInBob25lIjoiIiwiaWF0IjoxNTc0NDI4MjI4fQ.DJMdtJ-2kw1CYTg0fKGhbWFr4XLEu8pGAEQutXVMpeE' \
--header 'Origin: grazr.moblearn.net' \
--header 'Cookie: connect.sid=s%3AFZh-AX0oj-Ei45ILdEIncGHqjHVrNVPn.qHo255QrsQte6nokDxQGx8c2ST1Z4mspcmYOKJQ2zyI' \
--form 'user_id=1298' \
--form 'community_id=1'
var form = new FormData();
form.append("user_id", "1298");
form.append("community_id", "1");
var settings = {
"url": "http://grazr.moblearn.net:7095/mobileapi/addUserToCommunity",
"method": "POST",
"timeout": 0,
"headers": {
"Authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZWNvbmRhcnlfbWFpbGluZ19hZGRyZXNzIjoiIiwiY2l0eSI6IlRleGFzIiwiZW1haWwiOiJ0ZXN0MS5hdWN0aW9uc29mdHdhcmUrMDZAZ21haWwuY29tIiwicmVnaXN0ZXJlZF9udW1iZXIiOiIiLCJubWZzX251bWJlciI6IiIsInBhc3N3b3JkX2hhc2giOiIzYzMxY2YxMjJjZDliZTJhYzQ4OGRkM2M5ZjYwM2U2NyIsInN0YXRlIjoiTWF5YWd1YW5hIiwiaXNlbXAiOjAsImNhdGVnb3J5IjoiIiwibGljZW5zZV9udW1iZXIiOiIiLCJmaXJzdF9uYW1lIjoiQ2xpbnRvbiIsInZlc3NlbF9uYW1lIjoiIiwidGVydGlhcnlfZmlyc3RfbmFtZSI6IiIsImFsdGVybmF0ZV9waG9uZSI6IiIsImlyaWRpdW1fcGhvbmUiOiIiLCJ0ZXJ0aWFyeV9tYWlsaW5nX2FkZHJlc3MiOiIiLCJhZG1pbiI6MCwidmhmX2NoYW5uZWwiOiIiLCJtYWlsaW5nX2FkZHJlc3MiOiIiLCJzYXRfcGhvbmUiOiIiLCJjb3VudHJ5IjoiQmFoYW1hcyIsInJvbGUiOiJzZWxsZXIiLCJpZCI6MTM1NSwic2Vjb25kYXJ5X3Bob25lIjoiIiwiYXZhdGFyIjoiYTc2YTU3ZTE2YzNhNzg0ZTYwOTBmYTZhN2FiMTNjYTMuanBnIiwibWlkZGxlX25hbWUiOiIiLCJsYW5kaW5nX3BvcnQiOiIiLCJ6aXAiOiI5OTUwNSIsInZlcmlmeV9wYXlwYWwiOjAsInN0YXR1cyI6ImFjdGl2ZSIsImNhcmRfcHJvZmlsZWlkIjoiIiwibGFzdF9uYW1lIjoiTWljayIsInBhc3N3b3JkX3NhbHQiOiIxMjM0NSIsImNvbXBhbnlfbmFtZSI6IiIsInNlY29uZGFyeV9maXJzdF9uYW1lIjoiIiwiY2FyZF9wYXltZW50aWQiOiIiLCJ0ZXJ0aWFyeV9waG9uZSI6IiIsInBob25lIjoiIiwiaWF0IjoxNTc0NDI4MjI4fQ.DJMdtJ-2kw1CYTg0fKGhbWFr4XLEu8pGAEQutXVMpeE",
"Origin": "grazr.moblearn.net",
"Cookie": "connect.sid=s%3AFZh-AX0oj-Ei45ILdEIncGHqjHVrNVPn.qHo255QrsQte6nokDxQGx8c2ST1Z4mspcmYOKJQ2zyI"
},
"processData": false,
"mimeType": "multipart/form-data",
"contentType": false,
"data": form
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var http = require('follow-redirects').http;
var fs = require('fs');
var options = {
'method': 'POST',
'hostname': 'grazr.moblearn.net',
'port': 7095,
'path': '/mobileapi/addUserToCommunity',
'headers': {
'Authorization': 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZWNvbmRhcnlfbWFpbGluZ19hZGRyZXNzIjoiIiwiY2l0eSI6IlRleGFzIiwiZW1haWwiOiJ0ZXN0MS5hdWN0aW9uc29mdHdhcmUrMDZAZ21haWwuY29tIiwicmVnaXN0ZXJlZF9udW1iZXIiOiIiLCJubWZzX251bWJlciI6IiIsInBhc3N3b3JkX2hhc2giOiIzYzMxY2YxMjJjZDliZTJhYzQ4OGRkM2M5ZjYwM2U2NyIsInN0YXRlIjoiTWF5YWd1YW5hIiwiaXNlbXAiOjAsImNhdGVnb3J5IjoiIiwibGljZW5zZV9udW1iZXIiOiIiLCJmaXJzdF9uYW1lIjoiQ2xpbnRvbiIsInZlc3NlbF9uYW1lIjoiIiwidGVydGlhcnlfZmlyc3RfbmFtZSI6IiIsImFsdGVybmF0ZV9waG9uZSI6IiIsImlyaWRpdW1fcGhvbmUiOiIiLCJ0ZXJ0aWFyeV9tYWlsaW5nX2FkZHJlc3MiOiIiLCJhZG1pbiI6MCwidmhmX2NoYW5uZWwiOiIiLCJtYWlsaW5nX2FkZHJlc3MiOiIiLCJzYXRfcGhvbmUiOiIiLCJjb3VudHJ5IjoiQmFoYW1hcyIsInJvbGUiOiJzZWxsZXIiLCJpZCI6MTM1NSwic2Vjb25kYXJ5X3Bob25lIjoiIiwiYXZhdGFyIjoiYTc2YTU3ZTE2YzNhNzg0ZTYwOTBmYTZhN2FiMTNjYTMuanBnIiwibWlkZGxlX25hbWUiOiIiLCJsYW5kaW5nX3BvcnQiOiIiLCJ6aXAiOiI5OTUwNSIsInZlcmlmeV9wYXlwYWwiOjAsInN0YXR1cyI6ImFjdGl2ZSIsImNhcmRfcHJvZmlsZWlkIjoiIiwibGFzdF9uYW1lIjoiTWljayIsInBhc3N3b3JkX3NhbHQiOiIxMjM0NSIsImNvbXBhbnlfbmFtZSI6IiIsInNlY29uZGFyeV9maXJzdF9uYW1lIjoiIiwiY2FyZF9wYXltZW50aWQiOiIiLCJ0ZXJ0aWFyeV9waG9uZSI6IiIsInBob25lIjoiIiwiaWF0IjoxNTc0NDI4MjI4fQ.DJMdtJ-2kw1CYTg0fKGhbWFr4XLEu8pGAEQutXVMpeE',
'Origin': 'grazr.moblearn.net',
'Cookie': 'connect.sid=s%3AFZh-AX0oj-Ei45ILdEIncGHqjHVrNVPn.qHo255QrsQte6nokDxQGx8c2ST1Z4mspcmYOKJQ2zyI'
},
'maxRedirects': 20
};
var req = http.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
var postData = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"user_id\"\r\n\r\n1298\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"community_id\"\r\n\r\n1\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--";
req.setHeader('content-type', 'multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW');
req.write(postData);
req.end();
Headers
[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZWNvbmRhcnlfbWFpbGluZ19hZGRyZXNzIjoiIiwiY2l0eSI6IlRleGFzIiwiZW1haWwiOiJ0ZXN0MS5hdWN0aW9uc29mdHdhcmUrMDZAZ21haWwuY29tIiwicmVnaXN0ZXJlZF9udW1iZXIiOiIiLCJubWZzX251bWJlciI6IiIsInBhc3N3b3JkX2hhc2giOiIzYzMxY2YxMjJjZDliZTJhYzQ4OGRkM2M5ZjYwM2U2NyIsInN0YXRlIjoiTWF5YWd1YW5hIiwiaXNlbXAiOjAsImNhdGVnb3J5IjoiIiwibGljZW5zZV9udW1iZXIiOiIiLCJmaXJzdF9uYW1lIjoiQ2xpbnRvbiIsInZlc3NlbF9uYW1lIjoiIiwidGVydGlhcnlfZmlyc3RfbmFtZSI6IiIsImFsdGVybmF0ZV9waG9uZSI6IiIsImlyaWRpdW1fcGhvbmUiOiIiLCJ0ZXJ0aWFyeV9tYWlsaW5nX2FkZHJlc3MiOiIiLCJhZG1pbiI6MCwidmhmX2NoYW5uZWwiOiIiLCJtYWlsaW5nX2FkZHJlc3MiOiIiLCJzYXRfcGhvbmUiOiIiLCJjb3VudHJ5IjoiQmFoYW1hcyIsInJvbGUiOiJzZWxsZXIiLCJpZCI6MTM1NSwic2Vjb25kYXJ5X3Bob25lIjoiIiwiYXZhdGFyIjoiYTc2YTU3ZTE2YzNhNzg0ZTYwOTBmYTZhN2FiMTNjYTMuanBnIiwibWlkZGxlX25hbWUiOiIiLCJsYW5kaW5nX3BvcnQiOiIiLCJ6aXAiOiI5OTUwNSIsInZlcmlmeV9wYXlwYWwiOjAsInN0YXR1cyI6ImFjdGl2ZSIsImNhcmRfcHJvZmlsZWlkIjoiIiwibGFzdF9uYW1lIjoiTWljayIsInBhc3N3b3JkX3NhbHQiOiIxMjM0NSIsImNvbXBhbnlfbmFtZSI6IiIsInNlY29uZGFyeV9maXJzdF9uYW1lIjoiIiwiY2FyZF9wYXltZW50aWQiOiIiLCJ0ZXJ0aWFyeV9waG9uZSI6IiIsInBob25lIjoiIiwiaWF0IjoxNTc0NDI4MjI4fQ.DJMdtJ-2kw1CYTg0fKGhbWFr4XLEu8pGAEQutXVMpeE","type":"text"},{"key":"Origin","value":"grazr.moblearn.net","type":"text"}]
Usage and Examples
Body parameters
Name
Description
userdetails
{
"user_id":1298,
"community_id":1
}
Responses
Status: 200 - Success
{
"user_id" : number,
"community_id": number
}
{
"status": "yes",
"message": "User invited"
}
Responses
Status: 302 - Error
{
"user_id : number,
"community_id": number
}
{
"status": "no",
"message": "Already Member of this community",
"data": 0
}
Create Announcement
This API can be used to create new announcement.The announcement details should be filled in the body section
POST
http://grazr.moblearn.net:7095/mobileapi/createAnnouncement
Usage and Examples
curl --location --request POST 'http://grazr.moblearn.net:7095/mobileapi/createAnnouncement' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyZWdpc3RlcmVkX251bWJlciI6IlJFRzEyMzQ1NiIsImNhdGVnb3J5IjoiSGF0Y2hlcnkgU2FsbW9uIiwic2Vjb25kYXJ5X21haWxpbmdfYWRkcmVzcyI6IiIsInRlcnRpYXJ5X3Bob25lIjoiIiwicGFzc3dvcmRfc2FsdCI6IjEyMzQ1IiwiY2l0eSI6bnVsbCwidmhmX2NoYW5uZWwiOiIiLCJtYWlsaW5nX2FkZHJlc3MiOiJ0ZXN0LmF1Y3Rpb25zb2Z0d2FyZUBnbWFpbC5jb20iLCJmaXJzdF9uYW1lIjoiYnV5ZXIiLCJzYXRfcGhvbmUiOiIiLCJhZG1pbiI6MCwiY2FyZF9wYXltZW50aWQiOiIiLCJtaWRkbGVfbmFtZSI6ImJ1eWVyIiwiY2FyZF9wcm9maWxlaWQiOiIiLCJzZWNvbmRhcnlfcGhvbmUiOiIiLCJpcmlkaXVtX3Bob25lIjoiIiwibm1mc19udW1iZXIiOiJOTUYxMjM0NSIsInZlcmlmeV9wYXlwYWwiOjAsInN0YXRlIjpudWxsLCJ6aXAiOm51bGwsImxhc3RfbmFtZSI6InVzZXIiLCJwaG9uZSI6IjEyMzQ1Njc4OTAiLCJ0ZXJ0aWFyeV9tYWlsaW5nX2FkZHJlc3MiOiIiLCJpc2VtcCI6MCwic3RhdHVzIjoiYWN0aXZlIiwic2Vjb25kYXJ5X2ZpcnN0X25hbWUiOiIiLCJhbHRlcm5hdGVfcGhvbmUiOiIiLCJsaWNlbnNlX251bWJlciI6IkxJQzEyMzQ1NiIsImNvdW50cnkiOm51bGwsImNvbXBhbnlfbmFtZSI6ImJ1eWVyIGNvbXBhbnkiLCJyb2xlIjoiYnV5ZXIiLCJ2ZXNzZWxfbmFtZSI6IiIsImxhbmRpbmdfcG9ydCI6IkNvcmRvdmEsIEFLfFBldGVyc2J1cmcsIEFLfFNld2FyZCwgQUt8Q2FsaWZvcm5pYSIsInBhc3N3b3JkX2hhc2giOiI0ODlhMWI1NmUwNzk2YzFlMTUyNzU5ZGI4N2ZkODYwNyIsInRlcnRpYXJ5X2ZpcnN0X25hbWUiOiIiLCJlbWFpbCI6InRlc3RidXllci5hdWN0aW9uc29mdHdhcmUrYnV5ZXIxQGdtYWlsLmNvbSIsImlkIjoxMjk3LCJpYXQiOjE1NzQwNTYwNDF9.IM6rJmd-894nyndD9rxvgl0Ogryk3JooVWziLYSAsd0' \
--header 'Origin: grazr.moblearn.net' \
--header 'Cookie: connect.sid=s%3AFZh-AX0oj-Ei45ILdEIncGHqjHVrNVPn.qHo255QrsQte6nokDxQGx8c2ST1Z4mspcmYOKJQ2zyI' \
--form 'title=test announcement' \
--form 'description=test announcement description' \
--form 'community_id=1' \
--form 'attachment=@/C:/Users/User/Downloads/farm.jpg'
var form = new FormData();
form.append("title", "test announcement");
form.append("description", "test announcement description");
form.append("community_id", "1");
form.append("attachment", fileInput.files[0], "/C:/Users/User/Downloads/farm.jpg");
var settings = {
"url": "http://grazr.moblearn.net:7095/mobileapi/createAnnouncement",
"method": "POST",
"timeout": 0,
"headers": {
"Authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyZWdpc3RlcmVkX251bWJlciI6IlJFRzEyMzQ1NiIsImNhdGVnb3J5IjoiSGF0Y2hlcnkgU2FsbW9uIiwic2Vjb25kYXJ5X21haWxpbmdfYWRkcmVzcyI6IiIsInRlcnRpYXJ5X3Bob25lIjoiIiwicGFzc3dvcmRfc2FsdCI6IjEyMzQ1IiwiY2l0eSI6bnVsbCwidmhmX2NoYW5uZWwiOiIiLCJtYWlsaW5nX2FkZHJlc3MiO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AFZh-AX0oj-Ei45ILdEIncGHqjHVrNVPn.qHo255QrsQte6nokDxQGx8c2ST1Z4mspcmYOKJQ2zyI"
},
"processData": false,
"mimeType": "multipart/form-data",
"contentType": false,
"data": form
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var http = require('follow-redirects').http;
var fs = require('fs');
var options = {
'method': 'POST',
'hostname': 'grazr.moblearn.net',
'port': 7095,
'path': '/mobileapi/createAnnouncement',
'headers': {
'Authorization': 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyZWdpc3RlcmVkX251bWJlciI6IlJFRzEyMzQ1NiIsImNhdGVnb3J5IjoiSGF0Y2hlcnkgU2FsbW9uIiwic2Vjb25kYXJ5X21haWxpbmdfYWRkcmVzcyI6IiIsInRlcnRpYXJ5X3Bob25lIjoiIiwicGFzc3dvcmRfc2FsdCI6IjEyMzQ1IiwiY2l0eSI6bnVsbCwidmhmX2NoYW5uZWwiOiIiLCJtYWlsaW5nX2FkZHJlc3MiOiJ0ZXN0LmF1Y3Rpb25zb2Z0d2FyZUBnbWFpbC5jb20iLCJmaXJzdF9uYW1lIjoiYnV5ZXIiLCJzYXRfcGhvbmUiOiIiLCJhZG1pbiI6MCwiY2FyZF9wYXltZW50aWQiOiIiLCJtaWRkbGVfbmFtZSI6ImJ1eWVyIiwiY2FyZF9wcm9maWxlaWQiOiIiLCJzZWNvbmRhcnlfcGhvbmUiOiIiLCJpcmlkaXVtX3Bob25lIjoiIiwibm1mc19udW1iZXIiOiJOTUYxMjM0NSIsInZlcmlmeV9wYXlwYWwiOjAsInN0YXRlIjpudWxsLCJ6aXAiOm51bGwsImxhc3RfbmFtZSI6InVzZXIiLCJwaG9uZSI6IjEyMzQ1Njc4OTAiLCJ0ZXJ0aWFyeV9tYWlsaW5nX2FkZHJlc3MiOiIiLCJpc2VtcCI6MCwic3RhdHVzIjoiYWN0aXZlIiwic2Vjb25kYXJ5X2ZpcnN0X25hbWUiOiIiLCJhbHRlcm5hdGVfcGhvbmUiOiIiLCJsaWNlbnNlX251bWJlciI6IkxJQzEyMzQ1NiIsImNvdW50cnkiOm51bGwsImNvbXBhbnlfbmFtZSI6ImJ1eWVyIGNvbXBhbnkiLCJyb2xlIjoiYnV5ZXIiLCJ2ZXNzZWxfbmFtZSI6IiIsImxhbmRpbmdfcG9ydCI6IkNvcmRvdmEsIEFLfFBldGVyc2J1cmcsIEFLfFNld2FyZCwgQUt8Q2FsaWZvcm5pYSIsInBhc3N3b3JkX2hhc2giOiI0ODlhMWI1NmUwNzk2YzFlMTUyNzU5ZGI4N2ZkODYwNyIsInRlcnRpYXJ5X2ZpcnN0X25hbWUiOiIiLCJlbWFpbCI6InRlc3RidXllci5hdWN0aW9uc29mdHdhcmUrYnV5ZXIxQGdtYWlsLmNvbSIsImlkIjoxMjk3LCJpYXQiOjE1NzQwNTYwNDF9.IM6rJmd-894nyndD9rxvgl0Ogryk3JooVWziLYSAsd0',
'Origin': 'grazr.moblearn.net',
'Cookie': 'connect.sid=s%3AFZh-AX0oj-Ei45ILdEIncGHqjHVrNVPn.qHo255QrsQte6nokDxQGx8c2ST1Z4mspcmYOKJQ2zyI'
},
'maxRedirects': 20
};
var req = http.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
var postData = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"title\"\r\n\r\ntest announcement\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"description\"\r\n\r\ntest announcement description\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"community_id\"\r\n\r\n1\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"attachment\"; filename=\"/C:/Users/User/Downloads/farm.jpg\"\r\nContent-Type: \"{Insert_File_Content_Type}\"\r\n\r\n" + fs.readFileSync('/C:/Users/User/Downloads/farm.jpg') + "\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--";
req.setHeader('content-type', 'multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW');
req.write(postData);
req.end();
Headers
[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZWNvbmRhcnlfbWFpbGluZ19hZGRyZXNzIjoiIiwiY2l0eSI6IlRleGFzIiwiZW1haWwiOiJ0ZXN0MS5hdWN0aW9uc29mdHdhcmUrMDZAZ21haWwuY29tIiwicmVnaXN0ZXJlZF9udW1iZXIiOiIiLCJubWZzX251bWJlciI6IiIsInBhc3N3b3JkX2hhc2giOiIzYzMxY2YxMjJjZDliZTJhYzQ4OGRkM2M5ZjYwM2U2NyIsInN0YXRlIjoiTWF5YWd1YW5hIiwiaXNlbXAiOjAsImNhdGVnb3J5IjoiIiwibGljZW5zZV9udW1iZXIiOiIiLCJmaXJzdF9uYW1lIjoiQ2xpbnRvbiIsInZlc3NlbF9uYW1lIjoiIiwidGVydGlhcnlfZmlyc3RfbmFtZSI6IiIsImFsdGVybmF0ZV9waG9uZSI6IiIsImlyaWRpdW1fcGhvbmUiOiIiLCJ0ZXJ0aWFyeV9tYWlsaW5nX2FkZHJlc3MiOiIiLCJhZG1pbiI6MCwidmhmX2NoYW5uZWwiOiIiLCJtYWlsaW5nX2FkZHJlc3MiOiIiLCJzYXRfcGhvbmUiOiIiLCJjb3VudHJ5IjoiQmFoYW1hcyIsInJvbGUiOiJzZWxsZXIiLCJpZCI6MTM1NSwic2Vjb25kYXJ5X3Bob25lIjoiIiwiYXZhdGFyIjoiYTc2YTU3ZTE2YzNhNzg0ZTYwOTBmYTZhN2FiMTNjYTMuanBnIiwibWlkZGxlX25hbWUiOiIiLCJsYW5kaW5nX3BvcnQiOiIiLCJ6aXAiOiI5OTUwNSIsInZlcmlmeV9wYXlwYWwiOjAsInN0YXR1cyI6ImFjdGl2ZSIsImNhcmRfcHJvZmlsZWlkIjoiIiwibGFzdF9uYW1lIjoiTWljayIsInBhc3N3b3JkX3NhbHQiOiIxMjM0NSIsImNvbXBhbnlfbmFtZSI6IiIsInNlY29uZGFyeV9maXJzdF9uYW1lIjoiIiwiY2FyZF9wYXltZW50aWQiOiIiLCJ0ZXJ0aWFyeV9waG9uZSI6IiIsInBob25lIjoiIiwiaWF0IjoxNTc0NDI4MjI4fQ.DJMdtJ-2kw1CYTg0fKGhbWFr4XLEu8pGAEQutXVMpeE","type":"text"},{"key":"Origin","value":"grazr.moblearn.net","type":"text"}]
Usage and Examples
Body parameters
Name
Description
announcementdetails
{
"title": "test desc",
"description": "test announcement",
"community_id: "1",
"attachment": "img.jpg"
}
Responses
Status: 200 - Success
{
"title": "string",
"description": "string",
"community_id: "number",
"attachment": "file"
}
{
"status": "yes",
"message": "success"
}
Responses
Status: 302 - Error
{
"title": "string",
"description": "string",
"community_id: "number",
"attachment": "file"
}
{
"status": "no",
"message": "Error in Request"
}
Get All Announcements
This API can be used to fetch all announcements.
POST
http://grazr.moblearn.net:7095/mobileapi/getAllAnnouncements
Usage and Examples
curl --location --request POST 'http://grazr.moblearn.net:7095/mobileapi/getAllAnnouncements' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZWNvbmRhcnlfbWFpbGluZ19hZGRyZXNzIjoiIiwiY2l0eSI6IlRleGFzIiwiZW1haWwiOiJ0ZXN0MS5hdWN0aW9uc29mdHdhcmUrMDZAZ21haWwuY29tIiwicmVnaXN0ZXJlZF9udW1iZXIiOiIiLCJubWZzX251bWJlciI6IiIsInBhc3N3b3JkX2hhc2giOiIzYzMxY2YxMjJjZDliZTJhYzQ4OGRkM2M5ZjYwM2U2NyIsInN0YXRlIjoiTWF5YWd1YW5hIiwiaXNlbXAiOjAsImNhdGVnb3J5IjoiIiwibGljZW5zZV9udW1iZXIiOiIiLCJmaXJzdF9uYW1lIjoiQ2xpbnRvbiIsInZlc3NlbF9uYW1lIjoiIiwidGVydGlhcnlfZmlyc3RfbmFtZSI6IiIsImFsdGVybmF0ZV9waG9uZSI6IiIsImlyaWRpdW1fcGhvbmUiOiIiLCJ0ZXJ0aWFyeV9tYWlsaW5nX2FkZHJlc3MiOiIiLCJhZG1pbiI6MCwidmhmX2NoYW5uZWwiOiIiLCJtYWlsaW5nX2FkZHJlc3MiOiIiLCJzYXRfcGhvbmUiOiIiLCJjb3VudHJ5IjoiQmFoYW1hcyIsInJvbGUiOiJzZWxsZXIiLCJpZCI6MTM1NSwic2Vjb25kYXJ5X3Bob25lIjoiIiwiYXZhdGFyIjoiYTc2YTU3ZTE2YzNhNzg0ZTYwOTBmYTZhN2FiMTNjYTMuanBnIiwibWlkZGxlX25hbWUiOiIiLCJsYW5kaW5nX3BvcnQiOiIiLCJ6aXAiOiI5OTUwNSIsInZlcmlmeV9wYXlwYWwiOjAsInN0YXR1cyI6ImFjdGl2ZSIsImNhcmRfcHJvZmlsZWlkIjoiIiwibGFzdF9uYW1lIjoiTWljayIsInBhc3N3b3JkX3NhbHQiOiIxMjM0NSIsImNvbXBhbnlfbmFtZSI6IiIsInNlY29uZGFyeV9maXJzdF9uYW1lIjoiIiwiY2FyZF9wYXltZW50aWQiOiIiLCJ0ZXJ0aWFyeV9waG9uZSI6IiIsInBob25lIjoiIiwiaWF0IjoxNTc0NDI4MjI4fQ.DJMdtJ-2kw1CYTg0fKGhbWFr4XLEu8pGAEQutXVMpeE' \
--header 'Origin: grazr.moblearn.net' \
--header 'Cookie: connect.sid=s%3AFZh-AX0oj-Ei45ILdEIncGHqjHVrNVPn.qHo255QrsQte6nokDxQGx8c2ST1Z4mspcmYOKJQ2zyI' \
--form 'community_id=1'
var form = new FormData();
form.append("community_id", "1");
var settings = {
"url": "http://grazr.moblearn.net:7095/mobileapi/getAllAnnouncements",
"method": "POST",
"timeout": 0,
"headers": {
"Authorization": "Bearer eyJhbGciOiJIUz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ZXJ0aWFyeV9waG9uZSI6IiIsInBob25lIjoiIiwiaWF0IjoxNTc0NDI4MjI4fQ.DJMdtJ-2kw1CYTg0fKGhbWFr4XLEu8pGAEQutXVMpeE",
"Origin": "grazr.moblearn.net",
"Cookie": "connect.sid=s%3AFZh-AX0oj-Ei45ILdEIncGHqjHVrNVPn.qHo255QrsQte6nokDxQGx8c2ST1Z4mspcmYOKJQ2zyI"
},
"processData": false,
"mimeType": "multipart/form-data",
"contentType": false,
"data": form
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var http = require('follow-redirects').http;
var fs = require('fs');
var options = {
'method': 'POST',
'hostname': 'grazr.moblearn.net',
'port': 7095,
'path': '/mobileapi/getAllAnnouncements',
'headers': {
'Authorization': 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZWNvbmRhcnlfbWFpbGluZ19hZGRyZXNzIjoiIiwiY2l0eSI6IlRleGFzIiwiZW1haWwiOiJ0ZXN0MS5hdWN0aW9uc29mdHdhcmUrMDZAZ21haWwuY29tIiwicmVnaXN0ZXJlZF9udW1iZXIiOiIiLCJubWZzX251bWJlciI6IiIsInBhc3N3b3JkX2hhc2giOiIzYzMxY2YxMjJjZDliZTJhYzQ4OGRkM2M5ZjYwM2U2NyIsInN0YXRlIjoiTWF5YWd1YW5hIiwiaXNlbXAiOjAsImNhdGVnb3J5IjoiIiwibGljZW5zZV9udW1iZXIiOiIiLCJmaXJzdF9uYW1lIjoiQ2xpbnRvbiIsInZlc3NlbF9uYW1lIjoiIiwidGVydGlhcnlfZmlyc3RfbmFtZSI6IiIsImFsdGVybmF0ZV9waG9uZSI6IiIsImlyaWRpdW1fcGhvbmUiOiIiLCJ0ZXJ0aWFyeV9tYWlsaW5nX2FkZHJlc3MiOiIiLCJhZG1pbiI6MCwidmhmX2NoYW5uZWwiOiIiLCJtYWlsaW5nX2FkZHJlc3MiOiIiLCJzYXRfcGhvbmUiOiIiLCJjb3VudHJ5IjoiQmFoYW1hcyIsInJvbGUiOiJzZWxsZXIiLCJpZCI6MTM1NSwic2Vjb25kYXJ5X3Bob25lIjoiIiwiYXZhdGFyIjoiYTc2YTU3ZTE2YzNhNzg0ZTYwOTBmYTZhN2FiMTNjYTMuanBnIiwibWlkZGxlX25hbWUiOiIiLCJsYW5kaW5nX3BvcnQiOiIiLCJ6aXAiOiI5OTUwNSIsInZlcmlmeV9wYXlwYWwiOjAsInN0YXR1cyI6ImFjdGl2ZSIsImNhcmRfcHJvZmlsZWlkIjoiIiwibGFzdF9uYW1lIjoiTWljayIsInBhc3N3b3JkX3NhbHQiOiIxMjM0NSIsImNvbXBhbnlfbmFtZSI6IiIsInNlY29uZGFyeV9maXJzdF9uYW1lIjoiIiwiY2FyZF9wYXltZW50aWQiOiIiLCJ0ZXJ0aWFyeV9waG9uZSI6IiIsInBob25lIjoiIiwiaWF0IjoxNTc0NDI4MjI4fQ.DJMdtJ-2kw1CYTg0fKGhbWFr4XLEu8pGAEQutXVMpeE',
'Origin': 'grazr.moblearn.net',
'Cookie': 'connect.sid=s%3AFZh-AX0oj-Ei45ILdEIncGHqjHVrNVPn.qHo255QrsQte6nokDxQGx8c2ST1Z4mspcmYOKJQ2zyI'
},
'maxRedirects': 20
};
var req = http.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
var postData = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"community_id\"\r\n\r\n1\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--";
req.setHeader('content-type', 'multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW');
req.write(postData);
req.end();
Headers
[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZWNvbmRhcnlfbWFpbGluZ19hZGRyZXNzIjoiIiwiY2l0eSI6Il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Tg0fKGhbWFr4XLEu8pGAEQutXVMpeE","type":"text"},{"key":"Origin","value":"grazr.moblearn.net","type":"text"}]
Usage and Examples
Body parameters
Name
Description
announcementdetails
Responses
Status: 200 - Success
{
"community_id: "number",
}
{
{
"status": "yes",
"message": "Announcements list",
"data": [
{
"id": 1,
"title": "test announcement 11111111",
"category": "",
"community_id": 1,
"image": "",
"description": "test announcement description 111111",
"date_added": "2019-11-22T13:19:12.000Z",
"user_id": 1297,
"status": "1",
"avatar": "",
"site_id": "AS0013"
},
{
"id": 2,
"title": "test announcement",
"category": "",
"community_id": 1,
"image": "",
"description": "test announcement description",
"date_added": "2019-11-22T13:20:12.000Z",
"user_id": 1297,
"status": "1",
"avatar": "f17b20c379409f267367aad08337d527.jpg",
"site_id": "AS0013"
},
{
"id": 7,
"title": "test announcement",
"category": "",
"community_id": 1,
"image": "",
"description": "test announcement description",
"date_added": "2020-04-23T08:10:52.000Z",
"user_id": 1297,
"status": "1",
"avatar": "",
"site_id": "AS0013"
},
{
"id": 8,
"title": "test announcement",
"category": "",
"community_id": 1,
"image": "",
"description": "test announcement description",
"date_added": "2020-04-27T07:50:46.000Z",
"user_id": 1297,
"status": "1",
"avatar": "",
"site_id": "AS0013"
},
{
"id": 9,
"title": "test announcement",
"category": "",
"community_id": 1,
"image": "",
"description": "test announcement description",
"date_added": "2020-04-27T11:05:30.000Z",
"user_id": 1297,
"status": "1",
"avatar": "",
"site_id": "AS0013"
},
{
"id": 10,
"title": "test announcement",
"category": "",
"community_id": 1,
"image": "",
"description": "test announcement description",
"date_added": "2020-04-27T11:28:17.000Z",
"user_id": 1297,
"status": "1",
"avatar": "",
"site_id": "AS0013"
},
{
"id": 11,
"title": " ",
"category": "",
"community_id": 1,
"image": "",
"description": "test announcement description",
"date_added": "2020-04-27T11:28:22.000Z",
"user_id": 1297,
"status": "1",
"avatar": "",
"site_id": "AS0013"
}
]
}
}
Responses
Status: 302 - Error
{
"status": "no",
"message": "Error in Request"
}
Farm Details
This API can be used to fetch farm details of particular seller.
1355 = seller_id.
POST
http://grazr.moblearn.net:7095/mobileapi/getFarmViewFarmDet
Usage and Examples
curl --location --request POST 'http://grazr.moblearn.net:7095/mobileapi/getFarmViewFarmDet' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZWNvbmRhcnlfbWFpbGluZ19hZGRyZXNzIjoiIiwiY2l0eSI6IlRleGFzIiwiZW1haWwiOiJ0ZXN0MS5hdWN0aW9uc29mdHdhcmUrMDZAZ21haWwuY29tIiwicmVnaXN0ZXJlZF9udW1iZXIiOiIiLCJubWZzX251bWJlciI6IiIsInBhc3N3b3JkX2hhc2giOiIzYzMxY2YxMjJjZDliZTJhYzQ4OGRkM2M5ZjYwM2U2NyIsInN0YXRlIjoiTWF5YWd1YW5hIiwiaXNlbXAiOjAsImNhdGVnb3J5IjoiIiwibGljZW5zZV9udW1iZXIiOiIiLCJmaXJzdF9uYW1lIjoiQ2xpbnRvbiIsInZlc3NlbF9uYW1lIjoiIiwidGVydGlhcnlfZmlyc3RfbmFtZSI6IiIsImFsdGVybmF0ZV9waG9uZSI6IiIsImlyaWRpdW1fcGhvbmUiOiIiLCJ0ZXJ0aWFyeV9tYWlsaW5nX2FkZHJlc3MiOiIiLCJhZG1pbiI6MCwidmhmX2NoYW5uZWwiOiIiLCJtYWlsaW5nX2FkZHJlc3MiOiIiLCJzYXRfcGhvbmUiOiIiLCJjb3VudHJ5IjoiQmFoYW1hcyIsInJvbGUiOiJzZWxsZXIiLCJpZCI6MTM1NSwic2Vjb25kYXJ5X3Bob25lIjoiIiwiYXZhdGFyIjoiYTc2YTU3ZTE2YzNhNzg0ZTYwOTBmYTZhN2FiMTNjYTMuanBnIiwibWlkZGxlX25hbWUiOiIiLCJsYW5kaW5nX3BvcnQiOiIiLCJ6aXAiOiI5OTUwNSIsInZlcmlmeV9wYXlwYWwiOjAsInN0YXR1cyI6ImFjdGl2ZSIsImNhcmRfcHJvZmlsZWlkIjoiIiwibGFzdF9uYW1lIjoiTWljayIsInBhc3N3b3JkX3NhbHQiOiIxMjM0NSIsImNvbXBhbnlfbmFtZSI6IiIsInNlY29uZGFyeV9maXJzdF9uYW1lIjoiIiwiY2FyZF9wYXltZW50aWQiOiIiLCJ0ZXJ0aWFyeV9waG9uZSI6IiIsInBob25lIjoiIiwiaWF0IjoxNTc0Njc5MDQ1fQ.04hLswe5GFSi3ae7GrI8ZJdVHuxi1CuuzpgySMAfXEU' \
--header 'Origin: grazr.moblearn.net' \
--header 'Cookie: connect.sid=s%3AFZh-AX0oj-Ei45ILdEIncGHqjHVrNVPn.qHo255QrsQte6nokDxQGx8c2ST1Z4mspcmYOKJQ2zyI' \
--form 'seller_id=1355'
var form = new FormData();
form.append("seller_id", "1355");
var settings = {
"url": "http://grazr.moblearn.net:7095/mobileapi/getFarmViewFarmDet",
"method": "POST",
"timeout": 0,
"headers": {
"Authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZWNvbmRhcnlfbWFpbGluZ19hZGRyZXNzIjoiIiwiY2l0eSI6IlRleGFzIiwiZW1haWwiOiJ0ZXN0MS5hdWN0aW9uc29mdHdhcmUrMDZAZ21haWwuY29tIiwicmVnaXN0ZXJlZF9udW1iZXIiOiIiLCJubWZzX251bWJlciI6IiIsInBhc3N3b3JkX2hhc2giOiIzYzMxY2YxMjJjZDliZTJhYzQ4OGRkM2M5ZjYwM2U2NyIsInN0YXRlIjoiTWF5YWd1YW5hIiwiaXNlbXAiOjAsImNhdGVnb3J5IjoiIiwibGljZW5zZV9udW1iZXIiOiIiLCJmaXJzdF9uYW1lIjoiQ2xpbnRvbiIsInZlc3NlbF9uYW1lIjoiIiwidGVydGlhcnlfZmlyc3RfbmFtZSI6IiIsImFsdGVybmF0ZV9waG9uZSI6IiIsImlyaWRpdW1fcGhvbmUiOiIiLCJ0ZXJ0aWFyeV9tYWlsaW5nX2FkZHJlc3MiOiIiLCJhZG1pbiI6MCwidmhmX2NoYW5uZWwiOiIiLCJtYWlsaW5nX2FkZHJlc3MiOiIiLCJzYXRfcGhvbmUiOiIiLCJjb3VudHJ5IjoiQmFoYW1hcyIsInJvbGUiOiJzZWxsZXIiLCJpZCI6MTM1NSwic2Vjb25kYXJ5X3Bob25lIjoiIiwiYXZhdGFyIjoiYTc2YTU3ZTE2YzNhNzg0ZTYwOTBmYTZhN2FiMTNjYTMuanBnIiwibWlkZGxlX25hbWUiOiIiLCJsYW5kaW5nX3BvcnQiOiIiLCJ6aXAiOiI5OTUwNSIsInZlcmlmeV9wYXlwYWwiOjAsInN0YXR1cyI6ImFjdGl2ZSIsImNhcmRfcHJvZmlsZWlkIjoiIiwibGFzdF9uYW1lIjoiTWljayIsInBhc3N3b3JkX3NhbHQiOiIxMjM0NSIsImNvbXBhbnlfbmFtZSI6IiIsInNlY29uZGFyeV9maXJzdF9uYW1lIjoiIiwiY2FyZF9wYXltZW50aWQiOiIiLCJ0ZXJ0aWFyeV9waG9uZSI6IiIsInBob25lIjoiIiwiaWF0IjoxNTc0Njc5MDQ1fQ.04hLswe5GFSi3ae7GrI8ZJdVHuxi1CuuzpgySMAfXEU",
"Origin": "grazr.moblearn.net",
"Cookie": "connect.sid=s%3AFZh-AX0oj-Ei45ILdEIncGHqjHVrNVPn.qHo255QrsQte6nokDxQGx8c2ST1Z4mspcmYOKJQ2zyI"
},
"processData": false,
"mimeType": "multipart/form-data",
"contentType": false,
"data": form
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var http = require('follow-redirects').http;
var fs = require('fs');
var options = {
'method': 'POST',
'hostname': 'grazr.moblearn.net',
'port': 7095,
'path': '/mobileapi/getFarmViewFarmDet',
'headers': {
'Authorization': 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZWNvbmRhcnlfbWFpbGluZ19hZGRyZXNzIjoiIiwiY2l0eSI6IlRleGFzIiwiZW1haWwiOiJ0ZXN0MS5hdWN0aW9uc29mdHdhcmUrMDZAZ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 'connect.sid=s%3AFZh-AX0oj-Ei45ILdEIncGHqjHVrNVPn.qHo255QrsQte6nokDxQGx8c2ST1Z4mspcmYOKJQ2zyI'
},
'maxRedirects': 20
};
var req = http.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
var postData = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"seller_id\"\r\n\r\n1355\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--";
req.setHeader('content-type', 'multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW');
req.write(postData);
req.end();
Headers
[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZWNvbmRhcnlfbWFpbGluZ19hZGRyZXNzIjoiIiwiY2l0eSI6IlRleGFzIiwiZW1haWwiOiJ0ZXN0MS5hdWN0aW9uc29mdHdhcmUrMDZAZ21haWwuY29tIiwicmVnaXN0ZXJlZF9udW1iZXIiOiIiLCJubWZzX251bWJlciI6IiIsInBhc3N3b3JkX2hhc2giOiIzYzMxY2YxMjJjZDliZTJhYzQ4OGRkM2M5ZjYwM2U2NyIsInN0YXRlIjoiTWF5YWd1YW5hIiwiaXNlbXAiOjAsImNhdGVnb3J5IjoiIiwibGljZW5zZV9udW1iZXIiOiIiLCJmaXJzdF9uYW1lIjoiQ2xpbnRvbiIsInZlc3NlbF9uYW1lIjoiIiwidGVydGlhcnlfZmlyc3RfbmFtZSI6IiIsImFsdGVybmF0ZV9waG9uZSI6IiIsImlyaWRpdW1fcGhvbmUiOiIiLCJ0ZXJ0aWFyeV9tYWlsaW5nX2FkZHJlc3MiOiIiLCJhZG1pbiI6MCwidmhmX2NoYW5uZWwiOiIiLCJtYWlsaW5nX2FkZHJlc3MiOiIiLCJzYXRfcGhvbmUiOiIiLCJjb3VudHJ5IjoiQmFoYW1hcyIsInJvbGUiOiJzZWxsZXIiLCJpZCI6MTM1NSwic2Vjb25kYXJ5X3Bob25lIjoiIiwiYXZhdGFyIjoiYTc2YTU3ZTE2YzNhNzg0ZTYwOTBmYTZhN2FiMTNjYTMuanBnIiwibWlkZGxlX25hbWUiOiIiLCJsYW5kaW5nX3BvcnQiOiIiLCJ6aXAiOiI5OTUwNSIsInZlcmlmeV9wYXlwYWwiOjAsInN0YXR1cyI6ImFjdGl2ZSIsImNhcmRfcHJvZmlsZWlkIjoiIiwibGFzdF9uYW1lIjoiTWljayIsInBhc3N3b3JkX3NhbHQiOiIxMjM0NSIsImNvbXBhbnlfbmFtZSI6IiIsInNlY29uZGFyeV9maXJzdF9uYW1lIjoiIiwiY2FyZF9wYXltZW50aWQiOiIiLCJ0ZXJ0aWFyeV9waG9uZSI6IiIsInBob25lIjoiIiwiaWF0IjoxNTc0NDI4MjI4fQ.DJMdtJ-2kw1CYTg0fKGhbWFr4XLEu8pGAEQutXVMpeE","type":"text"},{"key":"Origin","value":"grazr.moblearn.net","type":"text"}]
Usage and Examples
Body parameters
Name
Description
sellerdetails
Responses
Status: 200 - Success
{
{
"status": "yes",
"message": "Seller Farm Details",
"data": [
{
"id": 4,
"name": "test",
"description": "test",
"user_id": 1355,
"location": "UK",
"date_added": "0000-00-00 00:00:00",
"logo": "",
"status": "active",
"website": "test",
"date_started": "2019-11-25T11:02:44.000Z",
"views": 0,
"banner": "d9b7007742f7a534aff95eb9cbf58261.jpg",
"images": "88c2213c4e784c16c84d443ef26028ae.jpg",
"videos": "b9a9df1c71076b6085f4dcd09170a69b.jpg,d355283b4abfee904d11e376a78ff989.jpg",
"site_id": "AS0013"
},
{
"id": 27,
"name": "test",
"description": "test",
"user_id": 1355,
"location": "UK",
"date_added": "0000-00-00 00:00:00",
"logo": "",
"status": "active",
"website": "test",
"date_started": "2020-04-23T08:09:15.000Z",
"views": 0,
"banner": "",
"images": "",
"videos": "",
"site_id": "AS0013"
},
{
"id": 28,
"name": "test",
"description": "test",
"user_id": 1355,
"location": "UK",
"date_added": "0000-00-00 00:00:00",
"logo": "",
"status": "active",
"website": "test",
"date_started": "2020-04-23T13:10:44.000Z",
"views": 0,
"banner": "",
"images": "",
"videos": "",
"site_id": "AS0013"
},
{
"id": 29,
"name": "test",
"description": "test",
"user_id": 1355,
"location": "UK",
"date_added": "0000-00-00 00:00:00",
"logo": "",
"status": "active",
"website": "test",
"date_started": "2020-04-24T05:17:43.000Z",
"views": 0,
"banner": "",
"images": "",
"videos": "",
"site_id": "AS0013"
}
]
}
}
Responses
Status: 302 - Error
{
"status": "no",
"message": "Error in Request"
}
Seller Feedback
This API can be used to fetch feedback of particular Seller.
1355 = seller_id
POST
http://grazr.moblearn.net:7095/mobileapi/getSellerFeedbacks
Usage and Examples
curl --location --request POST 'http://grazr.moblearn.net:7095/mobileapi/getSellerFeedbacks' \
--header 'Origin: grazr.moblearn.net' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZWNvbmRhcnlfbWFpbGluZ19hZGRyZXNzIjoiIiwiY2l0eSI6IlRleGFzIiwiZW1haWwiOiJ0ZXN0MS5hdWN0aW9uc29mdHdhcmUrMDZAZ21haWwuY29tIiwicmVnaXN0ZXJlZF9udW1iZXIiOiIiLCJubWZzX251bWJlciI6IiIsInBhc3N3b3JkX2hhc2giOiIzYzMxY2YxMjJjZDliZTJhYzQ4OGRkM2M5ZjYwM2U2NyIsInN0YXRlIjoiTWF5YWd1YW5hIiwiaXNlbXAiOjAsImNhdGVnb3J5IjoiIiwibGljZW5zZV9udW1iZXIiOiIiLCJmaXJzdF9uYW1lIjoiQ2xpbnRvbiIsInZlc3NlbF9uYW1lIjoiIiwidGVydGlhcnlfZmlyc3RfbmFtZSI6IiIsImFsdGVybmF0ZV9waG9uZSI6IiIsImlyaWRpdW1fcGhvbmUiOiIiLCJ0ZXJ0aWFyeV9tYWlsaW5nX2FkZHJlc3MiOiIiLCJhZG1pbiI6MCwidmhmX2NoYW5uZWwiOiIiLCJtYWlsaW5nX2FkZHJlc3MiOiIiLCJzYXRfcGhvbmUiOiIiLCJjb3VudHJ5IjoiQmFoYW1hcyIsInJvbGUiOiJzZWxsZXIiLCJpZCI6MTM1NSwic2Vjb25kYXJ5X3Bob25lIjoiIiwiYXZhdGFyIjoiYTc2YTU3ZTE2YzNhNzg0ZTYwOTBmYTZhN2FiMTNjYTMuanBnIiwibWlkZGxlX25hbWUiOiIiLCJsYW5kaW5nX3BvcnQiOiIiLCJ6aXAiOiI5OTUwNSIsInZlcmlmeV9wYXlwYWwiOjAsInN0YXR1cyI6ImFjdGl2ZSIsImNhcmRfcHJvZmlsZWlkIjoiIiwibGFzdF9uYW1lIjoiTWljayIsInBhc3N3b3JkX3NhbHQiOiIxMjM0NSIsImNvbXBhbnlfbmFtZSI6IiIsInNlY29uZGFyeV9maXJzdF9uYW1lIjoiIiwiY2FyZF9wYXltZW50aWQiOiIiLCJ0ZXJ0aWFyeV9waG9uZSI6IiIsInBob25lIjoiIiwiaWF0IjoxNTc0Njc5MDQ1fQ.04hLswe5GFSi3ae7GrI8ZJdVHuxi1CuuzpgySMAfXEU' \
--header 'Cookie: connect.sid=s%3AGTKvzqR6fDdT_c-dWM9ufmXBD5Ge4-Jp.WBoEWnabThUz66jowfDuc45LPCFEr3whzi8tPbhsNEA' \
--form 'seller_id=1355'
var form = new FormData();
form.append("seller_id", "1355");
var settings = {
"url": "http://grazr.moblearn.net:7095/mobileapi/getSellerFeedbacks",
"method": "POST",
"timeout": 0,
"headers": {
"Origin": "grazr.moblearn.net",
"Authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZWNvbmRhcnlfbWFpbGluZ19hZGRyZXNzIjoiIiwiY2l0eSI6IlRleGFzIiwiZW1haWwiOiJ0ZXN0MS5hdWN0aW9uc29mdHdhcmUrMDZAZ21haWwuY29tIiwicmVnaXN0ZXJlZF9udW1iZXIiOiI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jowfDuc45LPCFEr3whzi8tPbhsNEA"
},
"processData": false,
"mimeType": "multipart/form-data",
"contentType": false,
"data": form
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var http = require('follow-redirects').http;
var fs = require('fs');
var options = {
'method': 'POST',
'hostname': 'grazr.moblearn.net',
'port': 7095,
'path': '/mobileapi/getSellerFeedbacks',
'headers': {
'Origin': 'grazr.moblearn.net',
'Authorization': 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZWNvbmRhcnlfbWFpbGluZ19hZGRyZXNzIjoiIiwiY2l0eSI6IlRleGFzIiwiZW1haWwiOiJ0ZXN0MS5hdWN0aW9uc29mdHdhcmUrMDZAZ21haWwuY29tIiwicmVnaXN0ZXJlZF9udW1iZXIiOiIiLCJubWZzX251bWJlciI6IiIsInBhc3N3b3JkX2hhc2giOiIzYzMxY2YxMjJjZDliZTJhYzQ4OGRkM2M5ZjYwM2U2NyIsInN0YXRlIjoiTWF5YWd1YW5hIiwiaXNlbXAiOjAsImNhdGVnb3J5IjoiIiwibGljZW5zZV9udW1iZXIiOiIiLCJmaXJzdF9uYW1lIjoiQ2xpbnRvbiIsInZlc3NlbF9uYW1lIjoiIiwidGVydGlhcnlfZmlyc3RfbmFtZSI6IiIsImFsdGVybmF0ZV9waG9uZSI6IiIsImlyaWRpdW1fcGhvbmUiOiIiLCJ0ZXJ0aWFyeV9tYWlsaW5nX2FkZHJlc3MiOiIiLCJhZG1pbiI6MCwidmhmX2NoYW5uZWwiOiIiLCJtYWlsaW5nX2FkZHJlc3MiOiIiLCJzYXRfcGhvbmUiOiIiLCJjb3VudHJ5IjoiQmFoYW1hcyIsInJvbGUiOiJzZWxsZXIiLCJpZCI6MTM1NSwic2Vjb25kYXJ5X3Bob25lIjoiIiwiYXZhdGFyIjoiYTc2YTU3ZTE2YzNhNzg0ZTYwOTBmYTZhN2FiMTNjYTMuanBnIiwibWlkZGxlX25hbWUiOiIiLCJsYW5kaW5nX3BvcnQiOiIiLCJ6aXAiOiI5OTUwNSIsInZlcmlmeV9wYXlwYWwiOjAsInN0YXR1cyI6ImFjdGl2ZSIsImNhcmRfcHJvZmlsZWlkIjoiIiwibGFzdF9uYW1lIjoiTWljayIsInBhc3N3b3JkX3NhbHQiOiIxMjM0NSIsImNvbXBhbnlfbmFtZSI6IiIsInNlY29uZGFyeV9maXJzdF9uYW1lIjoiIiwiY2FyZF9wYXltZW50aWQiOiIiLCJ0ZXJ0aWFyeV9waG9uZSI6IiIsInBob25lIjoiIiwiaWF0IjoxNTc0Njc5MDQ1fQ.04hLswe5GFSi3ae7GrI8ZJdVHuxi1CuuzpgySMAfXEU',
'Cookie': 'connect.sid=s%3AGTKvzqR6fDdT_c-dWM9ufmXBD5Ge4-Jp.WBoEWnabThUz66jowfDuc45LPCFEr3whzi8tPbhsNEA'
},
'maxRedirects': 20
};
var req = http.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
var postData = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"seller_id\"\r\n\r\n1355\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--";
req.setHeader('content-type', 'multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW');
req.write(postData);
req.end();
Headers
[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZWNvbmRhcnlfbWFpbGluZ19hZGRyZXNzIjoiIiwiY2l0eSI6IlRleGFzIiwiZW1haWwiOiJ0ZXN0MS5hdWN0aW9uc29mdHdhcmUrMDZAZ21haWwuY29tIiwicmVnaXN0ZXJlZF9udW1iZXIiOiIiLCJubWZzX251bWJlciI6IiIsInBhc3N3b3JkX2hhc2giOiIzYzMxY2YxMjJjZDliZTJhYzQ4OGRkM2M5ZjYwM2U2NyIsInN0YXRlIjoiTWF5YWd1YW5hIiwiaXNlbXAiOjAsImNhdGVnb3J5IjoiIiwibGljZW5zZV9udW1iZXIiOiIiLCJmaXJzdF9uYW1lIjoiQ2xpbnRvbiIsInZlc3NlbF9uYW1lIjoiIiwidGVydGlhcnlfZmlyc3RfbmFtZSI6IiIsImFsdGVybmF0ZV9waG9uZSI6IiIsImlyaWRpdW1fcGhvbmUiOiIiLCJ0ZXJ0aWFyeV9tYWlsaW5nX2FkZHJlc3MiOiIiLCJhZG1pbiI6MCwidmhmX2NoYW5uZWwiOiIiLCJtYWlsaW5nX2FkZHJlc3MiOiIiLCJzYXRfcGhvbmUiOiIiLCJjb3VudHJ5IjoiQmFoYW1hcyIsInJvbGUiOiJzZWxsZXIiLCJpZCI6MTM1NSwic2Vjb25kYXJ5X3Bob25lIjoiIiwiYXZhdGFyIjoiYTc2YTU3ZTE2YzNhNzg0ZTYwOTBmYTZhN2FiMTNjYTMuanBnIiwibWlkZGxlX25hbWUiOiIiLCJsYW5kaW5nX3BvcnQiOiIiLCJ6aXAiOiI5OTUwNSIsInZlcmlmeV9wYXlwYWwiOjAsInN0YXR1cyI6ImFjdGl2ZSIsImNhcmRfcHJvZmlsZWlkIjoiIiwibGFzdF9uYW1lIjoiTWljayIsInBhc3N3b3JkX3NhbHQiOiIxMjM0NSIsImNvbXBhbnlfbmFtZSI6IiIsInNlY29uZGFyeV9maXJzdF9uYW1lIjoiIiwiY2FyZF9wYXltZW50aWQiOiIiLCJ0ZXJ0aWFyeV9waG9uZSI6IiIsInBob25lIjoiIiwiaWF0IjoxNTc0NDI4MjI4fQ.DJMdtJ-2kw1CYTg0fKGhbWFr4XLEu8pGAEQutXVMpeE","type":"text"},{"key":"Origin","value":"grazr.moblearn.net","type":"text"}]
Usage and Examples
Body parameters
Name
Description
sellerdetails
Responses
Status: 200 - Success
{
"status": "yes",
"message": "Seller Products List",
"data": [
{
"message": "Test feedback about seller, Test feedback about seller, Test feedback about seller, Test feedback about seller",
"rating": 4.25,
"avatar": "",
"first_name": "sara",
"middle_name": "",
"last_name": "kumar"
}
]
}
Responses
Status: 302 - Error
{
"status": "no",
"message": "Error in Request"
}
Get Farm Details
This API can be used to fetch farm details.
1355 = seller_id
POST
http://grazr.moblearn.net:7095/mobileapi/getFarmViewFarmDet
Usage and Examples
curl --location --request POST 'http://grazr.moblearn.net:7095/mobileapi/getFarmViewFarmDet' \
--header 'Origin: grazr.moblearn.net' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZWNvbmRhcnlfbWFpbGluZ19hZGRyZXNzIjoiIiwiY2l0eSI6IlRleGFzIiwiZW1haWwiOiJ0ZXN0MS5hdWN0aW9uc29mdHdhcmUrMDZAZ21haWwuY29tIiwicmVnaXN0ZXJlZF9udW1iZXIiOiIiLCJubWZzX251bWJlciI6IiIsInBhc3N3b3JkX2hhc2giOiIzYzMxY2YxMjJjZDliZTJhYzQ4OGRkM2M5ZjYwM2U2NyIsInN0YXRlIjoiTWF5YWd1YW5hIiwiaXNlbXAiOjAsImNhdGVnb3J5IjoiIiwibGljZW5zZV9udW1iZXIiOiIiLCJmaXJzdF9uYW1lIjoiQ2xpbnRvbiIsInZlc3NlbF9uYW1lIjoiIiwidGVydGlhcnlfZmlyc3RfbmFtZSI6IiIsImFsdGVybmF0ZV9waG9uZSI6IiIsImlyaWRpdW1fcGhvbmUiOiIiLCJ0ZXJ0aWFyeV9tYWlsaW5nX2FkZHJlc3MiOiIiLCJhZG1pbiI6MCwidmhmX2NoYW5uZWwiOiIiLCJtYWlsaW5nX2FkZHJlc3MiOiIiLCJzYXRfcGhvbmUiOiIiLCJjb3VudHJ5IjoiQmFoYW1hcyIsInJvbGUiOiJzZWxsZXIiLCJpZCI6MTM1NSwic2Vjb25kYXJ5X3Bob25lIjoiIiwiYXZhdGFyIjoiYTc2YTU3ZTE2YzNhNzg0ZTYwOTBmYTZhN2FiMTNjYTMuanBnIiwibWlkZGxlX25hbWUiOiIiLCJsYW5kaW5nX3BvcnQiOiIiLCJ6aXAiOiI5OTUwNSIsInZlcmlmeV9wYXlwYWwiOjAsInN0YXR1cyI6ImFjdGl2ZSIsImNhcmRfcHJvZmlsZWlkIjoiIiwibGFzdF9uYW1lIjoiTWljayIsInBhc3N3b3JkX3NhbHQiOiIxMjM0NSIsImNvbXBhbnlfbmFtZSI6IiIsInNlY29uZGFyeV9maXJzdF9uYW1lIjoiIiwiY2FyZF9wYXltZW50aWQiOiIiLCJ0ZXJ0aWFyeV9waG9uZSI6IiIsInBob25lIjoiIiwiaWF0IjoxNTc0Njc5MDQ1fQ.04hLswe5GFSi3ae7GrI8ZJdVHuxi1CuuzpgySMAfXEU' \
--header 'Cookie: connect.sid=s%3AGTKvzqR6fDdT_c-dWM9ufmXBD5Ge4-Jp.WBoEWnabThUz66jowfDuc45LPCFEr3whzi8tPbhsNEA' \
--form 'seller_id=1355'
var form = new FormData();
form.append("seller_id", "1355");
var settings = {
"url": "http://grazr.moblearn.net:7095/mobileapi/getFarmViewFarmDet",
"method": "POST",
"timeout": 0,
"headers": {
"Origin": "grazr.moblearn.net",
"Authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZWNvbmRhcnlfbWFpbGluZ19hZGRyZXNzIjoiIiwiY2l0eSI6IlRleGFzIiwiZW1haWwiOiJ0ZXN0MS5hdWN0aW9uc29mdHdhcmUrMDZAZ21haWwuY29tIiwicmVnaXN0ZXJlZF9udW1iZXIiOiIiLCJubWZzX251bWJlciI6IiIsInBhc3N3b3JkX2hhc2giOiIzYzMxY2YxMjJjZDliZTJhYzQ4OGRkM2M5ZjYwM2U2NyIsInN0YXRlIjoiTWF5YWd1YW5hIiwiaXNlbXAiOjAsImNhdGVnb3J5IjoiIiwibGljZW5zZV9udW1iZXIiOiIiLCJmaXJzdF9uYW1lIjoiQ2xpbnRvbiIsInZlc3NlbF9uYW1lIjoiIiwidGVydGlhcnlfZmlyc3RfbmFtZSI6IiIsImFsdGVybmF0ZV9waG9uZSI6IiIsImlyaWRpdW1fcGhvbmUiOiIiLCJ0ZXJ0aWFyeV9tYWlsaW5nX2FkZHJlc3MiOiIiLCJhZG1pbiI6MCwidmhmX2NoYW5uZWwiOiIiLCJtYWlsaW5nX2FkZHJlc3MiOiIiLCJzYXRfcGhvbmUiOiIiLCJjb3VudHJ5IjoiQmFoYW1hcyIsInJvbGUiOiJzZWxsZXIiLCJpZCI6MTM1NSwic2Vjb25kYXJ5X3Bob25lIjoiIiwiYXZhdGFyIjoiYTc2YTU3ZTE2YzNhNzg0ZTYwOTBmYTZhN2FiMTNjYTMuanBnIiwibWlkZGxlX25hbWUiOiIiLCJsYW5kaW5nX3BvcnQiOiIiLCJ6aXAiOiI5OTUwNSIsInZlcmlmeV9wYXlwYWwiOjAsInN0YXR1cyI6ImFjdGl2ZSIsImNhcmRfcHJvZmlsZWlkIjoiIiwibGFzdF9uYW1lIjoiTWljayIsInBhc3N3b3JkX3NhbHQiOiIxMjM0NSIsImNvbXBhbnlfbmFtZSI6IiIsInNlY29uZGFyeV9maXJzdF9uYW1lIjoiIiwiY2FyZF9wYXltZW50aWQiOiIiLCJ0ZXJ0aWFyeV9waG9uZSI6IiIsInBob25lIjoiIiwiaWF0IjoxNTc0Njc5MDQ1fQ.04hLswe5GFSi3ae7GrI8ZJdVHuxi1CuuzpgySMAfXEU",
"Cookie": "connect.sid=s%3AGTKvzqR6fDdT_c-dWM9ufmXBD5Ge4-Jp.WBoEWnabThUz66jowfDuc45LPCFEr3whzi8tPbhsNEA"
},
"processData": false,
"mimeType": "multipart/form-data",
"contentType": false,
"data": form
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var http = require('follow-redirects').http;
var fs = require('fs');
var options = {
'method': 'POST',
'hostname': 'grazr.moblearn.net',
'port': 7095,
'path': '/mobileapi/getFarmViewFarmDet',
'headers': {
'Origin': 'grazr.moblearn.net',
'Authorization': 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.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IsInBob25lIjoiIiwiaWF0IjoxNTc0Njc5MDQ1fQ.04hLswe5GFSi3ae7GrI8ZJdVHuxi1CuuzpgySMAfXEU',
'Cookie': 'connect.sid=s%3AGTKvzqR6fDdT_c-dWM9ufmXBD5Ge4-Jp.WBoEWnabThUz66jowfDuc45LPCFEr3whzi8tPbhsNEA'
},
'maxRedirects': 20
};
var req = http.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
var postData = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"seller_id\"\r\n\r\n1355\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--";
req.setHeader('content-type', 'multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW');
req.write(postData);
req.end();
Headers
[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZWNvbmRhcnlfbWFpbGluZ19hZGRyZXNzIjoiIiwiY2l0eSI6IlRleGFzIiwiZW1haWwiOiJ0ZXN0MS5hdWN0aW9uc29mdHdhcmUrMDZAZ21haWwuY29tIiwicmVnaXN0ZXJlZF9udW1iZXIiOiIiLCJubWZzX251bWJlciI6IiIsInBhc3N3b3JkX2hhc2giOiIzYzMxY2YxMjJjZDliZTJhYzQ4OGRkM2M5ZjYwM2U2NyIsInN0YXRlIjoiTWF5YWd1YW5hIiwiaXNlbXAiOjAsImNhdGVnb3J5IjoiIiwibGljZW5zZV9udW1iZXIiOiIiLCJmaXJzdF9uYW1lIjoiQ2xpbnRvbiIsInZlc3NlbF9uYW1lIjoiIiwidGVydGlhcnlfZmlyc3RfbmFtZSI6IiIsImFsdGVybmF0ZV9waG9uZSI6IiIsImlyaWRpdW1fcGhvbmUiOiIiLCJ0ZXJ0aWFyeV9tYWlsaW5nX2FkZHJlc3MiOiIiLCJhZG1pbiI6MCwidmhmX2NoYW5uZWwiOiIiLCJtYWlsaW5nX2FkZHJlc3MiOiIiLCJzYXRfcGhvbmUiOiIiLCJjb3VudHJ5IjoiQmFoYW1hcyIsInJvbGUiOiJzZWxsZXIiLCJpZCI6MTM1NSwic2Vjb25kYXJ5X3Bob25lIjoiIiwiYXZhdGFyIjoiYTc2YTU3ZTE2YzNhNzg0ZTYwOTBmYTZhN2FiMTNjYTMuanBnIiwibWlkZGxlX25hbWUiOiIiLCJsYW5kaW5nX3BvcnQiOiIiLCJ6aXAiOiI5OTUwNSIsInZlcmlmeV9wYXlwYWwiOjAsInN0YXR1cyI6ImFjdGl2ZSIsImNhcmRfcHJvZmlsZWlkIjoiIiwibGFzdF9uYW1lIjoiTWljayIsInBhc3N3b3JkX3NhbHQiOiIxMjM0NSIsImNvbXBhbnlfbmFtZSI6IiIsInNlY29uZGFyeV9maXJzdF9uYW1lIjoiIiwiY2FyZF9wYXltZW50aWQiOiIiLCJ0ZXJ0aWFyeV9waG9uZSI6IiIsInBob25lIjoiIiwiaWF0IjoxNTc0NDI4MjI4fQ.DJMdtJ-2kw1CYTg0fKGhbWFr4XLEu8pGAEQutXVMpeE","type":"text"},{"key":"Origin","value":"grazr.moblearn.net","type":"text"}]
Usage and Examples
Body parameters
Name
Description
sellerdetails
Responses
Status: 200 - Success
{
{
"status": "yes",
"message": "Seller Farm Details",
"data": [
{
"id": 4,
"name": "test",
"description": "test",
"user_id": 1355,
"location": "UK",
"date_added": "0000-00-00 00:00:00",
"logo": "",
"status": "active",
"website": "test",
"date_started": "2019-11-25T11:02:44.000Z",
"views": 0,
"banner": "d9b7007742f7a534aff95eb9cbf58261.jpg",
"images": "88c2213c4e784c16c84d443ef26028ae.jpg",
"videos": "b9a9df1c71076b6085f4dcd09170a69b.jpg,d355283b4abfee904d11e376a78ff989.jpg",
"site_id": "AS0013"
},
{
"id": 27,
"name": "test",
"description": "test",
"user_id": 1355,
"location": "UK",
"date_added": "0000-00-00 00:00:00",
"logo": "",
"status": "active",
"website": "test",
"date_started": "2020-04-23T08:09:15.000Z",
"views": 0,
"banner": "",
"images": "",
"videos": "",
"site_id": "AS0013"
},
{
"id": 28,
"name": "test",
"description": "test",
"user_id": 1355,
"location": "UK",
"date_added": "0000-00-00 00:00:00",
"logo": "",
"status": "active",
"website": "test",
"date_started": "2020-04-23T13:10:44.000Z",
"views": 0,
"banner": "",
"images": "",
"videos": "",
"site_id": "AS0013"
},
{
"id": 29,
"name": "test",
"description": "test",
"user_id": 1355,
"location": "UK",
"date_added": "0000-00-00 00:00:00",
"logo": "",
"status": "active",
"website": "test",
"date_started": "2020-04-24T05:17:43.000Z",
"views": 0,
"banner": "",
"images": "",
"videos": "",
"site_id": "AS0013"
}
]
}
}
Responses
Status: 302 - Error
{
"status": "no",
"message": "Error in Request"
}
Get All Products of Seller
This API can be used to fetch all products of particular seller.
1355 = seller_id
POST
http://grazr.moblearn.net:7095/mobileapi/getFarmViewAllProducts
Usage and Examples
curl --location --request POST 'http://grazr.moblearn.net:7095/mobileapi/getFarmViewAllProducts' \
--header 'Origin: grazr.moblearn.net' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZWNvbmRhcnlfbWFpbGluZ19hZGRyZXNzIjoiIiwiY2l0eSI6IlRleGFzIiwiZW1haWwiOiJ0ZXN0MS5hdWN0aW9uc29mdHdhcmUrMDZAZ21haWwuY29tIiwicmVnaXN0ZXJlZF9udW1iZXIiOiIiLCJubWZzX251bWJlciI6IiIsInBhc3N3b3JkX2hhc2giOiIzYzMxY2YxMjJjZDliZTJhYzQ4OGRkM2M5ZjYwM2U2NyIsInN0YXRlIjoiTWF5YWd1YW5hIiwiaXNlbXAiOjAsImNhdGVnb3J5IjoiIiwibGljZW5zZV9udW1iZXIiOiIiLCJmaXJzdF9uYW1lIjoiQ2xpbnRvbiIsInZlc3NlbF9uYW1lIjoiIiwidGVydGlhcnlfZmlyc3RfbmFtZSI6IiIsImFsdGVybmF0ZV9waG9uZSI6IiIsImlyaWRpdW1fcGhvbmUiOiIiLCJ0ZXJ0aWFyeV9tYWlsaW5nX2FkZHJlc3MiOiIiLCJhZG1pbiI6MCwidmhmX2NoYW5uZWwiOiIiLCJtYWlsaW5nX2FkZHJlc3MiOiIiLCJzYXRfcGhvbmUiOiIiLCJjb3VudHJ5IjoiQmFoYW1hcyIsInJvbGUiOiJzZWxsZXIiLCJpZCI6MTM1NSwic2Vjb25kYXJ5X3Bob25lIjoiIiwiYXZhdGFyIjoiYTc2YTU3ZTE2YzNhNzg0ZTYwOTBmYTZhN2FiMTNjYTMuanBnIiwibWlkZGxlX25hbWUiOiIiLCJsYW5kaW5nX3BvcnQiOiIiLCJ6aXAiOiI5OTUwNSIsInZlcmlmeV9wYXlwYWwiOjAsInN0YXR1cyI6ImFjdGl2ZSIsImNhcmRfcHJvZmlsZWlkIjoiIiwibGFzdF9uYW1lIjoiTWljayIsInBhc3N3b3JkX3NhbHQiOiIxMjM0NSIsImNvbXBhbnlfbmFtZSI6IiIsInNlY29uZGFyeV9maXJzdF9uYW1lIjoiIiwiY2FyZF9wYXltZW50aWQiOiIiLCJ0ZXJ0aWFyeV9waG9uZSI6IiIsInBob25lIjoiIiwiaWF0IjoxNTc0Njc5MDQ1fQ.04hLswe5GFSi3ae7GrI8ZJdVHuxi1CuuzpgySMAfXEU' \
--header 'Cookie: connect.sid=s%3AGTKvzqR6fDdT_c-dWM9ufmXBD5Ge4-Jp.WBoEWnabThUz66jowfDuc45LPCFEr3whzi8tPbhsNEA' \
--form 'seller_id=1355'
var form = new FormData();
form.append("seller_id", "1355");
var settings = {
"url": "http://grazr.moblearn.net:7095/mobileapi/getFarmViewAllProducts",
"method": "POST",
"timeout": 0,
"headers": {
"Origin": "grazr.moblearn.net",
"Authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZWNvbmRhcnlfbWFpbGluZ19hZGRyZXNzIjoiIiwiY2l0eSI6IlR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GrI8ZJdVHuxi1CuuzpgySMAfXEU",
"Cookie": "connect.sid=s%3AGTKvzqR6fDdT_c-dWM9ufmXBD5Ge4-Jp.WBoEWnabThUz66jowfDuc45LPCFEr3whzi8tPbhsNEA"
},
"processData": false,
"mimeType": "multipart/form-data",
"contentType": false,
"data": form
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var http = require('follow-redirects').http;
var fs = require('fs');
var options = {
'method': 'POST',
'hostname': 'grazr.moblearn.net',
'port': 7095,
'path': '/mobileapi/getFarmViewAllProducts',
'headers': {
'Origin': 'grazr.moblearn.net',
'Authorization': 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZWNvbmRhcnlfbWFpbGluZ19hZGRyZXNzIjoiIiwiY2l0eSI6IlRleGFzIiwiZW1haWwiOiJ0ZXN0MS5hdWN0aW9uc29mdHdhcmUrMDZAZ21haWwuY29tIiwicmVnaXN0ZXJlZF9udW1iZXIiOiIiLCJubWZzX251bWJlciI6IiIsInBhc3N3b3JkX2hhc2giOiIzYzMxY2YxMjJjZDliZTJhYzQ4OGRkM2M5ZjYwM2U2NyIsInN0YXRlIjoiTWF5YWd1YW5hIiwiaXNlbXAiOjAsImNhdGVnb3J5IjoiIiwibGljZW5zZV9udW1iZXIiOiIiLCJmaXJzdF9uYW1lIjoiQ2xpbnRvbiIsInZlc3NlbF9uYW1lIjoiIiwidGVydGlhcnlfZmlyc3RfbmFtZSI6IiIsImFsdGVybmF0ZV9waG9uZSI6IiIsImlyaWRpdW1fcGhvbmUiOiIiLCJ0ZXJ0aWFyeV9tYWlsaW5nX2FkZHJlc3MiOiIiLCJhZG1pbiI6MCwidmhmX2NoYW5uZWwiOiIiLCJtYWlsaW5nX2FkZHJlc3MiOiIiLCJzYXRfcGhvbmUiOiIiLCJjb3VudHJ5IjoiQmFoYW1hcyIsInJvbGUiOiJzZWxsZXIiLCJpZCI6MTM1NSwic2Vjb25kYXJ5X3Bob25lIjoiIiwiYXZhdGFyIjoiYTc2YTU3ZTE2YzNhNzg0ZTYwOTBmYTZhN2FiMTNjYTMuanBnIiwibWlkZGxlX25hbWUiOiIiLCJsYW5kaW5nX3BvcnQiOiIiLCJ6aXAiOiI5OTUwNSIsInZlcmlmeV9wYXlwYWwiOjAsInN0YXR1cyI6ImFjdGl2ZSIsImNhcmRfcHJvZmlsZWlkIjoiIiwibGFzdF9uYW1lIjoiTWljayIsInBhc3N3b3JkX3NhbHQiOiIxMjM0NSIsImNvbXBhbnlfbmFtZSI6IiIsInNlY29uZGFyeV9maXJzdF9uYW1lIjoiIiwiY2FyZF9wYXltZW50aWQiOiIiLCJ0ZXJ0aWFyeV9waG9uZSI6IiIsInBob25lIjoiIiwiaWF0IjoxNTc0Njc5MDQ1fQ.04hLswe5GFSi3ae7GrI8ZJdVHuxi1CuuzpgySMAfXEU',
'Cookie': 'connect.sid=s%3AGTKvzqR6fDdT_c-dWM9ufmXBD5Ge4-Jp.WBoEWnabThUz66jowfDuc45LPCFEr3whzi8tPbhsNEA'
},
'maxRedirects': 20
};
var req = http.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
var postData = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"seller_id\"\r\n\r\n1355\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--";
req.setHeader('content-type', 'multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW');
req.write(postData);
req.end();
Headers
[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZWNvbmRhcnlfbWFpbGluZ19hZGRyZXNzIjoiIiwiY2l0eSI6IlRleGFzIiwiZW1haWwiOiJ0ZXN0MS5hdWN0aW9uc29mdHdhcmUrMDZAZ21haWwuY29tIiwicmVnaXN0ZXJlZF9udW1iZXIiOiIiLCJubWZzX251bWJlciI6IiIsInBhc3N3b3JkX2hhc2giOiIzYzMxY2YxMjJjZDliZTJhYzQ4OGRkM2M5ZjYwM2U2NyIsInN0YXRlIjoiTWF5YWd1YW5hIiwiaXNlbXAiOjAsImNhdGVnb3J5IjoiIiwibGljZW5zZV9udW1iZXIiOiIiLCJmaXJzdF9uYW1lIjoiQ2xpbnRvbiIsInZlc3NlbF9uYW1lIjoiIiwidGVydGlhcnlfZmlyc3RfbmFtZSI6IiIsImFsdGVybmF0ZV9waG9uZSI6IiIsImlyaWRpdW1fcGhvbmUiOiIiLCJ0ZXJ0aWFyeV9tYWlsaW5nX2FkZHJlc3MiOiIiLCJhZG1pbiI6MCwidmhmX2NoYW5uZWwiOiIiLCJtYWlsaW5nX2FkZHJlc3MiOiIiLCJzYXRfcGhvbmUiOiIiLCJjb3VudHJ5IjoiQmFoYW1hcyIsInJvbGUiOiJzZWxsZXIiLCJpZCI6MTM1NSwic2Vjb25kYXJ5X3Bob25lIjoiIiwiYXZhdGFyIjoiYTc2YTU3ZTE2YzNhNzg0ZTYwOTBmYTZhN2FiMTNjYTMuanBnIiwibWlkZGxlX25hbWUiOiIiLCJsYW5kaW5nX3BvcnQiOiIiLCJ6aXAiOiI5OTUwNSIsInZlcmlmeV9wYXlwYWwiOjAsInN0YXR1cyI6ImFjdGl2ZSIsImNhcmRfcHJvZmlsZWlkIjoiIiwibGFzdF9uYW1lIjoiTWljayIsInBhc3N3b3JkX3NhbHQiOiIxMjM0NSIsImNvbXBhbnlfbmFtZSI6IiIsInNlY29uZGFyeV9maXJzdF9uYW1lIjoiIiwiY2FyZF9wYXltZW50aWQiOiIiLCJ0ZXJ0aWFyeV9waG9uZSI6IiIsInBob25lIjoiIiwiaWF0IjoxNTc0NDI4MjI4fQ.DJMdtJ-2kw1CYTg0fKGhbWFr4XLEu8pGAEQutXVMpeE","type":"text"},{"key":"Origin","value":"grazr.moblearn.net","type":"text"}]
Usage and Examples
Body parameters
Name
Description
sellerdetails
Responses
Status: 200 - Success
{
{
"status": "yes",
"message": "Seller Products List",
"data": {
"total_products": 4,
"seller_product_list": [
{
"id": 175,
"title": "Grazr Test",
"description": "Grazr test",
"avatar": null,
"is_avatar": "",
"image": "",
"videos": "",
"document": null,
"date_added": "2020-04-23T08:08:51.000Z",
"date_closed": "2020-04-23T08:08:51.000Z",
"category_id": "1",
"subcategory": null,
"tags": null,
"sprice": " 500",
"rprice": " 500",
"work_loc": "",
"country": null,
"state": " Tamil Nadu",
"city": " chennai",
"zip": "",
"user_id": 1355,
"invite_people": null,
"status": null,
"created_at": null,
"updated_at": null,
"budget_type": null,
"buynow": 0,
"feature": 0,
"home_page_listing_fee": 0,
"shipping_price": 0,
"shipping_description": "",
"bprice": 0,
"mprice": 0,
"iprice": 0,
"wprice": 500,
"market_status": "open",
"auctionio": 0,
"is_same_location": 0,
"qty": 1,
"sold": 0,
"paypal_address": "",
"future": 0,
"duration": 0,
"time": 0,
"time_level": "",
"duration_type": "D",
"booked": 0,
"sell_location": "",
"used_image_space": 0,
"is_digital": 0,
"auctionioid": 59019252,
"auctioniotype": "",
"storeqty": 0,
"upc": "",
"modelnumber": "",
"lotof": "59019252",
"mixlotof": "0",
"manufacturer": "",
"size": "",
"finish": "",
"auctionionotes": "",
"qcdby": "",
"auctioniocondition": "",
"conditionunique": "",
"multiple_category": "1",
"multiple_sub_category": "",
"hasshipping": 0,
"shippingcost": "0",
"shipnotavailable": 0,
"freightrequest": 0,
"localpickup": 1,
"location": "",
"paymentmethod": "[\"Cash (Local Pick-up)\"]",
"msrp": 0,
"startprice": 500,
"content_head1": "",
"content_head2": "",
"content_head3": "",
"content_head4": "",
"content_head5": "",
"content_head6": "",
"buyerpremium": "",
"inspectiontime": "",
"extbidding": "",
"payments": "",
"norefund": "",
"manifests": "",
"palletcount": "",
"unitcount": 0,
"old_loc": "",
"inventory_loc": "",
"inventory_loc_user": 0,
"notes": "",
"brand_name": "",
"is_upclist": 0,
"isphotolive": 0,
"show_avgprice": 0,
"show_mspr": 0,
"buyerpremium_percentage": 0,
"ended_early": 0,
"is_relist": 0,
"cronjob": 0,
"unsold_notes": "",
"inventory_date": "0000-00-00 00:00:00",
"is_refund": 0,
"listing_count": 0,
"weight": 0,
"length": 0,
"width": 0,
"height": 0,
"cashout_id": null,
"seller_type": 1,
"cashout_status": 0,
"cashout_amount": 0,
"checkno": null,
"trending_item": 0,
"trending_pro_count": 0,
"site_id": "AS0013",
"sublot_description": null
},
{
"id": 176,
"title": "Grazr Test",
"description": "Grazr test",
"avatar": null,
"is_avatar": "",
"image": "",
"videos": "",
"document": null,
"date_added": "2020-04-23T08:09:03.000Z",
"date_closed": "2020-04-23T08:09:03.000Z",
"category_id": "1",
"subcategory": null,
"tags": null,
"sprice": " 500",
"rprice": " 500",
"work_loc": "",
"country": null,
"state": " Tamil Nadu",
"city": " chennai",
"zip": "",
"user_id": 1355,
"invite_people": null,
"status": null,
"created_at": null,
"updated_at": null,
"budget_type": null,
"buynow": 0,
"feature": 0,
"home_page_listing_fee": 0,
"shipping_price": 0,
"shipping_description": "",
"bprice": 0,
"mprice": 0,
"iprice": 0,
"wprice": 500,
"market_status": "open",
"auctionio": 0,
"is_same_location": 0,
"qty": 1,
"sold": 0,
"paypal_address": "",
"future": 0,
"duration": 0,
"time": 0,
"time_level": "",
"duration_type": "D",
"booked": 0,
"sell_location": "",
"used_image_space": 0,
"is_digital": 0,
"auctionioid": 13526171,
"auctioniotype": "",
"storeqty": 0,
"upc": "",
"modelnumber": "",
"lotof": "13526171",
"mixlotof": "0",
"manufacturer": "",
"size": "",
"finish": "",
"auctionionotes": "",
"qcdby": "",
"auctioniocondition": "",
"conditionunique": "",
"multiple_category": "1",
"multiple_sub_category": "",
"hasshipping": 0,
"shippingcost": "0",
"shipnotavailable": 0,
"freightrequest": 0,
"localpickup": 1,
"location": "",
"paymentmethod": "[\"Cash (Local Pick-up)\"]",
"msrp": 0,
"startprice": 500,
"content_head1": "",
"content_head2": "",
"content_head3": "",
"content_head4": "",
"content_head5": "",
"content_head6": "",
"buyerpremium": "",
"inspectiontime": "",
"extbidding": "",
"payments": "",
"norefund": "",
"manifests": "",
"palletcount": "",
"unitcount": 0,
"old_loc": "",
"inventory_loc": "",
"inventory_loc_user": 0,
"notes": "",
"brand_name": "",
"is_upclist": 0,
"isphotolive": 0,
"show_avgprice": 0,
"show_mspr": 0,
"buyerpremium_percentage": 0,
"ended_early": 0,
"is_relist": 0,
"cronjob": 0,
"unsold_notes": "",
"inventory_date": "0000-00-00 00:00:00",
"is_refund": 0,
"listing_count": 0,
"weight": 0,
"length": 0,
"width": 0,
"height": 0,
"cashout_id": null,
"seller_type": 1,
"cashout_status": 0,
"cashout_amount": 0,
"checkno": null,
"trending_item": 0,
"trending_pro_count": 0,
"site_id": "AS0013",
"sublot_description": null
},
{
"id": 178,
"title": "Grazr Test",
"description": "Grazr test",
"avatar": null,
"is_avatar": "",
"image": "",
"videos": "",
"document": null,
"date_added": "2020-04-23T12:53:38.000Z",
"date_closed": "2020-04-23T12:53:38.000Z",
"category_id": "1",
"subcategory": null,
"tags": null,
"sprice": " 500",
"rprice": " 500",
"work_loc": "",
"country": null,
"state": " Tamil Nadu",
"city": " chennai",
"zip": "",
"user_id": 1355,
"invite_people": null,
"status": null,
"created_at": null,
"updated_at": null,
"budget_type": null,
"buynow": 0,
"feature": 0,
"home_page_listing_fee": 0,
"shipping_price": 0,
"shipping_description": "",
"bprice": 0,
"mprice": 0,
"iprice": 0,
"wprice": 500,
"market_status": "open",
"auctionio": 0,
"is_same_location": 0,
"qty": 1,
"sold": 0,
"paypal_address": "",
"future": 0,
"duration": 0,
"time": 0,
"time_level": "",
"duration_type": "D",
"booked": 0,
"sell_location": "",
"used_image_space": 0,
"is_digital": 0,
"auctionioid": 65214767,
"auctioniotype": "",
"storeqty": 0,
"upc": "",
"modelnumber": "",
"lotof": "65214767",
"mixlotof": "0",
"manufacturer": "",
"size": "",
"finish": "",
"auctionionotes": "",
"qcdby": "",
"auctioniocondition": "",
"conditionunique": "",
"multiple_category": "1",
"multiple_sub_category": "",
"hasshipping": 0,
"shippingcost": "0",
"shipnotavailable": 0,
"freightrequest": 0,
"localpickup": 1,
"location": "",
"paymentmethod": "[\"Cash (Local Pick-up)\"]",
"msrp": 0,
"startprice": 500,
"content_head1": "",
"content_head2": "",
"content_head3": "",
"content_head4": "",
"content_head5": "",
"content_head6": "",
"buyerpremium": "",
"inspectiontime": "",
"extbidding": "",
"payments": "",
"norefund": "",
"manifests": "",
"palletcount": "",
"unitcount": 0,
"old_loc": "",
"inventory_loc": "",
"inventory_loc_user": 0,
"notes": "",
"brand_name": "",
"is_upclist": 0,
"isphotolive": 0,
"show_avgprice": 0,
"show_mspr": 0,
"buyerpremium_percentage": 0,
"ended_early": 0,
"is_relist": 0,
"cronjob": 0,
"unsold_notes": "",
"inventory_date": "0000-00-00 00:00:00",
"is_refund": 0,
"listing_count": 0,
"weight": 0,
"length": 0,
"width": 0,
"height": 0,
"cashout_id": null,
"seller_type": 1,
"cashout_status": 0,
"cashout_amount": 0,
"checkno": null,
"trending_item": 0,
"trending_pro_count": 0,
"site_id": "AS0013",
"sublot_description": null
},
{
"id": 179,
"title": "Grazr Test",
"description": "Grazr test",
"avatar": null,
"is_avatar": "",
"image": "",
"videos": "",
"document": null,
"date_added": "2020-04-23T13:08:58.000Z",
"date_closed": "2020-04-23T13:08:58.000Z",
"category_id": "1",
"subcategory": null,
"tags": null,
"sprice": " 500",
"rprice": " 500",
"work_loc": "",
"country": null,
"state": " Tamil Nadu",
"city": " chennai",
"zip": "",
"user_id": 1355,
"invite_people": null,
"status": null,
"created_at": null,
"updated_at": null,
"budget_type": null,
"buynow": 0,
"feature": 0,
"home_page_listing_fee": 0,
"shipping_price": 0,
"shipping_description": "",
"bprice": 0,
"mprice": 0,
"iprice": 0,
"wprice": 500,
"market_status": "open",
"auctionio": 0,
"is_same_location": 0,
"qty": 1,
"sold": 0,
"paypal_address": "",
"future": 0,
"duration": 0,
"time": 0,
"time_level": "",
"duration_type": "D",
"booked": 0,
"sell_location": "",
"used_image_space": 0,
"is_digital": 0,
"auctionioid": 56983061,
"auctioniotype": "",
"storeqty": 0,
"upc": "",
"modelnumber": "",
"lotof": "56983061",
"mixlotof": "0",
"manufacturer": "",
"size": "",
"finish": "",
"auctionionotes": "",
"qcdby": "",
"auctioniocondition": "",
"conditionunique": "",
"multiple_category": "1",
"multiple_sub_category": "",
"hasshipping": 0,
"shippingcost": "0",
"shipnotavailable": 0,
"freightrequest": 0,
"localpickup": 1,
"location": "",
"paymentmethod": "[\"Cash (Local Pick-up)\"]",
"msrp": 0,
"startprice": 500,
"content_head1": "",
"content_head2": "",
"content_head3": "",
"content_head4": "",
"content_head5": "",
"content_head6": "",
"buyerpremium": "",
"inspectiontime": "",
"extbidding": "",
"payments": "",
"norefund": "",
"manifests": "",
"palletcount": "",
"unitcount": 0,
"old_loc": "",
"inventory_loc": "",
"inventory_loc_user": 0,
"notes": "",
"brand_name": "",
"is_upclist": 0,
"isphotolive": 0,
"show_avgprice": 0,
"show_mspr": 0,
"buyerpremium_percentage": 0,
"ended_early": 0,
"is_relist": 0,
"cronjob": 0,
"unsold_notes": "",
"inventory_date": "0000-00-00 00:00:00",
"is_refund": 0,
"listing_count": 0,
"weight": 0,
"length": 0,
"width": 0,
"height": 0,
"cashout_id": null,
"seller_type": 1,
"cashout_status": 0,
"cashout_amount": 0,
"checkno": null,
"trending_item": 0,
"trending_pro_count": 0,
"site_id": "AS0013",
"sublot_description": null
}
]
}
}
}
Responses
Status: 302 - Error
{
"status": "no",
"message": "Error in Request"
}
Add Comment In Discussion
This API can be used to add comment in discussion.
POST
https://api.auction.io/mobileapi/add_comment_in_discussion
Usage and Examples
curl --location --request POST 'https://api.auction.io/mobileapi/add_comment_in_discussion' \
--header 'origin: grazr.moblearn.net' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZWNvbmRhcnlfbWFpbGluZ19hZGRyZXNzIjoidGVzd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WUxIiwicGFzc3dvcmRfc2FsdCI6IjEyMzQ1IiwiY29tcGFueV9uYW1lIjoidGVzdCBjb21wYW55X25hbWUiLCJzZWNvbmRhcnlfZmlyc3RfbmFtZSI6InRlc3Qgc2Vjb25kYXkgZmlyc3QgbmFtZSIsImNhcmRfcGF5bWVudGlkIjoiIiwidGVydGlhcnlfcGhvbmUiOiIxMTExMTEiLCJwaG9uZSI6Ijg0Mjg4Mzk0MzMiLCJpYXQiOjE1NzQxMzc4NTV9.Yc99empkGDCSlTmb_Fpmnc18MD2H73_y6zexdTZhNFE' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Cookie: connect.sid=s%3AnblO-pCZH_gCEYWiArEpTBuLPC-5LkRz.Swt2lduC%2BcrYj3xrZeJ47atXAkKF7K7G736mFv0o%2FgA' \
--data-urlencode 'comment=hi' \
--data-urlencode 'community_id=1' \
--data-urlencode 'discussion_id=2'
var settings = {
"url": "https://api.auction.io/mobileapi/add_comment_in_discussion",
"method": "POST",
"timeout": 0,
"headers": {
"origin": "grazr.moblearn.net",
"Authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZWNvbmRhcnlfbWFpbGluZ19hZGRyZXNzIjoidGVzdCBzZWNvbmRhcnkgbWFpbCBhZGRyZXNzIiwiY2l0eSI6ImNoZW5uYWkiLCJlbWFpbCI6InJhamt1bWFyLmF1Y3Rpb25zb2Z0d2FyZStidXllcnRlc3RAZ21haWwuY29tIiwicmVnaXN0ZXJlZF9udW1iZXIiOiIxMjMxMjMiLCJubWZzX251bWJlciI6Ijc3Nzc3NyIsInBhc3N3b3JkX2hhc2giOiIzYzMxY2YxMjJjZDliZTJhYzQ4OGRkM2M5ZjYwM2U2NyIsInN0YXRlIjoidG4iLCJpc2VtcCI6MCwiY2F0ZWdvcnkiOiJ0ZXN0IiwibGljZW5zZV9udW1iZXIiOiI4OTg5ODkiLCJmaXJzdF9uYW1lIjoidGVzdDEiLCJ2ZXNzZWxf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ZeJ47atXAkKF7K7G736mFv0o%2FgA"
},
"data": {
"comment": "hi",
"community_id": "1",
"discussion_id": "2"
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var https = require('follow-redirects').https;
var fs = require('fs');
var qs = require('querystring');
var options = {
'method': 'POST',
'hostname': 'api.auction.io',
'path': '/mobileapi/add_comment_in_discussion',
'headers': {
'origin': 'grazr.moblearn.net',
'Authorization': 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZWNvbmRhcnlfbWFpbGluZ19hZGRyZXNzIjoidGVzdCBzZWNvbmRhcnkgbWFpbCBhZGRyZXNzIiwiY2l0eSI6ImNoZW5uYWkiLCJlbWFpbCI6InJhamt1bWFyLmF1Y3Rpb25zb2Z0d2FyZStidXllcnRlc3RAZ21haWwuY29tIiwicmVnaXN0ZXJlZF9udW1iZXIiOiIxMjMxMjMiLCJubWZzX251bWJlciI6Ijc3Nzc3NyIsInBhc3N3b3JkX2hhc2giOiIzYzMxY2YxMjJjZDliZTJhYzQ4OGRkM2M5ZjYwM2U2NyIsInN0YXRlIjoidG4iLCJpc2VtcCI6MCwiY2F0ZWdvcnkiOiJ0ZXN0IiwibGljZW5zZV9udW1iZXIiOiI4OTg5ODkiLCJmaXJzdF9uYW1lIjoidGVzdDEiLCJ2ZXNzZWxfbmFtZSI6InRlc3QgdmVzc2VsIG5hbWUiLCJ0ZXJ0aWFyeV9maXJzdF9uYW1lIjoidGVzdCB0ZXJ0aWFyeSBmaXJzdCBuYW1lIiwiYWx0ZXJuYXRlX3Bob25lIjoiMTIzNDU2NzgiLCJpcmlkaXVtX3Bob25lIjoiNDQ0NDQ0IiwidGVydGlhcnlfbWFpbGluZ19hZGRyZXNzIjoidGVydGlhcnkgbWFpbCBhZGRyZXNzIiwiYWRtaW4iOjAsInZoZl9jaGFubmVsIjoidGVzdCB2aGYgY2hhbm5lbCIsIm1haWxpbmdfYWRkcmVzcyI6InRlc3RAdGVzdC5jb20iLCJzYXRfcGhvbmUiOiIzMzMzMzMiLCJjb3VudHJ5IjoiaW5kb2EiLCJyb2xlIjoiIiwiaWQiOjEyODksInNlY29uZGFyeV9waG9uZSI6IjU1NTU1IiwibWlkZGxlX25hbWUiOiJ0ZXN0IG1pZGRsZW5hbWUxIiwibGFuZGluZ19wb3J0IjoiVVMiLCJ6aXAiOiI2MDAwMDEiLCJ2ZXJpZnlfcGF5cGFsIjowLCJzdGF0dXMiOiJhY3RpdmUiLCJjYXJkX3Byb2ZpbGVpZCI6IiIsImxhc3RfbmFtZSI6InRlc3QgbGFzdG5hbWUxIiwicGFzc3dvcmRfc2FsdCI6IjEyMzQ1IiwiY29tcGFueV9uYW1lIjoidGVzdCBjb21wYW55X25hbWUiLCJzZWNvbmRhcnlfZmlyc3RfbmFtZSI6InRlc3Qgc2Vjb25kYXkgZmlyc3QgbmFtZSIsImNhcmRfcGF5bWVudGlkIjoiIiwidGVydGlhcnlfcGhvbmUiOiIxMTExMTEiLCJwaG9uZSI6Ijg0Mjg4Mzk0MzMiLCJpYXQiOjE1NzQxMzc4NTV9.Yc99empkGDCSlTmb_Fpmnc18MD2H73_y6zexdTZhNFE',
'Content-Type': 'application/x-www-form-urlencoded',
'Cookie': 'connect.sid=s%3AnblO-pCZH_gCEYWiArEpTBuLPC-5LkRz.Swt2lduC%2BcrYj3xrZeJ47atXAkKF7K7G736mFv0o%2FgA'
},
'maxRedirects': 20
};
var req = https.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
var postData = qs.stringify({
'comment': 'hi',
'community_id': '1',
'discussion_id': '2'
});
req.write(postData);
req.end();
Headers
[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZWNvbmRhcnlfbWFpbGluZ19hZGRyZXNzIjoiIiwiY2l0eSI6IlRleGFzIiwiZW1haW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Eu8pGAEQutXVMpeE","type":"text"},{"key":"Origin","value":"grazr.moblearn.net","type":"text"}]
Usage and Examples
Body parameters
Name
Description
commentdetails
{
"comment: "new test",
"community_id: "1",
"discussion_id: "2"
}
Responses
Status: 200 - Success
{
"comment: "number",
"community_id: "number",
"discussion_id: "number"
}
{
"status": "yes",
"message": "Success"
}
Responses
Status: 302 - Error
{
"comment: "number",
"community_id: "number",
"discussion_id: "number"
}
{
"status": "no",
"message": "Error in Request"
}
Invite User To Community
POST
https://api.auction.io/mobileapi/invite_user_to_community
Usage and Examples
curl --location --request POST 'https://api.auction.io/mobileapi/invite_user_to_community' \
--header 'origin: grazr.moblearn.net' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZWNvbmRhcnlfbWFpbGluZ19hZGRyZXNzIjoidGVzdCBzZWNvbmRhcnkgbWFpbCBhZGRyZXNzIiwiY2l0eSI6ImNoZW5uYWkiLCJlbWFpbCI6InJhamt1bWFyLmF1Y3Rpb25zb2Z0d2FyZStidXllcnRlc3RAZ21haWwuY29tIiwicmVnaXN0ZXJlZF9udW1iZXIiOiIxMjMxMjMiLCJubWZzX251bWJlciI6Ijc3Nzc3NyIsInBhc3N3b3JkX2hhc2giOiIzYzMxY2YxMjJjZDliZTJhYzQ4OGRkM2M5ZjYwM2U2NyIsInN0YXRlIjoidG4iLCJpc2VtcCI6MCwiY2F0ZWdvcnkiOiJ0ZXN0IiwibGljZW5zZV9udW1iZXIiOiI4OTg5ODkiLCJmaXJzdF9uYW1lIjoidGVzdDEiLCJ2ZXNzZWxfbmFtZSI6InRlc3QgdmVzc2VsIG5hbWUiLCJ0ZXJ0aWFyeV9maXJzdF9uYW1lIjoidGVzdCB0ZXJ0aWFyeSBmaXJzdCBuYW1lIiwiYWx0ZXJuYXRlX3Bob25lIjoiMTIzNDU2NzgiLCJpcmlkaXVtX3Bob25lIjoiNDQ0NDQ0IiwidGVydGlhcnlfbWFpbGluZ19hZGRyZXNzIjoidGVydGlhcnkgbWFpbCBhZGRyZXNzIiwiYWRtaW4iOjAsInZoZl9jaGFubmVsIjoidGVzdCB2aGYgY2hhbm5lbCIsIm1haWxpbmdfYWRkcmVzcyI6InRlc3RAdGVzdC5jb20iLCJzYXRfcGhvbmUiOiIzMzMzMzMiLCJjb3VudHJ5IjoiaW5kb2EiLCJyb2xlIjoiIiwiaWQiOjEyODksInNlY29uZGFyeV9waG9uZSI6IjU1NTU1IiwibWlkZGxlX25hbWUiOiJ0ZXN0IG1pZGRsZW5hbWUxIiwibGFuZGluZ19wb3J0IjoiVVMiLCJ6aXAiOiI2MDAwMDEiLCJ2ZXJpZnlfcGF5cGFsIjowLCJzdGF0dXMiOiJhY3RpdmUiLCJjYXJkX3Byb2ZpbGVpZCI6IiIsImxhc3RfbmFtZSI6InRlc3QgbGFzdG5hbWUxIiwicGFzc3dvcmRfc2FsdCI6IjEyMzQ1IiwiY29tcGFueV9uYW1lIjoidGVzdCBjb21wYW55X25hbWUiLCJzZWNvbmRhcnlfZmlyc3RfbmFtZSI6InRlc3Qgc2Vjb25kYXkgZmlyc3QgbmFtZSIsImNhcmRfcGF5bWVudGlkIjoiIiwidGVydGlhcnlfcGhvbmUiOiIxMTExMTEiLCJwaG9uZSI6Ijg0Mjg4Mzk0MzMiLCJpYXQiOjE1NzQxMzc4NTV9.Yc99empkGDCSlTmb_Fpmnc18MD2H73_y6zexdTZhNFE' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Cookie: connect.sid=s%3AnblO-pCZH_gCEYWiArEpTBuLPC-5LkRz.Swt2lduC%2BcrYj3xrZeJ47atXAkKF7K7G736mFv0o%2FgA' \
--data-urlencode 'email=test16.auction.io'
var settings = {
"url": "https://api.auction.io/mobileapi/invite_user_to_community",
"method": "POST",
"timeout": 0,
"headers": {
"origin": "grazr.moblearn.net",
"Authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZWNvbmRhcnlfbWFpbGluZ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I6InRlc3QgbGFzdG5hbWUxIiwicGFzc3dvcmRfc2FsdCI6IjEyMzQ1IiwiY29tcGFueV9uYW1lIjoidGVzdCBjb21wYW55X25hbWUiLCJzZWNvbmRhcnlfZmlyc3RfbmFtZSI6InRlc3Qgc2Vjb25kYXkgZmlyc3QgbmFtZSIsImNhcmRfcGF5bWVudGlkIjoiIiwidGVydGlhcnlfcGhvbmUiOiIxMTExMTEiLCJwaG9uZSI6Ijg0Mjg4Mzk0MzMiLCJpYXQiOjE1NzQxMzc4NTV9.Yc99empkGDCSlTmb_Fpmnc18MD2H73_y6zexdTZhNFE",
"Content-Type": "application/x-www-form-urlencoded",
"Cookie": "connect.sid=s%3AnblO-pCZH_gCEYWiArEpTBuLPC-5LkRz.Swt2lduC%2BcrYj3xrZeJ47atXAkKF7K7G736mFv0o%2FgA"
},
"data": {
"email": "test16.auction.io"
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var https = require('follow-redirects').https;
var fs = require('fs');
var qs = require('querystring');
var options = {
'method': 'POST',
'hostname': 'api.auction.io',
'path': '/mobileapi/invite_user_to_community',
'headers': {
'origin': 'grazr.moblearn.net',
'Authorization': 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZWNvbmRhcnlfbWFpbGluZ19hZGRyZXNzIjoidGVzdCBzZWNvbmRhcnkgbWFpbCBhZGRyZXNzIiwiY2l0eSI6ImNoZW5uYWkiLCJlbWFpbCI6InJhamt1bWFyLmF1Y3Rpb25zb2Z0d2FyZStidXllcnRlc3RAZ21haWwuY29tIiwicmVnaXN0ZXJlZF9udW1iZXIiOiIxMjMxMjMiLCJubWZzX251bWJlciI6Ijc3Nzc3NyIsInBhc3N3b3JkX2hhc2giOiIzYzMxY2YxMjJjZDliZTJhYzQ4OGRkM2M5ZjYwM2U2NyIsInN0YXRlIjoidG4iLCJpc2VtcCI6MCwiY2F0ZWdvcnkiOiJ0ZXN0IiwibGljZW5zZV9udW1iZXIiOiI4OTg5OD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-pCZH_gCEYWiArEpTBuLPC-5LkRz.Swt2lduC%2BcrYj3xrZeJ47atXAkKF7K7G736mFv0o%2FgA'
},
'maxRedirects': 20
};
var req = https.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
var postData = qs.stringify({
'email': 'test16.auction.io'
});
req.write(postData);
req.end();
Headers
[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZWNvbmRhcnlfbWFpbGluZ19hZGRyZXNzIjoiIiwiY2l0eSI6IlRleGFzIiwiZW1haWwiOiJ0ZXN0MS5hdWN0aW9uc29mdHdhcmUrMDZAZ21haWwuY29tIiwicmVnaXN0ZXJlZF9udW1iZXIiOiIiLCJubWZzX251bWJlciI6IiIsInBhc3N3b3JkX2hhc2giOiIzYzMxY2YxMjJjZDliZTJhYzQ4OGRkM2M5ZjYwM2U2NyIsInN0YXRlIjoiTWF5YWd1YW5hIiwiaXNlbXAiOjAsImNhdGVnb3J5IjoiIiwibGljZW5zZV9udW1iZXIiOiIiLCJmaXJzdF9uYW1lIjoiQ2xpbnRvbiIsInZlc3NlbF9uYW1lIjoiIiwidGVydGlhcnlfZmlyc3RfbmFtZSI6IiIsImFsdGVybmF0ZV9waG9uZSI6IiIsImlyaWRpdW1fcGhvbmUiOiIiLCJ0ZXJ0aWFyeV9tYWlsaW5nX2FkZHJlc3MiOiIiLCJhZG1pbiI6MCwidmhmX2NoYW5uZWwiOiIiLCJtYWlsaW5nX2FkZHJlc3MiOiIiLCJzYXRfcGhvbmUiOiIiLCJjb3VudHJ5IjoiQmFoYW1hcyIsInJvbGUiOiJzZWxsZXIiLCJpZCI6MTM1NSwic2Vjb25kYXJ5X3Bob25lIjoiIiwiYXZhdGFyIjoiYTc2YTU3ZTE2YzNhNzg0ZTYwOTBmYTZhN2FiMTNjYTMuanBnIiwibWlkZGxlX25hbWUiOiIiLCJsYW5kaW5nX3BvcnQiOiIiLCJ6aXAiOiI5OTUwNSIsInZlcmlmeV9wYXlwYWwiOjAsInN0YXR1cyI6ImFjdGl2ZSIsImNhcmRfcHJvZmlsZWlkIjoiIiwibGFzdF9uYW1lIjoiTWljayIsInBhc3N3b3JkX3NhbHQiOiIxMjM0NSIsImNvbXBhbnlfbmFtZSI6IiIsInNlY29uZGFyeV9maXJzdF9uYW1lIjoiIiwiY2FyZF9wYXltZW50aWQiOiIiLCJ0ZXJ0aWFyeV9waG9uZSI6IiIsInBob25lIjoiIiwiaWF0IjoxNTc0NDI4MjI4fQ.DJMdtJ-2kw1CYTg0fKGhbWFr4XLEu8pGAEQutXVMpeE","type":"text"},{"key":"Origin","value":"grazr.moblearn.net","type":"text"}]
Usage and Examples
Body parameters
Name
Description
userdetails
{
"email: "test16.auction.io"
}
Responses
Status: 200 - Success
{
"status": "yes",
"message": "Success"
}
Responses
Status: 302 - Error
{
"status": "no",
"message": "Error in Request"
}
Get Lot Details
POST
https://api.auction.io/mobileapi/getlotdetails
Usage and Examples
curl --location --request POST 'https://api.auction.io/mobileapi/getlotdetails' \
--header 'Cookie: connect.sid=s%3AnblO-pCZH_gCEYWiArEpTBuLPC-5LkRz.Swt2lduC%2BcrYj3xrZeJ47atXAkKF7K7G736mFv0o%2FgA'
var settings = {
"url": "https://api.auction.io/mobileapi/getlotdetails",
"method": "POST",
"timeout": 0,
"headers": {
"Cookie": "connect.sid=s%3AnblO-pCZH_gCEYWiArEpTBuLPC-5LkRz.Swt2lduC%2BcrYj3xrZeJ47atXAkKF7K7G736mFv0o%2FgA"
},
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var https = require('follow-redirects').https;
var fs = require('fs');
var qs = require('querystring');
var options = {
'method': 'POST',
'hostname': 'api.auction.io',
'path': '/mobileapi/getlotdetails',
'headers': {
'Cookie': 'connect.sid=s%3AnblO-pCZH_gCEYWiArEpTBuLPC-5LkRz.Swt2lduC%2BcrYj3xrZeJ47atXAkKF7K7G736mFv0o%2FgA'
},
'maxRedirects': 20
};
var req = https.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
var postData = qs.stringify({
});
req.write(postData);
req.end();
Responses
Status: 200 - Success
{
"success": true,
"error": false,
"data": []
}
Responses
Status: 302 - Error
{
"status": "no",
"message": "Error in Request"
}
Get Edit Auction.io Details
POST
https://api.auction.io/mobileapi/getauctioniolotdetails
Usage and Examples
curl --location --request POST 'https://api.auction.io/mobileapi/getauctioniolotdetails' \
--header 'Cookie: connect.sid=s%3AnblO-pCZH_gCEYWiArEpTBuLPC-5LkRz.Swt2lduC%2BcrYj3xrZeJ47atXAkKF7K7G736mFv0o%2FgA' \
--form 'auctionioid=1'
var form = new FormData();
form.append("auctionioid", "1");
var settings = {
"url": "https://api.auction.io/mobileapi/getauctioniolotdetails",
"method": "POST",
"timeout": 0,
"headers": {
"Cookie": "connect.sid=s%3AnblO-pCZH_gCEYWiArEpTBuLPC-5LkRz.Swt2lduC%2BcrYj3xrZeJ47atXAkKF7K7G736mFv0o%2FgA"
},
"processData": false,
"mimeType": "multipart/form-data",
"contentType": false,
"data": form
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var https = require('follow-redirects').https;
var fs = require('fs');
var options = {
'method': 'POST',
'hostname': 'api.auction.io',
'path': '/mobileapi/getauctioniolotdetails',
'headers': {
'Cookie': 'connect.sid=s%3AnblO-pCZH_gCEYWiArEpTBuLPC-5LkRz.Swt2lduC%2BcrYj3xrZeJ47atXAkKF7K7G736mFv0o%2FgA'
},
'maxRedirects': 20
};
var req = https.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
var postData = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"auctionioid\"\r\n\r\n1\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--";
req.setHeader('content-type', 'multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW');
req.write(postData);
req.end();
Usage and Examples
Body parameters
Name
Description
auctioniodetails
Responses
Status: 200 - Success
{
"auctionioid": "number"
}
{
"success": true,
"error": false,
"data": {
"lot_details": [],
"auctionio_details": {
"id": 1,
"title": "test_auctionio",
"description": "testing",
"site_id": "AS0008",
"user_id": null,
"date_added": "2020-02-20T13:08:20.000Z",
"date_closed": "2020-03-07T13:08:20.000Z",
"avatar": "f045e763552d748f063ad00631bc063f.jpeg",
"market_status": "open"
},
"auctionioid": "1"
}
}
Responses
Status: 302 - Error
{
"success": false,
"error": true,
"data": {
"error": "Invaild Auction.io ID"
}
}
Create Auction.io Slot
POST
https://api.auction.io/mobileapi/createauctioniolot
Usage and Examples
curl --location --request POST 'https://api.auction.io/mobileapi/createauctioniolot' \
--header 'Cookie: connect.sid=s%3AnblO-pCZH_gCEYWiArEpTBuLPC-5LkRz.Swt2lduC%2BcrYj3xrZeJ47atXAkKF7K7G736mFv0o%2FgA' \
--form 'title=test title' \
--form 'description=test desc' \
--form 'start_date=2020' \
--form 'end_date=2024' \
--form 'lot_id=1' \
--form 'status=new' \
--form 'File=img.jpeg'
var form = new FormData();
form.append("title", "test title");
form.append("description", "test desc");
form.append("start_date", "2020");
form.append("end_date", "2024");
form.append("lot_id", "1");
form.append("status", "new");
form.append("File", "img.jpeg");
var settings = {
"url": "https://api.auction.io/mobileapi/createauctioniolot",
"method": "POST",
"timeout": 0,
"headers": {
"Cookie": "connect.sid=s%3AnblO-pCZH_gCEYWiArEpTBuLPC-5LkRz.Swt2lduC%2BcrYj3xrZeJ47atXAkKF7K7G736mFv0o%2FgA"
},
"processData": false,
"mimeType": "multipart/form-data",
"contentType": false,
"data": form
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var https = require('follow-redirects').https;
var fs = require('fs');
var options = {
'method': 'POST',
'hostname': 'api.auction.io',
'path': '/mobileapi/createauctioniolot',
'headers': {
'Cookie': 'connect.sid=s%3AnblO-pCZH_gCEYWiArEpTBuLPC-5LkRz.Swt2lduC%2BcrYj3xrZeJ47atXAkKF7K7G736mFv0o%2FgA'
},
'maxRedirects': 20
};
var req = https.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
var postData = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"title\"\r\n\r\ntest title\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"description\"\r\n\r\ntest desc\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"start_date\"\r\n\r\n2020\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"end_date\"\r\n\r\n2024\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"lot_id\"\r\n\r\n1\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"status\"\r\n\r\nnew\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"File\"\r\n\r\nimg.jpeg\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--";
req.setHeader('content-type', 'multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW');
req.write(postData);
req.end();
Usage and Examples
Body parameters
Name
Description
auctioniodetails
{
"title: "test",
"description: "test ",
"start_date": "2020/02/02",
"end_date": "2023/02/02",
"lot_id": "1",
"status": "open"
}
Responses
Status: 200 - Success
{
"title: "string",
"description: "string",
"start_date": "date",
"end_date": "date",
"lot_id": "number",
"status": "string"
}
{
"success": false,
"error": true,
"data": {
"error": "Invaild File type"
}
}
Responses
Status: 302 - Error
{
"title: "string",
"description: "string",
"start_date": "date",
"end_date": "date",
"lot_id": "number",
"status": "string"
}
{
"status": "no",
"message": "Error in Request"
}
Edit Auction.io Lots
POST
https://api.auction.io/mobileapi/createauctioniolot
Usage and Examples
curl --location --request POST 'https://api.auction.io/mobileapi/createauctioniolot' \
--header 'Cookie: connect.sid=s%3AnblO-pCZH_gCEYWiArEpTBuLPC-5LkRz.Swt2lduC%2BcrYj3xrZeJ47atXAkKF7K7G736mFv0o%2FgA' \
--form 'title=test title' \
--form 'description=test desc' \
--form 'start_date=2020' \
--form 'end_date=2024' \
--form 'lot_id=1' \
--form 'status=new' \
--form 'auctionioid=1' \
--form 'File=img.jpeg'
var form = new FormData();
form.append("title", "test title");
form.append("description", "test desc");
form.append("start_date", "2020");
form.append("end_date", "2024");
form.append("lot_id", "1");
form.append("status", "new");
form.append("auctionioid", "1");
form.append("File", "img.jpeg");
var settings = {
"url": "https://api.auction.io/mobileapi/createauctioniolot",
"method": "POST",
"timeout": 0,
"headers": {
"Cookie": "connect.sid=s%3AnblO-pCZH_gCEYWiArEpTBuLPC-5LkRz.Swt2lduC%2BcrYj3xrZeJ47atXAkKF7K7G736mFv0o%2FgA"
},
"processData": false,
"mimeType": "multipart/form-data",
"contentType": false,
"data": form
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var https = require('follow-redirects').https;
var fs = require('fs');
var options = {
'method': 'POST',
'hostname': 'api.auction.io',
'path': '/mobileapi/createauctioniolot',
'headers': {
'Cookie': 'connect.sid=s%3AnblO-pCZH_gCEYWiArEpTBuLPC-5LkRz.Swt2lduC%2BcrYj3xrZeJ47atXAkKF7K7G736mFv0o%2FgA'
},
'maxRedirects': 20
};
var req = https.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
var postData = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"title\"\r\n\r\ntest title\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"description\"\r\n\r\ntest desc\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"start_date\"\r\n\r\n2020\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"end_date\"\r\n\r\n2024\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"lot_id\"\r\n\r\n1\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"status\"\r\n\r\nnew\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"File\"\r\n\r\nimg.jpeg\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--";
req.setHeader('content-type', 'multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW');
req.write(postData);
req.end();
Usage and Examples
Body parameters
Name
Description
auctioniodetails
{
"title: "test",
"description: "test ",
"start_date": "2020/02/02",
"end_date": "2023/02/02",
"lot_id": "1",
"status": "open",
"auctionioid": "1"
}
Responses
Status: 200 - Success
{
"title: "string",
"description: "string",
"start_date": "date",
"end_date": "date",
"lot_id": "number",
"status": "string"
}
{
"success": false,
"error": true,
"data": {
"error": "Invaild File type"
}
}
Responses
Status: 302 - Error
{
"title: "string",
"description: "string",
"start_date": "date",
"end_date": "date",
"lot_id": "number",
"status": "string"
}
{
"status": "no",
"message": "Error in Request"
}
Add New Credit Card
POST
api.auction.io/auctioniopay
Usage and Examples
curl --location --request POST 'api.auction.io/auctioniopay' \
--header 'Content-Type: application/json' \
--header 'Cookie: connect.sid=s%3AnblO-pCZH_gCEYWiArEpTBuLPC-5LkRz.Swt2lduC%2BcrYj3xrZeJ47atXAkKF7K7G736mFv0o%2FgA' \
--data-raw '{
"card_id": 0,
"cardtoken": 4111111111111111,
"card_name": "asdfsa123123",
"card_expiry_month": 12,
"card_expiry_year": 2030
}'
var settings = {
"url": "api.auction.io/auctioniopay",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/json",
"Cookie": "connect.sid=s%3AnblO-pCZH_gCEYWiArEpTBuLPC-5LkRz.Swt2lduC%2BcrYj3xrZeJ47atXAkKF7K7G736mFv0o%2FgA"
},
"data": JSON.stringify({"card_id":0,"cardtoken":4111111111111111,"card_name":"asdfsa123123","card_expiry_month":12,"card_expiry_year":2030}),
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var https = require('follow-redirects').https;
var fs = require('fs');
var options = {
'method': 'POST',
'hostname': 'api.auction.io',
'path': '/auctioniopay',
'headers': {
'Content-Type': 'application/json',
'Cookie': 'connect.sid=s%3AnblO-pCZH_gCEYWiArEpTBuLPC-5LkRz.Swt2lduC%2BcrYj3xrZeJ47atXAkKF7K7G736mFv0o%2FgA'
},
'maxRedirects': 20
};
var req = https.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
var postData = JSON.stringify({"card_id":0,"cardtoken":4111111111111111,"card_name":"asdfsa123123","card_expiry_month":12,"card_expiry_year":2030});
req.write(postData);
req.end();
Usage and Examples
Body parameters
Name
Description
carddetails
{
"card_id": 0,
"cardtoken": 4111111111111111,
"card_name": "asdfsa123123",
"card_expiry_month": 12,
"card_expiry_year": 2030
}
Responses
Status: 200 - Success
{
"card_id": "number",
"cardtoken": "number",
"card_name": "string",
"card_expiry_month": "date",
"card_expiry_year": "date"
}
Responses
Status: 302 - Error
{
"card_id": "number",
"cardtoken": "number",
"card_name": "string",
"card_expiry_month": "date",
"card_expiry_year": "date"
}
{
"status": "no",
"message": "Error in Request"
}
POST
api.auction.io/mobileapi/send_contactus
Usage and Examples
Body parameters
Name
Description
contactdetails
{
"name": "test",
"from_email": "test@gmail.com",
"phone_number": "+91 9029090922",
"subject": "Test",
"messages": "test message",
"to_email": "dasd@gmil.com",
"from_id": 4,
"To_id": 5
}
Responses
Status: 200 - Success
Responses
Status: 302 - Error
View Invoice
POST
api.auction.io/mobileapi/send_contactus
Usage and Examples
curl --location --request POST 'api.auction.io/mobileapi/send_contactus' \
--header 'Content-Type: application/json' \
--header 'Cookie: connect.sid=s%3AnblO-pCZH_gCEYWiArEpTBuLPC-5LkRz.Swt2lduC%2BcrYj3xrZeJ47atXAkKF7K7G736mFv0o%2FgA' \
--data-raw '{
"name": "test",
"from_email": "test@gmail.com",
"phone_number": "+91 9029090922",
"subject": "Test",
"messages": "test message",
"to_email": "dasd@gmil.com",
"from_id": 4,
"To_id": 5
}'
var settings = {
"url": "api.auction.io/mobileapi/send_contactus",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/json",
"Cookie": "connect.sid=s%3AnblO-pCZH_gCEYWiArEpTBuLPC-5LkRz.Swt2lduC%2BcrYj3xrZeJ47atXAkKF7K7G736mFv0o%2FgA"
},
"data": JSON.stringify({"name":"test","from_email":"test@gmail.com","phone_number":"+91 9029090922","subject":"Test","messages":"test message","to_email":"dasd@gmil.com","from_id":4,"To_id":5}),
};
$.ajax(settings).done(function (response) {
console.log(response);
});
Usage and Examples
Body parameters
Name
Description
invoicedetails
Responses
Status: 200 - Success
Responses
Status: 302 - Error
{
"status": "no",
"message": "Error in Request"
}
View Invoice
POST
api.auction.io/mobileapi/getinvoicedetails
Usage and Examples
curl --location --request POST 'api.auction.io/mobileapi/send_contactus' \
--header 'Content-Type: application/json' \
--header 'Cookie: connect.sid=s%3AnblO-pCZH_gCEYWiArEpTBuLPC-5LkRz.Swt2lduC%2BcrYj3xrZeJ47atXAkKF7K7G736mFv0o%2FgA' \
--data-raw '{
"name": "test",
"from_email": "test@gmail.com",
"phone_number": "+91 9029090922",
"subject": "Test",
"messages": "test message",
"to_email": "dasd@gmil.com",
"from_id": 4,
"To_id": 5
}'
var settings = {
"url": "api.auction.io/mobileapi/send_contactus",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/json",
"Cookie": "connect.sid=s%3AnblO-pCZH_gCEYWiArEpTBuLPC-5LkRz.Swt2lduC%2BcrYj3xrZeJ47atXAkKF7K7G736mFv0o%2FgA"
},
"data": JSON.stringify({"name":"test","from_email":"test@gmail.com","phone_number":"+91 9029090922","subject":"Test","messages":"test message","to_email":"dasd@gmil.com","from_id":4,"To_id":5}),
};
$.ajax(settings).done(function (response) {
console.log(response);
});
Usage and Examples
Body parameters
Name
Description
invoicedetails
Responses
Status: 200 - Success
Responses
Status: 302 - Error
{
"status": "no",
"message": "Error in Request"
}
Blog
POST
api.auction.io/mobileapi/getblog
Usage and Examples
curl --location --request POST 'https://api.auction.io/mobileapi/getblog' \
--header 'Cookie: connect.sid=s%3AnblO-pCZH_gCEYWiArEpTBuLPC-5LkRz.Swt2lduC%2BcrYj3xrZeJ47atXAkKF7K7G736mFv0o%2FgA' \
--data-raw ''
var settings = {
"url": "https://api.auction.io/mobileapi/getblog",
"method": "POST",
"timeout": 0,
"headers": {
"Cookie": "connect.sid=s%3AnblO-pCZH_gCEYWiArEpTBuLPC-5LkRz.Swt2lduC%2BcrYj3xrZeJ47atXAkKF7K7G736mFv0o%2FgA"
},
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var https = require('follow-redirects').https;
var fs = require('fs');
var options = {
'method': 'POST',
'hostname': 'api.auction.io',
'path': '/mobileapi/getblog',
'headers': {
'Cookie': 'connect.sid=s%3AnblO-pCZH_gCEYWiArEpTBuLPC-5LkRz.Swt2lduC%2BcrYj3xrZeJ47atXAkKF7K7G736mFv0o%2FgA'
},
'maxRedirects': 20
};
var req = https.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
req.end();
Responses
Status: 200 - Success
Responses
Status: 302 - Error
{
"status": "no",
"message": "Error in Request"
}
Shipping
POST
https://api.auction.io/auctioniopay/shippingapi
Usage and Examples
curl --location --request POST 'https://api.auction.io/auctioniopay/shippingapi' \
--header 'Content-Type: application/json' \
--header 'Cookie: connect.sid=s%3AnblO-pCZH_gCEYWiArEpTBuLPC-5LkRz.Swt2lduC%2BcrYj3xrZeJ47atXAkKF7K7G736mFv0o%2FgA' \
--data-raw '{
"mode": "sandbox",
"invoiceid": 1003,
"userid": 123,
"first_name": "sathish",
"last_name": "auctionio",
"shipAmt": 20,
"totalInvoice": 50,
"salesAmt": 10,
"phone": 8695685029,
"zipcode": 72053,
"state": "taxes",
"city": "dallas",
"address1": "testauctionio",
"file_name": "sample.jpg",
"proid": 23,
"title": "test",
"product_amount": 20
}'
var settings = {
"url": "https://api.auction.io/auctioniopay/shippingapi",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/json",
"Cookie": "connect.sid=s%3AnblO-pCZH_gCEYWiArEpTBuLPC-5LkRz.Swt2lduC%2BcrYj3xrZeJ47atXAkKF7K7G736mFv0o%2FgA"
},
"data": JSON.stringify({"mode":"sandbox","invoiceid":1003,"userid":123,"first_name":"sathish","last_name":"auctionio","shipAmt":20,"totalInvoice":50,"salesAmt":10,"phone":8695685029,"zipcode":72053,"state":"taxes","city":"dallas","address1":"testauctionio","file_name":"sample.jpg","proid":23,"title":"test","product_amount":20}),
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var https = require('follow-redirects').https;
var fs = require('fs');
var options = {
'method': 'POST',
'hostname': 'api.auction.io',
'path': '/auctioniopay/shippingapi',
'headers': {
'Content-Type': 'application/json',
'Cookie': 'connect.sid=s%3AnblO-pCZH_gCEYWiArEpTBuLPC-5LkRz.Swt2lduC%2BcrYj3xrZeJ47atXAkKF7K7G736mFv0o%2FgA'
},
'maxRedirects': 20
};
var req = https.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
var postData = JSON.stringify({"mode":"sandbox","invoiceid":1003,"userid":123,"first_name":"sathish","last_name":"auctionio","shipAmt":20,"totalInvoice":50,"salesAmt":10,"phone":8695685029,"zipcode":72053,"state":"taxes","city":"dallas","address1":"testauctionio","file_name":"sample.jpg","proid":23,"title":"test","product_amount":20});
req.write(postData);
req.end();
Usage and Examples
Body parameters
Name
Description
shippingdetails
{
"mode": "sandbox",
"invoiceid": 1003,
"userid": 123,
"first_name": "sathish",
"last_name": "auctionio",
"shipAmt": 20,
"totalInvoice": 50,
"salesAmt": 10,
"phone": 8695685029,
"zipcode": 72053,
"state": "taxes",
"city": "dallas",
"address1": "testauctionio",
"file_name": "sample.jpg",
"proid": 23,
"title": "test",
"product_amount": 20
}
Responses
Status: 200 - Success
Responses
Status: 302 - Error
{
"status": "no",
"message": "Error in Request"
}
Shipping
POST
https://api.auction.io/mobileapi/savebidsplits
Usage and Examples
curl --location --request POST 'https://api.auction.io/mobileapi/savebidsplits' \
--header 'Content-Type: application/json' \
--header 'Cookie: connect.sid=s%3AnblO-pCZH_gCEYWiArEpTBuLPC-5LkRz.Swt2lduC%2BcrYj3xrZeJ47atXAkKF7K7G736mFv0o%2FgA' \
--data-raw '{
"bids_id": "sandbox",
"bidAmount": 1003,
"project_id": 123,
"fieldA": "sathish",
"fieldB": "auctionio2",
"fieldC": "auctionio1",
"fieldD": "auctionio3",
"fieldE": "auctionio4",
"fieldF": "auctionio5"
}'
var settings = {
"url": "https://api.auction.io/mobileapi/savebidsplits",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/json",
"Cookie": "connect.sid=s%3AnblO-pCZH_gCEYWiArEpTBuLPC-5LkRz.Swt2lduC%2BcrYj3xrZeJ47atXAkKF7K7G736mFv0o%2FgA"
},
"data": JSON.stringify({"bids_id":"sandbox","bidAmount":1003,"project_id":123,"fieldA":"sathish","fieldB":"auctionio2","fieldC":"auctionio1","fieldD":"auctionio3","fieldE":"auctionio4","fieldF":"auctionio5"}),
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var https = require('follow-redirects').https;
var fs = require('fs');
var options = {
'method': 'POST',
'hostname': 'api.auction.io',
'path': '/mobileapi/savebidsplits',
'headers': {
'Content-Type': 'application/json',
'Cookie': 'connect.sid=s%3AnblO-pCZH_gCEYWiArEpTBuLPC-5LkRz.Swt2lduC%2BcrYj3xrZeJ47atXAkKF7K7G736mFv0o%2FgA'
},
'maxRedirects': 20
};
var req = https.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
var postData = JSON.stringify({"bids_id":"sandbox","bidAmount":1003,"project_id":123,"fieldA":"sathish","fieldB":"auctionio2","fieldC":"auctionio1","fieldD":"auctionio3","fieldE":"auctionio4","fieldF":"auctionio5"});
req.write(postData);
req.end();
Usage and Examples
Body parameters
Name
Description
save-bidpingdetails
{
"mode": "sandbox",
"invoiceid": 1003,
"userid": 123,
"first_name": "sathish",
"last_name": "auctionio",
"save-bidAmt": 20,
"totalInvoice": 50,
"salesAmt": 10,
"phone": 8695685029,
"zipcode": 72053,
"state": "taxes",
"city": "dallas",
"address1": "testauctionio",
"file_name": "sample.jpg",
"proid": 23,
"title": "test",
"product_amount": 20
}
Responses
Status: 200 - Success
Responses
Status: 302 - Error
{
"status": "no",
"message": "Error in Request"
}
Paypal
POST
https://api.auction.io/auctioniopay/successpayidapi
Usage and Examples
curl --location --request POST 'https://api.auction.io/auctioniopay/successpayidapi' \
--header 'Content-Type: application/json' \
--header 'Cookie: connect.sid=s%3AnblO-pCZH_gCEYWiArEpTBuLPC-5LkRz.Swt2lduC%2BcrYj3xrZeJ47atXAkKF7K7G736mFv0o%2FgA' \
--data-raw '{
"mode": "sandbox",
"userid": 1955,
"paymentId": "111"
}'
var settings = {
"url": "https://api.auction.io/auctioniopay/successpayidapi",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/json",
"Cookie": "connect.sid=s%3AnblO-pCZH_gCEYWiArEpTBuLPC-5LkRz.Swt2lduC%2BcrYj3xrZeJ47atXAkKF7K7G736mFv0o%2FgA"
},
"data": JSON.stringify({"mode":"sandbox","userid":1955,"paymentId":"111"}),
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var https = require('follow-redirects').https;
var fs = require('fs');
var options = {
'method': 'POST',
'hostname': 'api.auction.io',
'path': '/auctioniopay/successpayidapi',
'headers': {
'Content-Type': 'application/json',
'Cookie': 'connect.sid=s%3AnblO-pCZH_gCEYWiArEpTBuLPC-5LkRz.Swt2lduC%2BcrYj3xrZeJ47atXAkKF7K7G736mFv0o%2FgA'
},
'maxRedirects': 20
};
var req = https.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
var postData = JSON.stringify({"mode":"sandbox","userid":1955,"paymentId":"111"});
req.write(postData);
req.end();
Usage and Examples
Body parameters
Name
Description
paypaldetails
{
"mode": "sandbox",
"userid": 1955,
"paymentId": "111"
}
Responses
Status: 200 - Success
{
"mode": "string",
"userid": "number",
"paymentId": "number"
}
Responses
Status: 302 - Error
{
"mode": "string",
"userid": "number",
"paymentId": "number"
}
{
"success": false,
"error": true,
"data": {
"error": "Payment not completed",
"msg": "Error: {\"name\":\"INVALID_RESOURCE_ID\",\"message\":\"Requested resource ID was not found.\",\"information_link\":\"https://developer.paypal.com/docs/api/payments/#errors\",\"debug_id\":\"3d89193655150\"}"
}
}
Cancel auction.io
POST
https://api.auction.io/mobileapi/cancelauctionio
Usage and Examples
curl --location --request POST 'https://api.auction.io/mobileapi/cancelauctionio' \
--header 'Content-Type: application/json' \
--header 'Cookie: connect.sid=s%3AKQJDxvfdFvlY1y-G_6ES9Fm6ce2Jx6DP.gRYka90KSadgyVmQ5tc%2BEfIINJ2zDDRQxBxPUKOyP6s' \
--data-raw '{
"product_id": "123"
}'
var settings = {
"url": "https://api.auction.io/mobileapi/cancelauctionio",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/json",
"Cookie": "connect.sid=s%3AKQJDxvfdFvlY1y-G_6ES9Fm6ce2Jx6DP.gRYka90KSadgyVmQ5tc%2BEfIINJ2zDDRQxBxPUKOyP6s"
},
"data": JSON.stringify({"product_id":"123"}),
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var https = require('follow-redirects').https;
var fs = require('fs');
var options = {
'method': 'POST',
'hostname': 'api.auction.io',
'path': '/mobileapi/cancelauctionio',
'headers': {
'Content-Type': 'application/json',
'Cookie': 'connect.sid=s%3AKQJDxvfdFvlY1y-G_6ES9Fm6ce2Jx6DP.gRYka90KSadgyVmQ5tc%2BEfIINJ2zDDRQxBxPUKOyP6s'
},
'maxRedirects': 20
};
var req = https.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
var postData = JSON.stringify({"product_id":"123"});
req.write(postData);
req.end();
Usage and Examples
Body parameters
Name
Description
cancel-aucdetails
Responses
Status: 200 - Success
Responses
Status: 302 - Error
{
"success": false,
"error": true
}
Update Wallet
POST
https://api.auction.io/mobileapi/updateWalletUsedStatus
Usage and Examples
curl --location --request POST 'https://api.auction.io/mobileapi/updateWalletUsedStatus' \
--header 'Content-Type: application/json' \
--header 'Cookie: connect.sid=s%3AKQJDxvfdFvlY1y-G_6ES9Fm6ce2Jx6DP.gRYka90KSadgyVmQ5tc%2BEfIINJ2zDDRQxBxPUKOyP6s' \
--data-raw '{
"bidPaymentId": "123"
}'
var settings = {
"url": "https://api.auction.io/mobileapi/updateWalletUsedStatus",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/json",
"Cookie": "connect.sid=s%3AKQJDxvfdFvlY1y-G_6ES9Fm6ce2Jx6DP.gRYka90KSadgyVmQ5tc%2BEfIINJ2zDDRQxBxPUKOyP6s"
},
"data": JSON.stringify({"bidPaymentId":"123"}),
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var https = require('follow-redirects').https;
var fs = require('fs');
var options = {
'method': 'POST',
'hostname': 'api.auction.io',
'path': '/mobileapi/updateWalletUsedStatus',
'headers': {
'Content-Type': 'application/json',
'Cookie': 'connect.sid=s%3AKQJDxvfdFvlY1y-G_6ES9Fm6ce2Jx6DP.gRYka90KSadgyVmQ5tc%2BEfIINJ2zDDRQxBxPUKOyP6s'
},
'maxRedirects': 20
};
var req = https.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
var postData = JSON.stringify({"bidPaymentId":"123"});
req.write(postData);
req.end();
Usage and Examples
Body parameters
Name
Description
upd-walldetails
Responses
Status: 200 - Success
{
"bidPaymentId": "number"
}
Responses
Status: 302 - Error
{
"success": false,
"error": true
}
View Feedback
GET
https://api.auction.io/mobileapi/viewfeedback/123
Usage and Examples
curl --location --request GET 'https://api.auction.io/mobileapi/viewfeedback/123' \
--header 'Cookie: connect.sid=s%3AKQJDxvfdFvlY1y-G_6ES9Fm6ce2Jx6DP.gRYka90KSadgyVmQ5tc%2BEfIINJ2zDDRQxBxPUKOyP6s' \
--data-raw ''
var settings = {
"url": "https://api.auction.io/mobileapi/viewfeedback/123",
"method": "GET",
"timeout": 0,
"headers": {
"Cookie": "connect.sid=s%3AKQJDxvfdFvlY1y-G_6ES9Fm6ce2Jx6DP.gRYka90KSadgyVmQ5tc%2BEfIINJ2zDDRQxBxPUKOyP6s"
},
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var https = require('follow-redirects').https;
var fs = require('fs');
var options = {
'method': 'GET',
'hostname': 'api.auction.io',
'path': '/mobileapi/viewfeedback/123',
'headers': {
'Cookie': 'connect.sid=s%3AKQJDxvfdFvlY1y-G_6ES9Fm6ce2Jx6DP.gRYka90KSadgyVmQ5tc%2BEfIINJ2zDDRQxBxPUKOyP6s'
},
'maxRedirects': 20
};
var req = https.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
req.end();
Responses
Status: 200 - Success
Responses
Status: 302 - Error
{
"success": false,
"error": true
}
Submit Feedback
POST
https://api.auction.io/mobileapi/feedback/add
Usage and Examples
curl --location --request POST 'https://api.auction.io/mobileapi/feedback/add?rating1=this.state.rating1' \
--header 'Cookie: connect.sid=s%3AEjbPTH-lUTQu7frG3LCTrE12LiNagU78.dqHar1XSloflSmFYLxZnGM9xLveuCW64JR3%2F4y%2FRBgA' \
--data-raw ''
var settings = {
"url": "https://api.auction.io/mobileapi/feedback/add?rating1=this.state.rating1",
"method": "POST",
"timeout": 0,
"headers": {
"Cookie": "connect.sid=s%3AEjbPTH-lUTQu7frG3LCTrE12LiNagU78.dqHar1XSloflSmFYLxZnGM9xLveuCW64JR3%2F4y%2FRBgA"
},
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var https = require('follow-redirects').https;
var fs = require('fs');
var options = {
'method': 'POST',
'hostname': 'api.auction.io',
'path': '/mobileapi/feedback/add?rating1=this.state.rating1',
'headers': {
'Cookie': 'connect.sid=s%3AEjbPTH-lUTQu7frG3LCTrE12LiNagU78.dqHar1XSloflSmFYLxZnGM9xLveuCW64JR3%2F4y%2FRBgA'
},
'maxRedirects': 20
};
var req = https.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
req.end();
Params
[{"key":"rating1","value":"this.state.rating1","equals":true,"description":null,"enabled":true}]
Responses
Status: 200 - Success
Responses
Status: 302 - Error
{
"success": false,
"error": true
}
Quick Books (For Invoice)
GET
https://api.auction.io/mobileapi/quickbookExportInvoices
Usage and Examples
curl --location --request GET 'https://api.auction.io/mobileapi/quickbookExportInvoices' \
--header 'Cookie: connect.sid=s%3AEjbPTH-lUTQu7frG3LCTrE12LiNagU78.dqHar1XSloflSmFYLxZnGM9xLveuCW64JR3%2F4y%2FRBgA' \
--data-raw ''
var settings = {
"url": "https://api.auction.io/mobileapi/quickbookExportInvoices",
"method": "GET",
"timeout": 0,
"headers": {
"Cookie": "connect.sid=s%3AEjbPTH-lUTQu7frG3LCTrE12LiNagU78.dqHar1XSloflSmFYLxZnGM9xLveuCW64JR3%2F4y%2FRBgA"
},
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var https = require('follow-redirects').https;
var fs = require('fs');
var options = {
'method': 'GET',
'hostname': 'api.auction.io',
'path': '/mobileapi/quickbookExportInvoices',
'headers': {
'Cookie': 'connect.sid=s%3AEjbPTH-lUTQu7frG3LCTrE12LiNagU78.dqHar1XSloflSmFYLxZnGM9xLveuCW64JR3%2F4y%2FRBgA'
},
'maxRedirects': 20
};
var req = https.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
req.end();
Responses
Status: 200 - Success
Responses
Status: 302 - Error
{
"success": false,
"error": true
}
Quick Books (For Products)
GET
https://api.auction.io/mobileapi/quickbookExportProducts
Usage and Examples
curl --location --request GET 'https://api.auction.io/mobileapi/quickbookExportProducts' \
--header 'Cookie: connect.sid=s%3AEjbPTH-lUTQu7frG3LCTrE12LiNagU78.dqHar1XSloflSmFYLxZnGM9xLveuCW64JR3%2F4y%2FRBgA' \
--data-raw ''
var settings = {
"url": "https://api.auction.io/mobileapi/quickbookExportProducts",
"method": "GET",
"timeout": 0,
"headers": {
"Cookie": "connect.sid=s%3AEjbPTH-lUTQu7frG3LCTrE12LiNagU78.dqHar1XSloflSmFYLxZnGM9xLveuCW64JR3%2F4y%2FRBgA"
},
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var https = require('follow-redirects').https;
var fs = require('fs');
var options = {
'method': 'GET',
'hostname': 'api.auction.io',
'path': '/mobileapi/quickbookExporProducts',
'headers': {
'Cookie': 'connect.sid=s%3AEjbPTH-lUTQu7frG3LCTrE12LiNagU78.dqHar1XSloflSmFYLxZnGM9xLveuCW64JR3%2F4y%2FRBgA'
},
'maxRedirects': 20
};
var req = https.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
req.end();
Responses
Status: 200 - Success
Responses
Status: 302 - Error
{
"success": false,
"error": true
}
Set Price For Refurbished Products (Admin Side)
POST
https://api.auction.io/admincp/listing/setPriceRefurbished
Usage and Examples
curl --location --request POST 'https://api.auction.io/admincp/listing/setPriceRefurbished' roducts dmin ide --header 'Content-Type: application/json' \
--header 'Cookie: connect.sid=s%3AEjbPTH-lUTQu7frG3LCTrE12LiNagU78.dqHar1XSloflSmFYLxZnGM9xLveuCW64JR3%2F4y%2FRBgA' \
--data-raw '{
"brand" : "abc",
"model" : "abc",
"memory" : "abc",
"network" : "bc",
"price" : 12
} '
var settings = {
"url": "https://api.auction.io/admincp/listing/setPriceRefurbished",roducts dmin ide "method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/json",
"Cookie": "connect.sid=s%3AEjbPTH-lUTQu7frG3LCTrE12LiNagU78.dqHar1XSloflSmFYLxZnGM9xLveuCW64JR3%2F4y%2FRBgA"
},
"data": JSON.stringify({"brand":"abc","model":"abc","memory":"abc","network":"bc","price":12}),
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var https = require('follow-redirects').https;
var fs = require('fs');
var options = {
'method': 'POST',
'hostname': 'api.auction.io',
'path': '/admincp/listing/setPriceRefurbished',roducts dmin ide 'headers': {
'Content-Type': 'application/json',
'Cookie': 'connect.sid=s%3AEjbPTH-lUTQu7frG3LCTrE12LiNagU78.dqHar1XSloflSmFYLxZnGM9xLveuCW64JR3%2F4y%2FRBgA'
},
'maxRedirects': 20
};
var req = https.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
var postData = JSON.stringify({"brand":"abc","model":"abc","memory":"abc","network":"bc","price":12});
req.write(postData);
req.end();
Usage and Examples
Body parameters
Name
Description
product details
{
"brand" : "abc",
"model" : "abc",
"memory" : "abc",
"network" : "bc",
"price" : 12
}
Responses
Status: 200 - Success
Responses
Status: 302 - Error
{
"success": false,
"error": true
}
Buyer Purchase History
POST
https://api.auction.io/mobileapi/buyerPurchaseHistory
Usage and Examples
curl --location --request POST 'https://api.auction.io/mobileapi/buyerPurchaseHistory' \
--header 'Content-Type: application/json' \
--header 'Cookie: connect.sid=s%3AEjbPTH-lUTQu7frG3LCTrE12LiNagU78.dqHar1XSloflSmFYLxZnGM9xLveuCW64JR3%2F4y%2FRBgA' \
--data-raw '{
"sh_limit" : 5,
"page" : 2
}
'
var settings = {
"url": "https://api.auction.io/mobileapi/buyerPurchaseHistory",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/json",
"Cookie": "connect.sid=s%3AEjbPTH-lUTQu7frG3LCTrE12LiNagU78.dqHar1XSloflSmFYLxZnGM9xLveuCW64JR3%2F4y%2FRBgA"
},
"data": JSON.stringify({"sh_limit":5,"page":2}),
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var https = require('follow-redirects').https;
var fs = require('fs');
var options = {
'method': 'POST',
'hostname': 'api.auction.io',
'path': '/mobileapi/buyerPurchaseHistory',
'headers': {
'Content-Type': 'application/json',
'Cookie': 'connect.sid=s%3AEjbPTH-lUTQu7frG3LCTrE12LiNagU78.dqHar1XSloflSmFYLxZnGM9xLveuCW64JR3%2F4y%2FRBgA'
},
'maxRedirects': 20
};
var req = https.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
var postData = JSON.stringify({"sh_limit":5,"page":2});
req.write(postData);
req.end();
Usage and Examples
Body parameters
Name
Description
details
{
"sh_limit" : 5,
"page" : 2
}
Responses
Status: 200 - Success
Responses
Status: 302 - Error
{
"success": false,
"error": true
}
Search Refurbished Product
POST
https://api.auction.io/mobileapi/searchRefurbishedProduct
Usage and Examples
curl --location --request POST 'https://api.auction.io/mobileapi/searchRefurbishedProduct' \
--header 'Content-Type: application/json' \
--header 'Cookie: connect.sid=s%3AEjbPTH-lUTQu7frG3LCTrE12LiNagU78.dqHar1XSloflSmFYLxZnGM9xLveuCW64JR3%2F4y%2FRBgA' \
--data-raw '{
"limit": 5,
"content_head3": "test",
"query": "test text"
}'
var settings = {
"url": "https://api.auction.io/mobileapi/searchRefurbishedProduct",
"method": "POST",
"timeout": 0,
"headers": {
"Content-Type": "application/json",
"Cookie": "connect.sid=s%3AEjbPTH-lUTQu7frG3LCTrE12LiNagU78.dqHar1XSloflSmFYLxZnGM9xLveuCW64JR3%2F4y%2FRBgA"
},
"data": JSON.stringify({"limit":5,"content_head3":"test","query":"test text"}),
};
$.ajax(settings).done(function (response) {
console.log(response);
});
var https = require('follow-redirects').https;
var fs = require('fs');
var options = {
'method': 'POST',
'hostname': 'api.auction.io',
'path': '/mobileapi/searchRefurbishedProduct',
'headers': {
'Content-Type': 'application/json',
'Cookie': 'connect.sid=s%3AEjbPTH-lUTQu7frG3LCTrE12LiNagU78.dqHar1XSloflSmFYLxZnGM9xLveuCW64JR3%2F4y%2FRBgA'
},
'maxRedirects': 20
};
var req = https.request(options, function (res) {
var chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
var body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
var postData = JSON.stringify({"limit":5,"content_head3":"test","query":"test text"});
req.write(postData);
req.end();
Usage and Examples
Body parameters
Name
Description
details
{
"limit" : 5,
"content_head3" : "test",
"query" : "test text"
}
Responses
Status: 200 - Success
Responses
Status: 302 - Error
{
"success": false,
"error": true
}
Staggered API
This api is used for creating and updating api
if ending_enable=1 means, we have to edit the lots closing date based on ending min value and a group of count
if ending_enable=0 means we have not updated the lots ending date based on ending mins value
Create
API used to create Auction.io based on lot id.
POST
https://api.auction.io/mobileapi/createauctioniolot
Headers
Content-Type:application/json, X-SITE-ID:{{X_SITE_ID}}, X-R-DOMAIN:{{X_R_DOMAIN}}, Authorization:{{seller_token}}
Usage and Examples
Body parameters
Name
Description
Auction.io details
{
title: auction.io,
description: description,
start_date: Sat May 16 2020 13:26:00 GMT 0530 (India Standard Time),
end_date: Wed May 27 2020 13:25:00 GMT 0530 (India Standard Time),
status: open,
grouping: 1,
product_image: (binary),
lot_id: 342,
ending_enable=1,
ending_items=4,
ending_mints=1
}
Responses
Status: 200 - Success
{
message: "Success"
status: "true
}
Responses
Status: 302 - Error
{
"success": false,
"error": true
}
Update
API used to update Auction.io based on lot id.
POST
https://api.auction.io/mobileapi/createauctioniolot
Headers
Content-Type:application/json, X-SITE-ID:{{X_SITE_ID}}, X-R-DOMAIN:{{X_R_DOMAIN}}, Authorization:{{seller_token}}
Usage and Examples
Body parameters
Name
Description
Auction.io details
{
title: auction.io,
description: description,
start_date: Sat May 16 2020 13:26:00 GMT 0530 (India Standard Time),
end_date: Wed May 27 2020 13:25:00 GMT 0530 (India Standard Time),
status: open,
grouping: 1,
product_image: (binary),
lot_id: 342,
auctionioid:58,
ending_enable=1,
ending_items=4,
ending_mints=1
}
Responses
Status: 200 - Success
{
message: "Success"
status: "true
}
Responses
Status: 302 - Error
{
"success": false,
"error": true
}
Add to cart
This api is used for add product to cart.
GET
http://localhost:2001/mobileapi/addtocart?id=2691&qty=1
Headers
key: "Authorization",
value: "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjb21wYW55X25hbWUiOiIiLCJwYXNzd29yZF9oYXNoIjoiMGU5NjlhYzYwMzgxODYwNGVhZDkyNmMwZTQ4OWYwNzkiLCJjaXR5IjoiQWxhc2thIiwicmVnaXN0ZXJlZF9udW1iZXIiOiIiLCJ0ZXJ0aWFyeV9maXJzdF9uYW1lIjoiIiwibm1mc19udW1iZXIiOiIiLCJzZWNvbmRhcnlfbWFpbGluZ19hZGRyZXNzIjoiIiwidGVydGlhcnlfbWFpbGluZ19hZGRyZXNzIjoiIiwiZmlyc3RfbmFtZSI6InRlc3QgZmlyc3RuYW1lIiwiYWx0ZXJuYXRlX3Bob25lIjoiIiwibGFuZGluZ19wb3J0IjoiIiwiYWRtaW4iOjAsImxhc3RfbmFtZSI6Imxhc3RuYW1lIiwiaXJpZGl1bV9waG9uZSI6IiIsImNhcmRfcHJvZmlsZWlkIjoiIiwicGFzc3dvcmRfc2FsdCI6IjEyMzQ1IiwidGVydGlhcnlfcGhvbmUiOiIiLCJlbWFpbCI6InRlc3R1c2VyQGdtYWlsIiwiYXZhdGFyIjoiIiwicGhvbmUiOiI1NTY3Nzc4OTg4IiwibWlkZGxlX25hbWUiOiIiLCJpZCI6MjQwNiwidmhmX2NoYW5uZWwiOiIiLCJzZWNvbmRhcnlfcGhvbmUiOiIiLCJzYXRfcGhvbmUiOiIiLCJyb2xlIjoiIiwiY2FyZF9wYXltZW50aWQiOiIiLCJjYXRlZ29yeSI6IiIsIm1haWxpbmdfYWRkcmVzcyI6IiIsInN0YXR1cyI6ImFjdGl2ZSIsImxpY2Vuc2VfbnVtYmVyIjoiIiwidmVzc2VsX25hbWUiOiIiLCJpc2VtcCI6MCwiY291bnRyeSI6IlVTQSIsInN0YXRlIjoiQWxhc2thIiwidmVyaWZ5X3BheXBhbCI6MCwidWlkIjpudWxsLCJsaV9pZCI6IiIsInppcCI6IjYwMDAwOSIsInNlY29uZGFyeV9maXJzdF9uYW1lIjoiIiwiaWF0IjoxNTk0NzIzNzA1fQ.ExKjc4cHisg4pqn2QWbcmxN3TMRJUvxcurc89YDGQE0"
Usage and Examples
Body parameters
Name
Description
Auction.io details
{
mode:params{
"id":"2534",
"qty":"2"
}
}
Responses
Status: 200 - Success
{
"id":"Number",
"qty":"Number"
}
Remove cart
This api is used for remove product to cart.
GET
http://localhost:2001/mobileapi/removefromcart?id=1610
Headers
key: "Authorization",
value: "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjb21wYW55X25hbWUiOiIiLCJwYXNzd29yZF9oYXNoIjoiMGU5NjlhYzYwMzgxODYwNGVhZDkyNmMwZTQ4OWYwNzkiLCJjaXR5IjoiQWxhc2thIiwicmVnaXN0ZXJlZF9udW1iZXIiOiIiLCJ0ZXJ0aWFyeV9maXJzdF9uYW1lIjoiIiwibm1mc19udW1iZXIiOiIiLCJzZWNvbmRhcnlfbWFpbGluZ19hZGRyZXNzIjoiIiwidGVydGlhcnlfbWFpbGluZ19hZGRyZXNzIjoiIiwiZmlyc3RfbmFtZSI6InRlc3QgZmlyc3RuYW1lIiwiYWx0ZXJuYXRlX3Bob25lIjoiIiwibGFuZGluZ19wb3J0IjoiIiwiYWRtaW4iOjAsImxhc3RfbmFtZSI6Imxhc3RuYW1lIiwiaXJpZGl1bV9waG9uZSI6IiIsImNhcmRfcHJvZmlsZWlkIjoiIiwicGFzc3dvcmRfc2FsdCI6IjEyMzQ1IiwidGVydGlhcnlfcGhvbmUiOiIiLCJlbWFpbCI6InRlc3R1c2VyQGdtYWlsIiwiYXZhdGFyIjoiIiwicGhvbmUiOiI1NTY3Nzc4OTg4IiwibWlkZGxlX25hbWUiOiIiLCJpZCI6MjQwNiwidmhmX2NoYW5uZWwiOiIiLCJzZWNvbmRhcnlfcGhvbmUiOiIiLCJzYXRfcGhvbmUiOiIiLCJyb2xlIjoiIiwiY2FyZF9wYXltZW50aWQiOiIiLCJjYXRlZ29yeSI6IiIsIm1haWxpbmdfYWRkcmVzcyI6IiIsInN0YXR1cyI6ImFjdGl2ZSIsImxpY2Vuc2VfbnVtYmVyIjoiIiwidmVzc2VsX25hbWUiOiIiLCJpc2VtcCI6MCwiY291bnRyeSI6IlVTQSIsInN0YXRlIjoiQWxhc2thIiwidmVyaWZ5X3BheXBhbCI6MCwidWlkIjpudWxsLCJsaV9pZCI6IiIsInppcCI6IjYwMDAwOSIsInNlY29uZGFyeV9maXJzdF9uYW1lIjoiIiwiaWF0IjoxNTk0NzIzNzA1fQ.ExKjc4cHisg4pqn2QWbcmxN3TMRJUvxcurc89YDGQE0"
Usage and Examples
Body parameters
Name
Description
Auction.io details
{
mode:params{
"id":"1610"
}
}
Responses
Status: 200 - Success
Get user cart
This api is used for get all product in user cart.
GET
http://api.auction.io/mobileapi/getUserCart
Headers
key: "Authorization",
value: "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjb21wYW55X25hbWUiOiIiLCJwYXNzd29yZF9oYXNoIjoiMGU5NjlhYzYwMzgxODYwNGVhZDkyNmMwZTQ4OWYwNzkiLCJjaXR5IjoiQWxhc2thIiwicmVnaXN0ZXJlZF9udW1iZXIiOiIiLCJ0ZXJ0aWFyeV9maXJzdF9uYW1lIjoiIiwibm1mc19udW1iZXIiOiIiLCJzZWNvbmRhcnlfbWFpbGluZ19hZGRyZXNzIjoiIiwidGVydGlhcnlfbWFpbGluZ19hZGRyZXNzIjoiIiwiZmlyc3RfbmFtZSI6InRlc3QgZmlyc3RuYW1lIiwiYWx0ZXJuYXRlX3Bob25lIjoiIiwibGFuZGluZ19wb3J0IjoiIiwiYWRtaW4iOjAsImxhc3RfbmFtZSI6Imxhc3RuYW1lIiwiaXJpZGl1bV9waG9uZSI6IiIsImNhcmRfcHJvZmlsZWlkIjoiIiwicGFzc3dvcmRfc2FsdCI6IjEyMzQ1IiwidGVydGlhcnlfcGhvbmUiOiIiLCJlbWFpbCI6InRlc3R1c2VyQGdtYWlsIiwiYXZhdGFyIjoiIiwicGhvbmUiOiI1NTY3Nzc4OTg4IiwibWlkZGxlX25hbWUiOiIiLCJpZCI6MjQwNiwidmhmX2NoYW5uZWwiOiIiLCJzZWNvbmRhcnlfcGhvbmUiOiIiLCJzYXRfcGhvbmUiOiIiLCJyb2xlIjoiIiwiY2FyZF9wYXltZW50aWQiOiIiLCJjYXRlZ29yeSI6IiIsIm1haWxpbmdfYWRkcmVzcyI6IiIsInN0YXR1cyI6ImFjdGl2ZSIsImxpY2Vuc2VfbnVtYmVyIjoiIiwidmVzc2VsX25hbWUiOiIiLCJpc2VtcCI6MCwiY291bnRyeSI6IlVTQSIsInN0YXRlIjoiQWxhc2thIiwidmVyaWZ5X3BheXBhbCI6MCwidWlkIjpudWxsLCJsaV9pZCI6IiIsInppcCI6IjYwMDAwOSIsInNlY29uZGFyeV9maXJzdF9uYW1lIjoiIiwiaWF0IjoxNTk0NzIzNzA1fQ.ExKjc4cHisg4pqn2QWbcmxN3TMRJUvxcurc89YDGQE0"
Usage and Examples
Body parameters
Name
Description
Auction.io details
{
No data need to be send in form.
}
Responses
Status: 200 - Success
{
No data need to be send in form.
}
Create a new annonucement
This api is used for user create a new announcement
POST
https://api.auction.io/mobileapi/createAnnouncement
Headers
key: "Authorization",
value: "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjb21wYW55X25hbWUiOiIiLCJwYXNzd29yZF9oYXNoIjoiMGU5NjlhYzYwMzgxODYwNGVhZDkyNmMwZTQ4OWYwNzkiLCJjaXR5IjoiQWxhc2thIiwicmVnaXN0ZXJlZF9udW1iZXIiOiIiLCJ0ZXJ0aWFyeV9maXJzdF9uYW1lIjoiIiwibm1mc19udW1iZXIiOiIiLCJzZWNvbmRhcnlfbWFpbGluZ19hZGRyZXNzIjoiIiwidGVydGlhcnlfbWFpbGluZ19hZGRyZXNzIjoiIiwiZmlyc3RfbmFtZSI6InRlc3QgZmlyc3RuYW1lIiwiYWx0ZXJuYXRlX3Bob25lIjoiIiwibGFuZGluZ19wb3J0IjoiIiwiYWRtaW4iOjAsImxhc3RfbmFtZSI6Imxhc3RuYW1lIiwiaXJpZGl1bV9waG9uZSI6IiIsImNhcmRfcHJvZmlsZWlkIjoiIiwicGFzc3dvcmRfc2FsdCI6IjEyMzQ1IiwidGVydGlhcnlfcGhvbmUiOiIiLCJlbWFpbCI6InRlc3R1c2VyQGdtYWlsIiwiYXZhdGFyIjoiIiwicGhvbmUiOiI1NTY3Nzc4OTg4IiwibWlkZGxlX25hbWUiOiIiLCJpZCI6MjQwNiwidmhmX2NoYW5uZWwiOiIiLCJzZWNvbmRhcnlfcGhvbmUiOiIiLCJzYXRfcGhvbmUiOiIiLCJyb2xlIjoiIiwiY2FyZF9wYXltZW50aWQiOiIiLCJjYXRlZ29yeSI6IiIsIm1haWxpbmdfYWRkcmVzcyI6IiIsInN0YXR1cyI6ImFjdGl2ZSIsImxpY2Vuc2VfbnVtYmVyIjoiIiwidmVzc2VsX25hbWUiOiIiLCJpc2VtcCI6MCwiY291bnRyeSI6IlVTQSIsInN0YXRlIjoiQWxhc2thIiwidmVyaWZ5X3BheXBhbCI6MCwidWlkIjpudWxsLCJsaV9pZCI6IiIsInppcCI6IjYwMDAwOSIsInNlY29uZGFyeV9maXJzdF9uYW1lIjoiIiwiaWF0IjoxNTk0NzIzNzA1fQ.ExKjc4cHisg4pqn2QWbcmxN3TMRJUvxcurc89YDGQE0"
key: "Origin",
value: "grazr.moblearn.net"
Usage and Examples
Body parameters
Name
Description
Auction.io details
{
"attachment":"",
"community_id":"34",
"description":"testing",
"title:"test"
}
Responses
Status: 200 - Success
{
"attachment":"file",
"community_id":"number",
"description":"string",
"title:"String"
}
Delete annonucement
This api is used for delete a particular annonucement
POST
https://api.auction.io/mobileapi/deleteAnnouncement
Headers
key: "Authorization",
value: "B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9uYW1lIjoiIiwiaWF0IjoxNTk0NzIzNzA1fQ.ExKjc4cHisg4pqn2QWbcmxN3TMRJUvxcurc89YDGQE0"
key: "Origin",
value: "grazr.moblearn.net"
Usage and Examples
Body parameters
Name
Description
Auction.io details
Responses
Status: 200 - Success
{
""announcement_id":"Number"
}
Get AllAnnouncements
This api is used for get AllAnnouncements
POST
https://api.auction.io/mobileapi/getAllAnnouncements
Headers
key: "Authorization",
value: "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjb21wYW55X25hbWUiOiIiLCJwYXNzd29yZF9oYXNoIjoiMGU5NjlhYzYwMzgxODYwNGVhZDkyNmMwZTQ4OWYwNzkiLCJjaXR5IjoiQWxhc2thIiwicmVnaXN0ZXJlZF9udW1iZXIiOiIiLCJ0ZXJ0aWFyeV9maXJzdF9uYW1lIjoiIiwibm1mc19udW1iZXIiOiIiLCJzZWNvbmRhcnlfbWFpbGluZ19hZGRyZXNzIjoiIiwidGVydGlhcnlfbWFpbGluZ19hZGRyZXNzIjoiIiwiZmlyc3RfbmFtZSI6InRlc3QgZmlyc3RuYW1lIiwiYWx0ZXJuYXRlX3Bob25lIjoiIiwibGFuZGluZ19wb3J0IjoiIiwiYWRtaW4iOjAsImxhc3RfbmFtZSI6Imxhc3RuYW1lIiwiaXJpZGl1bV9waG9uZSI6IiIsImNhcmRfcHJvZmlsZWlkIjoiIiwicGFzc3dvcmRfc2FsdCI6IjEyMzQ1IiwidGVydGlhcnlfcGhvbmUiOiIiLCJlbWFpbCI6InRlc3R1c2VyQGdtYWlsIiwiYXZhdGFyIjoiIiwicGhvbmUiOiI1NTY3Nzc4OTg4IiwibWlkZGxlX25hbWUiOiIiLCJpZCI6MjQwNiwidmhmX2NoYW5uZWwiOiIiLCJzZWNvbmRhcnlfcGhvbmUiOiIiLCJzYXRfcGhvbmUiOiIiLCJyb2xlIjoiIiwiY2FyZF9wYXltZW50aWQiOiIiLCJjYXRlZ29yeSI6IiIsIm1haWxpbmdfYWRkcmVzcyI6IiIsInN0YXR1cyI6ImFjdGl2ZSIsImxpY2Vuc2VfbnVtYmVyIjoiIiwidmVzc2VsX25hbWUiOiIiLCJpc2VtcCI6MCwiY291bnRyeSI6IlVTQSIsInN0YXRlIjoiQWxhc2thIiwidmVyaWZ5X3BheXBhbCI6MCwidWlkIjpudWxsLCJsaV9pZCI6IiIsInppcCI6IjYwMDAwOSIsInNlY29uZGFyeV9maXJzdF9uYW1lIjoiIiwiaWF0IjoxNTk0NzIzNzA1fQ.ExKjc4cHisg4pqn2QWbcmxN3TMRJUvxcurc89YDGQE0"
key: "Origin",
value: "grazr.moblearn.net"
Usage and Examples
Body parameters
Name
Description
Auction.io details
Responses
Status: 200 - Success
{
"community_id":"Number"
}
Category API
GET
https://api.auction.io/mobileapi/getoverallcatgeory
Headers
Content-Type:application/json, X-SITE-ID:{{X_SITE_ID}}, X-R-DOMAIN:{{X_R_DOMAIN}},
Authorization:{{seller_token}}
Responses
Status: 200 - Success
{
"success": true,
"error": false,
"category_val": [
{
"id": 1,
"name": "wertrt",
"description": "aerj",
"type": "1",
"created_at": "2020-05-28T11:35:24.000Z",
"updated_at": "2020-05-28T11:35:24.000Z",
"lft": 0,
"rgt": 2,
"parent_id": 0,
"ctype": "1",
"site_id": "AS0008",
"parent_filter": "1,2",
"sub_filter": "2",
"filters": []
}
]
}
Responses
Status: 302 - Error
{
"success": false,
"error": true,
}
Filter API
GET
https://api.auction.io/mobileapi/getoverallfilter
Headers
Content-Type:application/json, X-SITE-ID:{{X_SITE_ID}}, X-R-DOMAIN:{{X_R_DOMAIN}},
Authorization:{{seller_token}}
Responses
Status: 200 - Success
{
"success": true,
"error": false,
"category_val": [
{
"id": 1,
"name": "gyty",
"description": "fdsg",
"type": "1",
"created_at": "2020-05-28T11:34:59.000Z",
"updated_at": "2020-05-28T11:34:59.000Z",
"lft": 0,
"rgt": 6,
"parent_id": 0,
"ctype": "1",
"site_id": "AS0008",
"parent_cat": "",
"sub_cat": "",
"filters": [
{
"id": 2,
"name": "ewrwtrtj",
"description": "rethrj",
"type": "1",
"created_at": "2020-05-28T11:35:09.000Z",
"updated_at": "2020-05-28T11:35:09.000Z",
"lft": 0,
"rgt": 4,
"parent_id": 1,
"ctype": "2",
"site_id": "AS0008",
"parent_cat": "",
"sub_cat": ""
},
{
"id": 3,
"name": "dsfgf",
"description": "adaasfgh",
"type": "1",
"created_at": "2020-05-28T12:40:23.000Z",
"updated_at": "2020-05-28T12:40:23.000Z",
"lft": 0,
"rgt": 2,
"parent_id": 1,
"ctype": "2",
"site_id": "AS0008",
"parent_cat": "",
"sub_cat": ""
}
]
}
]
}
Responses
Status: 302 - Error
{
"success": false,
"error": true,
}
Vehicle API
POST
https://api.auction.io/mobileapi/vehicle_post_api
Headers
Content-Type:application/json, X-SITE-ID:{{X_SITE_ID}}, X-R-DOMAIN:{{X_R_DOMAIN}},
Authorization:{{seller_token}}
Usage and Examples
Body parameters
Name
Description
vehicledetails
{
title:car
vin:2452
year:2020
make:test
model:32456
exterior_color:red
interior_color:green
mileage:test
seat_fabric:test
iteration:test
inspection_date:23
transmission_type:test
engine_cylinders:5
description:test product
static_vehicle:”1,2,3”
static_vehicle_content:static test
interior_type:”2,3,11”
interior_content:interior text
exterior_type:”5,8,12”
damaged_front:5
damaged_rear:5
damaged_left:9
damaged_top:2
exterior_content:yesy
under_vehicel_type:”5,11,12”
under_vehicel_content:tst
front_right_break:45
front_left_break:56
listing_type:2
listing_sell_specified:”1,5”
state:taxes
country:United States
address:test
neighborhood:test
city:taxes
zip:70981
rear_left_break:45
front_right_tire:4
front_left_tire:64
rear_right_tire_depth:6
rear_left_tire_depth:4
auctionio:1
buynow:0
qty:1
sprice:3
rprice:6
bprice:0
userid:4
startdate:2020-05-28 00:00:00
enddate:2020-06-28 00:00:00
market_status:open
video_link:”test1.mp4,test2.mp4”
doc_link:”test1.doc,test2.doc”
product_image:”test1.jpeg”
}
Responses
Status: 200 - Success
{
Status:true
data:”success”
}
Responses
Status: 302 - Error