{"id":1,"description":"Advancement example 1","amount":609.80,"date":"2014-06-01T14:17:56Z","tags":[],"payer":{"id":1,"name":"Company Inc.","type":"Organization","logo":[{"style":"original","url":"https://rexpense-uploads.s3.amazonaws.com/organization_logo/1/original/logo.png","expiration":"2014-06-27T20:31:43Z"},{"style":"medium","url":"https://rexpense-uploads.s3.amazonaws.com/organization_logo/1/medium/logo.png","expiration":"2014-06-27T20:31:43Z"},{"style":"thumb","url":"https://rexpense-uploads.s3.amazonaws.com/organization_logo/1/thumb/logo.png","expiration":"2014-06-27T20:31:43Z"}{"style":"tiny","url":"https://rexpense-uploads.s3.amazonaws.com/organization_logo/1/tiny/logo.png","expiration":"2014-06-27T20:31:43Z"}]},"receiver":{"id":1,"name":"John","type":"User","avatar":[{"style":"original","url":"https://rexpense-uploads.s3.amazonaws.com/user_avatar/1/original/avatar.png","width":716,"height":655,"expiration":"2014-06-27T20:31:43Z"},{"style":"medium","url":"https://rexpense-uploads.s3.amazonaws.com/user_avatar/1/medium/avatar.png","width":300,"height":300,"expiration":"2014-06-27T20:31:43Z"},{"style":"thumb","url":"https://rexpense-uploads.s3.amazonaws.com/user_avatar/1/thumb/avatar.png","width":100,"height":100,"expiration":"2014-06-27T20:31:43Z"}{"style":"tiny","url":"https://rexpense-uploads.s3.amazonaws.com/user_avatar/1/tiny/avatar.png","width":48,"height":48,"expiration":"2014-06-27T20:31:43Z"}]},"responsible_user":{"id":1,"name":"John","type":"User","avatar":[{"style":"original","url":"https://rexpense-uploads.s3.amazonaws.com/user_avatar/1/original/avatar.png","width":716,"height":655,"expiration":"2014-06-27T20:31:43Z"},{"style":"medium","url":"https://rexpense-uploads.s3.amazonaws.com/user_avatar/1/medium/avatar.png","width":300,"height":300,"expiration":"2014-06-27T20:31:43Z"},{"style":"thumb","url":"https://rexpense-uploads.s3.amazonaws.com/user_avatar/1/thumb/avatar.png","width":100,"height":100,"expiration":"2014-06-27T20:31:43Z"}{"style":"tiny","url":"https://rexpense-uploads.s3.amazonaws.com/user_avatar/1/tiny/avatar.png","width":48,"height":48,"expiration":"2014-06-27T20:31:43Z"}]},"currency":"BRL","created_at":"2014-06-03T14:17:56Z","updated_at":"2014-06-03T14:17:56Z","_links":[{"rel":"self","method":"GET","href":"https://app.rexpense.com/api/v1/advancements/1"},{"rel":"update","method":"PUT","href":"https://app.rexpense.com/api/v1/advancements/1"},{"rel":"partial_update","method":"PATCH","href":"https://app.rexpense.com/api/v1/advancements/1"},{"rel":"destroy","method":"DELETE","href":"https://app.rexpense.com/api/v1/advancements/1"}]}
Retrieve all advancements that the authenticated user can view or manage. It will return a JSON containing the name of the resource
with an array of the objects requested and informations like the total of objects, current page and total pages. The fields of the advancements can be
found in the Advancement section.
There are two ways to update an advancement: partially or fully. If you'd like to change just one or
a few attributes, you have to use the HTTP method PATCH. If you use the HTTP method PUT, you'll have to
pass all attributes of the advancement. This behaviour is the same for all resources in the Rexpense API.
Parameters
description:
string
amount:
floatrequired
date:
stringrequired
currency:
string
tags:
array
payer:
payer object attributesrequired
id: integer type: string
receiver:
receiver object attributesrequired
id: integer type: string
Expired organization
If the organization is expired, it will return an 402 error.
To destroy an advancement you have to own the advancement (be the receiver) or be an Organization's Administrator or Manager (have any relation with the payer).
Expired organization
If the organization is expired, it will return an 402 error.
Activities are simple logs from an Advancement's changes or comments activities.
If the activity is an Advancement change, the response will hide the source element from the response.
If the activity is a Comment and the content have emojis, they will be rendered as text code by default (for example, :smile:). However, if you'd like to get the unicode of the emojis instead, you should supply a emoji_in_unicode boolean param.
Parameter
emoji_in_unicode:
boolean
Definition
GET https://app.rexpense.com/api/v1/advancements/:advancement_id/activities