Plexy
Pay APIGate APIDashboard
Pay APIGate APIDashboard
  1. Payment Links
  • Overview
  • Authorization
  • Webhooks
  • API Errors
  • Test Scenarios
  • Ecommerce Plugins
  • API
    • Payments
      • Overview
      • Payment Links
        • Create Payment Link
          POST
        • List Payment Links
          GET
        • Retrieve Payment Link by Order Reference
          GET
        • Cancel Payment Link
          DELETE
        • Retrieve Payment Link
          GET
        • Update Payment Link Expiration
          PATCH
        • Retrieve Payment Links Statistics
          GET
      • Reccurent Payments
        • Create Merchant-Initiated Payment
      • Direct Payments
        • Get Keys
        • Create Host-to-Host Payment
      • Transaction Management
        • Find Transaction's History by ID
        • Find Transaction by Payment Link ID
        • Find Transaction by ID
        • Find Transaction by Order reference
      • Payment Management
        • Cancel Payment
        • Capture Payment
        • Process Refund
      • Split Requests
        • Create
        • List
        • Update
        • Get By Id
        • Delete
      • Settlement Payment Order
        • Create
        • Get by id
        • List
    • Payouts
      • Retrieve Payout Transactions
      • Process Payout
      • Save Card for Payouts
    • Customers
      • Get Customer's Card Tokens
      • List Customers
      • Create Customer
      • Get Customer by ID
      • Get Customer's Transactions
    • Merchants
      • Payment Beneficiary
        • Create
        • Update
        • Gey By Id
        • List
        • Transfer from beneficiary balance to merchant balance
        • Create manual settlement for beneficiary
      • Retrieve Merchant's Details
  • Client SDK
    • Server flow
      • Advanced server flow
      • Session server flow
    • Web
      • Web Drop-in
      • Web Components
    • Flutter
      • Flutter Drop-in
      • Flutter Components
  • Schemas
    • Schemas
      • response.TransactionList
      • entity.SplitRequest
      • entity.PaymentBeneficiary
      • request.CreatePaymentBeneficiary
      • entity.SettlementPaymentOrder
      • entity.PayoutRequest
      • entity.PayoutRequestRowData
      • command.HandleThreeDResult
      • domain.Report
      • entity.CardSaveSessionCustomer
      • entity.Permission
      • entity.UserProfile
      • entity.UserRole
      • errors.Message
      • errors.Source
      • errors.Type
      • git_plexypay_com_ecom_back_api_internal_domain_view.Page-domain_Report
      • git_plexypay_com_ecom_back_api_internal_domain_view.Page-entity_UserProfile
      • git_plexypay_com_ecom_back_api_internal_platform_errors.Code
      • models.CSVApiRequest
      • models.CreateBussinessDetails
      • models.KeyResponse
      • models.OnboardingRequest
      • models.Transaction
      • paymentcore.Address
      • paymentcore.CustomerDetails
      • request.AuthorizePayment
      • request.BrowserDetails
      • request.CardData
      • request.ChangeUserRole
      • request.ContinueThreeDS
      • request.CreateCardSaveSession
      • request.CreateInviteSession
      • request.CreatePaymentLink
      • request.CreatePaymentLinkMetadata
      • request.HandlePayout
      • request.MerchantInitiatedPayment
      • request.PasswordRequest
      • request.Recurring
      • request.RefundPayment
      • request.SaveCard
      • request.SaveOneCustomer
      • request.TwoStepAuthorizePayment
      • request.UpdateMerchantSettingsRequest
      • request.UpdatePaymentLink
      • response.AcquirerResponseThreeDSecure
      • response.AuthorizeAndCapturePayment
      • response.AuthorizePayment
      • response.CancelPaymentResponse
      • response.CapturePaymentResponse
      • response.ContinueThreeDS
      • response.Currency
      • response.Customer
      • response.CustomerTransaction
      • response.CustomerTransactions
      • response.Customers
      • response.Error
      • response.Merchant
      • response.MerchantInitiatedPayment
      • response.MerchantSettings
      • response.PaymentLink
      • response.PaymentLinkInfo
      • response.PaymentLinkMetadata
      • response.PaymentLinksInfo
      • response.PaymentLinksStatistics
      • response.PaymentLinksStatisticsItem
      • response.Payout
      • response.Permission
      • response.RefundPaymentResponse
      • response.Report
      • response.SavedCard
      • response.Session
      • response.Settlement
      • response.SettlementTransaction
      • response.Store
      • response.Stores
      • response.Transaction
      • response.TransactionDetails
      • response.TransactionEvents
      • response.TransactionHistoryEvent
      • response.TransactionHistoryEventData
      • response.TransactionResponse
      • response.TransactionWebhookDetails
      • response.Transactions
      • response.UpdateMerchantSettingsResponse
      • response.UserProfile
      • value.PaymentMethod
    • receipt
    • Error
    • DecimalAmount
    • ProductType
    • ProductCategory
    • Product
    • Order
    • AgentBalance
    • AgentDeposit
    • TopupRequest
    • CreateOrderRequest
Pay APIGate APIDashboard
Pay APIGate APIDashboard
  1. Payment Links

Create Payment Link

POST
https://api.plexypay.com/v1/payment-links
This endpoint allows merchants to create a payment link that can be shared with customers for making payments. The payment link contains details such as the amount, currency, description, and optional metadata. It can also be customized with URLs for success, failure, and cancellation scenarios. The payment link is valid until the specified expiration date and can be used for one-time or recurring payments depending on the provided settings.

Request

Authorization
API Key
Add parameter in header
Authorization
Example:
Authorization: ********************
or
Body Params application/json

Examples

Responses

🟢201Created
application/json
Payment link successfully created
Body

🟠400Bad Request
🟠404Not Found
🔴500Internal Server Error
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.plexypay.com/v1/payment-links' \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "amount": 5000,
    "currency": "KZT",
    "description": "Test Payment",
    "expiresAt": "2026-12-14T00:00:00Z",
    "metadata": {
        "callbackUrl": "https://insecure-spear.net",
        "cancelUrl": "https://deafening-slime.name",
        "failureUrl": "https://tangible-forager.com/",
        "successUrl": "https://sophisticated-dredger.com"
    },
    "orderReference": "icDA7Co8W1WtMbdWszDvk",
    "validation": false,
    "autoClearing": true
}'
Response Response Example
201 - Example 1
{
    "amount": 1000000,
    "autoClearing": true,
    "createdAt": "2025-03-01T12:00:00Z",
    "currency": "KZT",
    "customerId": "string",
    "description": "Payment for services",
    "expiresAt": "2025-03-14T00:00:00Z",
    "id": "pl_5e9f8f8f9d9e9e9d9e9f8f8f8f9d9e9f",
    "metadata": {
        "callbackUrl": "https://example.com/callback",
        "cancelUrl": "https://example.com/cancel",
        "failureUrl": "https://example.com/failure",
        "successUrl": "https://example.com/success"
    },
    "orderReference": "ORD123456",
    "status": "active",
    "updatedAt": "2025-03-01T12:30:00Z",
    "url": "https://checkout.plexypay.com/pl_5e9f8f8f9d9e9e9d9e9f8f8f8f9d9e9f",
    "validation": false,
    "createdBy": "string",
    "lineItems": {
        "lineItems": [
            {
                "name": "string",
                "price": "string",
                "vat": "string",
                "quantity": "string"
            }
        ]
    }
}
Modified at 2025-12-19 10:49:51
Previous
Payment Links
Next
List Payment Links
Built with