Skip to main content
GET
/
v0
/
payment-links
/
public
/
{slug}
Get a payment link (public)
curl --request GET \
  --url https://api.sumvin.com/v0/payment-links/public/{slug}
{
  "_links": {
    "pint": {
      "href": "/v0/pint/sr%3Aus%3Apint%3Aabc123"
    },
    "self": {
      "href": "/v0/payment-links/public/q79Rx34K..."
    }
  },
  "payment_link": {
    "accepted_chains": [
      1329
    ],
    "amount": "100.00",
    "created_at": 1704067200000,
    "description": "Invoice #1234",
    "expires_at": 1704153600000,
    "nonce": 1,
    "pay_to": "0x742d35Cc6634C0532925a3b844Bc9e7595f2bD78",
    "signature": "0xab...",
    "slug": "q79Rx34K...",
    "status": "pending"
  }
}

Headers

X-Timestamp-Format
string

Controls how timestamp fields are serialized in JSON response bodies.

Default (header omitted or any other value): epoch milliseconds as integers. iso8601: UTC ISO 8601 strings of the form YYYY-MM-DDTHH:MM:SSZ.

Example: with X-Timestamp-Format: iso8601, the field value 1704067200000 becomes "2024-01-01T00:00:00Z".

Affected fields (recursively, in dicts and arrays): any field whose name ends in _at, plus the literal field names timestamp, period_start, and period_end. All other fields are passed through unchanged.

Only iso8601 is recognized. Any other value (or omitting the header) yields the default epoch-ms representation; the server does not reject unknown values, so this is documented as an example rather than an enum to keep generated clients permissive.

Example:

"iso8601"

Path Parameters

slug
string
required

Response

Successful Response

Public (payer-facing) single payment link response.

HAL-style hypermedia links for navigation and available actions.

Payment link resource (public view).

Example:
{
  "accepted_chains": [1329],
  "amount": "100.00",
  "asset": {
    "address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
    "decimals": 6,
    "symbol": "USDC"
  },
  "created_at": 1704067200000,
  "description": "Invoice #1234",
  "eip712_message": {
    "domain": { "name": "Sumvin Purchase Intent" },
    "message": {},
    "primaryType": "PurchaseIntent"
  },
  "expires_at": 1704153600000,
  "nonce": 1,
  "pay_to": "0x742d35Cc6634C0532925a3b844Bc9e7595f2bD78",
  "signature": "0xababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababababab",
  "slug": "q79Rx34K...",
  "status": "pending"
}