Method: disassociateAccount

Deletes the association between the customer's account with the payment processor and the Google instrument.

This disassociation should be processed idempotently, so if the same requestId is used as a previously processed request, the previous result should be idempotently returned. Otherwise if Google sends a googlePaymentToken that has already been disassociated, an error should be returned.

An example request looks like:


{
  "requestHeader": {
    "protocolVersion": {
      "major": 2
    },
    "requestId": "bWVyY2hhbnQgdHJhbnNhY3Rpb24gaWQ",
    "requestTimestamp": {
      "epochMillis": "0"
    },
    "paymentIntegratorAccountId": "InvisiCashUSD"
  },
  "googlePaymentToken": {
    "issuerId": {
      "value": "InvisiCashUSA"
    },
    "token": "ZXhhbXBsZSB1bmlxdWUgcGF5bWVudCB0b2tlbiB2YWx1ZQ"
  }
}

An example response looks like:


{
  "responseHeader": {
    "responseTimestamp": {
      "epochMillis": "1481900013178"
    }
  },
  "result": {"success": {}}
}

HTTP request

POST https://www.integratordomain.com/v2/disassociateAccount

Request body

The request body contains data with the following structure:

JSON representation
{
  "requestHeader": {
    object (RequestHeader)
  },

  // Union field token can be only one of the following:
  "googlePaymentToken": {
    object (GooglePaymentToken)
  },
  "vendorPaymentToken": {
    object (VendorPaymentToken)
  }
  // End of list of possible types for union field token.
}
Fields
requestHeader

object (RequestHeader)

REQUIRED: Common header for all requests.

Union field token. REQUIRED: This is the token that should be disassociated. token can be only one of the following:
googlePaymentToken

object (GooglePaymentToken)

vendorPaymentToken

object (VendorPaymentToken)

Response body

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

Response object for the disassociate account method.

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

object (ResponseHeader)

REQUIRED: Common header for all responses.

result

object (DisassociateAccountResult)

REQUIRED: Result of this disassociation.

DisassociateAccountResult

Result for disassociate account.

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

object (Empty)

The account disassociation was successful.