Skip to main content

Working with the products

Discover how to retrieve, update, and deactivate products in Mailship using various API endpoints, complete with example requests.

Updated over a year ago

Retrieving a Single Product in Mailship


In Mailship, you can retrieve the details of a single product by sending a GET request to the https://app.mailship.eu/api/product/{id} endpoint, where {id} is the ID of the product you want to retrieve.

Here's an example of how to retrieve a product:

GET https://app.mailship.eu/api/product/529baf4b-b7f1-4ff4-827f-b05f52a1a22f

In this example, 529baf4b-b7f1-4ff4-827f-b05f52a1a22f is the ID of the product. Replace this with the ID of the product you want to retrieve.
​
The response will be a JSON object with the product's details.


For more information, refer to the API documentation.

Updating Products in Mailship

In Mailship, you can update the details of a product by sending a PUT request to the https://app.mailship.eu/api/product/{id} endpoint, where {id} is the ID of the product you want to update.

Here's an example of how to update a product:

PUT https://app.mailship.eu/api/product/529baf4b-b7f1-4ff4-827f-b05f52a1a22f

In this example, 529baf4b-b7f1-4ff4-827f-b05f52a1a22f is the ID of the product. Replace this with the ID of the product you want to update.

The request should include a JSON payload with the product's updated details.


For more information, refer to the API documentation.


Deactivating Products

You can deactivate a product by sending a PUT request to the https://app.mailship.eu/api/product/{id}/deactivate endpoint, where {id} is the ID of the product you want to deactivate.

Here's an example of how to deactivate a product:

PUT https://app.mailship.eu/api/product/529baf4b-b7f1-4ff4-827f-b05f52a1a22f/deactivate

In this example, 529baf4b-b7f1-4ff4-827f-b05f52a1a22f is the ID of the product. Replace this with the ID of the product you want to deactivate.


For more information, refer to the API documentation.
​

Did this answer your question?