Explore Our API

An API That Is Tailored to Your Needs.

Choose language
Shell Shell
Node.js Node.js
Java Java
C# C#
Python Python
Php Php

{CONSUMER_KEY} — Your consumer key generated in my api key section.

{CONSUMER_SECRET} — Your consumer secret generated in my api key section.

{BASE64_ENCODED_LICENSE_STRING} — An entire proxy string in the following format: HOST:PORT@USERNAME:PASSWORD and encoded in base64.
You can use many tools to encode a string in base64, to encode it online you can use: base64encode.org

{REBOOT_INTERVAL} — Value for reboot interval to be updated for a proxy.
Should be Integer value, and greater than 1

{PRODUCT_ID} — Please use following ids to purchase proxies.
11463 - 4G Proxy Austria
2171 - 4G Proxy Israel
7329 - 4G Proxy UK

To get a list of your proxies you need to make a GET call to the following endpoint.

API endpoint: GET /wp-json/lmfwc/v2/licenses/customer/user-licenses

curl --location --request GET 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/user-licenses/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}' \
--header 'Content-Type: application/json'
var request = require('request');
var options = {
  'method': 'GET',
  'url': 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/user-licenses/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}',
  'headers': {
    'Content-Type': 'application/json'
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});
OkHttpClient client = new OkHttpClient().newBuilder().build();
Request request = new Request.Builder()
  .url(https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/user-licenses)
  .method("GET", null)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var client = new RestClient("https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/user-licenses/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("Content-Type", "application/json");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import requests

url = "https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/user-licenses/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}"

payload={}
headers = {
  'Content-Type': 'application/json'
}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/user-licenses/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

To rotate a proxy you need to make a GET call to the following endpoint:

API endpoint: GET /wp-json/lmfwc/v2/licenses/rotate-proxy/{BASE64_ENCODED_LICENSE_STRING}

curl --location --request GET 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/rotate-proxy/{BASE64_ENCODED_LICENSE_STRING}/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}' \
--header 'Content-Type: application/json'
var request = require('request');
var options = {
  'method': 'GET',
  'url': 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/rotate-proxy/{BASE64_ENCODED_LICENSE_STRING}/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}',
  'headers': {
    'Content-Type': 'application/json'
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});
OkHttpClient client = new OkHttpClient().newBuilder().build();
Request request = new Request.Builder()
  .url(https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/rotate-proxy/{BASE64_ENCODED_LICENSE_STRING})
  .method("GET", null)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var client = new RestClient("https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/rotate-proxy/{BASE64_ENCODED_LICENSE_STRING}/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("Content-Type", "application/json");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import requests

url = "https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/rotate-proxy/{BASE64_ENCODED_LICENSE_STRING}/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}"

payload={}
headers = {
  'Content-Type': 'application/json'
}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/rotate-proxy/{BASE64_ENCODED_LICENSE_STRING}/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

To view the logs for a proxy you need to make a GET call to the following endpoint:

API endpoint: GET /wp-json/lmfwc/v2/licenses/proxy-logs/{BASE64_ENCODED_LICENSE_STRING}

curl --location --request GET 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/proxy-logs/{BASE64_ENCODED_LICENSE_STRING}/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}' \
--header 'Content-Type: application/json'
var request = require('request');
var options = {
  'method': 'GET',
  'url': 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/proxy-logs/{BASE64_ENCODED_LICENSE_STRING}/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}',
  'headers': {
    'Content-Type': 'application/json'
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});
OkHttpClient client = new OkHttpClient().newBuilder().build();
Request request = new Request.Builder()
  .url(https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/proxy-logs/{BASE64_ENCODED_LICENSE_STRING})
  .method("GET", null)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var client = new RestClient("https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/proxy-logs/{BASE64_ENCODED_LICENSE_STRING}/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("Content-Type", "application/json");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import requests

url = "https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/proxy-logs/{BASE64_ENCODED_LICENSE_STRING}/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}"

payload={}
headers = {
  'Content-Type': 'application/json'
}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/proxy-logs/{BASE64_ENCODED_LICENSE_STRING}/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

To cancel the subscription for a proxy you need to make a GET call to the following endpoint:

API endpoint: GET /wp-json/lmfwc/v2/licenses/cancel-subscription/{BASE64_ENCODED_LICENSE_STRING}

curl --location --request GET 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/cancel-subscription/{BASE64_ENCODED_LICENSE_STRING}/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}' \
--header 'Content-Type: application/json'
var request = require('request');
var options = {
  'method': 'GET',
  'url': 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/cancel-subscription/{BASE64_ENCODED_LICENSE_STRING}/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}',
  'headers': {
    'Content-Type': 'application/json'
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});
OkHttpClient client = new OkHttpClient().newBuilder().build();
Request request = new Request.Builder()
  .url(https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/cancel-subscription/{BASE64_ENCODED_LICENSE_STRING})
  .method("GET", null)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var client = new RestClient("https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/cancel-subscription/{BASE64_ENCODED_LICENSE_STRING}/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("Content-Type", "application/json");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import requests

url = "https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/cancel-subscription/{BASE64_ENCODED_LICENSE_STRING}/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}"

payload={}
headers = {
  'Content-Type': 'application/json'
}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/cancel-subscription/{BASE64_ENCODED_LICENSE_STRING}/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

To set a rotation interval for a proxy you need to make a POST call to the following endpoint:

API endpoint: POST /wp-json/lmfwc/v2/licenses/rotation-interval/{BASE64_ENCODED_LICENSE_STRING}

curl --location --request POST 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/rotation-interval/{BASE64_ENCODED_LICENSE_STRING}/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}' \
--header 'Content-Type: application/json' \
--data-raw '{
  "reboot_interval": 10}'
var request = require('request');
var options = {
  'method': 'POST',
  'url': 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/rotation-interval/{BASE64_ENCODED_LICENSE_STRING}/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}',
  'headers': {
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({"reboot_interval":})
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});
OkHttpClient client = new OkHttpClient().newBuilder().build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\r\n  \"reboot_interval\": 10\r\n}");
Request request = new Request.Builder()
  .url(https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/rotation-interval/{BASE64_ENCODED_LICENSE_STRING})
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
var client = new RestClient("https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/rotation-interval/{BASE64_ENCODED_LICENSE_STRING}/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\r\n  \"reboot_interval\": 10\r\n}",  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import requests

url = "https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/rotation-interval/{BASE64_ENCODED_LICENSE_STRING}/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}"

payload="{\r\n  \"reboot_interval\": 10\r\n}"
headers = {
  'Content-Type': 'application/json'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/rotation-interval/{BASE64_ENCODED_LICENSE_STRING}/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{
    "reboot_interval": 10  }',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: application/json'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
<<<<<<< HEAD

To purchase a proxy you need to make a POST call to the following endpoint.

API endpoint: POST /wp-json/lmfwc/v2/licenses/customer/create-order

curl --location --request POST 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}' \
--header 'Content-Type: text/plain' \
--data-raw '{
  "set_paid": false,
  "billing": {
    "first_name": "John",
    "last_name": "Doe",
    "address_1": "969 Market",
    "address_2": "",
    "city": "San Francisco",
    "state": "CA",
    "postcode": "94103",
    "country": "US",
    "email": "john.doe@example.com",
    "phone": "(555) 555-5555"
  },
  "shipping": {
    "first_name": "John",
    "last_name": "Doe",
    "address_1": "969 Market",
    "address_2": "",
    "city": "San Francisco",
    "state": "CA",
    "postcode": "94103",
    "country": "US"
  },
  "line_items": [
    {
      "product_id": 8298,
      "quantity": 1
    }
  ]
}'
var request = require('request');
var options = {
  'method': 'POST',
  'url': 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}',
  'headers': {
    'Content-Type': 'text/plain',
  },
  body: '{\r\n  "set_paid": false,\r\n  "billing": {\r\n    "first_name": "John",\r\n    "last_name": "Doe",\r\n    "address_1": "969 Market",\r\n    "address_2": "",\r\n    "city": "San Francisco",\r\n    "state": "CA",\r\n    "postcode": "94103",\r\n    "country": "US",\r\n    "email": "john.doe@example.com",\r\n    "phone": "(555) 555-5555"\r\n  },\r\n  "shipping": {\r\n    "first_name": "John",\r\n    "last_name": "Doe",\r\n    "address_1": "969 Market",\r\n    "address_2": "",\r\n    "city": "San Francisco",\r\n    "state": "CA",\r\n    "postcode": "94103",\r\n    "country": "US"\r\n  },\r\n  "line_items": [\r\n    {\r\n      "product_id": 8298,\r\n      "quantity": 1\r\n    }\r\n  ]\r\n}'

};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("text/plain");
RequestBody body = RequestBody.create(mediaType, "{\r\n  \"set_paid\": false,\r\n  \"billing\": {\r\n    \"first_name\": \"John\",\r\n    \"last_name\": \"Doe\",\r\n    \"address_1\": \"969 Market\",\r\n    \"address_2\": \"\",\r\n    \"city\": \"San Francisco\",\r\n    \"state\": \"CA\",\r\n    \"postcode\": \"94103\",\r\n    \"country\": \"US\",\r\n    \"email\": \"john.doe@example.com\",\r\n    \"phone\": \"(555) 555-5555\"\r\n  },\r\n  \"shipping\": {\r\n    \"first_name\": \"John\",\r\n    \"last_name\": \"Doe\",\r\n    \"address_1\": \"969 Market\",\r\n    \"address_2\": \"\",\r\n    \"city\": \"San Francisco\",\r\n    \"state\": \"CA\",\r\n    \"postcode\": \"94103\",\r\n    \"country\": \"US\"\r\n  },\r\n  \"line_items\": [\r\n    {\r\n      \"product_id\": 8298,\r\n      \"quantity\": 1\r\n    }\r\n  ]\r\n}");
Request request = new Request.Builder()
  .url(https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-order)
  .method("POST", body)
  .addHeader("Content-Type", "text/plain")
  .build();
Response response = client.newCall(request).execute();
var client = new RestClient("https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "text/plain");
var body = @"{
" + "\n" +
@"  ""set_paid"": false,
" + "\n" +
@"  ""billing"": {
" + "\n" +
@"    ""first_name"": ""John"",
" + "\n" +
@"    ""last_name"": ""Doe"",
" + "\n" +
@"    ""address_1"": ""969 Market"",
" + "\n" +
@"    ""address_2"": """",
" + "\n" +
@"    ""city"": ""San Francisco"",
" + "\n" +
@"    ""state"": ""CA"",
" + "\n" +
@"    ""postcode"": ""94103"",
" + "\n" +
@"    ""country"": ""US"",
" + "\n" +
@"    ""email"": ""john.doe@example.com"",
" + "\n" +
@"    ""phone"": ""(555) 555-5555""
" + "\n" +
@"  },
" + "\n" +
@"  ""shipping"": {
" + "\n" +
@"    ""first_name"": ""John"",
" + "\n" +
@"    ""last_name"": ""Doe"",
" + "\n" +
@"    ""address_1"": ""969 Market"",
" + "\n" +
@"    ""address_2"": """",
" + "\n" +
@"    ""city"": ""San Francisco"",
" + "\n" +
@"    ""state"": ""CA"",
" + "\n" +
@"    ""postcode"": ""94103"",
" + "\n" +
@"    ""country"": ""US""
" + "\n" +
@"  },
" + "\n" +
@"  ""line_items"": [
" + "\n" +
@"    {
" + "\n" +
@"      ""product_id"": 8298,
" + "\n" +
@"      ""quantity"": 1
" + "\n" +
@"    }
" + "\n" +
@"  ]
" + "\n" +
@"}";
request.AddParameter("text/plain", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import requests

url = "https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}"

payload = "{\r\n  \"set_paid\": false,\r\n  \"billing\": {\r\n    \"first_name\": \"John\",\r\n    \"last_name\": \"Doe\",\r\n    \"address_1\": \"969 Market\",\r\n    \"address_2\": \"\",\r\n    \"city\": \"San Francisco\",\r\n    \"state\": \"CA\",\r\n    \"postcode\": \"94103\",\r\n    \"country\": \"US\",\r\n    \"email\": \"john.doe@example.com\",\r\n    \"phone\": \"(555) 555-5555\"\r\n  },\r\n  \"shipping\": {\r\n    \"first_name\": \"John\",\r\n    \"last_name\": \"Doe\",\r\n    \"address_1\": \"969 Market\",\r\n    \"address_2\": \"\",\r\n    \"city\": \"San Francisco\",\r\n    \"state\": \"CA\",\r\n    \"postcode\": \"94103\",\r\n    \"country\": \"US\"\r\n  },\r\n  \"line_items\": [\r\n    {\r\n      \"product_id\": 8298,\r\n      \"quantity\": 1\r\n    }\r\n  ]\r\n}"
headers = {
  'Content-Type': 'text/plain',
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}'
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{
  "set_paid": false,
  "billing": {
    "first_name": "John",
    "last_name": "Doe",
    "address_1": "969 Market",
    "address_2": "",
    "city": "San Francisco",
    "state": "CA",
    "postcode": "94103",
    "country": "US",
    "email": "john.doe@example.com",
    "phone": "(555) 555-5555"
  },
  "shipping": {
    "first_name": "John",
    "last_name": "Doe",
    "address_1": "969 Market",
    "address_2": "",
    "city": "San Francisco",
    "state": "CA",
    "postcode": "94103",
    "country": "US"
  },
  "line_items": [
    {
      "product_id": 8298,
      "quantity": 1
    }
  ]
}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: text/plain',
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
=======

To purchase a proxy you need to make a POST call to the following endpoint.

API endpoint: POST /wp-json/lmfwc/v2/licenses/customer/create-order

For first time order
curl --location --request POST 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}' \
--header 'Content-Type: text/plain' \
--data-raw '{
  "set_paid": false,
  "billing": {
    "first_name": "John",
    "last_name": "Doe",
    "address_1": "969 Market",
    "address_2": "",
    "city": "San Francisco",
    "state": "CA",
    "postcode": "94103",
    "country": "US",
    "email": "john.doe@example.com",
    "phone": "(555) 555-5555"
  },
  "shipping": {
    "first_name": "John",
    "last_name": "Doe",
    "address_1": "969 Market",
    "address_2": "",
    "city": "San Francisco",
    "state": "CA",
    "postcode": "94103",
    "country": "US"
  },
  "line_items": [
    {
      "product_id": {PRODUCT_ID},
      "quantity": 1
    }
  ]
}'
var request = require('request');
var options = {
  'method': 'POST',
  'url': 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}',
  'headers': {
    'Content-Type': 'text/plain',
  },
  body: '{\r\n  "set_paid": false,\r\n  "billing": {\r\n    "first_name": "John",\r\n    "last_name": "Doe",\r\n    "address_1": "969 Market",\r\n    "address_2": "",\r\n    "city": "San Francisco",\r\n    "state": "CA",\r\n    "postcode": "94103",\r\n    "country": "US",\r\n    "email": "john.doe@example.com",\r\n    "phone": "(555) 555-5555"\r\n  },\r\n  "shipping": {\r\n    "first_name": "John",\r\n    "last_name": "Doe",\r\n    "address_1": "969 Market",\r\n    "address_2": "",\r\n    "city": "San Francisco",\r\n    "state": "CA",\r\n    "postcode": "94103",\r\n    "country": "US"\r\n  },\r\n  "line_items": [\r\n    {\r\n      "product_id": 8298,\r\n      "quantity": 1\r\n    }\r\n  ]\r\n}'

};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("text/plain");
RequestBody body = RequestBody.create(mediaType, "{\r\n  \"set_paid\": false,\r\n  \"billing\": {\r\n    \"first_name\": \"John\",\r\n    \"last_name\": \"Doe\",\r\n    \"address_1\": \"969 Market\",\r\n    \"address_2\": \"\",\r\n    \"city\": \"San Francisco\",\r\n    \"state\": \"CA\",\r\n    \"postcode\": \"94103\",\r\n    \"country\": \"US\",\r\n    \"email\": \"john.doe@example.com\",\r\n    \"phone\": \"(555) 555-5555\"\r\n  },\r\n  \"shipping\": {\r\n    \"first_name\": \"John\",\r\n    \"last_name\": \"Doe\",\r\n    \"address_1\": \"969 Market\",\r\n    \"address_2\": \"\",\r\n    \"city\": \"San Francisco\",\r\n    \"state\": \"CA\",\r\n    \"postcode\": \"94103\",\r\n    \"country\": \"US\"\r\n  },\r\n  \"line_items\": [\r\n    {\r\n      \"product_id\": 8298,\r\n      \"quantity\": 1\r\n    }\r\n  ]\r\n}");
Request request = new Request.Builder()
  .url(https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-order)
  .method("POST", body)
  .addHeader("Content-Type", "text/plain")
  .build();
Response response = client.newCall(request).execute();
var client = new RestClient("https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "text/plain");
var body = @"{
" + "\n" +
@"  ""set_paid"": false,
" + "\n" +
@"  ""billing"": {
" + "\n" +
@"    ""first_name"": ""John"",
" + "\n" +
@"    ""last_name"": ""Doe"",
" + "\n" +
@"    ""address_1"": ""969 Market"",
" + "\n" +
@"    ""address_2"": """",
" + "\n" +
@"    ""city"": ""San Francisco"",
" + "\n" +
@"    ""state"": ""CA"",
" + "\n" +
@"    ""postcode"": ""94103"",
" + "\n" +
@"    ""country"": ""US"",
" + "\n" +
@"    ""email"": ""john.doe@example.com"",
" + "\n" +
@"    ""phone"": ""(555) 555-5555""
" + "\n" +
@"  },
" + "\n" +
@"  ""shipping"": {
" + "\n" +
@"    ""first_name"": ""John"",
" + "\n" +
@"    ""last_name"": ""Doe"",
" + "\n" +
@"    ""address_1"": ""969 Market"",
" + "\n" +
@"    ""address_2"": """",
" + "\n" +
@"    ""city"": ""San Francisco"",
" + "\n" +
@"    ""state"": ""CA"",
" + "\n" +
@"    ""postcode"": ""94103"",
" + "\n" +
@"    ""country"": ""US""
" + "\n" +
@"  },
" + "\n" +
@"  ""line_items"": [
" + "\n" +
@"    {
" + "\n" +
@"      ""product_id"": 8298,
" + "\n" +
@"      ""quantity"": 1
" + "\n" +
@"    }
" + "\n" +
@"  ]
" + "\n" +
@"}";
request.AddParameter("text/plain", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import requests

url = "https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}"

payload = "{\r\n  \"set_paid\": false,\r\n  \"billing\": {\r\n    \"first_name\": \"John\",\r\n    \"last_name\": \"Doe\",\r\n    \"address_1\": \"969 Market\",\r\n    \"address_2\": \"\",\r\n    \"city\": \"San Francisco\",\r\n    \"state\": \"CA\",\r\n    \"postcode\": \"94103\",\r\n    \"country\": \"US\",\r\n    \"email\": \"john.doe@example.com\",\r\n    \"phone\": \"(555) 555-5555\"\r\n  },\r\n  \"shipping\": {\r\n    \"first_name\": \"John\",\r\n    \"last_name\": \"Doe\",\r\n    \"address_1\": \"969 Market\",\r\n    \"address_2\": \"\",\r\n    \"city\": \"San Francisco\",\r\n    \"state\": \"CA\",\r\n    \"postcode\": \"94103\",\r\n    \"country\": \"US\"\r\n  },\r\n  \"line_items\": [\r\n    {\r\n      \"product_id\": 8298,\r\n      \"quantity\": 1\r\n    }\r\n  ]\r\n}"
headers = {
  'Content-Type': 'text/plain',
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}'
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{
  "set_paid": false,
  "billing": {
    "first_name": "John",
    "last_name": "Doe",
    "address_1": "969 Market",
    "address_2": "",
    "city": "San Francisco",
    "state": "CA",
    "postcode": "94103",
    "country": "US",
    "email": "john.doe@example.com",
    "phone": "(555) 555-5555"
  },
  "shipping": {
    "first_name": "John",
    "last_name": "Doe",
    "address_1": "969 Market",
    "address_2": "",
    "city": "San Francisco",
    "state": "CA",
    "postcode": "94103",
    "country": "US"
  },
  "line_items": [
    {
      "product_id": 8298,
      "quantity": 1
    }
  ]
}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: text/plain',
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
For next time ordering, You can skip the billing and shipping parts
curl --location --request POST 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}' \
--header 'Content-Type: text/plain' \
--data-raw '{
  "set_paid": false,
  "line_items": [
    {
      "product_id": {PRODUCT_ID},
      "quantity": 1
    }
  ]
}'
var request = require('request');
var options = {
  'method': 'POST',
  'url': 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}',
  'headers': {
    'Content-Type': 'text/plain',
  },
  body: '{\r\n  "set_paid": false,\r\n  "line_items": [\r\n    {\r\n      "product_id": {PRODUCT_ID},\r\n      "quantity": 1\r\n    }\r\n  ]\r\n}'

};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("text/plain");
RequestBody body = RequestBody.create(mediaType, "{\r\n  \"set_paid\": false,\r\n  \"line_items\": [\r\n    {\r\n      \"product_id\": {PRODUCT_ID},\r\n      \"quantity\": 1\r\n    }\r\n  ]\r\n}");
Request request = new Request.Builder()
  .url(https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-order)
  .method("POST", body)
  .addHeader("Content-Type", "text/plain")
  .build();
Response response = client.newCall(request).execute();
var client = new RestClient("https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "text/plain");
var body = @"{
" + "\n" +
@"  ""set_paid"": false,
" + "\n" +
@"  ""line_items"": [
" + "\n" +
@"    {
" + "\n" +
@"      ""product_id"": {PRODUCT_ID},
" + "\n" +
@"      ""quantity"": 1
" + "\n" +
@"    }
" + "\n" +
@"  ]
" + "\n" +
@"}";
request.AddParameter("text/plain", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import requests

url = "https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}"

payload = "{\r\n  \"set_paid\": false,\r\n  \"line_items\": [\r\n    {\r\n      \"product_id\": {PRODUCT_ID},\r\n      \"quantity\": 1\r\n    }\r\n  ]\r\n}"
headers = {
  'Content-Type': 'text/plain',
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}'
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{
      "set_paid": false,
      "line_items": [
        {
          "product_id": {PRODUCT_ID},
          "quantity": 1
        }
      ]
    }',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: text/plain',
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
If you want to use coupon for discount
curl --location --request POST 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}' \
--header 'Content-Type: text/plain' \
--data-raw '{
  "set_paid": false,
  "coupon": "COUPON_CODE_HERE",
  "line_items": [
    {
      "product_id": {PRODUCT_ID},
      "quantity": 1
    }
  ]
}'
var request = require('request');
var options = {
  'method': 'POST',
  'url': 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}',
  'headers': {
    'Content-Type': 'text/plain',
  },
   body: '{\r\n  "set_paid": false,\r\n  "coupon": "COUPON_CODE_HERE",\r\n  "line_items": [\r\n    {\r\n      "product_id": {PRODUCT_ID},\r\n      "quantity": 1\r\n    }\r\n  ]\r\n}'

};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("text/plain");
RequestBody body = RequestBody.create(mediaType, "{\r\n  \"set_paid\": false,\r\n  \"coupon\": \"COUPON_CODE_HERE\",\r\n  \"line_items\": [\r\n    {\r\n      \"product_id\": {PRODUCT_ID},\r\n      \"quantity\": 1\r\n    }\r\n  ]\r\n}");
Request request = new Request.Builder()
  .url(https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-order)
  .method("POST", body)
  .addHeader("Content-Type", "text/plain")
  .build();
Response response = client.newCall(request).execute();
var client = new RestClient("https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "text/plain");
var body = @"{
" + "\n" +
@"  ""set_paid"": false,
" + "\n" +
@"  ""coupon"": ""COUPON_CODE_HERE"",
" + "\n" +
@"  ""line_items"": [
" + "\n" +
@"    {
" + "\n" +
@"      ""product_id"": {PRODUCT_ID},
" + "\n" +
@"      ""quantity"": 1
" + "\n" +
@"    }
" + "\n" +
@"  ]
" + "\n" +
@"}";
request.AddParameter("text/plain", body,  ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import requests

url = "https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}"

payload = "{\r\n  \"set_paid\": false,\r\n  \"coupon\": \"COUPON_CODE_HERE\",\r\n  \"line_items\": [\r\n    {\r\n      \"product_id\": {PRODUCT_ID},\r\n      \"quantity\": 1\r\n    }\r\n  ]\r\n}"
headers = {
  'Content-Type': 'text/plain',
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://thesocialproxy.com/wp-json/lmfwc/v2/licenses/customer/create-order/?consumer_key={CONSUMER_KEY}&consumer_secret={CONSUMER_SECRET}'
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS =>'{
  "set_paid": false,
  "coupon": "COUPON_CODE_HERE",
  "line_items": [
    {
      "product_id": {PRODUCT_ID},
      "quantity": 1
    }
  ]
}',
  CURLOPT_HTTPHEADER => array(
    'Content-Type: text/plain',
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
>>>>>>> 098be364 (theme file updates)