site-level/Payments/Payment-Links/create id: site-level/Payments/Payment-Links/create metadata:
Description: This recipe provides specific implementation details for creating a payment link for a booking or order on a Wix site, focusing on critical requirements not explicitly covered in the standard documentation.
Documentation Links:
https://dev.wix.com/api/rest/wix-payments/payment-links/create-payment-link
https://dev.wix.com/api/sdk/wix-get-paid/paymentlinks
https://dev.wix.com/docs/kb-only/payment-links-resources
This recipe focuses on specific implementation details and requirements for creating payment links for Wix Bookings that are not explicitly covered in the standard SDK documentation.
Critical Requirements:
Correct AppId Usage:
1380b703-ce81-ff05-f115-39571d94dfcd
) in the source.appId field.Payment Link Type:
type: "ECOM_ORDER"
for payment links related to bookings.Required Fields:
paymentsLimit: 1
to limit the payment link to single use.displayData: {}
as an empty object, unless specified otherwise.ecomOrderPaymentLink
format rather than ecomPaymentLink
.Price Formatting:
Two-Step Process Required:
createPaymentLink
and sendPaymentLink
methods in sequence.paymentLinks.createPaymentLink()
to get a payment link ID.paymentLinks.sendPaymentLink(paymentLinkId, sendOptions)
.Conditional Logic for Parameters:
Error Handling:
IMPORTANT NOTES FOR THE CONSUMING LLM:
Correct AppId is Crucial:
1380b703-ce81-ff05-f115-39571d94dfcd
) in the source.appId field.Price Formatting:
ECOM_ORDER Type:
Required Fields:
paymentsLimit: 1
and displayData: {}
even if they seem optional.Order References:
Permissions:
No Order Status Updates Needed: