On This Page
Create a Fixed-Price Link
Use the information in this section to create fixed-price links that you can send or
display to your customers. Your customers can then use the links to pay on a secure
Cybersource
hosted website. You can include discounts and taxes to either the total billed amount or to billed line
items in a fixed-price link. For more information about including discounts and taxes to
a fixed-price link, see Optional Fields for Invoice Creation.
Fixed-price links are typically used by customers to make purchases. To create a link for
donations, see Create a Customer-Set Link.
Partner Information
If your merchant account is associated with a
Cybersource
partner,
you can include your partner solution ID (PSID) in the request for tracking and
reporting purposes. To submit your PSID, include the clientReferenceInformation.partner.solutionId
request field, and set
its field value to your PSID.Endpoints
Production:
POST
https://api.cybersource.com
/ipl/v2/payment-links/Test:
POST
https://apitest.cybersource.com
/ipl/v2/payment-links/India Production:
POST
https://api.in.cybersource.com
/ipl/v2/payment-links/Required Fields for Creating a Fixed-Price Link
- processingInformation.linkType
- Set toPURCHASE.
- purchaseInformation.purchaseNumber
- Set to a unique identifier for the fixed-price link.
Optional Fields for Creating a Fixed-Price Link
- Set to your developer ID.
- Set to your partner solution ID (PSID).
- invoiceInformation.transactionReferenceNumber
- orderInformation.amountDetails.maxAmount
- orderInformation.amountDetails.minAmount
- processingInformation.requestPhone
- processingInformation.requestShipping
Optional Fields for Discounts and Taxes
Discount Fields for the Link Total
Discount Fields for Line Items
Tax Fields for Link Total
Tax Fields for Line Items
REST Example: Creating a Fixed-Price Link
REST
Example: Creating a Fixed-Price LinkRequest
{ "processingInformation": { "linkType": "PURCHASE" }, "purchaseInformation": { "purchaseNumber": "78759658468578" }, "orderInformation": { "amountDetails": { "currency": "USD", "totalAmount": "60" }, "lineItems": [ { "productName": "Birthday Cake", "unitPrice": "60" } ] } }
Response to a Successful Request
{ "_links": { "self": { "href": "/ipl/v2/payment-links/78795658468578", "method": "GET" }, "update": { "href": "/ipl/v2/payment-links/78795658468578", "method": "PATCH" } }, "id": "78795658468578", "submitTimeUtc": "2024-08-08T02:27:28.287601279Z", "status": "ACTIVE", "processingInformation": { "linkType": "PURCHASE", "requestPhone": false, "requestShipping": false }, "purchaseInformation": { "purchaseNumber": "78795658468578", "createdDate": "2024-08-08T02:27:28.370", "paymentLink": "https://businesscenter.cybersource.com/payByLink/pay/IXBls1OJVqRiiv0SL8XjHit0InRBW844eEou2EWBCNP7WIGDdd8tjKN07Ep3MaQD" }, "orderInformation": { "amountDetails": { "totalAmount": 60, "currency": "USD" }, "lineItems": [ { "productName": "Birthday Cake", "unitPrice": 60, "quantity": 1 } ] } }