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.
If the endpoint encounters an error while processing the request, the response body from this endpoint should be of type
.ErrorResponse
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.integratorhost.example.com/integrator-base-path/v2/disassociateAccount
Request body
The request body contains data with the following structure:
JSON representation |
---|
{ "requestHeader": { object ( |
Fields | |
---|---|
request |
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: |
|
google |
|
vendor |
|
Response body
This method supports multiple return types. For additional information about what 4XX or 5XX HTTP status code to return with an ErrorResponse
, consult the ErrorResponse
object and HTTP status codes documentation.
Possible response messages | |
---|---|
HTTP 200 Status |
|
HTTP 4XX / 5XX Status |
|
DisassociateAccountResponse
Response object for the disassociate account method.
JSON representation |
---|
{ "responseHeader": { object ( |
Fields | |
---|---|
response |
REQUIRED: Common header for all responses. |
result |
REQUIRED: Result of this disassociation. |
DisassociateAccountResult
Result for disassociate account.
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field
|
|
success |
The account disassociation was successful. |