Create Link
https://api.nomod.com/v1/linksGenerate link.
curl -X POST 'https://api.nomod.com/v1/links' \
-H 'X-API-KEY: $NOMOD_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"currency": "string",
"items": [
{
"name": "string",
"amount": "0.00",
"quantity": 1
}
],
"title": "string",
"note": "string",
"discount_percentage": 0,
"shipping_address_required": false,
"allow_tip": false,
"custom_fields": [
{
"name": "string"
}
],
"success_url": "https://example.com",
"failure_url": "https://example.com",
"allow_tabby": false,
"allow_tamara": false,
"allow_service_fee": false,
"payment_expiry_limit": 1,
"expiry_date": "2026-01-01"
}'Request body
currencystringrequiredISO 4217 currency code for the link. Retrieve codes from the /currencies endpoint.
Max length: 3
itemsarrayrequiredList of items associated with this link, including name and amount.
titlestringCraft a beautiful name for your link
Max length: 50
notestringType out a quick note describing what you're selling
Max length: 280
discount_percentageintegerDiscount percentage.
Max: 100
Min: 0
shipping_address_requiredbooleanWhether shipping address is required.
allow_tipbooleanAllow tips.
custom_fieldsarrayCustom fields to add. Maximum of 5 allowed
success_urlstring <uri>URL to redirect to upon successful transaction completion
failure_urlstring <uri>URL to redirect to if the transaction fails.
allow_tabbybooleanWhether to enable Tabby payment method for the link. Default == true
allow_tamarabooleanWhether to enable Tamara payment method for the link. Default == true
allow_service_feebooleanWhether to enable service fee for the link. Default == true
payment_expiry_limitintegerSet number of payments as link expiry. Link will auto-expire after the set number of payments expiry is reached. Note: Only one parameter can be set at one time, either payment_expiry_limit or expiry_date
Min: 1
expiry_datestring <date>Set any of the future date as the expiry date. Link will auto expire at the end of the day (11:59 PM) of the set expiry date. Note: Only one parameter can be set at one time, either payment_expiry_limit or expiry_date
Responses
idstring <uuid>requiredread-onlyreference_idstringrequiredread-onlytitlestringrequiredread-onlyurlstring <uri>requiredread-onlyamountstring <decimal>requiredread-onlycurrencystringrequiredstatusobjectrequiredread-onlydiscountstring <decimal>requiredread-onlyservice_feestring <decimal>requiredread-onlyallow_tipbooleanrequiredread-onlyshipping_address_requiredbooleanrequiredread-onlyitemsarrayrequiredtaxstring <decimal>requiredread-onlynotestringrequiredread-onlytaxesarrayrequiredread-onlydiscount_percentageintegerrequiredread-onlyservice_fee_percentagestring <decimal>requiredread-onlytipstring <decimal>requiredread-onlytip_percentageintegerrequiredread-onlydue_datestring <date-time>requiredread-onlycustom_fieldsarrayrequiredread-onlysourceobjectrequiredread-onlyallow_tabbybooleanrequiredread-onlyallow_tamarabooleanrequiredread-onlyallow_service_feebooleanrequiredread-onlypayment_expiry_limitintegerrequiredread-onlyexpiry_datestring <date>requiredread-onlyExample response
{
"id": "00000000-0000-0000-0000-000000000000",
"reference_id": "string",
"title": "string",
"url": "https://example.com",
"amount": "0.00",
"currency": "string",
"status": {
"0": "e",
"1": "n",
"2": "a",
"3": "b",
"4": "l",
"5": "e",
"6": "d"
},
"discount": "0.00",
"service_fee": "0.00",
"allow_tip": false,
"shipping_address_required": false,
"items": [
{
"id": "00000000-0000-0000-0000-000000000000",
"amount": "0.00",
"name": "string",
"total_amount": "0.00",
"quantity": 0,
"sku": "string"
}
],
"tax": "0.00",
"note": "string",
"taxes": [
{
"name": "string",
"mode": "string",
"mode_value": "0.000",
"value": "0.000"
}
],
"discount_percentage": 0,
"service_fee_percentage": "0.00",
"tip": "0.00",
"tip_percentage": 0,
"due_date": "2026-01-01T00:00:00Z",
"custom_fields": [
{
"name": "string",
"is_required": false
}
],
"source": {
"0": "n",
"1": "o",
"2": "m",
"3": "o",
"4": "d",
"5": "_",
"6": "h",
"7": "o",
"8": "s",
"9": "t",
"10": "e",
"11": "d"
},
"allow_tabby": false,
"allow_tamara": false,
"allow_service_fee": false,
"payment_expiry_limit": 0,
"expiry_date": "2026-01-01"
}