Payment links

Includes sensitive operations

What it covers#

With this group the agent creates a payment link, reads its detail, deletes it and prepares delivery to the customer over WhatsApp or email. WhatsApp delivery does not send the message: it returns a link ready to send.

Tools#

Create a charge with a link

Write

tilopay_create_charge

Creates a charge and returns the Tilopay short link (tilo.co/s/…) that opens the secure payment form directly; if it is not available, the own link tilopay.shop/pagar/…. The response includes url (the short one when it exists) and fallback_url (the own one); both work. On WhatsApp, send the QR as an image together with the link at once; do not call the QR tool afterwards. If customer data is missing, the link page asks for it before charging.

Parameters

ParameterTypeRequiredDescription
amountnumberyesAmount to charge
currencystring—Currency, e.g. USD or CRC. If omitted, the merchant's country currency is used.
referencestringyesCharge reference in plain text, with spaces. Do not convert to a slug or replace spaces with dashes or underscores.
descriptionstringyesConcept visible to the customer. Keep the merchant's text literally, with spaces, accents and capitals; e.g. 'prueba link', never 'prueba_link'.
clientstring—Customer name
client_emailstring—Customer email
client_phonestring—Customer phone

Returns

{ code, url, fallback_url, orderNumber }

url = short link (tilo.co/s/… or https://tilopay.shop/pagar/{code}); fallback_url = the latter.

Permanent open-amount QR

Read only

tilopay_static_payment_qr

Returns the merchant's permanent open-amount link and QR (the customer scans, enters the amount and pays). Query only: if the merchant does not have it enabled, it explains so and does not enable it.

Parameters

No parameters.

Returns

{ enabled, link, qr_url }

enabled = whether the static QR is active; link = the merchant's fixed link; qr_url = QR code image.

Last verified: 2026-10-07

View as raw Markdown