Payments
View as Markdown

Read the invoice behind a pay link (public)

GET
/api/v1/pay/{token}

Authorization

Path Parameters

token
Required
string

Minimum length: 8Maximum length: 4096
curl -X GET "https://globalymint.com/api/v1/pay/stringst"

Invoice summary, merchant branding and the publishable key for Stripe Elements.

{
  "data": {
    "invoice": {
      "number": "string",
      "total_cents": "1999",
      "currency": "USD",
      "status": "string",
      "due_at": "string",
      "lines": [
        {
          "description": "string",
          "quantity": "1999",
          "unit_amount_cents": "1999",
          "amount_cents": "1999",
          "currency": "USD"
        }
      ]
    },
    "branding": {
      "merchant_name": "string",
      "logo_url": "string",
      "brand_color": "string",
      "support_email": "string"
    },
    "publishable_key": "string",
    "payable": true
  },
  "_agent": {
    "summary": "string",
    "status": "ok",
    "next_actions": [
      "string"
    ],
    "warnings": [
      "string"
    ]
  },
  "api_version": "2026-07-01"
}