Skip to main content

QuayConnect API Tutorial

Welcome to the QuayConnect API tutorial. This section serves as an essential introduction to the core functionalities of our API. We will guide you through the process of creating shipments, managing products and contacts, as well as manipulating shipment data.

Contacts

Contacts are crucial for creating shipments within our system. Once verified, these contacts can become parties associated with specific shipments. In this section, we'll guide you through the process of creating and managing them.

Creating a Contact

To create a contact:

  1. Access the 'Contacts' tab on the left side of your user interface.
  2. Choose 'Create New Contact' to start the contact creation process.
  3. Edit the contact details as needed, ensuring all necessary fields are accurately filled.

Here is an example of a properly filled contact to serve as a reference:

Example Contact Creation

You can adjust the content as necessary and add the actual example contact details and a practical reference for your users.

Once administrators have verified a contact, it becomes readily available for use in your API requests.

Duplicating a Contact

From the 'Contacts' section, you can also duplicate a contact for ease of use or to create similar entries. To duplicate a contact, locate the contact you want to duplicate, then click the 'Duplicate' button.

Deleting a Contact

If you need to remove a contact for any reason, it's a straightforward process. Locate the contact you want to delete, then click the 'Delete' button. Please exercise caution when deleting contacts, as this action is irreversible.

Retrieving a Paginated List of Contacts

If you want to get a paginated list of your contacts, you can use the following endpoint. This endpoint allows you to specify the customer organization, page size, and page number. The default values for page size and page number are 25 and 1, respectively. Contacts are ordered by the date of creation in descending order (most recent first).

If you are an Intermediary organization, you can request to see the list of contacts of your clients by entering their organization domain.

caution

Contacts of clients can only be accessed by Intermediary organizations. If a non-Intermediary organization attempts to access the contacts of another organization, a status code 401 (Unauthorized) will be returned.

Here is an example API request for retrieving contacts for my organization with a page size of 25 and the first page:

GET https://api.quayconnect.io/v2/shipments/contacts
Headers:
Authorization: Bearer your-access-token