API:2/account/wallet

From Guild Wars 2 Wiki
< API:2‎ | account
Jump to navigationJump to search

/v2/account/wallet

HTTP method
GET
Format
json
API version
version 2
Release date
2015-08-28
Scope
account
wallet
Optional
none

This resource returns the currencies of the account. This endpoint is only accessible with a valid API key.

Parameters

  • access_token (optional) – Can be used to specify an API key for the request if it is not given in the request header.

Response

The endpoint returns an array of objects, each representing a currency.

Each object contains the following:

  • id (number) – The currency's ID that can be resolved against /v2/currencies.
  • value (number) – The amount of this currency.

Example

Request

https://api.guildwars2.com/v2/account/wallet
Authorization: Bearer <API key>

Response

[
  {
    "id": 1,
    "value": 100001
  },
  {
    "id": 5,
    "value": 301
  }
]