API Reference
Go to zen.comGo to myZEN.com
Documentation
  • Plugin integration
  • Checkout integration
  • API business
  • Merchant panel
Brandbook
Go to zen.comGo to myZEN.com
Documentation
  • Plugin integration
  • Checkout integration
  • API business
  • Merchant panel
Brandbook
  1. payment-links
  • Introduction
  • Authentication & authorization
  • Environments
  • Transaction statuses
  • Notifications
  • Response codes
  • Error codes
  • purchase
    • Create transaction
    • Capture transaction
    • Transaction details using ZEN id
    • Transaction details using merchantTransactionId
    • Cancel transaction
    • Renew authorization
    • Validate ApplePay session
    • Calculate cashback
  • refund
    • Create transaction
  • payout
    • Create transaction
    • Transaction details using ZEN id
    • Transaction details using merchantTransactionId
    • Capture transaction
    • Cancel transaction
    • Renew transaction
    • Transaction details using ZEN id
    • Refresh transaction offers
    • Select transaction offer
  • payment-methods
    • Returns information about payment methods
    • Returns information about payment methods
  • payment-links
    • Create payment link
      POST
    • Fetch payment links list
      GET
    • Fetch payment link
      GET
    • Update payment link
      PATCH
  • customers
    • Create customer
    • Remove customer
    • Add customer recipient
    • Add payout card
    • Remove payout card
    • Fetch payout card list
    • Update payout card details
    • Fetch saved subscription customer list V3
    • Fetch customer
    • Update a customer
    • Fetch card
    • Update card details
    • Remove card
    • Fetch card list
    • Fetch customer recipient list
    • Fetch customer recipient
    • Update customer details recipient
    • Remove customer recipient
    • Fetch saved merchant customer payout recipient list V3
    • Verify merchant's customer payout recipient card
    • Fetch saved merchant customer's payout card V3
    • Initialize widget payout card process
    • Update merchant payout card alias
    • Fetch saved payout card list V3
    • Removes merchant customer payout card.
    • Add customer payout card
    • Fetch saved payout card V3
    • Removes customer saved payout card V3
    • Add paynow recipient
    • Remove paynow profile
  • authorization
    • Calculate authorization amount
    • Calculate reversed authorization amount
  • subscriptions
    • Fetch subscription products list
    • Add new subscription product
    • Fetch subscription product
    • Update subscription product
    • Removes subscription product
    • Fetch subscription plan list
    • Add new subscription plan
    • Fetch subscription plan
    • Removes subscription plan
    • Activate subscription plan
    • Deactivate subscription plan
    • Fetch subscriptions list
    • Fetch subscription
    • Removes subscription
    • Cancel subscription
  • reports
    • Download report file
  1. payment-links

Create payment link

POST
https://api.zen.com/v1/payment-links
payment-links
Creates one specific payment link, that allows to initiate the payment process.

Request

Header Params
request-id
string 
required
A unique identifier generated by requesting client
>= 38 characters<= 1024 characters
Example:
|us04oqdnzFQVr0rITD9/c9OvDRE2sXVfwerv.
Match pattern:
^[a-zA-Z0-9?&:_|\-\/=+.,#\s]+$
Body Params application/json
Payment link object that needs to be created via checkout-api
merchantTransactionId
string 
required
Id of the transaction provided by merchant.
>= 1 characters<= 128 characters
Example:
23beb187-f8a3-44b8-9ef8-b31180358dd3
Match pattern:
^[a-zA-Z0-9?&:\-\/=.,#|+_$\[\]€ ]+$
amount
string 
required
Amount of the transaction.
Example:
123.04
Match pattern:
^(?=.*[0-9])\d{1,16}(?:\.\d{1,12})?$
currency
string 
required
Currency code in ISO 4217 alphabetic code
>= 3 characters<= 3 characters
Example:
PLN
Match pattern:
^[A-Z]+$
customer
object 
required
email
string <email>
required
Customer's email
<= 256 characters
Example:
[email protected]
firstName
string 
required
Customer's firstname
<= 128 characters
Example:
John
lastName
string 
required
Customer's lastname
<= 128 characters
Example:
Doe
items
array [object {3}] 
required
Array of payment link items
name
string 
required
Item Name
<= 256 characters
Example:
Multipla
price
string 
required
Unit price of the item
Example:
123.04
Match pattern:
^-?(?=.*[0-9])\d{1,16}(?:\.\d{1,12})?$
quantity
number 
required
Item quantity
Example:
1
expirationDate
string <date-time>
required
Example
{
    "merchantTransactionId": "23beb187-f8a3-44b8-9ef8-b31180358dd3",
    "amount": "123.04",
    "currency": "PLN",
    "customer": {
        "email": "[email protected]",
        "firstName": "John",
        "lastName": "Doe"
    },
    "items": [
        {
            "name": "Multipla",
            "price": "123.04",
            "quantity": 1
        }
    ],
    "expirationDate": "2019-08-24T14:15:22Z"
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.zen.com/v1/payment-links' \
--header 'request-id;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "merchantTransactionId": "23beb187-f8a3-44b8-9ef8-b31180358dd3",
    "amount": "123.04",
    "currency": "PLN",
    "customer": {
        "email": "[email protected]",
        "firstName": "John",
        "lastName": "Doe"
    },
    "items": [
        {
            "name": "Multipla",
            "price": "123.04",
            "quantity": 1
        }
    ],
    "expirationDate": "2019-08-24T14:15:22Z"
}'

Responses

🟢201Created
application/json
OK
Body
Created payment link
id
string <uuid>
optional
url
string <uri>
optional
createdAt
string <date-time>
optional
Example
{
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "url": "http://example.com",
    "createdAt": "2019-08-24T14:15:22Z"
}
🟠404Record Not Found
Modified at 2025-07-10 11:28:41
Previous
Returns information about payment methods
Next
Fetch payment links list