Poq.SDK.Node

Home > @poq/sdk-sfcc > CustomersClient > patchCustomersByIDProductListsByIDItemsByIDPurchasesByID

CustomersClient.patchCustomersByIDProductListsByIDItemsByIDPurchasesByID() method

Updates a purchase of an item from a customers product list. Considered values from the request body are: custom properties in the form c_<CUSTOM_NAME>: the custom property must correspond to a custom attribute (<CUSTOM_NAME>) defined for ProductListItemPurchase. The value of this property must be valid for the type of custom attribute defined for ProductListItemPurchase.

Signature:

patchCustomersByIDProductListsByIDItemsByIDPurchasesByID(customerId: string, listId: string, itemId: string, purchaseId: string, body: CustomerProductListItemPurchase, options?: RequestOptions): Promise<PoqResponse<CustomerProductListItemPurchase>>;

Parameters

Parameter Type Description
customerId string The id of the customer to retrieve the product list item purchases for.
listId string The id of the product list.
itemId string The id of the product list item to retrieve.
purchaseId string The id of the product list item purchase to retrieve.
body CustomerProductListItemPurchase  
options RequestOptions (Optional) Override http request option.

Returns:

Promise<PoqResponse<CustomerProductListItemPurchase>>