Create a new payment link for your school
Authentication with the “FERMION-API-KEY” header is required to use this endpoint.
Rate limit: Maximum 60 requests in a window of 1m.
curl --request POST \
--url https://backend.codedamn.com/api/public/create-payment-link-digital-product \
--header 'Content-Type: application/json' \
--header 'FERMION-API-KEY: <api-key>' \
--data '
{
"data": [
{
"data": {
"productData": {
"title": "<string>",
"shortDescription": "<string>",
"status": "Draft",
"thumbnailUrl": "<string>"
},
"pricingPlan": {
"planType": "OneTimePaymentPlan",
"config": {
"friendlyPlanName": "<string>",
"prices": [
{
"currencyType": "Aud",
"currencySymbol": "<string>",
"priceInLowestCurrencyUnit": 1
}
],
"inrCurrencySpecificData": {
"isAmountExclusiveOfGst": true
},
"defaultFallbackCurrency": "Aud",
"additionalDataToCollectOnCheckout": {
"customFields": [
{
"fieldType": "string",
"label": "<string>",
"sublabel": "<string>",
"isRequired": false
}
]
}
}
}
}
}
]
}
'[
{
"output": {
"status": "ok",
"data": {
"fermionDigitalProductId": "<string>",
"paymentLinkUrl": "<string>"
}
}
}
]API Request Body
Show child attributes
Show child attributes
Payment link information
Show child attributes
Name of the payment link
1Brief description of the payment link
1Initial status of the payment link
Draft, Active, Unlisted URL of the payment link thumbnail image (optional, will use default if not provided)
Optional pricing plan configuration. If not provided, no pricing will be set up.
Show child attributes
Type of pricing plan
OneTimePaymentPlan Pricing plan configuration
Show child attributes
Show child attributes
Aud, Bdt, Brl, Cad, Cop, Dop, Etb, Eur, Gbp, Idr, Inr, Kes, Lkr, Mad, Myr, Mxn, Ngn, Npr, Nzd, Pkr, Pln, Rub, Thb, Try, Usd, Sgd, Cny, Sar, Twd, Jpy, Krw, Vnd x >= 0Aud, Bdt, Brl, Cad, Cop, Dop, Etb, Eur, Gbp, Idr, Inr, Kes, Lkr, Mad, Myr, Mxn, Ngn, Npr, Nzd, Pkr, Pln, Rub, Thb, Try, Usd, Sgd, Cny, Sar, Twd, Jpy, Krw, Vnd Show child attributes
Show child attributes
string API Response Body
Show child attributes
curl --request POST \
--url https://backend.codedamn.com/api/public/create-payment-link-digital-product \
--header 'Content-Type: application/json' \
--header 'FERMION-API-KEY: <api-key>' \
--data '
{
"data": [
{
"data": {
"productData": {
"title": "<string>",
"shortDescription": "<string>",
"status": "Draft",
"thumbnailUrl": "<string>"
},
"pricingPlan": {
"planType": "OneTimePaymentPlan",
"config": {
"friendlyPlanName": "<string>",
"prices": [
{
"currencyType": "Aud",
"currencySymbol": "<string>",
"priceInLowestCurrencyUnit": 1
}
],
"inrCurrencySpecificData": {
"isAmountExclusiveOfGst": true
},
"defaultFallbackCurrency": "Aud",
"additionalDataToCollectOnCheckout": {
"customFields": [
{
"fieldType": "string",
"label": "<string>",
"sublabel": "<string>",
"isRequired": false
}
]
}
}
}
}
}
]
}
'[
{
"output": {
"status": "ok",
"data": {
"fermionDigitalProductId": "<string>",
"paymentLinkUrl": "<string>"
}
}
}
]