Method: acceptRemittanceStatement
Stay organized with collections
Save and categorize content based on your preferences.
Tells Google that the statement indicated in this request will be paid.
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": 2
},
"requestId": "0123434-abc",
"requestTimestamp": {
"epochMillis": "1616976000000"
},
"paymentIntegratorAccountId": "InvisiCashUSA_USD"
},
"statementId": "0123434-statement-abc"
}
An example response looks like:
{
"responseHeader": {
"responseTimestamp": {
"epochMillis": "1616976000000"
}
},
"result": {
"success": {}
}
}
HTTP request
POST https://vgw.googleapis.com/gsp/refundable-one-time-payment-code-v2/acceptRemittanceStatement/:PIAID
Request body
The request body contains data with the following structure:
JSON representation |
{
"requestHeader": {
object (RequestHeader)
},
"statementId": string
} |
Fields |
requestHeader |
object (RequestHeader)
REQUIRED: Common header for all requests.
|
statementId |
string
REQUIRED: Request ID of the statement notification.
|
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 (AcceptRemittanceStatementResponse )
|
HTTP 4XX / 5XX Status |
object (ErrorResponse)
|
AcceptRemittanceStatementResponse
Response object for the acceptRemittanceStatement
method.
AcceptRemittanceStatementResult
Result of this remittance acceptance.
JSON representation |
{
// Union field result can be only one of the following:
"success": {
object (Empty)
}
// End of list of possible types for union field result .
} |
Fields |
Union field result . REQUIRED: The result of this remittance acceptance. result can be only one of the following: |
success |
object (Empty)
Remittance statement accepted successfully.
|
All rights reserved. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-29 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-07-29 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eacceptRemittanceStatement\u003c/code\u003e API endpoint informs Google that a specific statement will be paid.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful requests receive an HTTP 200 response with an \u003ccode\u003eEchoResponse\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eErrors result in HTTP 4xx or 5xx responses, potentially with an \u003ccode\u003eErrorResponse\u003c/code\u003e or a generic error message.\u003c/p\u003e\n"],["\u003cp\u003eRequest bodies include a \u003ccode\u003erequestHeader\u003c/code\u003e and \u003ccode\u003estatementId\u003c/code\u003e to identify the statement.\u003c/p\u003e\n"],["\u003cp\u003eResponse bodies contain a \u003ccode\u003eresponseHeader\u003c/code\u003e and a \u003ccode\u003eresult\u003c/code\u003e indicating success or failure.\u003c/p\u003e\n"]]],["This document details how to notify Google that a remittance statement will be paid via the `acceptRemittanceStatement` method. A `POST` HTTP request is sent to a specified endpoint with a JSON request body containing a `requestHeader` and `statementId`. A successful response returns a `200` status with an `AcceptRemittanceStatementResponse`, containing a `responseHeader` and `result`, which is a `success` object. Errors are indicated by `4xx` or `5xx` HTTP status codes, returning an `ErrorResponse` object or a generic error message.\n"],null,["# Method: acceptRemittanceStatement\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- [AcceptRemittanceStatementResponse](#AcceptRemittanceStatementResponse)\n - [JSON representation](#AcceptRemittanceStatementResponse.SCHEMA_REPRESENTATION)\n- [AcceptRemittanceStatementResult](#AcceptRemittanceStatementResult)\n - [JSON representation](#AcceptRemittanceStatementResult.SCHEMA_REPRESENTATION)\n\nTells Google that the statement indicated in this request will be paid.\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/refundable-one-time-payment-code-v2/payment-integrator-refundable-one-time-payment-code-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/refundable-one-time-payment-code-v2/payment-integrator-refundable-one-time-payment-code-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/refundable-one-time-payment-code-v2/payment-integrator-refundable-one-time-payment-code-api/ErrorResponse).\n\nAn example request looks like: \n\n\n {\n \"requestHeader\": {\n \"protocolVersion\": {\n \"major\": 2\n },\n \"requestId\": \"0123434-abc\",\n \"requestTimestamp\": {\n \"epochMillis\": \"1616976000000\"\n },\n \"paymentIntegratorAccountId\": \"InvisiCashUSA_USD\"\n },\n \"statementId\": \"0123434-statement-abc\"\n }\n\nAn example response looks like: \n\n\n {\n \"responseHeader\": {\n \"responseTimestamp\": {\n \"epochMillis\": \"1616976000000\"\n }\n },\n \"result\": {\n \"success\": {}\n }\n }\n\n### HTTP request\n\n`POST https://vgw.googleapis.com/gsp/refundable-one-time-payment-code-v2/acceptRemittanceStatement/`[:PIAID](/pay/refundable-one-time-payment-code-v2/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/refundable-one-time-payment-code-v2/payment-integrator-refundable-one-time-payment-code-api/RequestHeader) }, \"statementId\": string } ``` |\n\n| Fields ||\n|-----------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `requestHeader` | `object (`[RequestHeader](/pay/refundable-one-time-payment-code-v2/payment-integrator-refundable-one-time-payment-code-api/RequestHeader)`)` **REQUIRED**: Common header for all requests. |\n| `statementId` | `string` **REQUIRED**: Request ID of the statement notification. |\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/refundable-one-time-payment-code-v2/guides/connectivity/protocol-standards#http_status_codes).\n\n| Possible response messages ||\n|-----------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| HTTP 200 Status | `object (`[AcceptRemittanceStatementResponse](/pay/refundable-one-time-payment-code-v2/google-refundable-one-time-payment-code-api/acceptRemittanceStatement#AcceptRemittanceStatementResponse)`)` |\n| HTTP 4XX / 5XX Status | `object (`[ErrorResponse](/pay/refundable-one-time-payment-code-v2/payment-integrator-refundable-one-time-payment-code-api/ErrorResponse)`)` |\n\nAcceptRemittanceStatementResponse\n---------------------------------\n\nResponse object for the `acceptRemittanceStatement` method.\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"responseHeader\": { object (/pay/refundable-one-time-payment-code-v2/payment-integrator-refundable-one-time-payment-code-api/ResponseHeader) }, \"result\": { object (/pay/refundable-one-time-payment-code-v2/google-refundable-one-time-payment-code-api/acceptRemittanceStatement#AcceptRemittanceStatementResult) } } ``` |\n\n| Fields ||\n|------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `responseHeader` | `object (`[ResponseHeader](/pay/refundable-one-time-payment-code-v2/payment-integrator-refundable-one-time-payment-code-api/ResponseHeader)`)` **REQUIRED**: Common header for all responses. |\n| `result` | `object (`[AcceptRemittanceStatementResult](/pay/refundable-one-time-payment-code-v2/google-refundable-one-time-payment-code-api/acceptRemittanceStatement#AcceptRemittanceStatementResult)`)` **REQUIRED**: Result of the refundable-one-time-payment-code-v2.acceptRemittanceStatement call. |\n\nAcceptRemittanceStatementResult\n-------------------------------\n\nResult of this remittance acceptance.\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { // Union field `result` can be only one of the following: \"success\": { object (/pay/refundable-one-time-payment-code-v2/payment-integrator-refundable-one-time-payment-code-api/Empty) } // End of list of possible types for union field `result`. } ``` |\n\n| Fields ||\n|-----------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Union field `result`. **REQUIRED** : The result of this remittance acceptance. `result` can be only one of the following: ||\n| `success` | `object (`[Empty](/pay/refundable-one-time-payment-code-v2/payment-integrator-refundable-one-time-payment-code-api/Empty)`)` Remittance statement accepted successfully. |"]]