Saved Cards

Save a customer's credit card as a reusable token so you can charge it later without re-entering card details. Cards are tokenized by the payment provider — raw card numbers never touch your integration.

Use cases: Collect a card once via a hosted tokenization page, then charge it on demand (see Charges) or attach it to a recurring payment.
POST/grow/tokens

Start saving a card for a client. Returns a hosted page URL where the customer enters their card details; the token is created once they submit.

Send the returned url to the customer. Once they submit their card, the token appears in the list endpoint and can be charged by its paymentTokenId.

Body Parameters

NameTypeDescription
paymentProviderId
numberrequiredID of the active payment provider (see Payment Providers).
entityId
numberrequiredID of the client the card belongs to.
isDefault
booleanIf true, mark this as the client's default card. Defaults to false.

Request

curl -X POST "https://api.glance.co.il/grow/tokens" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "paymentProviderId": 0,
  "entityId": 0,
  "isDefault": true
}'

Response

Response
{
  "success": true,
  "data": {
    "url": "https://clients.glance.co.il/token/page/3f8b5c2a-1d4e-4a7b-9c6f-2e1a0b8d7c5e"
  }
}
GET/grow/tokens

List all saved cards for the company.

Request

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

Response

Response
{
  "success": true,
  "data": [
    {
      "id": 501,
      "entityId": 1,
      "paymentProviderId": 3,
      "payerName": "John Doe",
      "lastDigits": "4242",
      "cardType": "credit_card",
      "cardExpiry": "05/28",
      "isDefault": true,
      "createdAt": "2026-03-20T14:30:00Z",
      "provider": {
        "id": 3,
        "provider": "GROW",
        "environment": "PRODUCTION",
        "isActive": true
      }
    }
  ]
}
GET/grow/tokens/:id

Get a single saved card by its ID.

Path Parameters

NameTypeDescription
id
numberrequiredSaved card (token) ID.

Request

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

Response

Response
{
  "success": true,
  "data": {
    "id": 501,
    "entityId": 1,
    "paymentProviderId": 3,
    "payerName": "John Doe",
    "lastDigits": "4242",
    "cardType": "credit_card",
    "cardExpiry": "05/28",
    "isDefault": true,
    "createdAt": "2026-03-20T14:30:00Z"
  }
}
PUT/grow/tokens/:id

Update the payer details or default flag on a saved card.

Path Parameters

NameTypeDescription
id
numberrequiredSaved card (token) ID.

Body Parameters

NameTypeDescription
payerName
stringName on the card.
payerPhoneNumber
stringPhone number associated with the card.
isDefault
booleanIf true, make this the client's default card (unsets any other default).

Request

curl -X PUT "https://api.glance.co.il/grow/tokens/:id" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "payerName": "example_payerName",
  "payerPhoneNumber": "example_payerPhoneNumber",
  "isDefault": true
}'

Response

Response
{
  "success": true,
  "data": {
    "id": 501,
    "payerName": "Jane Doe",
    "lastDigits": "4242",
    "isDefault": true
  }
}
DELETE/grow/tokens/:id

Delete a saved card.

Path Parameters

NameTypeDescription
id
numberrequiredSaved card (token) ID.

Request

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

Response

Response
{
  "success": true
}