Skip to main content
POST
/
v0
/
fees
Create
curl --request POST \
  --url https://api.paygentic.io/v0/fees \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "merchantId": "<string>",
  "productId": "<string>"
}
'
{
  "id": "fee_w9x0y1z2a3b4c5d6",
  "object": "fee",
  "createdAt": "2024-01-15T10:30:00Z",
  "description": "One-time setup fee for new customers",
  "merchantId": "org_e7f8g9h0i1j2k3l4",
  "name": "Setup Fee",
  "productId": "prod_m5n6o7p8q9r0s1t2",
  "updatedAt": "2024-01-15T10:30:00Z"
}

Authorizations

Authorization
string
header
required

API key authentication

Body

application/json
name
string
required

Human-readable label identifying the fee. Sample values: 'Setup Fee', 'Monthly Subscription', 'Compliance Update', 'Annual License'

description
string
required

Explanatory text describing what the fee represents. Sample values: 'One-time setup fee for new customers', 'Monthly base subscription charge', 'Yearly compliance and security update fee'

merchantId
string
required

The unique identifier of the merchant organization associated with the fee.

productId
string
required

The unique identifier of the product associated with the fee.

Response

Fee created successfully

id
string
object
enum<string>
default:fee
Available options:
fee
name
string
description
string
merchantId
string

Unique identifier for an organization

productId
string

Unique identifier for a product

createdAt
string<date-time>
updatedAt
string<date-time>