Get List of User Payments

To get the list of user payments, use the following request:

GET /users/:user_id/payments.xml
GET /users/:user_id/payments.json

XML Request Example

curl -i -X GET -H 'Accept: application/xml' -H 'Content-type: application/xml' -u user:userpass --url http://onapp.test/users/12/payments.xml

JSON Request Example

curl -i -X GET -H 'Accept: application/json' -H 'Content-type: application/json' -u user:userpass --url http://onapp.test/users/12/payments.json

XML Output Example

<payments type="array">
<payment>
<created_at type="datetime">2011-03-15T20:00:41+07:00</created_at>
<updated_at type="datetime">2011-03-15T20:00:41+07:00</updated_at>
<amount type="decimal">2000.0</amount>
<invoice_number>001</invoice_number>
<id type="integer">2</id>
<user_id type="integer">1</user_id>
</payment>
</payments> 

Where:

amount — money amount in the currency set in the bucket

invoice_number — optional number of invoice

id — payment ID

user_id — ID of the user