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": 1,
"minor": 0,
"revision": 0
},
"requestId": "0123434-abc",
"requestTimestamp": "1502545413098"
},
"paymentIntegratorAccountId": "InvisiCashUSA_USD",
"statementId": "0123434-statement-abc"
}
An example response looks like:
{
"responseHeader": {
"responseTimestamp": "1519996752221"
},
"acceptRemittanceStatementResultCode": "SUCCESS"
}
HTTP request
POST https://vgw.googleapis.com/gsp/redirect-payment-token-v1/acceptRemittanceStatement/:PIAID
Request body
The request body contains data with the following structure:
JSON representation |
{
"requestHeader": {
object (RequestHeader)
},
"paymentIntegratorAccountId": string,
"statementId": string
} |
Fields |
requestHeader |
object (RequestHeader)
REQUIRED: Common header for all requests.
|
paymentIntegratorAccountId |
string
REQUIRED: This is the payment integrator account identifier that identifies contractual constraints around this statement.
|
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.
AcceptRemittanceStatementResultCode
Result codes for the acceptRemittanceStatement
method.
Enums |
UNKNOWN_RESULT |
Do not ever set this default value! |
SUCCESS |
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 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, while errors 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 a \u003ccode\u003erequestHeader\u003c/code\u003e, \u003ccode\u003epaymentIntegratorAccountId\u003c/code\u003e, and \u003ccode\u003estatementId\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe response body contains a \u003ccode\u003eresponseHeader\u003c/code\u003e and an \u003ccode\u003eacceptRemittanceStatementResultCode\u003c/code\u003e indicating the outcome of the request.\u003c/p\u003e\n"],["\u003cp\u003ePossible \u003ccode\u003eacceptRemittanceStatementResultCode\u003c/code\u003e values are \u003ccode\u003eSUCCESS\u003c/code\u003e for successful acceptance and \u003ccode\u003eUNKNOWN_RESULT\u003c/code\u003e (which should never be set).\u003c/p\u003e\n"]]],["This describes the `acceptRemittanceStatement` method, used to inform Google that a statement will be paid. A `POST` request is sent to a specified endpoint with a JSON body containing a `requestHeader`, `paymentIntegratorAccountId`, and `statementId`. The response is either a `SUCCESS` result code within an `AcceptRemittanceStatementResponse` object (HTTP 200) or an `ErrorResponse` object (HTTP 4xx/5xx) for errors. Generic errors are used in cases where a detailed error response could expose sensitive information.\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- [AcceptRemittanceStatementResultCode](#AcceptRemittanceStatementResultCode)\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/redirect-payment-token-v1/payment-integrator-redirect-payment-token-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/redirect-payment-token-v1/payment-integrator-redirect-payment-token-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/redirect-payment-token-v1/payment-integrator-redirect-payment-token-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\": \"0123434-abc\",\n \"requestTimestamp\": \"1502545413098\"\n },\n \"paymentIntegratorAccountId\": \"InvisiCashUSA_USD\",\n \"statementId\": \"0123434-statement-abc\"\n }\n\nAn example response looks like: \n\n\n {\n \"responseHeader\": {\n \"responseTimestamp\": \"1519996752221\"\n },\n \"acceptRemittanceStatementResultCode\": \"SUCCESS\"\n }\n\n### HTTP request\n\n`POST https://vgw.googleapis.com/gsp/redirect-payment-token-v1/acceptRemittanceStatement/`[:PIAID](/pay/redirect-payment-token-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/redirect-payment-token-v1/payment-integrator-redirect-payment-token-api/RequestHeader) }, \"paymentIntegratorAccountId\": string, \"statementId\": string } ``` |\n\n| Fields ||\n|------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `requestHeader` | `object (`[RequestHeader](/pay/redirect-payment-token-v1/payment-integrator-redirect-payment-token-api/RequestHeader)`)` **REQUIRED**: Common header for all requests. |\n| `paymentIntegratorAccountId` | `string` **REQUIRED**: This is the payment integrator account identifier that identifies contractual constraints around this statement. |\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/redirect-payment-token-v1/guides/connectivity/protocol-standards#http_status_codes).\n\n| Possible response messages ||\n|-----------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| HTTP 200 Status | `object (`[AcceptRemittanceStatementResponse](/pay/redirect-payment-token-v1/google-redirect-payment-token-api/acceptRemittanceStatement#AcceptRemittanceStatementResponse)`)` |\n| HTTP 4XX / 5XX Status | `object (`[ErrorResponse](/pay/redirect-payment-token-v1/payment-integrator-redirect-payment-token-api/ErrorResponse)`)` |\n\nAcceptRemittanceStatementResponse\n---------------------------------\n\nResponse object for the `acceptRemittanceStatement` method.\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"responseHeader\": { object (/pay/redirect-payment-token-v1/payment-integrator-redirect-payment-token-api/ResponseHeader) }, \"acceptRemittanceStatementResultCode\": enum (/pay/redirect-payment-token-v1/google-redirect-payment-token-api/acceptRemittanceStatement#AcceptRemittanceStatementResultCode) } ``` |\n\n| Fields ||\n|---------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `responseHeader` | `object (`[ResponseHeader](/pay/redirect-payment-token-v1/payment-integrator-redirect-payment-token-api/ResponseHeader)`)` **REQUIRED**: Common header for all responses. |\n| `acceptRemittanceStatementResultCode` | `enum (`[AcceptRemittanceStatementResultCode](/pay/redirect-payment-token-v1/google-redirect-payment-token-api/acceptRemittanceStatement#AcceptRemittanceStatementResultCode)`)` **REQUIRED**: Result of the redirect-payment-token-v1.acceptRemittanceStatement call. |\n\nAcceptRemittanceStatementResultCode\n-----------------------------------\n\nResult codes for the `acceptRemittanceStatement` method.\n\n| Enums ||\n|------------------|--------------------------------------------|\n| `UNKNOWN_RESULT` | Do not ever set this default value! |\n| `SUCCESS` | Remittance statement accepted successfully |"]]