Activation & Deactivation of Product
The product status is controlled by the active flag, which determines whether a product is available for operations. Deactivating a product does not delete it from Mailship; it remains in the system but is unavailable for use.
Activate Product
Sets the product flag active to true.
Request structure
|
Endpoint: |
|
|
URL (prod): |
|
|
Headers: |
|
|
Request body: |
None (this request does not require a body). |
|
Request Example (cURL): |
|
Path parameter:
|
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
|
string |
✅ |
The unique product identifier. Example: |
Response
If successful, the API returns 204 No Content.
See more details in the API Doc.
Deactivate Product
Sets the product flag active to false.
Request structure
|
Endpoint: |
|
|
URL (prod): |
|
|
Headers: |
|
|
Request body: |
None (this request does not require a body). |
|
Request Example (cURL): |
|
Path parameter:
|
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
|
string |
✅ |
The unique product identifier. Example: |
Response
If successful, the API returns 204 No Content.
See more details in the API Doc.
Activate multiple Products
Sets the active flag of multiple products to true.
Request structure
|
Endpoint: |
|
|
URL (prod): |
|
|
Headers: |
|
|
Request body: |
An array of product IDs for activation. |
|
Request body example: |
|
Response
If successful, the API returns 204 No Content.
See more details in the API Doc.
Deactivate multiple Products
Sets the active flag of multiple products to false.
Request structure
|
Endpoint: |
|
|
URL (prod): |
|
|
Headers: |
|
|
Request body: |
An array of product IDs for deactivation. |
|
Request body Example: |
|
Response
If successful, the API returns 204 No Content.
See more details in the API Doc.
Delete Product & Delete multiple Products
A product can only be deleted from Mailship if:
-
It has never been used in stock advice or expedition.
-
It has no recorded movements or stock history.
If you need to delete a product, please contact our customer support team.