Recurring Payments

Set up standing orders (הוראת קבע) that charge a customer's card automatically on a schedule. Creating a recurring payment returns a hosted page link where the customer enters their card and confirms the mandate.

Use cases: Use recurring payments for subscriptions, membership dues, or installment plans — create the mandate, send the customer the hosted link, then activate, update, cancel, or delete it as needed.
POST/grow/recurring-payments

Create a recurring payment mandate. Returns a hosted page link where the customer completes card details and confirms.

Send the customer to https://clients.glance.co.il/payments/page/{visibleId} to enter their card and confirm the mandate. The mandate stays PENDING until they complete it.

Body Parameters

NameTypeDescription
paymentProviderId
numberrequiredID of the active payment provider (see Payment Providers).
sum
numberrequiredAmount charged on each cycle.
description
stringrequiredDescription of the recurring charge.
entityId
numberID of the client the mandate belongs to.
payingCompanyId
numberID of the company being charged, when different from the authenticated company.
paymentNum
numberNumber of scheduled charges (2–12).
maxPaymentNum
numberMaximum number of charges (2–12).
chargeDay
numberDay of the month to charge (1–31).
invoiceLicenseNumber
stringTax ID / license number to place on issued invoices.
customFields
objectArbitrary key/value pairs stored with the mandate.
productData
arrayLine items to place on documents issued for each charge.
catalogNumber
numberCatalog number of the product.
quantity
numberQuantity.
price
numberUnit price.
itemDescription
stringLine item description.

Request

curl -X POST "https://api.glance.co.il/grow/recurring-payments" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "paymentProviderId": 0,
  "sum": 0,
  "description": "example_description",
  "entityId": 0,
  "payingCompanyId": 0,
  "paymentNum": 0,
  "maxPaymentNum": 0,
  "chargeDay": 0,
  "invoiceLicenseNumber": "example_invoiceLicenseNumber",
  "customFields": {},
  "productData": []
}'

Response

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

List recurring payments with optional filtering and pagination.

Query Parameters

NameTypeDescription
status
stringFilter by status. One of "PENDING", "ACTIVE", "CANCELED".
entityId
numberFilter by the client the mandate belongs to.
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/recurring-payments" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"

Response

Response
{
  "success": true,
  "data": [
    {
      "id": 77,
      "entityId": 1,
      "sum": 99,
      "paymentNum": 12,
      "chargeDay": 1,
      "status": "ACTIVE",
      "fullName": "John Doe",
      "email": "john@example.com",
      "description": "Monthly membership",
      "cardSuffix": "4242",
      "cardBrand": "Visa",
      "createdAt": "2026-03-20T14:30:00Z",
      "transaction": null
    }
  ],
  "pagination": {
    "total": 1,
    "limit": 50,
    "offset": 0,
    "hasMore": false
  }
}
GET/grow/recurring-payments/:id

Get a single recurring payment, including its most recent transaction.

Path Parameters

NameTypeDescription
id
numberrequiredRecurring payment ID.

Request

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

Response

Response
{
  "success": true,
  "data": {
    "id": 77,
    "entityId": 1,
    "sum": 99,
    "paymentNum": 12,
    "chargeDay": 1,
    "status": "ACTIVE",
    "fullName": "John Doe",
    "email": "john@example.com",
    "description": "Monthly membership",
    "cardSuffix": "4242",
    "cardBrand": "Visa",
    "asmachta": "0012345",
    "createdAt": "2026-03-20T14:30:00Z",
    "transaction": {
      "id": 6001,
      "amount": 99,
      "status": "PAID",
      "date": "2026-04-01T00:05:00Z"
    }
  }
}
PUT/grow/recurring-payments/:id

Update an active mandate — amount, schedule, payer details, or status. Requires the mandate to have been confirmed by the customer.

Path Parameters

NameTypeDescription
id
numberrequiredRecurring payment ID.

Body Parameters

NameTypeDescription
sum
numberNew amount per cycle.
paymentNum
numberNew number of charges (1–48).
chargeDay
numberNew day of the month to charge (1–31).
fullName
stringPayer full name.
phone
stringPayer phone number.
email
stringPayer email.
changeStatus
stringChange the mandate status. One of "ACTIVE" or "CANCELED".
updateCard
booleanIf true, prompt the customer to update the card on file.

Request

curl -X PUT "https://api.glance.co.il/grow/recurring-payments/:id" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "sum": 0,
  "paymentNum": 0,
  "chargeDay": 0,
  "fullName": "example_fullName",
  "phone": "example_phone",
  "email": "example_email",
  "changeStatus": "example_changeStatus",
  "updateCard": true
}'

Response

Response
{
  "success": true,
  "data": {
    "id": 77,
    "sum": 120,
    "chargeDay": 5,
    "status": "ACTIVE"
  }
}
POST/grow/recurring-payments/:id/cancel

Cancel a recurring payment. Sets its status to CANCELED.

Path Parameters

NameTypeDescription
id
numberrequiredRecurring payment ID.

Request

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

Response

Response
{
  "success": true,
  "data": {
    "id": 77,
    "status": "CANCELED"
  }
}
POST/grow/recurring-payments/:id/activate

Re-activate a canceled recurring payment. Sets its status to ACTIVE.

Path Parameters

NameTypeDescription
id
numberrequiredRecurring payment ID.

Request

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

Response

Response
{
  "success": true,
  "data": {
    "id": 77,
    "status": "ACTIVE"
  }
}
DELETE/grow/recurring-payments/:id

Delete a recurring payment. It is soft-deleted and hidden from lists.

Path Parameters

NameTypeDescription
id
numberrequiredRecurring payment ID.

Request

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

Response

Response
{
  "success": true
}