Changes the order status of multiple saved or added to cart product

POST Designer/Services/UpdateMultipleCustomizedProductOrderStatus


After customizing the product in Artifi editor, one can save the product or add it to the cart. Cart lists products/items which have been selected for purchase during shopping along with their prices and the total amount.


The order status of the products present in the cart will be "Added to cart".


If user wants to place an order for the "multiple" products/items in cart, he/she will hit a related button to place an order. At this time the order status of the products needs to be changed from "Add to cart" to "Checked out".


This operation changes the order status of saved/added to cart products from "Add to cart" to "Checked out".


This operation requires customized product ids whose order status is to be changed and id of the associated website. It returns the response object which contains status of the operation along with the message if any error occur during this process.


Request Information

Parameters

NameDescriptions
customizedProductId

Array of ids of the customized (Saved/Added to cart) products. The products which are customized/designed using Artifi (Product customization tool) and saved or Added to cart is called as Customized products.

Customized products will be listed in the cart and the order status of the products will be "Added to cart". This will be the products for which user wants to place an order. Order status of this products will get changed to "Checked out" after this operation.


websiteId

This is the website with which customized products are associated.

Admin user of Artifi can create one or more websites and assign products to each of the website. The Id of the website with which specified customized products is associated should be specified in this parameter.


webApiClientKey    

When any company gets registered with Artifi, Artifi will generate a special and unique key for that company which will be called as client key.

This client key will be found in registered company's profile tab in Artifi Account. This client key will be used for client(company) authentication and will be called as WebApiClientKey.


orderStatus

This is the string of the order status to be updated in Artifi.

OrderStatus can be Placed, InProgress, Draft or Email. This value need to be provided from Artifi. Constant only having 'orderStatus_' as suffix of the key.


Request body formats

application/json, text/json


Sample:
{
    "customizedProductIds":"100,101,102",
    "websiteId":{websiteId},
    "webApiClientKey":"{webApiClientKey}",
    "orderStatus":"{orderStatus}"
}


Response Information

Response body formats

application/json, text/json


Sample:
{
  "Response": "Success",
  "Message": "Order Status is/are updated successfully",
  "Data": null,
  "ErrorCode": null
}

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.