Making your first API request
This start guide will take you through making your first request to a PartsSource API.
To make your first API call, you need to perform the following actions:
Create an authentication token. The token gives you access to PartsSource API resources depending on your assigned scopes. You must include the token in the Authorization header of all requests. Add the word Token and a space before the token itself:
'Authorization: Bearer {Your authentication token}'Choose the endpoint that corresponds to the resource you want to interact with. Review the API Reference Documentation to select the right endpoint for your test.
Prepare the full request and send it. In this case, use cURL to making the request. You want to retrieve data without modifying it - use the GET method. Let's put elements from the previous steps together.
The following request example contains a sample authentication token. Don't use it in your requests. Generate your own token.
curl --location \
--request GET 'https://api.partssource.com/customer/api/orders' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer 93dc8837-2911-4711-a766-59c1167a974d'Response:
Always include a request body in POST, PUT, or PATCH requests.
Evaluate the response. The API returns 200 OK and a list of all data stores for the specified team. If your request failed, you receive an error code. Refer to Troubleshooting and error handling to troubleshoot the issue.
Last updated

