Sending PayLinks

Learn how to send a PayLink

Overview

Skipify is capable of sending a created PayLink via email or SMS. The use of this endpoint is conditional based on the parameters set on the create endpoint:

  • To send a PayLink via email, you must set the sendEmail parameter to true. This will also require you to add an email within the Customer object.
  • To send a PayLink via text message, you must set the sendSMS parameter to true. This will also require you to add a phone number within the Customer object.

Please read the Creating PayLinks documentation to ensure you are creating links correctly to allow you to use this capability.

API Request

👍

This endpoint uses HMAC

Check out our API Authentication to learn more

The endpoint for this request uses the payment's paylinkId, which was originally provided in the response body when you created the PayLink.

To send a PayLink to a customer, send an API call to:

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

Production:PATCH https://paylinks.skipify.com/{paylinkId}/send

Request Body Parameters

Parameter NameRequired?TypeDescription
sendEmailyesbooleanThis field is used when you are using Skipify to deliver a link to the customer via email.
sendSmsyesbooleanThis field is used when you are using Skipify to deliver a link to the customer via text.

HTTP API Response Codes

CodeDescription
200Successfully sent a PayLink
400Invalid send request
404PayLink was not found
500Unable to send the PayLink

Response Body Parameters

Parameter NameTypeDescription
paylinkIdstringSkipify’s unique identifier for the PayLink. This ID will be needed to use the other endpoints.
linkstring (url)What we all came here for! This is the URL that you will use to forward to your customers.

Do what you like with this URL, it can be embedded as-is, and can be converted into a QR code.
shortLinkstring (url)A Skipify generated Short Link that you can use instead of the link to forward to your customers if you deliver the PayLink yourself.
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.
currencyCodestringUSD only today
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.
taxintegerAmount of tax sent for the Paylink
shippingstringAmount of shipping sent for the Paylink
orderIdstringwill be Null upon Paylink Creation. OrderId is assigned to Paylink once Payment completed.
expirationdateTime, string,The expiration date/time of the Paylink that 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 at in UTC
updatedAtdateTime, stringThe date/time the Paylink was updated in UTC
customerConsentbooleanThe boolean flag set in the request, must be true to send
totalintegerTotal amount of Paylink
orderTotalstringnull
lastSentAtstringnull
lineItemsObjectThese are the line items sent with the request. This object also returns:
'createdAt' - dateTime, string
'updatedAt' - dateTime, string
deliveryLogsObject/ArrayObject and array of SMS and/or email delivery details
openOrdersObjectnull
eventsObjectlist of events associated with this Paylink, upon send, newValue, Status = SENT
statusstringcurrent status of Paylink, upon successfully sent, status = SENT
subTotalintegersubTotal amount of Paylink
customerobjectCustomer object sent with request
attachmentsobjectList of attachments file names if added to Paylink

Response Body Example

{
    "paylinkId": "string",
    "link": "string",
    "shortLink": "string",
    "merchantInvoiceId": "string",
    "currencyCode": "USD",
    "merchantId": "string",
    "metadata": null,
    "description": "string",
    "memo": "string",
    "tax": null,
    "shipping": null,
    "orderId": null,
    "expiration": "2025-02-28T16:13:00.000Z",
    "sendSms": true,
    "sendEmail": true,
    "createdAt": "2024-04-19T16:22:00.599Z",
    "updatedAt": "2024-04-19T17:52:47.702Z",
    "customerConsent": true,
    "total": 1010,
    "orderTotal": null,
    "lastSentAt": "2024-04-19T17:52:47.699Z",
    "lineItems": [
        {
            "paylinkItemId": "string",
            "sku": "123987ABCXYZ",
            "paylinkId": "string",
            "price": 1010,
            "quantity": 1,
            "tax": 0,
            "description": "string",
            "category": "string",
            "metadata": null,
            "createdAt": "2024-04-19T16:22:00.599Z",
            "updatedAt": "2024-04-19T16:22:00.599Z"
        }
    ],
    "deliveryLogs": [
        {
            "deliveryLogId": "string",
            "paylinkId": "string",
            "deliveryMethod": "SMS",
            "status": "SENT",
            "messageId": "string",
            "createdAt": "2024-04-19T17:52:47.702Z",
            "updatedAt": "2024-04-19T17:52:47.702Z"
        },
        {
            "deliveryLogId": "string",
            "paylinkId": "string",
            "deliveryMethod": "EMAIL",
            "status": "SENT",
            "messageId": "string",
            "createdAt": "2024-04-19T17:52:47.702Z",
            "updatedAt": "2024-04-19T17:52:47.702Z"
        }
    ],
    "openOrders": [],
    "events": [
        {
            "eventId": "string",
            "paylinkId": "string",
            "eventType": "CREATED",
            "oldValue": null,
            "newValue": null,
            "createdBy": "API Key",
            "createdAt": "2024-04-19T16:22:00.599Z"
        },
        {
            "eventId": "string",
            "paylinkId": "string",
            "eventType": "SENT",
            "oldValue": {
                "status": "CREATED"
            },
            "newValue": {
                "status": "SENT",
                "deliveredTo": [
                    "SMS",
                    "EMAIL"
                ]
            },
            "createdBy": "API Key",
            "createdAt": "2024-04-19T17:52:47.702Z"
        }
    ],
    "status": "SENT",
    "subTotal": 1010,
    "customer": {
        "accountName": null,
        "email": "[email protected]",
        "phone": "3333333333",
        "firstName": "first",
        "lastName": "last",
        "paylinkCustomerId": null
    },
    "attachments": []
}

Skipify baner with link to contact us form