Request Format

REST Overview

REST Requests are made using a URI (Uniform Resource Identifier) sent over HTTP. The PartsSource REST API accepts one or more of the following HTTP Methods:

  • GET
  • POST
  • PUT
  • DELETE
  • OPTIONS

How to build a REST Request

Bare Minimum...
  • URI - The URI below is the location of the parts finder uri.
    e.g. https://api.partssource.com/api/uri/partsfinder
  • AccessToken - You must append the access token to the request to ensure your are able to make the request.
    See Authentication for more information about Authentication.

SOAP Overview

SOAP Requests are made by posting a SOAP envelope to a URI.

How to build a SOAP Request

Bare Minimum...

  • Access Token - This is your token to access the API, without this you get nowhere. This can be included either as a querystring parameter, or as a value in the headers of your request. See Authentication for more information about Authentication.
  • URI - The location of the service you are trying to post to, including the version and the access token.
  • SOAP Envelope - A SOAP formatted XML document that contains the method and any required method data.

Sample REST Request

HTTP Method: POST

URI: https://api.partsfinder.com/api/sampleResource

Request Header:
Content-Type: text/xml
accessToken: mysupersecrettoken

Sample SOAP Request

HTTP Method: POST

URI: https://api.partssource.com/services/sampleService.svc

Request Header:
Content-Type: application/soap+xml; charset=utf-8
Content-Length: nnn
accessToken: mysupersecrettoken

<?xml version="1.0" ?>
<request xmlns="http://api.partsfinder.com" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
    <data xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <a:anytype i:type="Profile">  
            <firstname>Test<firstname>
        <a:anytype>
    </data>
</request>
                    
{
   "Profile": {
         "FirstName": "Test"
   }
}