Read By Type and Code

Returns a single Sales Tracking Code by supplying the type and code

URL Parameters

typeStringBy default the accepted values are "Sales Tracking Code 1", "Sales Tracking Code 2" ... up to "Sales Tracking Code 5".

If you rename your Sales Tracking code, those names or the default names can be used.
codeStringThis is a custom string that acts as an enum for the Sales Tracking CodeOptional
curl –X GET{type}&code={code}\ 
-H "Content-Type: application/json" \ 
-H "Authorization: Basic {APIKey}"
//Setup API key 
string apiKey = "{APIKey}"; 
//Configure URI 
WebRequest request = WebRequest.Create("HTTPS://{type}&code={code}"); 
//Add Content type 
request.ContentType = "application/json"; 
//Add Api key authorization 
request.Headers.Add(HttpRequestHeader.Authorization, "Basic "+apiKey); 
//Set request method 
request.Method = "GET"; 
//Perform the request 
var httpResponse = (HttpWebResponse)request.GetResponse(); 
//Record the response from our request 
var result = ""; 
using (var streamReader = new StreamReader(httpResponse.GetResponseStream())) 
  result = streamReader.ReadToEnd(); 
#Import library JSON 
import json 
#Import library Requests 
import requests 
#Pass in a dictionary to the Headers parameter 
headers = {'Authorization' : 'Basic {APIKey}', 'Content-Type' : 'application/json'} 
#Pass in your URI and Headers 
r = requests.get('{type}&code={code},  headers=headers) 
  "type": "Sales Tracking Code 1",
  "code": "Senior",
  "name": "Senior Citizen",
  "description": "",
  "email": "",
  "status": "Active",
  "deletable": false,
  "id": 123989,
  "uri": ""
    "ErrorId": 0,
    "HttpStatusCode": 400,
    "Errors": [
            "Key": "Api Error",
            "Value": "Unknown sales tracking code type Sales Tracking Code 6. Valid types are: Sales Tracking Code 1, Sales Tracking Code 2, Sales Tracking Code 3, Sales Tracking Code 4, Sales Tracking Code 5"