GiftCard

GiftCardEvent

All events in the lifecycle of card are represented here, when we activate the card, remove credits, add credits, block the card...

Examples

initialize a credit card and assigne it to an existing member

PUT

{
    "GiftCard":{
        "cardnumber": "3832000",        
		"member": {id:1002}
    }
}

add GiftCard credit

PUT

{
    "GiftCardEvent":{
        "card":{ 
         loadFromKeys: { cardnumber: "3832000"}
         },
         type:"addCredit",
         fvalue:"50",
         comment:""         
    }
}

using GiftCard credit

PUT

{
    "GiftCardEvent":{
        "card":{ 
         loadFromKeys: { cardnumber: "3832000"}
         },
         type:"addDebit",
         fvalue:"10",
         comment:""         
    }
}