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/tokensStart 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
| Name | Type | Description | |
|---|---|---|---|
paymentProviderId | number | required | ID of the active payment provider (see Payment Providers). |
entityId | number | required | ID of the client the card belongs to. |
isDefault | boolean | If 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/tokensList 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/:idGet a single saved card by its ID.
Path Parameters
| Name | Type | Description | |
|---|---|---|---|
id | number | required | Saved 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/:idUpdate the payer details or default flag on a saved card.
Path Parameters
| Name | Type | Description | |
|---|---|---|---|
id | number | required | Saved card (token) ID. |
Body Parameters
| Name | Type | Description | |
|---|---|---|---|
payerName | string | Name on the card. | |
payerPhoneNumber | string | Phone number associated with the card. | |
isDefault | boolean | If 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/:idDelete a saved card.
Path Parameters
| Name | Type | Description | |
|---|---|---|---|
id | number | required | Saved 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
}