Looking Up PayLinks

Learn how you can look up a previously created PayLink

Overview

You may want to look up a PayLink for a number of reasons, like reviewing the details so you can modify it, or just to confirm its status.

API Request

👍

This endpoint uses HMAC

Check out our API Authentication to learn more

This endpoint references the paylinkId of the PayLink, which was provided in the response body when you created the PayLink.

To look up a PayLink, send an API call to:

Staging:GET https://stage-paylinks.skipify.com/{paylinkId}

Production:GET https://paylinks.skipify.com/{paylinkId}

API Response

Response Body Parameters

The response body will include all of the elements that you passed to us when you created the Payment Request. It will also include the following:

NameTypeDescription
paylinkIdstringSkipify’s unique identifier for the PayLink. This ID will be needed to use the other endpoints.
linkstring (url)The URL for this PayLink
shortLinkstring(url)The short link URL for this PayLink
merchantInvoiceIdstringA unique identifier that you send with the request is returned in the response. This identifier will not be visible to the customer. It can be used for your reference to link a Skipify order to a record in your systems. Max 255 char.
currencyCodestringThe currency used to create the PayLink. Only USD supported currently.
merchantIdstringThe merchantId that this PayLink was created for
metadataobjectIf sent in the request, will be returned in the response
descriptionstringThe description sent with the PayLink create request. This will be displayed to the customer.
memostringThe memo sent with the PayLink create request. This will be displayed to the customer.
taxintegerIf tax was included in the PayLink create request, will be returned in the response
shippingintegerIf shipping was included in the PayLink create request, will be returned in the response
orderIdstringwill be Null unless PayLink status = Paid, Partially_Paid, Refunded, or Partially_Refunded
expirationdateTime, stringThe expiration date/time of the PayLink if it was set in the Request.
Ex:
2024-06-02T21:48:02Z
sendSmsbooleanThe boolean flag set on the request
sendEmailbooleanThe boolean flag set on the request
createdAtdateTime, stringThe date/time the PayLink was created, in UTC
updatedAtdateTime, stringThe date/time the PayLink was most recently updated, in UTC
customerConsentbooleanThe boolean flag set in the request, must be true to send
totalintegerTotal amount of lineItems, shipping, tax
orderTotalintegerThe total plus any fees applied during payment
approvedAmountintegerThe amount that was approved for during payment
lastSentAtdateTime, stringThe last time the PayLink was sent to the customer
lineItemsarrayAn array of Line Items sent when the PayLink was created
statusenum Denotes what status the PayLink is in

Created means the request to generate a PayLink was successful. No other action by the customer or Skipify has been taken.

Opened is a PayLink that was opened (clicked on) by the customer. A link could remain in this status if the customer doesn’t complete the checkout.

Sent is a PayLink that was sent via Skipify delivery mechanisms. If both email & SMS are used to deliver a link, this status will reflect either success. The delivery log in the response will indicate which, if any, delivery method failed.

Cancelled means the PayLink has been cancelled via the Invalidate Paylinks endpoints.

Partially_Paid is a PayLink that has been partially paid using Skipify PayLink. You may send a new PayLink to secure the remaining amount.

Paid is a PayLink that has been successfully paid using Skipify PayLink.

Refunded is a PayLink that has refunded the entire amount that the customer paid during checkout.

Partially_Refunded is a PayLink that has refunded a partial amount that the customer paid during checkout.

Expired is a PayLink that has passed the datetime specified by you in the expiration field of the original PayLink.
subTotalstringTotal amount of lineitems and lineitems tax
openOrdersarrayList of orders that have been created for the Paylink
orderIdstring, nullableID of the associated order in the Skipify system
Delivery LogsarrayExample:
[
{
"deliveryLogId": "string",
"paylinkId": "string",
"deliveryMethod": "EMAIL",
"status": "DELIVERED",
"messageId": "string",
"createdAt": "2023-08-10T21:38:00.802Z",
"updatedAt": "2023-08-10T22:38:05.802Z"
}
]
eventsarrayExample:

{ "eventId": "string", "paylinkId": "string", "eventType": "PAID", "oldValue": { "status": "OPENED" }, "newValue": { "status": "PAID", "orderTotal": 121, "amountPaid": 121 },
transactionsarrayExample:
{
"transactionType": "Sale",
"transactionAmount": 2222,
"pspTransactionId": "string",
"skipifyTransactionId": "string",
"cardBrand": "mastercard",
"cardLastFour": "2205",
"cardExpirationMonth": 12,
"cardExpirationYear": 25
}

Response Body Example


{   
 		"paylinkId": "113ad60b-6c4d-41b5-b4f7-3b2444ebdd25",
    "link": "https://stagecheckout.skipify.com/paylink/process/113ad60b-6c4d-41b5-b4f7-3b2444ebdd25",
    "shortLink": "https://pl-stage.skipify.com/CF62Yt3",
    "merchantInvoiceId": "your unique value",
    "currencyCode": "USD",
    "merchantId": "a1da0dbf-ccde-4265-8ccd-3b987c0a7193",
    "metadata": null,
    "description": "All sales are final",
    "memo": "Thank you for your business",
    "tax": null,
    "shipping": null,
    "orderId": "668570c06f1eder57a289bc7",
    "expiration": "2025-05-22T21:44:00.000Z",
    "sendSms": false,
    "sendEmail": false,
    "createdAt": "2024-07-03T15:39:42.021Z",
    "updatedAt": "2024-07-03T15:40:00.148Z",
    "customerConsent": true,
    "total": 2222,
    "orderTotal": 2222,
    "approvedAmount": 2222,
    "lastSentAt": null,
    "lineItems": [
        {
            "paylinkItemId": "59c741-7741-4c39-9097-7bc27b3f2904",
            "sku": "ABCDEFG123456",
            "paylinkId": "226af40b-6c4d-41b5-b4f7-3b2444ebdd25",
            "price": 1111,
            "quantity": 2,
            "tax": null,
            "description": "Blue Hooded Sweatshirt Size L",
            "category": "Men's",
            "metadata": null,
            "createdAt": "2024-07-03T15:39:42.021Z",
            "updatedAt": "2024-07-03T15:39:42.021Z"
        }
    ],
    "deliveryLogs": [],
    "openOrders": [
        {
            "paylinkId": "226af40b-6c4d-41b5-b4f7-3b2444ebdd25",
            "orderId": "668570c06f1eder57a289bc7",
            "createdAt": "2024-07-03T15:39:44.766Z"
        }
    ],
    "events": [
        {
            "eventId": "60f993b2-360b-4356-a509-2d5099c5c6b1",
            "paylinkId": "226af40b-6c4d-41b5-b4f7-3b2444ebdd25",
            "eventType": "CREATED",
            "oldValue": null,
            "newValue": null,
            "createdBy": "API Key",
            "createdAt": "2024-07-03T15:39:42.021Z"
        },
        {
            "eventId": "cc32a004-5079-4f43-87fe-1d46231bd909",
            "paylinkId": "226af40b-6c4d-41b5-b4f7-3b2444ebdd25",
            "eventType": "OPENED",
            "oldValue": {
                "status": "CREATED"
            },
            "newValue": {
                "status": "OPENED"
            },
            "createdBy": null,
            "createdAt": "2024-07-03T15:39:44.766Z"
        },
        {
            "eventId": "0779a8dd-b6f5-4a60-9501-8b681ba2f5f8",
            "paylinkId": "226af40b-6c4d-41b5-b4f7-3b2444ebdd25",
            "eventType": "PAID",
            "oldValue": {
                "status": "OPENED"
            },
            "newValue": {
                "status": "PAID",
                "orderTotal": 2222,
                "approvedAmount": 2222
            },
            "createdBy": null,
            "createdAt": "2024-07-03T15:40:00.148Z"
        }
    ],
    "status": "PAID",
    "subTotal": 2222,
    "customer": {
        "email": null,
        "phone": null,
        "firstName": null,
        "lastName": null,
        "paylinkCustomerId": null
    },
    "attachments": [],
    "transactions": [
        {
            "transactionType": "Sale",
            "transactionAmount": 2222,
            "pspTransactionId": "406503199",
            "skipifyTransactionId": "13223fb91-51c9-42b5-9156-45bc35308e7c",
            "cardBrand": "mastercard",
            "cardLastFour": "2205",
            "cardExpirationMonth": 12,
            "cardExpirationYear": 25
        }
    ]
}

Skipify baner with link to contact us form