Payment Links

Create a payment link

Generate a shareable link that collects a USDT or USDC payment on-chain.

post/payment_links

Request

  • Base URL: https://api.pinkwallet.com/v1
  • URL: https://api.pinkwallet.com/v1/payment_links
  • Auth: HTTP bearer

Headers

Idempotency-Keystring

A unique key to make this write safely retryable for 24 hours.

Request body

amountstring required

A decimal amount as a string, e.g. "250.00".

asset'USDT' | 'USDC' required
referencestring
expires_ininteger
metadataobject

Example request

{
  "amount": "250.00"
}

Response

The created payment link.

idstring
object'payment_link'
status'pending' | 'paid' | 'expired' | 'cancelled'
amountstring

A decimal amount as a string, e.g. "250.00".

assetstring
urlstring uri
addressstring
referencestring
tx_hashstring
expires_atstring date-time
paid_atstring date-time
created_atstring date-time

Example response

{
  "amount": "250.00"
}

Changes

No recorded changes to this operation across all 1 revision of this API.