TopUpRedirectRequest
Stay organized with collections
Save and categorize content based on your preferences.
Request object for the Top-Up Redirect flow.
Here's an example of a clear text JSON request:
{
"requestHeader": {
"protocolVersion": {
"major": 1,
"minor": 1,
"revision": 0
},
"requestId": "G112YZH4XPDV88J",
"requestTimestamp": "1481907920000"
},
"associationId": "LmddbXBsZSByZWZlcmVuY2UgdG9rZW4gdmFsdWU_"
}
The TopUpRedirectRequest
is encrypted and signed using PGP or JWE+JWS. Further, this value is web-safe base64
encoded. This encoding is referred to below as Base64UrlEncode
. In other words, the clear text JSON version of the TopUpRedirectRequest
must be passed through the following functions:
Base64UrlEncode(
PGPSignAndEncrypt(
{
"requestHeader": {
"protocolVersion": {
"major": 1,
"minor": 1,
"revision": 0
},
"requestId": "G112YZH4XPDV88J",
"requestTimestamp": "1481907920000"
},
"associationId": "LmddbXBsZSByZWZlcmVuY2UgdG9rZW4gdmFsdWU_"
}
)
)
or
Base64UrlEncode(
JWSignAndEncrypt(
{
"requestHeader": {
"protocolVersion": {
"major": 1,
"minor": 1,
"revision": 0
},
"requestId": "G112YZH4XPDV88J",
"requestTimestamp": "1481907920000"
},
"associationId": "LmddbXBsZSByZWZlcmVuY2UgdG9rZW4gdmFsdWU_"
}
)
)
JSON representation |
{
"requestHeader": {
object (RequestHeader )
},
"associationId": string,
"targetBalance": {
object (Amount )
}
} |
Fields |
associationId |
string
REQUIRED: The associationId that represents the user's account. This is public-facing ID for the user's account that was provided by Google during the associateAccount call.
|
targetBalance |
object (Amount )
OPTIONAL: The target balance to reach, in micros.
|
All rights reserved. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-02-28 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-02-28 UTC."],[[["\u003cp\u003eThe Top-Up Redirect flow uses a JSON request object that includes request header details and an association ID.\u003c/p\u003e\n"],["\u003cp\u003eThe JSON request is encrypted and signed using either PGP or JWE+JWS and then encoded with Base64UrlEncode for security.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eassociationId\u003c/code\u003e is a crucial element in the request, representing the user's account and linking to the previous \u003ccode\u003eassociateAccount\u003c/code\u003e process.\u003c/p\u003e\n"],["\u003cp\u003eAn optional \u003ccode\u003etargetBalance\u003c/code\u003e field can be included to specify a desired balance in micros for the top-up.\u003c/p\u003e\n"]]],["The `TopUpRedirectRequest` requires a `requestHeader` (including protocol version, ID, and timestamp) and an `associationId` for the user's account. Optionally, a `targetBalance` can be included. The clear text JSON request must be encrypted and signed using either PGP or JWE+JWS and subsequently encoded using `Base64UrlEncode`. The request contains the `requestHeader`, `associationId`, and an optional `targetBalance` field.\n"],null,["# TopUpRedirectRequest\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nRequest object for the Top-Up Redirect flow.\n\nHere's an example of a clear text JSON request: \n\n\n {\n \"requestHeader\": {\n \"protocolVersion\": {\n \"major\": 1,\n \"minor\": 1,\n \"revision\": 0\n },\n \"requestId\": \"G112YZH4XPDV88J\",\n \"requestTimestamp\": \"1481907920000\"\n },\n \"associationId\": \"LmddbXBsZSByZWZlcmVuY2UgdG9rZW4gdmFsdWU_\"\n }\n\nThe `TopUpRedirectRequest` is encrypted and signed using PGP or JWE+JWS. Further, this value is web-safe `base64` encoded. This encoding is referred to below as `Base64UrlEncode`. In other words, the clear text JSON version of the `TopUpRedirectRequest` must be passed through the following functions: \n\n Base64UrlEncode(\n PGPSignAndEncrypt(\n {\n \"requestHeader\": {\n \"protocolVersion\": {\n \"major\": 1,\n \"minor\": 1,\n \"revision\": 0\n },\n \"requestId\": \"G112YZH4XPDV88J\",\n \"requestTimestamp\": \"1481907920000\"\n },\n \"associationId\": \"LmddbXBsZSByZWZlcmVuY2UgdG9rZW4gdmFsdWU_\"\n }\n )\n )\n\nor \n\n Base64UrlEncode(\n JWSignAndEncrypt(\n {\n \"requestHeader\": {\n \"protocolVersion\": {\n \"major\": 1,\n \"minor\": 1,\n \"revision\": 0\n },\n \"requestId\": \"G112YZH4XPDV88J\",\n \"requestTimestamp\": \"1481907920000\"\n },\n \"associationId\": \"LmddbXBsZSByZWZlcmVuY2UgdG9rZW4gdmFsdWU_\"\n }\n )\n )\n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"requestHeader\": { object (/pay/korea-e-wallets-v1/payment-integrator-korea-e-wallets-api/RequestHeader) }, \"associationId\": string, \"targetBalance\": { object (/pay/korea-e-wallets-v1/payment-integrator-korea-e-wallets-api/Amount) } } ``` |\n\n| Fields ||\n|-----------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `requestHeader` | `object (`[RequestHeader](/pay/korea-e-wallets-v1/payment-integrator-korea-e-wallets-api/RequestHeader)`)` **REQUIRED**: Common header for all requests. |\n| `associationId` | `string` **REQUIRED** : The `associationId` that represents the user's account. This is public-facing ID for the user's account that was provided by Google during the `associateAccount` call. |\n| `targetBalance` | `object (`[Amount](/pay/korea-e-wallets-v1/payment-integrator-korea-e-wallets-api/Amount)`)` **OPTIONAL**: The target balance to reach, in micros. |"]]