Reverse eGift

Introduction

Use this operation to reverse an eGift activation for the given product configuration when a timeout occurs during eGift activation.

Method

Service Name

Service Type

POST

eGiftProcessing/v1/reverseEGift

Synchronous

URI: https://api.blackhawknetwork.com/eGiftProcessing/v1/reverseEGift

Request Header Attributes

Name

Type

Max Length

Required

Description

requestorId

String

50

N

The internal identifier for the person making the request

requestId

String

50

Y

The unique identifier of the request.

Request Elements

Name

Type

Max Length

Required

Description

reversalEGiftRequestId

String

50

Y

Request ID of the original transaction that needs to be reversed.

Response Elements

Name

Type

Description

AccountTransaction

AccountTransaction

Request ID of the original transaction that needs to be reversed.

Error Codes

HTTP Status Code

Error Code

Description

400

egiftprocessing.reversalEGiftRequestId.blank

reversalEGiftRequestId is blank

409

account.does.not.exist

account not found

409

egiftprocessing.egift.not.found

eGift not found

409

original.transaction.not.found

Transaction for the request id not found

409

max.reversal.time.elapsed

Time allowed for reversal of transaction elapsed

504

provider.transaction.timeout

Underlying systems not responding

POST http://10.180.137.39:8081/eGiftProcessing/v1/reverseEGift HTTP/1.1
Accept-Encoding: gzip,deflate
requestId: zzzzz
tenantId: 8YQ1LV7VW3J88DQFNJ0VNX8NG4
requestorId: 8YQ1LV7VW3J88DQFNJ0VNX8NG4
certificateId: 8YQ1LV7VW3J88DQFNJ0VNX8NG4
Content-Type: application/json
Content-Length: 42
Host: 10.180.137.39:8081
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
{
    "reversalEGiftRequestId" : "testa39"
}
{
   "entityId": "YXPC4BCC9TJZ9HRN5MHASQRCWH",
   "creatorId": "8YQ1LV7VW3J88DQFNJ0VNX8NG4",
   "updaterId": "8YQ1LV7VW3J88DQFNJ0VNX8NG4",
   "createdTimestamp": "2014-02-04T22:04:34.075+0000",
   "updatedTimestamp": "2014-02-04T22:04:34.075+0000",
   "accountId": "3FAXAHNGMFTY2PB1CVKNGNGYNH",
   "merchantId": "603000020561",
   "accountNumberLastDigits": "2841",
   "currency": "USD",
   "requestedAmount": 25,
   "approvedAmount": 25,
   "authorizationCode": "000012",
   "transactionResponse": "00",
   "transactionTimeStamp": "2014-02-04T10:02:20.000+0000",
   "description": "balance.available",
   "isVoid": false,
   "isReversal": true,
   "retrievalReferenceNumber": "000000001031",
   "expirationMonth": 1,
   "expirationYear": 2013,
   "transactionType": "DIGITAL_ACCOUNT_REQUEST",
   "transactionStatus": "APPROVED",
   "accountType": "GIFT_CARD",
   "accountNumber": "763084032841",
   "activationAccountNumber": "720927",
   "securityCode": "5837",
   "expirationDay": 1,
   "suspended": false
}

Did this page help you?