Skip to main content

Get Payment Link Details

Retrieves detailed information about a specific payment link, including payment history and status changes.

Endpoint​

GET /api/v1/paymentLinks/{id}

Header Parameters​

ParameterTypeRequiredDescription
x-api-keystringrequiredPaySuite provided API key
merchantIdstringrequiredCustomer identifier as provided during customer onboarding

Path Parameters​

ParameterTypeRequiredDescription
iduuidrequiredUnique identifier for the payment link

Response Parameters​

Status Code: 200 OK​

ParameterTypeDescription
iduuidUnique identifier for the payment link
paymentLinkIdstringGenerated payment link number
divisionAccountIdstringDivision account identifier
merchantIdstringMerchant identifier
customerobjectCustomer information
descriptionstringPayment link description
externalReferencestringExternal reference identifier
externalUrlstringRedirect URL after payment
amountsobjectPayment amounts (currency, subtotal, total)
datesobjectPayment dates (requestedDate, dueDate, linkExpiryDate)
currencyCodestringISO 4217 currency code
statusCodestringPayment link status (created, in_progress, paid, partially_paid, expired, cancelled)
statusChangedAtdateTimeLast status change timestamp (ISO 8601)
paymentLinkUrlstringThe payment link URL to share with customers
paidAmountlongTotal paid amount in minor units
lastAccessedAtdateTimeLast time the payment link was accessed (nullable)
accessCountintegerNumber of times the payment link has been accessed
itemsarrayLine items
metadataobjectAdditional metadata
paymentsarrayArray of PaymentInfo objects
historyarrayArray of HistoryEntry objects
createdAtdateTimeCreation timestamp (ISO 8601)
updatedAtdateTimeLast update timestamp (ISO 8601)
createdBystringUser who created the payment link
updatedBystringUser who last updated the payment link
versionintegerVersion number for optimistic concurrency

Item Object​

FieldTypeDescription
iduuidUnique identifier for the line item
descriptionstringItem description
quantityintegerQuantity of items
unitPricelongPrice per unit in minor units
amountlongTotal item amount in minor units
offlinePaidAmountlongCumulative offline amount recorded against this item, in minor units
metadataobjectCustom key-value pairs (nullable)

PaymentInfo Object​

FieldTypeDescription
idstringPayment identifier
amountlongPayment amount in minor units
currencystringISO 4217 currency code
methodstringPayment method used
statusstringPayment status
datedateTimePayment date (ISO 8601)
externalPaymentReferencestringExternal payment reference (nullable)

HistoryEntry Object​

FieldTypeDescription
idstringHistory entry identifier
eventTypestringType of event
descriptionstringHuman-readable description
occurredAtdateTimeEvent timestamp (ISO 8601)
createdBystringUser who triggered event (nullable)

Example Request​

GET /api/v1/paymentLinks/550e8400-e29b-41d4-a716-446655440000

Example Response​

{
"id": "550e8400-e29b-41d4-a716-446655440000",
"paymentLinkId": "PL-20241101103000-a1b2c3",
"divisionAccountId": "6F2A9C31-8B45-4E0B-9C77-12AF34D9B201",
"merchantId": "A91C4B87-3D0E-4B46-8E52-9BD4E57EAA98",
"customer": {
"id": "7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d",
"name": "John Smith",
"email": "[email protected]",
"phone": "+44 7700 123456",
"address": {
"line1": "123 Business Street",
"line2": "Suite 100",
"city": "London",
"state": "England",
"postalCode": "SW1A 1AA",
"country": "GB"
}
},
"description": "Website development services Q4",
"externalReference": "INV-2024-001",
"externalUrl": "https://external-provider/inv-001",
"amounts": {
"currency": "GBP",
"subtotal": 200000,
"total": 300000
},
"dates": {
"requestedDate": "2024-11-01T00:00:00Z",
"dueDate": "2024-12-01T00:00:00Z",
"linkExpiryDate": "2024-12-31T23:59:59Z"
},
"currencyCode": "GBP",
"statusCode": "paid",
"statusChangedAt": "2024-11-15T14:22:00Z",
"paymentLinkUrl": "https://group.pay.accessacloud.com/pay/550e8400-e29b-41d4-a716-446655440000",
"paidAmount": 300000,
"lastAccessedAt": "2024-11-15T14:20:00Z",
"accessCount": 3,
"items": [
{
"id": "9b2e7c14-4f1a-4d3b-8a21-6c0f5e2d1a77",
"description": "Frontend Development",
"quantity": 40,
"unitPrice": 5000,
"amount": 200000,
"offlinePaidAmount": 0,
"metadata": {
"projectCode": "PROJ-001",
"department": "Engineering"
}
}
],
"metadata": {
"projectId": "PROJ-001",
"clientRef": "CONTRACT-2024-Q4",
"priority": "high"
},
"payments": [
{
"id": "pay_1234567890abcdef",
"amount": 300000,
"currency": "GBP",
"method": "card",
"status": "succeeded",
"date": "2024-11-15T14:22:00Z",
"externalPaymentReference": "pi_1234567890abcdef"
}
],
"history": [
{
"id": "hist_001",
"eventType": "payment_received",
"description": "Payment of £3000.00 received via card",
"occurredAt": "2024-11-15T14:22:00Z",
"createdBy": "stripe_webhook"
}
],
"createdAt": "2024-11-01T10:30:00Z",
"updatedAt": "2024-11-15T14:22:00Z",
"createdBy": "api-key-user",
"updatedBy": "system",
"version": 1
}

Status Code: 400 Bad Request​

Returned when the payment link ID format is invalid.

Status Code: 404 Not Found​

Returned when no payment link is found for the given id.