Create payment link
Use this method to create a payment link that a customer can use to make a payment for goods or services.
The request includes the following settings:
- type - Indicates whether the link can be used only once or if it can be used multiple times.
- authType - Indicates whether the transaction is a sale or a pre-authorization.
- paymentMethod - Indicates the payment methods that the merchant accepts.
- charge - Indicates whether the merchant or the customer enters the amount for the transaction.
If your request is successful, our gateway returns a paymentLinkId, which you can use to perform follow-on actions.
Note: To share the payment link with a customer, use our Share Payment Link method.
Path parameters
Unique identifier that we assigned to the terminal.
Headers
Bearer authentication
Unique identifier that you generate for each request. You must use the UUID v4 format for the identifier. For more information about the idempotency key, go to Idempotency.
Request body
Response
Successful request. We return a polymorphic object that contains payment link information. The value of the type parameter determines which variant you should use:
- multiUse - Create a link that the merchant can use to take multiple payments.
- singleUse - Create a link that the merchant can use for only one payment.