Returns transaction detail information about a remittance statement.
This is a paginated API. The number of transaction events per page can be specified with numberOfEvents
. If unspecified, the maximum of 1000 events will be returned per page. Each request to this API will return a nextEventOffset
pointing to the next transaction event in the statement, as well as totalEvents
specifying the total number of transactions in the statement. If the current retrieved page contains the last transactions of the statement, nextEventOffset
will not be present in the response.
The statementId
value is the requestId
from the remittanceStatementNotificationRequest
Responses to this query may be empty if this method does not return an HTTP 200. They are empty 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 HTTP 404 with an empty body.
An example request looks like:
{
"requestHeader": {
"protocolVersion": {
"major": 1,
"minor": 0,
"revision": 0
},
"requestId": "statement_detail_request_139932019",
"requestTimestamp": "1502551332087"
},
"paymentIntegratorAccountId": "InvisiCashUSA_USD",
"statementId": "0123434-statement-abc",
"numberOfEvents": 4
}
An example response looks like:
{
"responseHeader": {
"responseTimestamp": "1481900013178"
},
"eventOffset": 0,
"nextEventOffset": 4,
"totalEvents": 15,
"remittanceStatementSummary": {
"statementDate": "1502521200000",
"billingPeriod": {
"startDate": "1502434800000",
"endDate": "1502434800000"
},
"dateDue": "1502348400000",
"currencyCode": "INR",
"totalDueByIntegrator": "1076000000",
"remittanceInstructions": {
"memoLineId": "stmt-1AB-pp0-invisi"
}
},
"captureEvents": [
{
"eventRequestId": "bWVyY2hhbnQgdHJhbnNhY3Rpb24gaWQ",
"paymentIntegratorEventId": "ioj32SOIjf23oijSDfoij",
"eventCharge": "700000000",
"eventFee": "-28000000"
},
{
"eventRequestId": "Ggghvh78200PQ3Yrpb",
"paymentIntegratorEventId": "iasdf23dSdfijSDfoij",
"eventCharge": "800000000",
"eventFee": "-32000000"
}
],
"refundEvents": [
{
"eventRequestId": "liUrreQY233839dfFFb24gaQM",
"paymentIntegratorEventId": "asd3SDf3f3oijSDfoij",
"eventCharge": "-200000000",
"eventFee": "8000000"
},
{
"eventRequestId": "IIghhhUrreQY233839II9qM==",
"paymentIntegratorEventId": "DFjidoso12FSDFSDE",
"eventCharge": "-150000000",
"eventFee": "6000000"
}
]
}
HTTP request
POST https://billpaynotification.googleapis.com/secure-serving/gsp/v1/remittanceStatementDetails
Request body
The request body contains data with the following structure:
JSON representation | |
---|---|
{
"requestHeader": {
object ( |
Fields | |
---|---|
requestHeader |
REQUIRED: Common header for all requests. |
paymentIntegratorAccountId |
REQUIRED: This is the payment integrator account identifier that identifies contractual constraints around this statement. |
statementId |
REQUIRED: Request ID of the statement notification. |
eventOffset |
OPTIONAL: Return events starting at this offset. This should be set to the |
numberOfEvents |
OPTIONAL: Number of events to show per page. If unspecified or greater than 1000, this will be 1000. |
Response body
If successful, the response body contains data with the following structure:
Response object for the remittance statement detail method.
JSON representation | |
---|---|
{ "responseHeader": { object ( |
Fields | |
---|---|
responseHeader |
REQUIRED: Common header for all responses. |
remittanceStatementSummary |
REQUIRED: Summary of this remittance statement. |
eventOffset |
REQUIRED: The event offset of this response. |
nextEventOffset |
OPTIONAL: The offset of the next event to return. If unspecified there are no more events to retrieve for this statement. |
totalEvents |
REQUIRED: Total number of events in this statement. |
captureEvents[] |
REQUIRED: Set of capture events. |
refundEvents[] |
REQUIRED: Set of refund events. |
reverseRefundEvents[] |
OPTIONAL: Set of reverse refund events. |
chargebackEvents[] |
OPTIONAL: Set of chargeback events. |
reverseChargebackEvents[] |
OPTIONAL: Set of reverse chargeback events. |
Event
Structure representing a single event included in a remittance statement.
JSON representation | |
---|---|
{ "eventRequestId": string, "paymentIntegratorEventId": string, "eventCharge": string, "eventFee": string, "presentmentChargeAmount": string, "presentmentCurrencyCode": string, "exchangeRate": string, "nanoExchangeRate": string } |
Fields | |
---|---|
eventRequestId |
REQUIRED: For capture or refund events, this will be the |
paymentIntegratorEventId |
REQUIRED: ID the payment integrator returned for this event. For a capture this is the |
eventCharge |
REQUIRED: In currency code defined by the statement. If this value is negative then this represents monetary value moving from Google to the payment integrator. If this is positive it is money from the payment integrator due to Google. For example, capture transactions will always be positive, and refund transactions will always be negative. Reverse refund and reverse chargeback events will always be positive. Chargeback events will always be negative. This value is in micros. |
eventFee |
REQUIRED: In currency code defined by the statement. If this value is negative then this represents monetary value moving from Google to the payment integrator. If this is positive it is money from the payment integrator due to Google. For example, if an agreement says that Google will pay 1% of the This value is in micros. |
presentmentChargeAmount |
OPTIONAL: Transaction amount in the presentment (aka transaction) currency prior to foreign exchange. This field follows the same sign convention as the This value is in micros. |
presentmentCurrencyCode |
OPTIONAL: ISO 4217 3-letter currency code denominating the presentment (transaction) currency. |
exchangeRate |
OPTIONAL: The exchange rate used in converting the presentment amount to the settlement (invoice) amount. This value is in micro basis points (1 basis point = .0001 = .01%). That is, to get the exchange rate, divide this field by 10^10. |
nanoExchangeRate |
OPTIONAL: The exchange rate used in converting the presentment amount to the settlement (invoice) amount, expressed in nano basis points. This value is in nano basis points (1 basis point = .0001 = .01%). That is, to get the exchange rate, divide this field by 10^13. Both this field and exchangeRate will be populated. They are equivalent exchange rates expressed with different precision. In future versions, exchangeRate will be removed in favor of nanoExchangeRate. |