Check Orderid Exists
GET /offer/check_orderid_exists
Description | URL | Response Format | Request Method | Authentication |
---|---|---|---|---|
Check if an orderid exists | https://domain/api/offer/check_orderid_exsits | JSON | GET | HTTP headers |
Parameters
Parameters can be sent as url encoded params. All parameters are optional so if none are entered, all enabled conversion caps will be returned.
Name | Description | Type | Required |
---|---|---|---|
orderid | The orderid to check | integer | yes |
Example Request
php
<?php
$curl = curl_init();
$data = array(
'orderid' => '12345678',
);
$data_string = http_build_query($data);
$url = 'http://domain/api/offer/check_orderid_exists?'.$data_string;
$headers = array(
'api-key: 44b5498dbcb481a0d00b404c0169af62',
'api-username: productsupport'
);
curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_URL, $url);
$resp = curl_exec($curl);
//dumps an associative array representation of the json response
$output = json_decode($resp, true);
if($output !== NULL) {
//json was valid. Dump the decoded array
print_r($output);
}
else {
//invalid json, just dump the raw response
print_r($resp);
}
// Close request to clear up some resources
curl_close($curl);
?>