Pesatime - API
Search…
Example requests
Samples on how to make requests

Headers

  1. 1.
    Content Type: Set content type to application/x-www-form-urlencoded

Requests

1. GET Request

1
curl -i \
2
-H "x-rest-api-key: XXXXXXXX-XXX" \
3
-H "x-rest-api-secret: XXXXXXXXXXXXXX" \
4
-H "x-rest-user: XXXXXXXXXXXXXX" \
5
-X GET \
6
https://api.pesatime.com/v1/expenses?date_from=2019-01-01
Copied!

2. POST request

1
curl -i \
2
-H "x-rest-api-key: XXXXXXXX-XXX" \
3
-H "x-rest-api-secret: XXXXXXXXXXXXXX" \
4
-H "x-rest-user: XXXXXXXXXXXXXX" \
5
-X POST -d 'name=Category name' \
6
https://api.pesatime.com/v1/expense_categories
Copied!

3. PUT request

1
curl -i \
2
-H "x-rest-api-key: XXXXXXXX-XXX" \
3
-H "x-rest-api-secret: XXXXXXXXXXXXXX" \
4
-H "x-rest-user: XXXXXXXXXXXXXX" \
5
-X PUT -d 'name=Category name 2' \
6
https://api.pesatime.com/v1/expense_categories/5dce9cea07f72fd690252d74
Copied!

4. DELETE request

1
curl -i \
2
-H "x-rest-api-key: XXXXXXXX-XXX" \
3
-H "x-rest-api-secret: XXXXXXXXXXXXXX" \
4
-H "x-rest-user: XXXXXXXXXXXXXX" \
5
-X DELETE \
6
https://api.pesatime.com/v1/expense_categories/5dce9cea07f72fd690252d74
Copied!
Last modified 2yr ago