Skip to main content

Get Payment Link Details

GET /paymentlinks/{reference}

This endpoint allows merchants to retrieve detailed information about a specific payment link using its reference identifier. It provides comprehensive details, including configuration, status, and usage statistics.

Test URL

Send the request to the following URL:

https://checkout-api.staging.straumur.is/api/v1/paymentlinks/{reference}

Replace {reference} with the actual payment link reference.

{
"paymentLink": {
"terminalIdentifier": "1adfe4a1",
"paymentLinkReference": "30001aylo2a",
"themeKey": "441368-7a47f",
"description": "Payment for PlayStation 2 HDMI Adapter.",
"amount": 20000,
"currency": "ISK",
"returnUrl": null,
"status": "Active",
"culture": "is",
"type": "PayByLink",
"url": "https://pay.example.com/link/30001aylo2a",
"createdAt": "2025-01-01T09:50:14.343503Z",
"validUntil": null,
"recurringProcessingModel": null,
"visitCount": 69,
"salesCount": 1,
"maxSalesCount": null,
"items": [
{
"name": "Playstation 2 Analog RCA/SCART to HDMI Adapter Low Latency",
"quantity": 1,
"amountWithoutDiscount": 25000,
"amount": 20000,
"unitPrice": 20000
}
],
"shopperInfo": [
{
"field": "Ssn",
"requirementType": "Required",
"prefilledValue": null,
}
],
"submissions": [
{
"answers": [
{
"field": "Ssn",
"value": "1111111119"
}
],
"completed": true,
"amount": 20000,
"currency": "ISK",
"token": null
}
]
},
"responseDateTime": "2025-01-04T09:50:14.343503Z",
"responseIdentifier": "e3605f81-6b09-4ce1-83ad-5a8d49f3cd44"
}
{
"paymentLink": {
"terminalIdentifier": "1adfe4a1",
"themeKey": null,
"paymentLinkReference": "30001aylo2b",
"description": "Tokenization for PlayStation 2 purchase.",
"amount": 0,
"currency": "ISK",
"returnUrl": null,
"status": "Completed",
"culture": "is",
"type": "TokenizeByLink",
"url": "https://pay.example.com/link/30001aylo2b",
"createdAt": "2025-01-01T09:50:14.343503Z",
"validUntil": null,
"recurringProcessingModel": "CardOnFile",
"visitCount": 69,
"salesCount": 1,
"maxSalesCount": 1,
"items": [],
"shopperInfo": [
{
"field": "Ssn",
"requirementType": "Prefilled",
"prefilledValue": "1111111119",
}
],
"submissions": [
{
"answers": [
{
"field": "Ssn",
"value": "1111111119"
}
],
"completed": true,
"amount": 0,
"currency": "ISK",
"token": "A1B2C3D4E5F6G7H8"
}
]
},
"responseDateTime": "2025-01-04T09:50:14.343503Z",
"responseIdentifier": "e3605f81-6b09-4ce1-83ad-5a8d49f3cd44"
}

Response Fields

FieldTypeDescriptionExample
paymentLinkObjectThe payment link object-
responseDateTimeStringThe date and time when the response was generated.2024-09-04T09:50:14.343503Z
responseIdentifierStringThe unique identifier for the response.7be7111c-2e8e-4cd4-a5ba-f15bdfd177c1
FieldTypeDescriptionExample
terminalIdentifierStringThe terminal identifier to uniquely identify the terminal1adfe4a1
themeKeyStringThe value of the theme to be used for the checkout page441368-7a47f
paymentLinkReferenceStringUnique reference for the payment link30001aylo2a
descriptionStringDescription of the payment linkPayment for PlayStation 2 HDMI Adapter.
amountIntegerPayment amount in minor units0
currencyStringThree-character ISO currency codeISK
returnUrlStringThe URL to which the user is redirected after completing or cancelling paymenthttps://merchant.com/return
statusStringCurrent status of the payment link.
Values: Active, Expired, Used, Disabled
Active
cultureStringLanguage code used as default for the checkout pageis
typeStringType of payment link.
Values: PayByLink, TokenizeByLink
TokenizeByLink
urlStringThe URL at which the payment link can be openedhttps://pay.example.com/link/30001aylo2a
createdAtStringTimestamp when the payment link was created (ISO 8601 format)2025-01-01T09:50:14.343503Z
validUntilStringExpiration timestamp of the payment link (ISO 8601 format)2026-01-01T09:50:14.343503Z
recurringProcessingModelStringModel used for recurring payments, if applicable.
Values: CardOnFile, Subscription, UnscheduledCardOnFile
CardOnFile
visitCountIntegerNumber of times the payment link has been visited69
salesCountIntegerNumber of successful transactions completed through the link1
maxSalesCountIntegerMaximum allowed successful transactions for this link10
itemsArrayList of items related to this payment link-
shopperInfoArrayList of shopper info requested from the shopper-
submissionsArrayList of submission attempts-

Items Fields

FieldTypeDescriptionExample
nameStringName or description of the productPlaystation 2 Analog RCA/SCART to HDMI Adapter Low Latency
quantityIntegerNumber of units being purchased1
amountWithoutDiscountIntegerOriginal amount in minor units before any discounts25000
amountIntegerFinal payable amount in minor units after discount20000
unitPriceIntegerPrice per unit in minor units20000

Shopper Info Fields

FieldTypeDescriptionExample
fieldStringThe shopper data field being requestedSsn
requirementTypeStringIndicates if the field is required, optional, etc.Required
prefilledValueStringDefault value, if requirementType is set to 'Prefilled'null

Submissions Fields

FieldTypeDescriptionExample
answersArrayList of shopper answers to requested fields-
completedBooleanIndicates whether the submission resulted in a successful checkouttrue
amountIntegerThe total amount paid in minor units20000
currencyStringThree-character ISO currency codeISK
tokenStringPayment token if tokenization occurred, otherwise nullnull

Submission Answers Fields

FieldTypeDescriptionExample
fieldStringThe name of the shopper field that was answeredSsn
valueStringThe value provided by the shopper1111111119

Error Response

Error responses are standardized. For details, see Errors.

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