You are viewing a section of Superface that will be deprecated in Q4 2023. Until then, you can continue to use it as you have before but we recommend that you migrate to our latest version soon. For more details visit superface.ai/docs/migrate.

Update Product

payments/update-product@1.0.0
2 providers

Update Product

Updates information about an existing product. Heads up! Not all providers may support updating all fields. Please be mindful of the `result`.

Input
ID
New name
Description
Result
Name
Description

1.Choose a provider

2.Use UpdateProduct with mock in your code

Below instructions are for our Node.js SDK. Use OneService for other languages.
npm i @superfaceai/one-sdk

Structure details

Input (object)

productId
Identifier of the product for updating.
name
New name to be set on the product.
description
New description to be set on the product.

Example

Result (object)

name
Name of the product after update (may or may not have changed).
description
Description of the product after update (may or may not have changed).

Example

Implementation details

Provider
mock
Use case
UpdateProduct
Author
@superface
Source
Verified