- HTTP request
- Request body
- Response body
- CancelFundsReservationResultCode
- CancelFundsReservationResultNotificationResponse
- CancelFundsReservationResultNotificationResultCode
Notifies Google of the final result of an asynchronousCancelFundsReservation
request.
The cancelFundsReservationResult
value is idempotent for this cancelFundsReservationRequestId
and cannot be changed by a subsequent call to this method.
If the reservation of funds has expired or the payment integrator has automatically canceled the reservation, consider it a successful cancel rather than an error. Therefore, use a SUCCESS result code.
If the echo is successful, the endpoint will return an HTTP 200 and the response will be of type EchoResponse
.
If the endpoint encounters an error while processing the request, the endpoint will return HTTP 4xx or 5xx and the HTTP body will either be of type ErrorResponse
or contain a generic error (e.g. a message similar to "There was an error. Please try again later.").
The generic error is used in situations where an ErrorResponse
with a clear description could be used to help an attacker understand the payment integrator account identifier of other integrators. In these situations, where either the signing key doesn't match, the payment integrator identifier was not found, or the encryption key was unknown, this method will return a generic error. If the request signature could be verified, additional information regarding the error will be returned in an ErrorResponse
.
An example request looks like:
{
"requestHeader": {
"protocolVersion": {
"major": 1,
"minor": 0,
"revision": 0
},
"requestId": "473da9f8-92c4-4481-b830-976481d928d2",
"requestTimestamp": "1481907920000"
},
"cancelFundsReservationRequestId": "G1NMPDFX4AW395L",
"paymentIntegratorAccountId": "SpeedyPaymentsIndia_INR",
"cancelFundsReservationResult": "SUCCESS",
"rawResult": {
"scope": "VISA",
"rawCode": "05"
}
}
An example response looks like:
{
"responseHeader": {
"responseTimestamp": "1481907920760"
},
"result": "SUCCESS"
}
HTTP request
POST https://vgw.googleapis.com/gsp/google-card-fop-api/v1/cancelFundsReservationResultNotification/:PIAID
Request body
The request body contains data with the following structure:
JSON representation |
---|
{
"requestHeader": {
object (RequestHeader)
},
"paymentIntegratorAccountId": string,
"cancelFundsReservationRequestId": string,
"cancelFundsReservationResult": enum ( |
Fields | |
---|---|
request |
REQUIRED: Common header for all responses. |
payment |
REQUIRED: This is the payment integrator account identifier that identifies contractual constraints around this transaction. |
cancel |
REQUIRED: A unique identifier for this cancel. This is the |
cancel |
REQUIRED: The result of this cancel call. |
raw |
OPTIONAL: The raw response code from the network to this call call. This is informational only. |
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 |
|
CancelFundsReservationResultCode
Result codes for cancels.
Enums | |
---|---|
CANCEL_FUNDS_RESERVATION_RESULT_CODE_UNSPECIFIED |
Do not ever set this default value! |
SUCCESS |
The cancel completed successfully. |
WAIT_FOR_RESERVATION_EXPIRATION |
Due to an unretriable error, the reservation of funds can not be cancelled at this time but will automatically expire at the reservationExpirationTimestamp specified on the ReserveFundsResponse . |
CancelFundsReservationResultNotificationResponse
Response object for the Google CancelFundsReservationResultNotificationResponse method.
JSON representation |
---|
{
"responseHeader": {
object (ResponseHeader)
},
"result": enum ( |
Fields | |
---|---|
response |
REQUIRED: Common header for all responses. |
result |
REQUIRED: Result of this call. |
CancelFundsReservationResultNotificationResultCode
Result codes for the cancelFundsReservationResultNotification
method.
Enums | |
---|---|
CANCEL_FUNDS_RESERVATION_RESULT_NOTIFICATION_RESULT_CODE_UNSPECIFIED |
Do not ever set this default value! |
SUCCESS |
Cancel Funds Reservation notification was successfully processed. |