Skip to main content
PATCH
/
v0
/
products
/
{id}
Update
curl --request PATCH \
  --url https://api.paygentic.io/v0/products/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "description": "<string>",
  "name": "<string>"
}'
{
  "id": "prod_d3e4f5g6h7i8j9k0",
  "object": "product",
  "createdAt": "2024-01-05T09:00:00Z",
  "description": "Language model API access",
  "merchantId": "org_l1m2n3o4p5q6r7s8",
  "metadata": {
    "category": "ai_services",
    "tier": "standard"
  },
  "name": "LLM API Service",
  "updatedAt": "2024-03-10T14:20:00Z"
}

Authorizations

Authorization
string
header
required

API key authentication

Path Parameters

id
string
required

The unique identifier of the product

Body

application/json
description
string

Revised product summary shown to customers. Sample values: 'Language model API access', 'Data processing and analytics service', 'AI-powered content creation platform'

name
string

Updated product title visible to customers. Sample values: 'LLM API Service', 'Data Platform', 'AI Content Generator'

Response

Product updated successfully

id
string
required

Unique identifier for a product

object
enum<string>
default:product
required
Available options:
product
createdAt
string<date-time>
required
description
string
required
merchantId
string
required

The merchant organization that owns this product

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