Method: setAcquirerReferenceNumberForCaptureNotification
Stay organized with collections
Save and categorize content based on your preferences.
Notifies Google of the Acquirer Reference Number (ARN) for a capture.
The acquirerReferenceNumber
value is unique for this captureFundsReservationRequestId
and cannot be changed by a subsequent call to this method. If a new request is made with a different ARN for the same captureFundsReservationRequestId
an HTTP 400
will be returned.
This is used to inform Google of the ARN for a capture. 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 capture request was made. This value is also known as a Coupon Code. Providing this value for a capture helps Google respond to chargeback and fraud investigations.
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": "3d65cecb-db61-4081-8f6f-178dca6c94a6",
"requestTimestamp": "1482192286000"
},
"paymentIntegratorAccountId": "SpeedyPaymentsIndia_INR",
"captureRequestId": "G112YZH4XPDV88J",
"acquirerReferenceNumber": "15714820583910486038403"
}
An example response looks like:
{
"responseHeader": {
"responseTimestamp": "1482192286743"
},
"result": "SUCCESS"
}
HTTP request
POST https://vgw.googleapis.com/secure-serving/gsp/google-card-fop-api/v1/setAcquirerReferenceNumberForCaptureNotification/:PIAID
Request body
The request body contains data with the following structure:
JSON representation |
{
"requestHeader": {
object (RequestHeader)
},
"paymentIntegratorAccountId": string,
"captureRequestId": 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.
|
captureRequestId |
string
REQUIRED: A unique identifier for the transaction to associate this ARN with. This is the requestId generated by Google during the captureFundsReservation or capture which this request is associated with.
|
acquirerReferenceNumber |
string
REQUIRED: The acquirer generated reference number for the capture. 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 (SetAcquirerReferenceNumberForCaptureNotificationResponse )
|
HTTP 4XX / 5XX Status |
object (ErrorResponse)
|
SetAcquirerReferenceNumberForCaptureNotificationResponse
Response object for the Google hosted SetAcquirerReferenceNumberNotificationForCaptureNotification method.
SetAcquirerReferenceNumberForCaptureNotificationResultCode
Result codes for the setAcquirerReferenceNumberNotification
method.
Enums |
SET_ACQUIRER_REFERENCE_NUMBER_FOR_CAPTURE_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\u003eThis endpoint allows payment integrators to notify Google of the Acquirer Reference Number (ARN) for a capture transaction, which is crucial for chargeback and fraud investigations.\u003c/p\u003e\n"],["\u003cp\u003eThe ARN is a unique identifier shared between the issuer, merchant, network, and processor, typically becoming available a few days after the capture request.\u003c/p\u003e\n"],["\u003cp\u003eA successful request will return an HTTP 200 response with an \u003ccode\u003eEchoResponse\u003c/code\u003e, while errors will result in HTTP 4xx or 5xx responses with either an \u003ccode\u003eErrorResponse\u003c/code\u003e or a generic error message.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must include the payment integrator account ID, the capture request ID, and the ARN.\u003c/p\u003e\n"],["\u003cp\u003eThe response body will indicate the result of the call, either \u003ccode\u003eSUCCESS\u003c/code\u003e or an error code.\u003c/p\u003e\n"]]],["This documentation details the process for notifying Google of an Acquirer Reference Number (ARN) for a capture. It utilizes a `POST` HTTP request with a JSON body that includes a unique `captureRequestId`, `paymentIntegratorAccountId`, and the `acquirerReferenceNumber`. The ARN is a unique identifier, and subsequent requests with different ARNs for the same `captureRequestId` will return an HTTP 400 error. A successful response returns an HTTP 200 with the result code SUCCESS, while errors return HTTP 4xx or 5xx.\n"],null,["# Method: setAcquirerReferenceNumberForCaptureNotification\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- [SetAcquirerReferenceNumberForCaptureNotificationResponse](#SetAcquirerReferenceNumberForCaptureNotificationResponse)\n - [JSON representation](#SetAcquirerReferenceNumberForCaptureNotificationResponse.SCHEMA_REPRESENTATION)\n- [SetAcquirerReferenceNumberForCaptureNotificationResultCode](#SetAcquirerReferenceNumberForCaptureNotificationResultCode)\n\nNotifies Google of the Acquirer Reference Number (ARN) for a capture.\n\nThe `acquirerReferenceNumber` value is unique for this `captureFundsReservationRequestId` and cannot be changed by a subsequent call to this method. If a new request is made with a different ARN for the same `captureFundsReservationRequestId` an `HTTP 400` will be returned.\n\nThis is used to inform Google of the ARN for a capture. 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 capture request was made. This value is also known as a Coupon Code. Providing this value for a capture helps Google respond to chargeback and fraud investigations.\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/card-fop-v1/payment-integrator-card-fop-api/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/card-fop-v1/payment-integrator-card-fop-api/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/card-fop-v1/payment-integrator-card-fop-api/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\": \"3d65cecb-db61-4081-8f6f-178dca6c94a6\",\n \"requestTimestamp\": \"1482192286000\"\n },\n \"paymentIntegratorAccountId\": \"SpeedyPaymentsIndia_INR\",\n \"captureRequestId\": \"G112YZH4XPDV88J\",\n \"acquirerReferenceNumber\": \"15714820583910486038403\"\n }\n\nAn example response looks like: \n\n\n {\n \"responseHeader\": {\n \"responseTimestamp\": \"1482192286743\"\n },\n \"result\": \"SUCCESS\"\n }\n\n### HTTP request\n\n`POST https://vgw.googleapis.com/secure-serving/gsp/google-card-fop-api/v1/setAcquirerReferenceNumberForCaptureNotification/`[:PIAID](/pay/card-fop-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/card-fop-v1/payment-integrator-card-fop-api/RequestHeader) }, \"paymentIntegratorAccountId\": string, \"captureRequestId\": string, \"acquirerReferenceNumber\": string } ``` |\n\n| Fields ||\n|------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `requestHeader` | `object (`[RequestHeader](/pay/card-fop-v1/payment-integrator-card-fop-api/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| `captureRequestId` | `string` **REQUIRED** : A unique identifier for the transaction to associate this ARN with. This is the `requestId` generated by Google during the `captureFundsReservation` or `capture` which this request is associated with. |\n| `acquirerReferenceNumber` | `string` **REQUIRED**: The acquirer generated reference number for the capture. 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/card-fop-v1/guides/connectivity/protocol-standards#http_status_codes).\n\n| Possible response messages ||\n|-----------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| HTTP 200 Status | `object (`[SetAcquirerReferenceNumberForCaptureNotificationResponse](/pay/card-fop-v1/google-card-fop-api/setAcquirerReferenceNumberForCaptureNotification#SetAcquirerReferenceNumberForCaptureNotificationResponse)`)` |\n| HTTP 4XX / 5XX Status | `object (`[ErrorResponse](/pay/card-fop-v1/payment-integrator-card-fop-api/ErrorResponse)`)` |\n\nSetAcquirerReferenceNumberForCaptureNotificationResponse\n--------------------------------------------------------\n\nResponse object for the Google hosted SetAcquirerReferenceNumberNotificationForCaptureNotification method.\n\n| JSON representation |\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"responseHeader\": { object (/pay/card-fop-v1/payment-integrator-card-fop-api/ResponseHeader) }, \"result\": enum (/pay/card-fop-v1/google-card-fop-api/setAcquirerReferenceNumberForCaptureNotification#SetAcquirerReferenceNumberForCaptureNotificationResultCode) } ``` |\n\n| Fields ||\n|------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `responseHeader` | `object (`[ResponseHeader](/pay/card-fop-v1/payment-integrator-card-fop-api/ResponseHeader)`)` **REQUIRED**: Common header for all responses. |\n| `result` | `enum (`[SetAcquirerReferenceNumberForCaptureNotificationResultCode](/pay/card-fop-v1/google-card-fop-api/setAcquirerReferenceNumberForCaptureNotification#SetAcquirerReferenceNumberForCaptureNotificationResultCode)`)` **REQUIRED**: Result of this call. |\n\nSetAcquirerReferenceNumberForCaptureNotificationResultCode\n----------------------------------------------------------\n\nResult codes for the `setAcquirerReferenceNumberNotification` method.\n\n| Enums ||\n|----------------------------------------------------------------------------------|----------------------------------------------------------|\n| `SET_ACQUIRER_REFERENCE_NUMBER_FOR_CAPTURE_NOTIFICATION_RESULT_CODE_UNSPECIFIED` | Do not ever set this default value! |\n| `SUCCESS` | The Acquirer Reference Number was successfully recorded. |"]]