Accept Crypto Subscriptions
curl --request POST \
--url https://api.copperx.dev/api/v1/products \
--header 'Authorization: Bearer {API_KEY}' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Pro Membership",
"description": "Monthly plan for premium users",
"isActive": true,
"unitLabel": "month",
"url": "https://example.com/product",
"metadata": {
"category": "SaaS"
},
"visibility": 10,
"defaultPriceData": {
"currency": "usdc",
"unitAmount": 50000000,
"interval": "month",
"intervalCount": 1,
"type": "recurring"
}
}'Last updated