AI-generated Key Takeaways
-
This API endpoint facilitates the unlinking of a Google User account from a Partner User account, using a POST request to the specified URL.
-
The request body requires a
requestHeader
object and alinkUserAccountRequestId
string, which references therequestId
from a previousLinkUserAccountRequest
. -
Successful unlinking operations return an
UnlinkUserAccountResponse
with aresponseHeader
and aresult
object indicating success, whereas errors return anErrorResponse
with appropriate HTTP status codes. -
The unlinking operation is idempotent, meaning that if a request is sent again for an already unlinked account, it will still return a successful response.
-
The response object contains a mandatory response header and a result field, and the type of response can vary depending on whether the request was successful or not.
Unlinks a Google User account from a Partner (Payment Integrator) User account.
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": 1
},
"requestId": "randomRequestId67890",
"requestTimestamp": {
"epochMillis": "1481899949606"
},
"paymentIntegratorAccountId": "GoldenPartner123"
},
"linkUserAccountRequestId": "qierozie12345"
}
An example response looks like:
{
"responseHeader": {
"responseTimestamp": {
"epochMillis": "1481899949611"
}
},
"result": {
"success": {}
}
}
HTTP request
POST https://www.integratorhost.example.com/integrator-base-path/partner-user-account-linking-v1/unlinkUserAccount
Request body
The request body contains data with the following structure:
JSON representation |
---|
{
"requestHeader": {
object ( |
Fields | |
---|---|
requestHeader |
REQUIRED: Common header for all requests. |
linkUserAccountRequestId |
REQUIRED: A reference to an earlier |
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 |
|
UnlinkUserAccountResponse
Response object for the unlinkUserAccount
method.
JSON representation |
---|
{ "responseHeader": { object ( |
Fields | |
---|---|
responseHeader |
REQUIRED: Common header for all responses. |
result |
REQUIRED: Contains the result of the request. |
UnlinkUserAccountResult
Details corresponding to the result.
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field result . REQUIRED: Contains the possible result types. Exactly one must be set. result can be only one of the following: |
|
success |
Unlinking of the user account was successfully processed. If a request is sent again for a previously unlinked account, success will be returned to respect idempotency. |