Method: setAcquirerReferenceNumberForRefundNotification
Stay organized with collections
Save and categorize content based on your preferences.
Notifies Google of the Acquirer Reference Number (ARN) for a refund.
The acquirerReferenceNumber
value is unique for this refundRequestId
and cannot be changed by a subsequent call to this method. If a new request is made with a different ARN for the same refundRequestId
an HTTP 400
will be returned.
This is used to inform Google for the ARN for this refund. This is an identifier that is shared between the issuer, merchant, network and processor. It typically is known to the processor a few days after the refund request was made. Providing this value for a refund helps Google correctly handle requests involving the refund.
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": "b7256a33-864d-40cb-84be-7ad2482cf25a",
"requestTimestamp": "1482797086000"
},
"paymentIntegratorAccountId": "SpeedyPaymentsIndia_INR",
"refundRequestId": "G18FCDTLD5B0SR4",
"acquirerReferenceNumber": "74896130957836587146723"
}
An example response looks like:
{
"responseHeader": {
"responseTimestamp": "1482797086918"
},
"result": "SUCCESS"
}
HTTP request
POST https://vgw.googleapis.com/secure-serving/gsp/google-authenticated-card-fop-api/v1/setAcquirerReferenceNumberForRefundNotification/:PIAID
Request body
The request body contains data with the following structure:
JSON representation |
{
"requestHeader": {
object (RequestHeader)
},
"paymentIntegratorAccountId": string,
"refundRequestId": string,
"acquirerReferenceNumber": string
} |
Fields |
requestHeader |
object (RequestHeader)
REQUIRED: Common header for all responses.
|
paymentIntegratorAccountId |
string
REQUIRED: This is the payment integrator account identifier that identifies contractual constraints around this transaction.
|
refundRequestId |
string
REQUIRED: A unique identifier for the transaction to associate this ARN with. This is the requestId generated by Google during the asynchronousRefund call for the refund.
|
acquirerReferenceNumber |
string
REQUIRED: The acquirer generated reference number for the refund. This number is an identifier that is shared between the issuer, processor, network and merchant. It can be used to uniquely identify a transaction.
|
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 |
object (SetAcquirerReferenceNumberForRefundNotificationResponse )
|
HTTP 4XX / 5XX Status |
object (ErrorResponse)
|
SetAcquirerReferenceNumberForRefundNotificationResponse
Response object for the Google hosted SetAcquirerReferenceNumberNotificationForRefundNotification method.
SetAcquirerReferenceNumberForRefundNotificationResultCode
Result codes for the setAcquirerReferenceNumberNotification
method.
Enums |
SET_ACQUIRER_REFERENCE_NUMBER_FOR_REFUND_NOTIFICATION_RESULT_CODE_UNSPECIFIED |
Do not ever set this default value! |
SUCCESS |
The Acquirer Reference Number was successfully recorded. |
All rights reserved. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-20 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-20 UTC."],[[["\u003cp\u003eNotifies Google of the Acquirer Reference Number (ARN) for a refund, which is unique for each refund request and cannot be changed later.\u003c/p\u003e\n"],["\u003cp\u003eProviding the ARN helps Google correctly handle requests involving the refund, as it's an identifier shared between the issuer, merchant, network, and processor.\u003c/p\u003e\n"],["\u003cp\u003eThe endpoint returns an HTTP 200 and an \u003ccode\u003eEchoResponse\u003c/code\u003e if successful, or an HTTP 4xx or 5xx with an \u003ccode\u003eErrorResponse\u003c/code\u003e or a generic error message if unsuccessful.\u003c/p\u003e\n"],["\u003cp\u003eThe request body requires \u003ccode\u003erequestHeader\u003c/code\u003e, \u003ccode\u003epaymentIntegratorAccountId\u003c/code\u003e, \u003ccode\u003erefundRequestId\u003c/code\u003e, and \u003ccode\u003eacquirerReferenceNumber\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe response body includes \u003ccode\u003eresponseHeader\u003c/code\u003e and \u003ccode\u003eresult\u003c/code\u003e, indicating the outcome of the ARN setting attempt.\u003c/p\u003e\n"]]],["This outlines a method for notifying Google of a refund's Acquirer Reference Number (ARN). Key actions include sending a POST request to a specified URL with a JSON request body. The request must contain a `requestHeader`, `paymentIntegratorAccountId`, `refundRequestId`, and the `acquirerReferenceNumber`. A successful request returns an HTTP 200 and a response with a header and result of `SUCCESS`. Errors result in HTTP 4xx or 5xx, potentially returning an `ErrorResponse`. The ARN is unique and cannot be changed.\n"],null,["# Method: setAcquirerReferenceNumberForRefundNotification\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n- [SetAcquirerReferenceNumberForRefundNotificationResponse](#SetAcquirerReferenceNumberForRefundNotificationResponse)\n - [JSON representation](#SetAcquirerReferenceNumberForRefundNotificationResponse.SCHEMA_REPRESENTATION)\n- [SetAcquirerReferenceNumberForRefundNotificationResultCode](#SetAcquirerReferenceNumberForRefundNotificationResultCode)\n\nNotifies Google of the Acquirer Reference Number (ARN) for a refund.\n\nThe `acquirerReferenceNumber` value is unique for this `refundRequestId` and cannot be changed by a subsequent call to this method. If a new request is made with a different ARN for the same `refundRequestId` an `HTTP 400` will be returned.\n\nThis is used to inform Google for the ARN for this refund. This is an identifier that is shared between the issuer, merchant, network and processor. It typically is known to the processor a few days after the refund request was made. Providing this value for a refund helps Google correctly handle requests involving the refund.\n\nIf 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`](/pay/india-cards-v1/payment-integrator-india-cards-api/defendChargeback#ErrorResponse) or contain a generic error (e.g. a message similar to \"There was an error. Please try again later.\").\n\nThe generic error is used in situations where an [`ErrorResponse`](/pay/india-cards-v1/payment-integrator-india-cards-api/defendChargeback#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`](/pay/india-cards-v1/payment-integrator-india-cards-api/defendChargeback#ErrorResponse).\n\nAn example request looks like: \n\n\n {\n \"requestHeader\": {\n \"protocolVersion\": {\n \"major\": 1,\n \"minor\": 0,\n \"revision\": 0\n },\n \"requestId\": \"b7256a33-864d-40cb-84be-7ad2482cf25a\",\n \"requestTimestamp\": \"1482797086000\"\n },\n \"paymentIntegratorAccountId\": \"SpeedyPaymentsIndia_INR\",\n \"refundRequestId\": \"G18FCDTLD5B0SR4\",\n \"acquirerReferenceNumber\": \"74896130957836587146723\"\n }\n\nAn example response looks like: \n\n\n {\n \"responseHeader\": {\n \"responseTimestamp\": \"1482797086918\"\n },\n \"result\": \"SUCCESS\"\n }\n\n### HTTP request\n\n`POST https://vgw.googleapis.com/secure-serving/gsp/google-authenticated-card-fop-api/v1/setAcquirerReferenceNumberForRefundNotification/`[:PIAID](/pay/india-cards-v1/reference/glossary#payment_integrator_account_id)\n\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation |\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"requestHeader\": { object (/pay/india-cards-v1/payment-integrator-india-cards-api/defendChargeback#RequestHeader) }, \"paymentIntegratorAccountId\": string, \"refundRequestId\": string, \"acquirerReferenceNumber\": string } ``` |\n\n| Fields ||\n|------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `requestHeader` | `object (`[RequestHeader](/pay/india-cards-v1/payment-integrator-india-cards-api/defendChargeback#RequestHeader)`)` **REQUIRED**: Common header for all responses. |\n| `paymentIntegratorAccountId` | `string` **REQUIRED**: This is the payment integrator account identifier that identifies contractual constraints around this transaction. |\n| `refundRequestId` | `string` **REQUIRED** : A unique identifier for the transaction to associate this ARN with. This is the `requestId` generated by Google during the `asynchronousRefund` call for the refund. |\n| `acquirerReferenceNumber` | `string` **REQUIRED**: The acquirer generated reference number for the refund. This number is an identifier that is shared between the issuer, processor, network and merchant. It can be used to uniquely identify a transaction. |\n\n### Response body\n\nThis 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](/pay/india-cards-v1/guides/connectivity/protocol-standards#http_status_codes).\n\n| Possible response messages ||\n|-----------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| HTTP 200 Status | `object (`[SetAcquirerReferenceNumberForRefundNotificationResponse](/pay/india-cards-v1/google-india-cards-api/setAcquirerReferenceNumberForRefundNotification#SetAcquirerReferenceNumberForRefundNotificationResponse)`)` |\n| HTTP 4XX / 5XX Status | `object (`[ErrorResponse](/pay/india-cards-v1/payment-integrator-india-cards-api/defendChargeback#ErrorResponse)`)` |\n\nSetAcquirerReferenceNumberForRefundNotificationResponse\n-------------------------------------------------------\n\nResponse object for the Google hosted SetAcquirerReferenceNumberNotificationForRefundNotification method.\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"responseHeader\": { object (/pay/india-cards-v1/payment-integrator-india-cards-api/defendChargeback#ResponseHeader) }, \"result\": enum (/pay/india-cards-v1/google-india-cards-api/setAcquirerReferenceNumberForRefundNotification#SetAcquirerReferenceNumberForRefundNotificationResultCode) } ``` |\n\n| Fields ||\n|------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `responseHeader` | `object (`[ResponseHeader](/pay/india-cards-v1/payment-integrator-india-cards-api/defendChargeback#ResponseHeader)`)` **REQUIRED**: Common header for all responses. |\n| `result` | `enum (`[SetAcquirerReferenceNumberForRefundNotificationResultCode](/pay/india-cards-v1/google-india-cards-api/setAcquirerReferenceNumberForRefundNotification#SetAcquirerReferenceNumberForRefundNotificationResultCode)`)` **REQUIRED**: Result of this call. |\n\nSetAcquirerReferenceNumberForRefundNotificationResultCode\n---------------------------------------------------------\n\nResult codes for the `setAcquirerReferenceNumberNotification` method.\n\n| Enums ||\n|---------------------------------------------------------------------------------|----------------------------------------------------------|\n| `SET_ACQUIRER_REFERENCE_NUMBER_FOR_REFUND_NOTIFICATION_RESULT_CODE_UNSPECIFIED` | Do not ever set this default value! |\n| `SUCCESS` | The Acquirer Reference Number was successfully recorded. |"]]