Skip to main content
POST
/
v0
/
products
Create
curl --request POST \
  --url https://api.paygentic.io/v0/products \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "description": "<string>",
  "merchantId": "<string>",
  "metadata": {},
  "name": "<string>"
}'
{
  "id": "prod_x1y2z3a4b5c6d7e8",
  "object": "product",
  "createdAt": "2024-01-10T08:15:00Z",
  "description": "Enterprise access to advanced language models for natural language tasks",
  "merchantId": "org_f9g0h1i2j3k4l5m6",
  "metadata": {
    "category": "ai_services",
    "tier": "enterprise"
  },
  "name": "Large Language Model Service",
  "updatedAt": "2024-01-10T08:15:00Z"
}

Authorizations

Authorization
string
header
required

API key authentication

Body

application/json
description
string
required

Customer-visible product summary explaining capabilities and use cases. Sample values: 'Enterprise access to advanced language models for natural language tasks', 'Scalable data warehousing with real-time query capabilities', 'On-demand AI image generation using diffusion models', 'Distributed computing infrastructure for training deep learning models', 'High-performance vector similarity search database', 'Production-ready speech-to-text conversion service'

merchantId
string
required

The merchant organization that will own this product

name
string
required

Customer-facing product title shown in invoices and dashboards. Sample values: 'Large Language Model Service', 'Cloud Data Warehouse', 'AI Image Creator', 'Neural Network Training Platform', 'Vector Database', 'Speech Recognition API'

metadata
object

Optional key-value metadata storage for product information. Sample values: {"category": "ai_services", "tier": "enterprise"}, {"region": "global", "support_level": "premium"}

Response

Product created 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