Wallet Event Model

Action

Method

Resource

Description

Get all

GET

/wallets/wallet_id/events

Get all events from a wallet.

Get

GET

/wallets/wallet_id/events/wallet_event_id

Get event of wallet by id with wallet_id and wallet_event_id

Get

GET

/users/user_id/wallets/wallet_id/events

Get all events of a user and wallet with user_id and wallet_id

Get

GET

/users/user_id/wallets/wallet_id/events/wallet_event_id

Get event by user, wallet and wallet event with user_id, wallet_id and wallet_event_id

Create

POST

/wallets/wallet_id/events

Create event to a wallet
Only admins

Create

POST

/users/user_id/wallets/wallet_id/events

Create event to a wallet by user

The Wallet model is composed of the following attributes:

Attribute

Type

Required

Description

whereable

id

Integer

No

Identifier of the event

wallet_id

Integer

Yes

Identifier of the wallet

code

String

No

Identifier for the event address

event

String

No

Data of the event
Movement, Locked, Unlocked

event_type

String

No

Type of event:
Manual, Refund

description

String

No

Data of the description

amount

Float

No

Quantity of the event

author_id

Integer

No

Identifier of the responsible for the event

fingerprint_data

JSON

No

Information of the action of the event

created_at

Timestamp

No

Date when the event was created

updated_at

Timestamp

No

Date when the event was updated