Developer forum

Forum » Integration » Import of giftcards

Import of giftcards

Frederik Rossen
Frederik Rossen
Reply

We have a customer that has existing giftcards on their old platform (meaning giftcards that have already been purchased and is ready to use).

Is there a way to import these or manually create them in Dynamicweb? Alternatively, could one-time use vouchers be created for the old giftcards?


Replies

 
Nicolai Pedersen
Reply

You can import giftcars.

First you have to add the cards them selves to [EcomGiftCard] table. 

Then add transactions to [EcomGiftCardTransaction] - so to insert i.e. 100 on the giftcard, create a [EcomGiftCardTransaction] with an amount of "100". The giftcard record itself has the currency. Also you have to remember to specify the VAT included in each transaction - otherwise DW cannot figure out how to handle that.

BR Nicolai

 

You must be logged in to post in the forum