Deploying a product
Learn how to deploy a product programmatically.
The following POST /v1/products/{productId or ERID}/deploy request deploys the specified product. Note that you can only deploy an individual or base product. If the product is already retired, the response will return an error. To deploy a specific product, you must provide either a productId or ERID. 
The following example deploys a product with a productId.
curl --location --request POST 'https://api.digitalriver.com/v1/products/{productId}/deploy' \
--header 'Authorization: Basic <API_key>' \
...An ERID request requires the x-erid-as-pid=true header.
curl --location --request POST 'https://api.digitalriver.com/v1/products/{productId}/deploy' \
--header 'Authorization: Basic <API_key>' \
--header 'header x-erid-as-pid=true' \
...The request returns a task identifier (taskId) in the asynchronous response.
{
    "taskId": "c714a17d-64f7-4ca5-810c-b4123b3083fa",
    "requestType": "DEPLOY_PRODUCT",
    "taskStatus": "PUBLISHED",
    "receivedTime": "2022-11-28T17:19:40.610Z"
}Use the taskId in the response to verify the successful completion of the request. You can also verify the successful completion of the task by checking the product history in Global Commerce. Note that there may be a delay before these changes appear in Global Commerce. 
There are two ways to verify the deployment of an individual or base product. You can either confirm the product is marked as deployed in Global Commerce or get the deployed product.
Verifying the deployment of a product in Global Commerce
- Sign in to Global Commerce. 
- Select Catalog, select Products, and then click Manage Products. The Products page appears. 
- Click the Search tab, select Product from the Search In drop-down list, and select ID from the Search By list. Enter the product identifier or ERID in the Search For field, then click Search. 
- Click the link for the product under the Internal Product Name column. The Edit Product page appears, and (Deployed) will appear after the product name at the top of the page. 
Last updated
Was this helpful?
