Skip to content
Terra WalletDevelopers

Early access. The Terra API and SDKs may change before launch, and the SDK packages are not published yet.

View as Markdown

API reference

Early access

Payment links

Reusable, no-code links with a fixed or customer-chosen amount.

Authentication: Secret key or dashboard session.

Guide: Payment links

MethodPathSummary
POST/v1/payment_linksCreate a payment link.

POST/v1/payment_links#

Create a payment link.

  • Operation id: createPaymentLink
  • Authentication: Secret key or dashboard session
  • Idempotency-Key: required
  • Source: the v1 contract. This operation is not in the OpenAPI document yet.

Request body#

NameTypeRequiredNotes
namestringyes
amountstring (decimal)noRequired unless customer_chooses is true.
customer_choosesbooleannotrue lets the customer choose the amount. Send either amount or customer_chooses: true.
currencystringyesA fiat ISO code.
accepted_assetsarray of assetyes
max_usesintegerno
expires_atstring (timestamp)no

Response#

JSON

{  "id": "plink_...",  "url": "https://pay.terrawallet.us/l/plink_..."}