Toshl Developer

List payments

List of payments made by the user.

GET /me/payments

Required scope:

Parameters

page
optional
integer

Payment page to display, used for pagination.

Minimum: >= 0
Default value: 0
per_page
optional
integer

Number of payments to return per page.

Minimum: >= 10
Maximum: =< 50
Default value: 20
type
optional
string

Filter payments by a specific type.

Possible values: apple, google, microsoft, g2s, adyen, amazon, bitpay, paypal, unknown
period
optional
string

Filter payments by a specific period.

Possible values: monthly, yearly, 3-years
status
optional
string

Filter payments by a specific status.

Possible values: new, redirect, verifying, select_perk, missing_address, completed, error, refund-pending, refunded
since
optional
string

Return all payments that were modified since timestamp.

Format: date-time

Request

$ curl https://api.toshl.com/me/payments \
  -H "Authorization: Bearer T9cE5asGnuyYCCqIZFoWjFHvNbvVqHjl"

Response

HTTP/1.1 200 OK
Content-Type: application/json

[
  {
    "id": "42",
    "type": "apple",
    "period": "monthly",
    "amount": 1.99,
    "currency": "USD",
    "discount": 10,
    "status": "completed",
    "modified": "2012-09-04T13:55:15Z",
    "refund": false,
    "subscription": true
  }
]