Get Payment Link Details
GET/payment-links/:paymentLinkId
This API method enables retrieving the Payment Link, the linked QR code, and its related details:
- The latest linked Transaction Id and its status
- Order
- Payment object
- Consumer object and the customerAccountId (if applicable)
Request
Path Parameters
The unique identifier for the payment link.
Header Parameters
Must be application/json
Must be be en-US
The origin of the request
The client making the request
Responses
- 200
- 400
- 401
- 403
- 404
- 500
Successful response with payment link details.
The Get Payment Link Details response includes the Transaction Id linked to the payment link, which could be used to call the Get Payment Status API, to retrieve the transaction full set of information.
If you receive an HTTP status other than 2xx
, the request failed. Please try to interpret the
response message to correct your request and contact Customer Support in case of further questions.
- application/json
- Schema
- Example (from schema)
- Example
Schema
Array [
Array [
]
Array [
]
]
The unique identifier for the payment link.
The date when the payment link was created.
The expiration date of the payment link.
The URL to redirect to on successful payment.
The URL to redirect to on failed payment.
templateContext
object
Template context for the Hosted Payment Page. Once provided, it is used by SmartPay to render a specific HTML with customized properties.
The ID of the template used.
The name of the template used.
The URL of the merchant's logo.
The customer account ID associated with the payment link.
payment
object
The payment amount to be charged against the payment option.
Possible values: <= 3 characters
Possible values: <= 127 characters
billingAddress
object
Consumer's billing address data. See Address
in Data model.
Possible values: <= 60 characters
Street name.
Possible values: <= 60 characters
Apartment, suite, unit, building, floor or other secondary address information.
Possible values: <= 60 characters
Specific delivery instructions, department names, or additional floor information.
Possible values: <= 50 characters
The city or localitly of the address.
Possible values: >= 3 characters
and <= 3 characters
ISO-3 code of the address country (e.g., DEU for Germany).
Possible values: <= 10 characters
The house or building number corresponding to the street address.
Possible values: <= 10 characters
The postal or ZIP code of the address.
Possible values: <= 3 characters
3-letter code of the address state. Mandatory when countryCode
corresponds to Canada or USA.
consumer
object
Consumer's personal data, in case the consumer
is a physical person.
Mandatory, unless businessConsumer
is provided.
consumer
and businessConsumer
objects may not be submitted together.
Possible values: <= 5 characters
Consists of ISO 639-1 language code and ISO 3166-1 alpha-2 country code separated by dash. If this value is not provided the browser culture is used. Default culture is English (e.g., en-de). This field is not case sensitive.
Possible values: <= 10 characters
, Value must match regular expression ^\d{4}-\d{2}-\d{2}$
Date of birth. Format - YYYY-MM-DD. Mandatory for payment option registration flow. Minimum date allowed is 1900-01-01
Possible values: <= 255 characters
Customer email address for any notification
Possible values: <= 60 characters
Person first name
Possible values: <= 6 characters
Person gender
Possible values: <= 30 characters
Person's home phone number (including the country code)
Possible values: <= 60 characters
Person last name
Possible values: <= 255 characters
Consumer/Customer Account Id in the merchant system. When provided into the Create Checkout API, SmartPay will request e-wallet account creation which will have external account reference equals to the given merchantCustomerId
value.
Possible values: <= 60 characters
The customer's middle name
Possible values: <= 30 characters
Person's mobile phone number (including the country code)
Possible values: <= 30 characters
Person's tax identification number
Possible values: <= 3 characters
Person title
Possible values: <= 30 characters
Person's work phone number (including the country code)
order
object
Purchased order details.
Possible values: <= 225 characters
lines
orderLine[]
required
additionalData
object[]
Possible values: <= 100 characters
Possible values: <= 255 characters
lines
object[]
List of purchased items associated with the order.
Sequential line number of the item in the order.
Possible values: <= 64 characters
Unique identifier or SKU of the purchased item.
Possible values: <= 255 characters
Name or description of the purchased item.
Quantity of the item purchased.
Unit net price (excluding VAT) of a single item.
VAT amount per unit item.
Unit gross price (net price + VAT) of a single item.
Possible values: <= 100
VAT percentage applied to the item.
Total net amount for the line (quantity × unit net price).
Total VAT amount for the line (quantity × unit VAT price).
Total gross amount for the line (net amount + VAT amount).
totals
object
Total gross amount for the line (net amount + VAT amount).
Total net amount for the line (quantity × unit net price).
Total VAT amount for the line (quantity × unit VAT price).
Possible values: <= 512 characters
Hosted payment page URL where the customer can complete the payment.
Possible values: <= 512 characters
QR code image URL representing the payment link.
Unique identifier of the latest associated transaction.
Possible values: <= 32 characters
Current status of the latest transaction (e.g., AUTHORIZED, CAPTURED, SETTLED).
{
"id": "string",
"creationDate": "2024-07-29T15:51:28.071Z",
"expiryDate": "2024-07-29T15:51:28.071Z",
"successUrl": "string",
"failureUrl": "string",
"templateContext": {
"templateId": "string",
"templateName": "string",
"merchantLogoURL": "string"
},
"customerAccountId": "string",
"payment": {
"amount": 0,
"currencyCode": "string",
"description": "string"
},
"billingAddress": {
"addressLine1": "Max-Planck-Straße",
"addressLine2": "string",
"addressLine3": "string",
"city": "Berlin",
"countryCode": "DEU",
"number": 30,
"postCode": 14473,
"state": "string"
},
"consumer": {
"culture": "en-EN",
"dateOfBirth": "1989-11-08",
"emailAddress": "john.doe@gmail.com",
"firstName": "John",
"gender": "Mr",
"homePhone": 496912345678,
"lastName": "Doe",
"merchantCustomerId": "abcd123",
"middleName": "Robert",
"mobilePhone": 496912345678,
"taxId": 123456789,
"timezone": "CET",
"title": "Mr",
"workPhone": 496912345678
},
"order": {
"externalOrderReference": "string",
"lines": [
{
"additionalData": [
{
"name": "string",
"value": "string"
}
],
"lines": [
{
"lineNumber": 0,
"itemArticleId": "string",
"itemName": "string",
"quantity": 0,
"unitPrice": 0,
"unitVatPrice": 0,
"unitGrossPrice": 0,
"vatPercent": 0,
"netAmount": 0,
"vatAmount": 0,
"grossAmount": 0
}
]
}
],
"totals": {
"grossAmount": 0,
"netAmount": 0,
"vatAmount": 0
}
},
"paymentUrl": "string",
"qrCodeUrl": "string",
"latestTransactionId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"latestTransactionStatus": "string"
}
{
"id": "1fae0965-1ad3-4a4e-ac12-bcda333cef2a",
"creationDate": "2022-11-30T18:14:51.227Z",
"expiryDate": "2022-12-03T18:14:51.138Z",
"successUrl": "https://successexample.com/",
"failureUrl": "https://failureexample.com/",
"templateContext": {
"templateId": "5e034b23-ab82-47fd-87a4-7c75a4b94bab",
"templateName": "Blue Label",
"merchantLogoURL": "https://hpp.cons.smartpay.jpmmps.com/assets/359a5691-dcdd-4a12-87e6-458630e3ce46/merchantLogo"
},
"customerAccountId": "test6gN4aJIR7B",
"payment": {
"currencyCode": "EUR",
"description": "MPS*SMARTPAY*01BA",
"amount": 800.2
},
"billingAddress": {
"number": "244",
"city": "Munich",
"countryCode": "DE",
"addressLine1": "Leopoldstrasse",
"addressLine2": "line 2",
"postCode": "80807",
"addressLine3": "line 3"
},
"consumer": {
"lastName": "Johny",
"firstName": "Doe",
"emailAddress": "test6gN4aJIR7B@mail.com",
"dateOfBirth": "1980-10-19"
},
"order": {
"externalOrderReference": "123-333",
"lines": [
{
"lineNumber": 1,
"itemArticleId": "321456",
"itemName": "tires A",
"quantity": 2,
"unitPrice": 125,
"unitVatPrice": 0,
"unitGrossPrice": 125,
"vatPercent": 0,
"netAmount": 250,
"vatAmount": 0,
"grossAmount": 250
},
{
"lineNumber": 2,
"itemArticleId": "321456",
"itemName": "tires B",
"quantity": 2,
"unitPrice": 125,
"unitVatPrice": 0,
"unitGrossPrice": 125,
"vatPercent": 0,
"netAmount": 250,
"vatAmount": 0,
"grossAmount": 250
}
]
},
"paymentUrl": "https://hpp.cons.smartpay.jpmmps.com/1fae0965-1ad3-4a4e-ac12-bcda333cef2a",
"qrCodeUrl": "https://hpp.cons.smartpay.jpmmps.com/assets/359a5691-dcdd-4a12-87e6-458630e3ce46/qrCodes/1fae0965-1ad3-4a4e-ac12-bcda333cef2a.png",
"latestTransactionId": "1c5675f8-1580-4f76-b7f5-b4f574982bbb",
"latestTransactionStatus": "SETTLED"
}
Bad Request
For error handling, please refer to this section.
- application/json
- Schema
- Example (from schema)
- Example
Schema
- MOD1
- MOD2
Array [
]
errorDetails
object
message
object
oneOf
string
string
{
"error": "string",
"errorDetails": {
"context": {},
"gatewayDescription": "string",
"paymentProviderDescription": "string"
},
"message": "string"
}
{
"traceId": "00-1234567890abcdef0123456789abcdef-0123456789abcdef-00",
"errors": [
{
"message": "Value out of bounds. Value must be between 1 and 100",
"code": "value_out_of_bounds",
"property": "someField",
"context": {
"minimum": 1,
"maximum": 100
}
}
]
}
Unauthenticated
For error handling, please refer to this section.
- application/json
- Schema
- Example (from schema)
- Example
Schema
- MOD1
- MOD2
Array [
]
errorDetails
object
message
object
oneOf
string
string
{
"error": "string",
"errorDetails": {
"context": {},
"gatewayDescription": "string",
"paymentProviderDescription": "string"
},
"message": "string"
}
{
"traceId": "00-1234567890abcdef0123456789abcdef-0123456789abcdef-00",
"errors": [
{
"message": "You are not authenticated to perform this request.",
"code": "unauthorized"
}
]
}
Forbidden
For error handling, please refer to this section.
- application/json
- Schema
- Example (from schema)
- Example
Schema
- MOD1
- MOD2
Array [
]
errorDetails
object
message
object
oneOf
string
string
{
"error": "string",
"errorDetails": {
"context": {},
"gatewayDescription": "string",
"paymentProviderDescription": "string"
},
"message": "string"
}
{
"traceId": "00-1234567890abcdef0123456789abcdef-0123456789abcdef-00",
"errors": [
{
"message": "You do not have permissions to perform this request.",
"code": "forbidden"
}
]
}
Not Found
For error handling, please refer to this section.
- application/json
- Schema
- Example (from schema)
- Example
Schema
- MOD1
- MOD2
Array [
]
errorDetails
object
message
object
oneOf
string
string
{
"error": "string",
"errorDetails": {
"context": {},
"gatewayDescription": "string",
"paymentProviderDescription": "string"
},
"message": "string"
}
{
"traceId": "00-1234567890abcdef0123456789abcdef-0123456789abcdef-00",
"errors": [
{
"message": "Resource not found.",
"code": "not_found"
}
]
}
Internal Server Error
For error handling, please refer to this section.
- application/json
- Schema
- Example (from schema)
- Example
Schema
- MOD1
- MOD2
Array [
]
errorDetails
object
message
object
oneOf
string
string
{
"error": "string",
"errorDetails": {
"context": {},
"gatewayDescription": "string",
"paymentProviderDescription": "string"
},
"message": "string"
}
{
"traceId": "00-1234567890abcdef0123456789abcdef-0123456789abcdef-00",
"errors": [
{
"message": "Internal server error."
}
]
}