curl --request POST \
--url https://api.stage.rocka.live/api/payments/short-links \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"name": "<string>",
"paymentDescription": "<string>",
"amount": 123,
"paymentId": "<string>",
"currency": "<string>",
"webhookUrl": "<string>",
"returnUrl": "<string>",
"expiryDate": "2023-11-07T05:31:56Z"
}
'{
"id": "<string>",
"name": "<string>",
"paymentDescription": "<string>",
"amount": 123,
"currency": "<string>",
"isActive": true,
"createdDate": "2023-11-07T05:31:56Z",
"shortLinkUrls": {
"shortLink": "<string>",
"qrCodeLink": "<string>"
},
"expiryDate": "2023-11-07T05:31:56Z"
}curl --request POST \
--url https://api.stage.rocka.live/api/payments/short-links \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"name": "<string>",
"paymentDescription": "<string>",
"amount": 123,
"paymentId": "<string>",
"currency": "<string>",
"webhookUrl": "<string>",
"returnUrl": "<string>",
"expiryDate": "2023-11-07T05:31:56Z"
}
'{
"id": "<string>",
"name": "<string>",
"paymentDescription": "<string>",
"amount": 123,
"currency": "<string>",
"isActive": true,
"createdDate": "2023-11-07T05:31:56Z",
"shortLinkUrls": {
"shortLink": "<string>",
"qrCodeLink": "<string>"
},
"expiryDate": "2023-11-07T05:31:56Z"
}Link name. Your link will appear under this name in the Payment Links section in your Rocka Hub. Up to 100 symbols.
Payment description that your customer will see in the checkout form. Up to 255 symbols.
Payment amount.
This payment's identifier in your system. If you provide it, it'll be included in the webhook Rocka sends once the payment is completed.
Payment currency. For example, EUR.
Rocka sends a webhook to this URL whenever the payment's status changes.
The URL the customer is redirected to once the payment is completed.
This link's expiry date. By default, it'll expire in 30 days.
This link's unique identifier.
Link name.
Payment description.
Payment amount.
Payment currency.
Link status, either active or not.
Link creation timestamp.
Show child attributes
Link expiration date. By default, links expire in 30 days.
Was this page helpful?