Your authorization token
Login to see token
Wallet Balance
You can check your wallet balance using our balance end point
https://primeswop.com/api/balance
Method: GET
Header 1= 'Content-Type : application/json'
Header 2= 'Authorization-Token : //You authorization token'
$curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://primeswop.com/api/balance", 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", "Authorization-Token: JBKhjvY778Yghc5E5Egvj6", //Replace with your token ), )); $response = curl_exec($curl); curl_close($curl); echo $response;
Responses
{"status":"error","message":"Authorization token was not found","data":""}
{"status":"error","message":"Invalid authorization token","data":""}
{"status":"success","message":"Wallet balance fetched successfully","data":{"funds":6740}}
Service Pricings
You can check real time pricing of our all our products
https://primeswop.com/api/pricing
Method: POST
Header 1= 'Content-Type : application/json'
Header 2= 'Authorization-Token : //You authorization token'
Post Fields
$curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://primeswop.com/api/pricing", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_POSTFIELDS =>json_encode(array("serviceID" => 200) ), CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_HTTPHEADER => array( "Content-Type: application/json", "Authorization-Token: JBKhjvY778Yghc5E5Egvj6", //Replace with your token ), )); $response = curl_exec($curl); curl_close($curl); echo $response;
Responses
{"status":"error","message":"Authorization token was not found","data":""}
{"status":"error","message":"Invalid authorization token","data":""}
{"status":"error","message":"Incorrect Service ID","data":[]}
{"status":"success","message":"Price fetched successfully","data":{"amount":"12","type":"instagram followers","description":"Instagram followers"}}
Create Order
Our create order endpoint is straight forward
https://primeswop.com/api/createorder
Method: POST
Header 1= 'Content-Type : application/json'
Header 2= 'Authorization-Token : //You authorization token'
Post Fields
$curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://primeswop.com/api/createorder", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_POSTFIELDS =>json_encode(array("serviceID" => 100, "url" => "https://instagram.com/primeswop", "quantity" => 500) ), CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_HTTPHEADER => array( "Content-Type: application/json", "Authorization-Token: JBKhjvY778Yghc5E5Egvj6", //Replace with your token ), )); $response = curl_exec($curl); curl_close($curl); echo $response;
Responses
{"status":"error","message":"Authorization token was not found","data":""}
{"status":"error","message":"Invalid authorization token","data":""}
{"status":"error","message":"Incorrect Service ID","data":[]}
{"status":"error","message":"Insufficient funds","data":[]}
{"status":"error","message":"Order with the same link is already in progress","data":[]}
{"status":"success","message":"Advert Created Successfully!","data":{"reference":"dffg98786dmvnn7", "url":"https://instagram.com/primeswop", "amount":4690, "quantity": 500, "status" : "in_progress"}}
Requery Transaction
To requery a transaction made on our platform, use our requery endpoint to get real time status of an order
https://primeswop.com/api/requerytrx
Method: POST
Header 1= 'Content-Type : application/json'
Header 2= 'Authorization-Token : //Your authorization token'
Post Fields
$curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://primeswop.com/api/requerytrx", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_POSTFIELDS =>json_encode(array("reference" => "iudhkju97wkidz1") ), CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_HTTPHEADER => array( "Content-Type: application/json", "Authorization-Token: JBKhjvY778Yghc5E5Egvj6", //Replace with your token ), )); $response = curl_exec($curl); curl_close($curl); echo $response;
Responses
{"status" : "error","message":"Authorization token was not found","data":""}
{"status":"error","message":"Invalid authorization token","data":""}
{"status":"error","message":"Transaction Reference is incorrect","data":[]}
{"status":"error","message":"Order was not found","data":[]}
{ "status": "success", "message": "Order fetched successfully", "data": { "reference": "PS_qgcwmk0g7pb3t_ORDER", "url": "https://youtube.com/primeswop", "quantity" : 100, "amount": 2000, "status": "completed", "serviceID": 430 } }
NOTE: The status in the data object shows the real time transaction status. It can either be in_progress, cancelled or completed
completed means order was completed.
in_progress means order is in progress.
cancelled means order was cancelled and your wallet was refunded.
Webhook Notifications
Webhook returns the status of the order to your webhook URL
Responses
{ "status": "success", "message": "Order fetched successfully", "data": { "reference": "PS_qgcwmk0g7pb3t_ORDER", "clientReference": "yourReference", "status": "in_progress" } }