You are viewing our legacy software site. Click here for the latest version.

Data Formats

The Lead Commerce API can accept requests and respond in JSON formats. All requests should be encoded using the UTF-8 character set. Other character sets have been known to create unexpected results.

Request Content Type

When processing a request to the API, the request must be in a POST format. It is recommended that put you specify the Content Type

Content-Type: application/json


Request Structure

The body of a JSON request is an object containing a key with values. For example, this call will return all active items:

{
    status: "1"
}

Response Structure

The responses are similar to the request in JSON Format. Depending on the API Method being used, the response will look something like this:

{
   code: "200",
   data: [
       {
          id: "2",
          name: "Modern T-Shirt",
          status: "1"
       }
    ]
}

Start your free, no-risk trial today.