API Documentation. See how easy it can be to add 200+ payment methods to your store.

Payment data

Current payment data transfer is handled by the GET method.

Example GET request you can issue to our data system in order to retrieve your data.

GET https://pay.g2a.com/rest/transactions/eac61839-7db6-4cab-8ec3-9708c4676938

The Response data is returned on successful authorizations to provide the result and transaction details.

Example response:

{
"transactionId": "eac61839-7db6-4cab-8ec3-9708c4676938",
"userOrderId": "70001010467320",
"amount": 10.0,
"currency": "EUR",
"status": "complete",
"createdAt": "2015-02-20 01:21:35",
"refundedAmount": 0,
"customer": {
"firstName": "John",
"lastName": "Doe",
"address1": "",
"address2": "",
"postcode": "",
"city": "Berlin",
"country": "Germany"
},
"items": [
{
    "sku": "item-124896",
    "name": "Test Payment Item",
    "amount": 8.0,
    "qty": 1
},
{
    "sku": "fee-091",
    "name": "Test Fee",
    "amount": 2.0,
    "qty": 1
}
]
}

Response status

List of possible request responses codes below.

HTTP Code
Response
Description
200
{transaction}
Payment transaction found
403
forbidden
Merchant is not allowed to use this method
404
not-found
Cannot find transaction of given ID
500
error
G2A PAY internal error