Virtual Gift
what is virtual gift? virtual gift api enables merchants to create persistent gift card storefronts the web pages remain active and can be used by multiple customers over time unlike single use payment requests, gift card pages are designed to be permanent points of sale for virtual gift cards key features create branded gift card purchase pages support multiple payment methods (credit/debit, ach) with apple pay and google pay support for card payments three delivery options email, sms, or print (for hand delivery) schedule gift card delivery for future dates customize occasions, amounts, and messaging embed as widgets/iframes in your own website receive webhook notifications on purchases virtual gift storefront example virtual gift card example urls type url certification https //paylink cert dcap com/api/v1/giftcard production https //paylink dcap com/api/v1/giftcard authorization the authorization is the same as v2 pay api which consists of basic authorization on all endpoints as authorization basic base64(ecommercemid\ apikey) api key acquired via the endpoint /acquireinitialapikey # and rotated via the endpoint /acquireapikey # all gift card api requests require http basic authentication using your datacap merchant credentials refer to pay api authorization docid\ btc4m25d3m2uhbalhtjpx for more info important note the merchant must be authorized to issue gift cards the virtual gift api validates this by performing a test transaction during page creation operations the following operations are supported for virtual gift operation http method url create new gift card page post /giftcard gift card page details get /giftcard/{giftcardpageid} update a gift card page put /giftcard/{giftcardpageid} disable purchases put /giftcard/{giftcardpageid}/archive return gift card transactions for specific page get /giftcard/{giftcardpageid}/transactions retry delivery of gift card put /giftcard/{giftcardpageid}/{transactionid}/retrydelivery generate qr code image get /qrcode/gift/{publiclinkid} customer facing gift card page get /giftcard/{publiclinkid} embedded/iframe version get /giftcard/{publiclinkid}?widget=true request full access to virtual gift get started request developer credentials for free access to every product's integration guide