Update Issued Digital Stamp Cards via API (v1)

The Stamp Update API finds an issued stamp by its IDX (stampIdx) and changes its stamp count, validity period, active status, memo, or customer details. You also use it to mark a reward as used or cancel that, and to reset the customer’s PIN.

v1 (Legacy) documentation.

For new integrations, we recommend using the latest version, v2.
v1 is intended for maintaining existing integrations and does not receive new features or improvements.

PUT

https://vivoldi.com/api/stamp/v1/update

{
    "stampIdx": 1457,
    "cardIdx": 172,
    "stamps": 7,
    "useYn": "Y",
    "onsitePwd": "12345",
    "resetPinYn": "Y",
    "userEml": "example@gmail.com"
}

Request Parameters

stampIdx integer required
Stamp IDX.
cardIdx integer
Card IDX.
The Card IDX can be found on the “Stamp Card” page in the dashboard.
stamps integer
Specifies the number of collected stamps.
Represents the total number of stamps the customer has collected. Updating this value refreshes the stamp progress and can either increase or decrease it.
When all stamps are collected (stamps = the card’s maximum stamp count), you must set useYn to Y to mark the stamp as redeemed.
resetPinYn string
Default:N
Enum:
YN
Determines whether to reset the customer’s PIN code for the stamp.
Y: Resets the customer’s existing PIN. After reset, the customer must set a new PIN upon the next visit to the stamp page.
N: Keeps the current PIN unchanged.
useYn string
Default:N
Enum:
YN
Specifies whether the customer has used the stamp reward.
Y: The customer has collected all stamps and redeemed a reward (e.g., free drink, discount, etc.). After redemption, the stamp becomes inactive and a new one must be issued.
N: The reward has not been used yet.
When changing from N to Y, the stored stamp count must have reached the card’s maximum, and if the stamp has an on-site password, onsitePwd must be sent as well.
onsitePwd string
Employee authentication password used for on-site stamps.
Required when changing useYn from N to Y to mark the reward as redeemed, if the stamp has onsiteYn = Y. The same validation rule as the Redeem API applies.
Not required when only changing the stamp count, or when the stamp has no on-site password.
domain string
Default:https://vvd.bz
Stamp domain.
If empty, the default domain will be used.
Available for Premium plans or higher — you can specify a custom domain registered in the Link Domain Management section.
strtYmd date
Stamp start date. Example: 2025-01-01
endYmd date
Stamp expiration date. Example: 2025-12-31
The expiration date can be set up to 5 years from today.
activeYn string
Default:Y
Enum:
YN
Indicates whether the stamp is active. If disabled, the customer cannot use the stamp.
memo string
Internal memo for reference.
userId string
User ID. Used to manage the stamp recipient.
Typically, enter the website member’s login ID.
If not specified, a unique user ID is automatically generated by the system.
Up to 128 characters. Longer values return HTTP 400 (code: 1230).
userNm string
User name. For internal use only.
Up to 64 characters. Longer values return HTTP 400 (code: 1230).
userPhnno string
User contact number. For internal use only.
Up to 16 characters. Longer values return HTTP 400 (code: 1230).
userEml string
User email address. For internal use only.
Up to 128 characters. Longer values return HTTP 400 (code: 1230).
userEtc1 string
Additional internal field for management purposes.
Up to 128 characters. Longer values return HTTP 400 (code: 1230).
userEtc2 string
Additional internal field for management purposes.
Up to 128 characters. Longer values return HTTP 400 (code: 1230).
{
    "code": 0,
    "message": "",
    "result": null
}

Response Parameters

code integer
Response code: 0 = Success, other values = Error
message string
Response message. If the response code is not 0, an error message is returned.
result null

Numeric parameter validation

If a numeric value (stampIdx, cardIdx when creating or updating, or stamps in an update) is not a number or is too large, the request is rejected before processing with 400 (usually error code 653; store numbers in v2 return 665). An issuing store value that conflicts with the card policy returns 1221.

stamps in the Add and Remove APIs must be an integer of 1 or more; otherwise the request is rejected with code 400 and HTTP 200.

In every case no stamp data or earning history changes, and no event record or Webhook delivery is produced. A failed response means nothing was saved.

Behaviour change. Previously v1 kept processing the request even when this validation failed. As a result the error could be overwritten by another parameter's message, or part of the stamp data could actually be saved while the response reported an error. It now stops with 400 before processing, the same as the latest version.

Why You Need Direct Control Over Stamp Counts

You correct the stamp count to fix stamps added by mistake, grant event bonuses, or let an administrator set the count directly.

Send the new total in stamps, not an amount to add or subtract. For example, sending 5 for a stamp that has 3 makes it 5. Values above the card maximum are saved as the maximum, and the difference is recorded as add or remove history.

To add or remove a few stamps without knowing the current count, use the Stamp Add API and the Stamp Remove API.

Reward Redemption and Stamp Reissue Flow

When the card’s maximum number of stamps is collected, send useYn as Y to mark the reward as used. Filling the card and using the reward must be separate requests (doing both in one request returns error 1113). Stamps with an on-site password require on-site verification. If you only need to record the redemption, you can also use the Stamp Redemption API.

A stamp whose reward was used cannot collect more stamps or be redeemed again, and updates are limited to the memo and cancelling the redemption (useYn set to N). To start the next round, issue a new stamp with the digital stamp card API.

On-site password for reward redemption

When changing useYn from N to Y to redeem a reward, if an on-site stamp collection password is configured for the stamp (onsiteYn = Y), you must also send onsitePwd.

This requirement is the same as for the Reward Redemption API (Redeem). It prevents a reward from being redeemed through the Update API without password verification.

To determine the password to send, check the onsitePwd value returned by the Validation API (Validate). If no on-site password is configured for the stamp, you can omit onsitePwd.

onsitePwd is not required when only changing the stamp count or updating a stamp whose reward has already been redeemed.

When to Reset a PIN

Set resetPinYn to Y to reset the user’s PIN.

Use this when a user forgets their PIN, switches devices, or when a reset is required for security reasons.

After the reset, the user will be prompted to create a new PIN when accessing the stamp page. If set to N or omitted, the existing PIN remains unchanged.

Use cases

  • Fix earning errors: correct a wrong stamp count with stamps.
  • Extend the period: push back endYmd when an event runs longer.
  • Reset a PIN: if a customer forgets the stamp page PIN, send resetPinYn as Y.
  • Deactivate: set activeYn to N when an event ends so the stamp can no longer be used.
  • Update customer details: change userNm, userEml, and similar fields when member details change.

Things to consider

  • If you do not send stamps (missing, null, or an empty string), the stamp count stays as it is, and no ADD or REMOVE history or Webhook is created. If the same request newly redeems the reward, a USE Webhook may be sent depending on your settings.
  • When you change stamps, the difference is recorded as add or remove history, and a notification is sent if Webhook is turned on for the card (from Premium).
  • An empty string clears memo and customer fields such as userId. Do not send fields you do not want to change.
  • For a stamp whose reward was used, only the memo and the redemption cancel (useYn set to N) change. If the request values pass format checks, the stamp count, period, active status, customer details, and PIN reset are not saved, even when sent together with the cancel. Sending a different card or issuing branch or store returns error 1222. To change those fields, cancel the redemption first and then send a separate request.
  • For a stamp that has one or more stamps, the card and the issuing branch or store cannot be changed either (error 1222).