Retrieve payment link for given ID
POST
/v1/payment-links/{paymentLinkId}
curl \
--request POST 'https://api.classmanager.io/v1/payment-links/{paymentLinkId}'
Response examples (200)
{
"paymentLink": {
"id": "pay_xxxxxxxxxxxxxxxxxxxxxxxxxx",
"companyId": "co_xxxxxxxxxxxxxxxxxxxxxxxxxx",
"transactionId": "trn_xxxxxxxxxxxxxxxxxxxxxxxxxx",
"createdAt": "2023-12-05 14:30:41"
},
"aggregateTransaction": {
"aggregateId": "trn_xxxxxxxxxxx",
"transaction": {
"id": "trn_123123123123",
"companyId": "co_123123123123",
"familyId": "fml_123123123123",
"familyName": "Potter",
"relatedTransactionId": "trn_123123123123",
"type": "debit",
"date": "2023-12-05",
"description": "This is a transaction",
"orderId": "ord_xxxxxxxxxxxxxxxxxxxxxxxxxx",
"deletedAt": "2023-12-05 14:30:41"
},
"details": [
{
"details": {
"id": "trn_123123123123",
"companyId": "co_123123123123",
"transactionId": "trn_123123123123",
"type": "manual-debit",
"amount": 100,
"description": "This is a transaction",
"deletedAt": "2023-12-05 14:30:41"
},
"relatedEntities": [
{
"id": "trn_123123123123",
"companyId": "co_123123123123",
"transactionDetailId": "trnd_123123123123",
"entityId": "cls_123123123123"
}
]
}
],
"stats": {
"total": 1000,
"subtotal": 950,
"discountTotal": 30,
"taxTotal": 20
}
},
"paymentSession": {
"paymentIntent": {
"id": "pm_1234567890",
"clientSecret": "pm_1234567890_secret_xxxxxxxx",
"amount": 1999,
"status": "canceled",
"paymentMethod": {
"id": "pm_123456789",
"type": "acss_debit",
"isDefault": true,
"data": {
"brand": "amex",
"country": "US",
"expiryMonth": 12,
"expiryYear": 2023,
"cardNumber": "************4242",
"last4": "4242"
}
},
"charge": {
"id": "pm_1234567890",
"amount": 1999,
"amountCaptured": 1999,
"amountRefunded": 1999,
"currency": "usd",
"refunded": false,
"refunds": [
{
"id": "pm_1234567890",
"amount": 1999,
"currency": "usd",
"status": "pending",
"createdAt": "2023-12-05"
}
]
}
},
"ephemeralKey": {
"id": "ephkey_xxxxxxxx",
"secret": "ek_xxxxxxxx",
"associatedObjectId": "cus_xxxxxxxx",
"associatedObjectType": "customer"
}
},
"subtotal": 1000,
"processingFee": 29,
"processingFeePercent": 2.9,
"total": 1029
}