Store¶
TODO
Cart¶
-
GET/cart¶
-
GET/cart/add/(int: game_id)¶ Adds a single item to the cart.
-
POST/cart/add¶ Adds multiple items to the cart.
Request JSON Object: - product_ids (array) – Items to add
-
GET/cart/add/series/(int: series_id)¶ Add a series to the cart.
-
GET/cart/remove/(int: game_id)¶ Removes an item from the cart.
-
GET/checkout¶ Redirects to order page
-
GET/checkout/manual/(int: product_id)¶ TODO
Order¶
-
ANY/checkout/order/(int: order_id)/changeCurrency/(str: currency)¶
-
ANY/checkout/order/(int: order_id)/add/(int: game_id)¶
-
POST/checkout/order/(int: order_id)/remove/(int: game_id)¶ Empty request content
-
ANY/checkout/order/(int: order_id)/enableStoreCredit¶
-
ANY/checkout/order/(int: order_id)/disableStoreCredit¶
-
ANY/checkout/order/(int: order_id)/setAsGift¶
-
ANY/checkout/order/(int: order_id)/setAsNotGift¶
-
ANY/payment/process/(int: order_id)¶
-
ANY/payment/ping/(int: order_id)¶
-
ANY/order/checkStatus/(int: order_id)¶
-
ANY/account/settings/orders/resend¶
Wallet¶
-
ANY/wallet/recommendedProducts¶
-
POST/wallet/funds¶ Creates an order to add wallet funds.
Request JSON Object: - amount (int) – Amount of money to add in cents
- currency (str) – Currency code
Example request:
POST /wallet/funds HTTP/1.1 Host: embed.gog.com { "amount": 1000, "currency": "EUR" }
Example response:
{ "redirectToUrl": "/checkout/35a99729ca0d" }
-
GET/wallet/transactions/(str: currency)/(int: page)¶ Gets the wallet transaction history.
Example request:
GET /wallet/transactions/EUR/1 HTTP/1.1 Host: embed.gog.com
Example response:
{ "list": [ { "orderId": "2E354EEF0EF2", "date": 1481166490, "name": "Brothers: A Tale of Two Sons - fair price package", "negative": false, "balanceChange": "0.20", "endBalance": { "user_id": "48628349971017", "currency_code": "EUR", "amount": 20, "absolute_amount": 20, "formattedAbsoluteAmount": "0.20", "formattedAmount": "0.20", "lastRecharge": null, "last_notification_sent": null, "expirationDate": null }, "currency": "EUR" } ], "count": 1, "pageSize": 30 }