Skip to main content
POST
/
api
/
payments
/
products
Create Product
curl --request POST \
  --url https://api.example.com/api/payments/products \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "environment": "test",
  "name": "Pro Plan",
  "description": "Monthly access to Pro features",
  "active": true,
  "metadata": {
    "tier": "pro"
  },
  "idempotencyKey": "product-pro-plan"
}
'
{
  "product": {
    "environment": "test",
    "stripeProductId": "prod_123",
    "name": "<string>",
    "description": "<string>",
    "active": true,
    "defaultPriceId": "price_123",
    "metadata": {},
    "syncedAt": "2023-11-07T05:31:56Z"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.insforge.dev/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
environment
enum<string>
required
Available options:
test,
live
name
string
required
Minimum string length: 1
description
string | null
Maximum string length: 5000
active
boolean
metadata
object
idempotencyKey
string
Required string length: 1 - 200

Response

Product created

product
object
required