Skip to main content

Overview

Payment Links allow you to create shareable URLs that direct customers to a hosted payment page. This is ideal for scenarios where you need to collect payments without building or maintaining a checkout frontend — such as invoice payments, social commerce, email campaigns, or phone orders. Each payment link generates a unique URL that can be shared via email, SMS, messaging apps, or embedded in a website. Use the Payment Links API to generate a shareable payment URL.
curl --request POST \
  --url https://api.y.uno/v1/payment-links \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: YOUR_API_KEY' \
  --data '{
    "amount": {
      "value": 150.00,
      "currency": "USD"
    },
    "country": "US",
    "description": "Invoice #1042 - Premium Plan",
    "customer": {
      "email": "customer@example.com",
      "name": "Jane Smith"
    },
    "expiration_date": "2026-03-15T23:59:59Z",
    "allowed_payment_methods": ["CARD"],
    "redirect_url": "https://yourstore.com/thank-you",
    "metadata": {
      "invoice_id": "INV-1042",
      "order_id": "ORD-5678"
    }
  }'
ParameterRequiredDescription
amountYesPayment amount and currency
countryYesISO 3166-1 alpha-2 country code
descriptionNoDescription shown to customer on payment page
customerNoPre-fill customer information
expiration_dateNoISO 8601 expiration timestamp
allowed_payment_methodsNoRestrict available payment methods
redirect_urlNoURL to redirect after successful payment
metadataNoKey-value pairs for your internal reference
StatusDescription
ACTIVELink is available for payment
COMPLETEDPayment has been successfully collected
EXPIREDLink passed its expiration date
CANCELLEDLink was manually cancelled
A payment link can only be used once. After a successful payment, the link status changes to COMPLETED and cannot be reused.
curl --request GET \
  --url https://api.y.uno/v1/payment-links \
  --header 'X-Api-Key: YOUR_API_KEY'
curl --request POST \
  --url https://api.y.uno/v1/payment-links/pl_abc123def456/cancel \
  --header 'X-Api-Key: YOUR_API_KEY'

Webhook Events

EventTrigger
payment_link.createdNew payment link generated
payment_link.paidCustomer completed payment
payment_link.expiredLink reached expiration date
payment_link.cancelledLink was manually cancelled
Always set an expiration_date for payment links to prevent stale links from being used unexpectedly. A common practice is 7-30 days depending on the use case.

Use Cases

  • Invoice payments: Send payment links in invoices for easy collection.
  • Social commerce: Share links on social media or messaging apps.
  • Phone orders: Generate links during phone calls for customers to pay.
  • Email campaigns: Embed payment links in marketing emails.
  • Donations: Create one-time donation collection links.
Payment links use Yuno’s hosted checkout page, which is fully PCI-compliant and handles all payment method rendering and processing. No frontend development is required on your side.
Payment links can also be used to update expired or declined card details and automatically enroll the new card. This is particularly useful for merchants running their own subscription engines who need a new vaulted_token when a customer’s card expires or is blocked.

How It Works

1

Send the Payment Link

Create a payment link with vault_on_success set to true and one_time_use set to true. The customer receives a secure link to complete a pending payment with a new credit or debit card.Required fields:
  • customer_payer.id. Previously generated customer identifier
  • one_time_use. Set to true for single-use links
  • vault_on_success. Set to true to enroll the card after successful payment
2

Automatic Enrollment

Upon successful payment through the link, Yuno automatically generates a new vaulted_token for the customer’s updated card.
3

Continue Charging

Use the Get Payment Methods endpoint to retrieve the customer’s updated stored payment methods. Continue your subscription schedule with the new vaulted_token.

Benefits

  • Speed: Customers resolve payment issues instantly without account login.
  • Seamless update: New cards are automatically saved when previous cards expire or are blocked.
  • Security: All transactions use Yuno’s PCI-compliant hosted checkout with encryption.