Service and Coverage Check

Check for coverage zip codes

<?php

$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => "https://standupapp.mycatalystweb.com/WebService/orderFlow/CGMServiceAndCoverageCheck",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => "{\"zipCode\":\"30093\",\"isTribalYn\":\"N\",\"agentCode\":\"suw_internal\"}",
  CURLOPT_HTTPHEADER => [
    "Accept: application/json",
    "Content-Type: application/json",
    "QSAuthToken: {{token}}"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
import http.client
import json

conn = http.client.HTTPSConnection("standupapp.mycatalystweb.com")

headersList = {
 "Accept": "application/json",
 "Content-Type": "application/json",
 "QSAuthToken": "{{token}}" 
}

payload = json.dumps({"zipCode":"30093","isTribalYn":"N","agentCode":"suw_internal"})

conn.request("POST", "/WebService/orderFlow/CGMServiceAndCoverageCheck", payload, headersList)
response = conn.getresponse()
result = response.read()

print(result.decode("utf-8"))
const http = require("https");

const options = {
  "method": "POST",
  "hostname": "standupapp.mycatalystweb.com",
  "port": null,
  "path": "/WebService/orderFlow/CGMServiceAndCoverageCheck",
  "headers": {
    "Accept": "application/json",
    "Content-Type": "application/json",
    "QSAuthToken": "{{token}}"
  }
};

const req = http.request(options, function (res) {
  const chunks = [];

  res.on("data", function (chunk) {
    chunks.push(chunk);
  });

  res.on("end", function () {
    const body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({zipCode: '30093', isTribalYn: 'N', agentCode: 'suw_internal'}));
req.end();
var client = new HttpClient();
var request = new HttpRequestMessage();
request.RequestUri = new Uri("https://standupapp.mycatalystweb.com/WebService/orderFlow/CGMServiceAndCoverageCheck");
request.Method = HttpMethod.Post;

request.Headers.Add("Accept", "application/json");
request.Headers.Add("QSAuthToken", "{{token}}");

var bodyString = "{\"zipCode\":\"30093\",\"isTribalYn\":\"N\",\"agentCode\":\"suw_internal\"}";
var content = new StringContent(bodyString, Encoding.UTF8, "application/json");
request.Content = content;

var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync();
Console.WriteLine(result);