Method: paycache.closeAccountResultNotification

Informs Google of the result of a closeAccount call.

This call indicates that an account that was in a pending closure state is now closed. Google will inform the user that the account is closed and close the user's Cache Account associated with this GoogleAccountToken.

An example request looks like:


{
  "requestHeader": {
    "protocolVersion": {
      "major": 1
    },
    "requestId": "G1MQ0YERJ0Q7LPM",
    "requestTimestamp": {
      "epochMillis":1481899949606
    },
    "paymentIntegratorAccountId": "abcdef123456"
  },
  "closeAccountRequestId": "G133jdfkd",
  "result": {
    "closed": {}
  }
}

An example success response looks like:


{
  "responseHeader": {
    "responseTimestamp": {
      "epochMillis":1481899950236
    }
  },
  "result": {
    "accepted": {}
  }
}

HTTP request

POST https://billpaynotification.googleapis.com/secure-serving/gsp/v1/paycache/closeAccountResultNotification

Request body

The request body contains data with the following structure:

JSON representation
{
  "requestHeader": {
    object (RequestHeader)
  },
  "closeAccountRequestId": string,
  "result": {
    object (CloseAccountResult)
  }
}
Fields
requestHeader

object (RequestHeader)

REQUIRED: Common header for all requests.

closeAccountRequestId

string

REQUIRED: The request id from the closeAccountRequest.

result

object (CloseAccountResult)

Response body

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

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

object (ResponseHeader)

REQUIRED: Common header for all responses.

result

object (CloseAccountResultNotificationResult)

REQUIRED: Contains the result of the request.

CloseAccountResult

JSON representation
{

  // Union field result can be only one of the following:
  "closed": {
    object (Empty)
  },
  "uncloseable": {
    object (Empty)
  }
  // End of list of possible types for union field result.
}
Fields

Union field result.

result can be only one of the following:

closed

object (Empty)

The account has been closed.

uncloseable

object (Empty)

The bank could not close the account.

CloseAccountResultNotificationResult

Details corresponding to the result.

JSON representation
{
  "accepted": {
    object (Empty)
  }
}
Fields
accepted

object (Empty)

The paycache.closeAccountResultNotification was valid and is now being processed by Google. The user will be notified.