This article presents possible use cases and corresponding sample flows that you can support. It provides a useful starting point as you plan your implementation.
A customer placed an order but hasn't completed payment yet. You want to send them a payment link so they can pay the outstanding balance.
Prerequisite: Add and publish a Payment Request Page on the site in the Wix Editor before using this flow.
To send a payment request for an order balance:
source.externalId that identifies this payment request in your system.orderPaymentRequestUrl from the response.A customer tells you they lost the payment link you sent them. You want to retrieve the original URL and send it again.
To retrieve and resend a payment URL:
orderId and status: "UNPAID" to find the relevant payment request.id from the matching payment request.orderPaymentRequestUrl to the customer again.