Create a Payment Link
Create a payment link to collect a one-off, recurring, or variable payment from a customer.
Authorizations
Meridian HMAC header authentication.
Required headers:
- X-Meridian-Api-Key
- X-Meridian-Timestamp
- X-Meridian-Signature
X-Meridian-Signature is the HMAC SHA-256 signature of the canonical request string, computed per request as HMAC-SHA256(apiKey + timestamp + method + request URI including any query string + body). See Authentication for how to construct it.
Headers
API key issued by Meridian during provisioning.
Current time in milliseconds since the Unix epoch. Must be within 10 seconds of the request.
Body
Request body to create a payment link.
Request body to create a payment link.
Session key obtained from POST /v1/payment-links/sessions. Must be non-blank and unexpired.
How the payment link handles recurrence.
SINGLE, RECURRING, VARIABLE Unique reference defined by the merchant to identify the payment link (non-blank, max 255 characters). Not shown to customers on single payment links.
255Human-readable label for the payment link (non-blank, max 64 characters).
64ISO-4217 currency code debited from the payer. Currencies are enabled per merchant.
EUR, USD, GBP, PHP, MXN, ZAR, USDC_ETH, USDC_SOL, USDT_ETH, USDT_SOL ISO-4217 currency code the merchant is paid out in. The merchant must have a configured credit instrument for this currency.
EUR, USD, GBP, PHP, MXN, ZAR, USDC_ETH, USDC_SOL, USDT_ETH, USDT_SOL Optional human-readable description for the payment link (max 255 characters).
255Authentication challenge the payer must answer to access the payment link before paying (non-blank, max 255 characters). Required unless recurrenceType is SINGLE.
255Amount collected per charge, sent as a decimal string such as "100.50". Must be greater than zero. For recurring links this is the amount debited for each installment. Required unless recurrenceType is VARIABLE, where it may be omitted at creation and set later via the update endpoint. A JSON number is also accepted on input, and responses always return this field as a string.
"100.50"
First date the link can be paid; payments are not allowed before it. Must be today or later. Normalized forward to the next banking day, so the stored value may differ from what you send. Optional for all recurrence types.
Date after which the link can no longer be paid. Must be after today and after startDate. Optional for all recurrence types; it is not required even when collectionCount is omitted.
Number of installments to collect, between 1 and 500. Optional for all recurrence types; it is not required even when endDate is omitted.
1 <= x <= 500Optional key-value map of custom fields defined by the merchant. Each key and value must be a string. Any custom field the merchant has configured as required must be present.
Response
Payment link created successfully
Wrapper returned by the create and update payment link endpoints.
The created or updated payment link.