PATCH
/
products
/
{id}
Update product
curl --request PATCH \
  --url https://api.paygentic.io/v0/products/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "description": "<string>"
}'
{
  "id": "<string>",
  "object": "product",
  "name": "<string>",
  "description": "<string>",
  "merchantId": "<string>",
  "metadata": {},
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

API key authentication

Path Parameters

id
string
required

The unique identifier of the product

Body

application/json
name
string

Name of the product. This will be displayed to the customer.

description
string

Description of the product. This will be displayed to the customer.

Response

Product updated successfully

id
string
required

Unique identifier for a product

object
enum<string>
default:product
required
Available options:
product
name
string
required
description
string
required
merchantId
string
required

The merchant organization that owns this product

metadata
object
required
createdAt
string<date-time>
required
updatedAt
string<date-time>
required