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-pageCreate 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
| Name | Type | Description | |
|---|---|---|---|
amount | number | required | Amount the customer will pay. |
description | string | required | Description shown on the payment page. |
allowMultipleUses | boolean | If true, the page can be paid more than once. If false, it becomes single-use. Defaults to true. | |
createDocumentOnPayment | boolean | If 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-pagesList payment pages with optional filtering and pagination.
Query Parameters
| Name | Type | Description | |
|---|---|---|---|
allowMultipleUses | boolean | Filter by whether the page allows multiple payments. | |
isUsed | boolean | Filter single-use pages by whether they have been paid. | |
sortOrder | string | Sort by creation date: "asc" or "desc" (default). | |
limit | number | Items per page (default 50). | |
offset | number | Number 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/:idGet a single payment page by its ID.
Path Parameters
| Name | Type | Description | |
|---|---|---|---|
id | number | required | Payment 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/:idUpdate a payment page's amount, description, or reuse rule.
Path Parameters
| Name | Type | Description | |
|---|---|---|---|
id | number | required | Payment page ID. |
Body Parameters
| Name | Type | Description | |
|---|---|---|---|
amount | number | New amount. | |
description | string | New description. | |
allowMultipleUses | boolean | Whether 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/:idDelete a payment page. Existing transactions keep their reference for history.
Path Parameters
| Name | Type | Description | |
|---|---|---|---|
id | number | required | Payment 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
}