POST {{baseURL}}/v2/payment-links/{{paymentLinkId}}/share
This endpoint shares a payment link with a customer by SMS or email.
This sends the link's URL to the recipient over the selected channel. Only Active links can be shared, and the customer must have consented to receive the message.
See Also:
To list payment links, see GET /v2/payment-links.
To create a new payment link, see POST /v2/payment-links.
To retrieve a payment link by identifier, see GET /v2/payment-links/{{paymentLinkId}}.
To update a payment link, see PATCH /v2/payment-links/{{paymentLinkId}}.
Delivery channel, recipient, and customer consent.
Indicates the delivery method used to share a payment link with a customer.
Valid values are:
| Value | Description |
|---|---|
| The link is sent by email. | |
| Sms | The link is sent by text message. |
Example: Sms
Specifies where the link is sent.
This is a mobile phone number (in an E.164 format) when sharing by Sms.
This is an email address (up to 254 characters) when sharing by Email.
Example: +14125553845
- Sandbox environmenthttps://sandbox.api.flute.com/v2/payment-links/{paymentLinkId}/share
- Production environmenthttps://api.flute.com/v2/payment-links/{paymentLinkId}/share
curl -i -X POST \
https://sandbox.api.flute.com/v2/payment-links/6f2a8b3c-9d4e-4f1a-8b7c-3e5d6a9f0c1b/share \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"shareBy": "Sms",
"recipient": "+14125553845",
"hasCustomerConsent": true
}'