Skip to main content

Create Payment Link

POST /paymentlinks/create

This endpoint allows merchants to create new payment links for both payment collection and card tokenization. The request structure varies depending on the type of link being created.

Test URL

Send the request to the following URL:

https://checkout-api.staging.straumur.is/api/v1/paymentlinks/create

This call creates a new payment link with the specified configuration.

{
"type": "PayByLink",
"terminalIdentifier": "1adfe4a1",
"amount": 48900,
"currency": "ISK"
}
{
"type": "TokenizeByLink",
"terminalIdentifier": "1adfe4a1",
"recurringProcessingModel": "CardOnFile",
"amount": 0,
"currency": "ISK"
}

Request Required Fields

FieldTypeRequiredDescriptionExampleMin LengthMax Length
terminalIdentifierStringRequiredThe terminal identifier to uniquely identify the terminal.

You can find your Terminal Identifier in the Merchant Portal.

Open Section "Terminals" > Select Terminal to open Details panel > Copy Terminal Identifier.
1adfe4a11212
amountIntegerRequiredThe amount to be charged in minor units. Must end in 00 for ISK. Must be 0 for TokenizeByLink type.48900--
currencyStringRequiredThe three-character ISO currency code.ISK33
typeStringRequiredType of payment link.PayByLink--

Supported Type Values

ValueDescription
PayByLinkCreates a pay-by-link for collecting payments
TokenizeByLinkCreates a tokenize-by-link for saving payment methods

Example Success Response

{
"paymentLinkReference": "30001aylo2a",
"url": "https://pay.example.com/link/30001aylo2a",
"responseDateTime": "2025-01-04T09:50:14.343503Z",
"responseIdentifier": "e3605f81-6b09-4ce1-83ad-5a8d49f3cd44"
}

Response Fields

FieldTypeDescriptionExample
paymentLinkReferenceStringUnique reference for the payment link30001aylo2a
urlStringThe shareable payment link URLhttps://pay.example.com/link/30001aylo2a
responseDateTimeStringThe date and time when the response was generated.2025-01-04T09:50:14.343503Z
responseIdentifierStringThe unique identifier for the response.e3605f81-6b09-4ce1-83ad-5a8d49f3cd44

Error Response

Error responses are standardized. For details, see Errors.

You can also find a detailed overview of our HTTP Status Codes.