/changeStatus endpoint of our Stored Value API lets you activate or deactivate a gift card or other stored-value card and optionally load funds to it while activating.
Activate
Changing the status to active makes the funds stored on the card available to the shopper.There’s no need to activate virtual cards: they are activated automatically when you issue them.
You can activate plastic cards with or without specifying an amount that you want to load to the card. If you do not add an amount now, you can do so later with a
/load request. Some providers load funds to the card when it is issued. When you activate such a preloaded card, you either do not specify an amount, or exactly specify the preloaded amount.
Deactivate
Changing the status to inactive is something you’d do when you suspect fraud, for example when the gift card is lost or stolen. This is an end state, a deactivated card cannot be used again. Any value remaining on the card is no longer available to the shopper.Transactions per provider and channel
Online
In-person payments
Activate a card
To activate a gift card or other stored-value card:-
Make a POST request to the
/changeStatusendpoint endpoint, specifying:-
status: active -
amount: Optional Thecurrencyandvalueof the funds you want to load to the card. The supported currencies differ per provider.
When activating a preloaded card, do not specify an amount or exactly specify the preloaded amount. -
merchantAccount: Name of the merchant account that you want to process the transaction with. -
store: Optional Only applicable to in-person payments. For transactions flagged as in-store, the ID of the physical store that you want to process the transaction for. Maximum length: 16 characters. -
paymentMethodobject with:-
type: Name or brand of the card. Accepted values: givex, svs, valuelink, any Intersolve-supported card type. -
number: Card number that identifies the card that you want to activate. -
securityCode: If the card has a PIN code or other type of security code, obtain it from the shopper and provide it here. -
expiryMonth: Optional Expiry month of the card. -
expiryYear: Optional Expiry year of the card. -
holderName: Optional Name of the shopper that the card belongs to.
-
-
reference: Your reference to uniquely identify the transaction. To provide multiple references for a transaction, separate them with hyphens (”-”). Maximum length: 80 characters.
-
Response
You receive a response containing:currentBalance: Thecurrencyand totalvalueof the funds stored on the card.pspReference: Adyen’s 16-character unique reference associated with the request.resultCode: Indicates the state of the request. Success means the status change has been carried out. Refer to Result codes for other values that you can receive.
Deactivate a card
When you deactivate a gift card or other stored-value card, the way to specify the card details depends on whether you tokenized a payment that the shopper made with this card.- Without token
- With token
To deactivate a gift card or other stored-value card that has not been tokenized:
-
Make a POST request to the
changeStatusendpoint endpoint, specifying:-
status: inactive -
merchantAccount: Name of the merchant account that you want to process the transaction with. -
store: Optional For transactions flagged as in-store, the ID of the physical store that you want to process the transaction for. Maximum length: 16 characters. -
paymentMethodobject with:-
type: Name or brand of the card. Accepted values: givex, svs, valuelink. -
number: Card number that identifies the card. -
securityCode: If the card has a PIN code or other type of security code, obtain it from the shopper and provide it here. -
expiryMonth: Optional Expiry month of the card. -
expiryYear: Optional Expiry year of the card. -
holderName: Optional Name of the shopper that the card belongs to.
-
-
reference: Your reference to uniquely identify the transaction. To provide multiple references for a transaction, separate them with hyphens (”-”). Maximum length: 80 characters.
-
Response
You receive a response containing:currentBalance: Thecurrencyand totalvalueof the funds stored on the card. Any value remaining on the card is no longer available to the shopper.pspReference: Adyen’s 16-character unique reference associated with the request.resultCode: Indicates the state of the request. Success means the status change has been carried out. Refer to Result codes for other values that you can receive.

