Method: reverseRefundNotification

Notifies Google of a refund that is being reversed.

This signifies that a previously successful refund is being reversed and funds are being returned to Google by the issuer.

An example request looks like:


{
  "requestHeader": {
    "protocolVersion": {
      "major": 1,
      "minor": 0,
      "revision": 0
    },
    "requestId": "9e4a71df-bf46-44fb-8cad-f1b533e94a78",
    "requestTimestamp": {
      "epochMillis": 1483711327000
    },
    "paymentIntegratorAccountId": "SpeedyPaymentsIndia_INR"
  },
  "refundRequestId": "8a986fe8-5a2c-45a4-a1bb-3bed6e651020",
  "amount": "54390000",
  "rawResult": {
    "scope": "VISA",
    "rawCode": "07"
  }
}

An example response looks like:


{
  "responseHeader": {
    "responseTimestamp": {
      "epochMillis": 1483711328235
    },
    "requestId": "9e4a71df-bf46-44fb-8cad-f1b533e94a78"
  },
  "result": "SUCCESS"
}

HTTP request

POST https://billpaynotification.googleapis.com/secure-serving/gsp/google-authenticated-card-fop-api/v1/reverseRefundNotification

Request body

The request body contains data with the following structure:

JSON representation
{
  "requestHeader": {
    object (RequestHeader)
  },
  "refundRequestId": string,
  "amount": string,
  "rawResult": {
    object (RawResult)
  }
}
Fields
requestHeader

object (RequestHeader)

REQUIRED: Common header for all requests.

refundRequestId

string

REQUIRED: A unique identifier for the refund that is being reversed. This is the requestId generated by the Google during the asynchronousRefund method call this request is associated with.

amount

string (Int64Value format)

REQUIRED: The amount of the refund that is being reversed, in micros of the currency unit. This is greater than zero but can be less than or equal to the amount in the AsynchronousRefund request. It is in the same currency unit as the capture.

rawResult

object (RawResult)

REQUIRED: Raw result of the refund reversal request from the issuer. Used to help inform Google's risk engine and analytics.

Response body

If successful, the response body contains data with the following structure:

Response object for Google hosted v1.reverseRefundNotification method.

JSON representation
{
  "responseHeader": {
    object (ResponseHeader)
  },
  "result": enum (ReverseRefundNotificationResultCode)
}
Fields
responseHeader

object (ResponseHeader)

REQUIRED: Common header for all responses.

result

enum (ReverseRefundNotificationResultCode)

REQUIRED: Result of this call.

ReverseRefundNotificationResultCode

Result codes for the reverseRefundNotification method.

Enums
REVERSE_REFUND_NOTIFICATION_RESULT_CODE_UNSPECIFIED Do not ever set this default value!
SUCCESS Reverse refund notification was successfully processed.