Number of APIs: 12
The Payment Links collection allows you to generate and cancel payment links, query payment statuses, and retrieve all payment links. The following are the API endpoints for the live and sandbox servers: Live: Sandbox: Retrieve the following credentials from the Payment Links section of the Peach Payments Dashboard: To receive notifications whenever a payment link's status changes, you'll also need a webhook URL to insert into To fork the environment from the [Peach Payments workspace] To fork the collection from the [Peach Payments workspace] To get started: Before you can begin sending requests, you need to authenticate: To upload a file that can be attached to a payment link: The file is uploaded and a Note: The To generate a payment link: The payment link appears in the To download a file that was attached to a payment link: The file's location is returned in the response body; hold Ctrl or Command and click the URL to download the file. To query a payment link's status: The response body lists the payment link's status, including the To retrieve all payment links: The response body lists all your payment links without the Note: To return all payment links successfully created using a batch CSV, include the To export all the payment links for a particular merchant to a CSV file: The response body includes the CSV location; hold Ctrl or Command and click the URL to download the file. Note: Entering a To cancel the payment link that you just created: The payment link is cancelled. To generate a batch payment links URL to which you can upload a CSV:API endpoints
https://links.peachpayments.com
https://sandbox-l.ppay.io
Prerequisites
clientId
: It resembles c3e5374856a3334f2dfe1451d36f3z
.clientSecret
: It resembles aonSYINF2PxLB0EUBeXPIR+xYRTNhYb17i762K4SUb5gBINz8GGwHvcYfZg29qtAAIHiniL/n7LrVGqdmNkrdz==
.merchantId
: It resembles 9f6ea39b121d11e89d9774d4352a31dz
.entityId
: It resembles 8ac7a4ca694cec2601694cf5f936002z
.notificationUrl
.Fork the environment and collection
Configure the environment
notificationUrl
parameter.Authentication
Use the Payment Links API
Upload a file
fileId
is returned in the response. Take note of this fileId
as you will require it to attach this file to a payment link.fileId
can only be used for a single payment link.Generate a payment link
fileId
that was returned in the file upload response into the files
field, ensuring that you enclose the value in quotation marks. It should look similar to "files": ["ca6cd55b-4be6-451d-bd72-fe5b7ec1f75z"],
.url
parameter of the response body. Open the link in your browser to see the payment link details, the attachment, and to make payment.Download a file
Query a payment link's status
audit
object.Retrieve all payment links
audit
objects.batchId
in the request's search
parameter. Entering a linkId
or batchId
into the search
parameter results in all other filters being ignored. Entering a customer name or invoice ID results in other filters being included.Export all payment links
linkId
or batchId
into the search
parameter results in all other filters being ignored. Entering a customer name or invoice ID results in other filters being included.Cancel a payment link
Generate a batch payment links URL
ENDPOINTS