Payment Pages

Create hosted payment links that let customers pay by credit card without your integration ever handling card data. Each page is reachable at https://clients.glance.co.il/payments/page/{visibleId}.

Use cases: Send a customer a secure link to pay a fixed amount — embed it in an email, an SMS, or your own checkout — and optionally issue a receipt automatically once they pay.
POST/grow/payments/payment-page

Create a hosted payment page. Uses the company's active payment provider.

Build the customer-facing URL as https://clients.glance.co.il/payments/page/{visibleId}.

Body Parameters

NameTypeDescription
amount
numberrequiredAmount the customer will pay.
description
stringrequiredDescription shown on the payment page.
allowMultipleUses
booleanIf true, the page can be paid more than once. If false, it becomes single-use. Defaults to true.
createDocumentOnPayment
booleanIf true, automatically issue a receipt/invoice document on a successful payment. Defaults to false.

Request

curl -X POST "https://api.glance.co.il/grow/payments/payment-page" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "amount": 0,
  "description": "example_description",
  "allowMultipleUses": true,
  "createDocumentOnPayment": true
}'

Response

Response
{
  "success": true,
  "visibleId": "3f8b5c2a-1d4e-4a7b-9c6f-2e1a0b8d7c5e"
}
GET/grow/payments/payment-pages

List payment pages with optional filtering and pagination.

Query Parameters

NameTypeDescription
allowMultipleUses
booleanFilter by whether the page allows multiple payments.
isUsed
booleanFilter single-use pages by whether they have been paid.
sortOrder
stringSort by creation date: "asc" or "desc" (default).
limit
numberItems per page (default 50).
offset
numberNumber of items to skip (default 0).

Request

curl -X GET "https://api.glance.co.il/grow/payments/payment-pages" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"

Response

Response
{
  "success": true,
  "data": [
    {
      "id": 12,
      "visibleId": "3f8b5c2a-1d4e-4a7b-9c6f-2e1a0b8d7c5e",
      "amount": 250,
      "description": "Consulting session",
      "type": "PAYMENT",
      "allowMultipleUses": true,
      "isUsed": false,
      "createDocumentOnPayment": true,
      "createdAt": "2026-03-20T14:30:00Z"
    }
  ],
  "pagination": {
    "total": 1,
    "limit": 50,
    "offset": 0,
    "hasMore": false
  }
}
GET/grow/payments/payment-pages/:id

Get a single payment page by its ID.

Path Parameters

NameTypeDescription
id
numberrequiredPayment page ID.

Request

curl -X GET "https://api.glance.co.il/grow/payments/payment-pages/:id" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"

Response

Response
{
  "success": true,
  "data": {
    "id": 12,
    "visibleId": "3f8b5c2a-1d4e-4a7b-9c6f-2e1a0b8d7c5e",
    "amount": 250,
    "description": "Consulting session",
    "type": "PAYMENT",
    "allowMultipleUses": true,
    "isUsed": false,
    "createDocumentOnPayment": true,
    "createdAt": "2026-03-20T14:30:00Z"
  }
}
PUT/grow/payments/payment-pages/:id

Update a payment page's amount, description, or reuse rule.

Path Parameters

NameTypeDescription
id
numberrequiredPayment page ID.

Body Parameters

NameTypeDescription
amount
numberNew amount.
description
stringNew description.
allowMultipleUses
booleanWhether the page can be paid more than once.

Request

curl -X PUT "https://api.glance.co.il/grow/payments/payment-pages/:id" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "amount": 0,
  "description": "example_description",
  "allowMultipleUses": true
}'

Response

Response
{
  "success": true,
  "data": {
    "id": 12,
    "visibleId": "3f8b5c2a-1d4e-4a7b-9c6f-2e1a0b8d7c5e",
    "amount": 300,
    "description": "Consulting session (updated)",
    "type": "PAYMENT",
    "allowMultipleUses": true,
    "isUsed": false
  }
}
DELETE/grow/payments/payment-pages/:id

Delete a payment page. Existing transactions keep their reference for history.

Path Parameters

NameTypeDescription
id
numberrequiredPayment page ID.

Request

curl -X DELETE "https://api.glance.co.il/grow/payments/payment-pages/:id" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"

Response

Response
{
  "success": true
}