v1

latestOpenAPI 3.0.1Apache 2.02026-07-248286406.8 KB
User

All Users' Transactions history

This GET endpoint is used to retrieve a list of all transactions, including payouts, loads, and spendbacks, for all users. <br> You can use this endpoint to obtain a comprehensive history of transactions for all users, allowing you to track and analyze their payment activities over time. <br> The response will contain a JSON array of transaction objects, each including transactions details.

get/payout/user/history

Query parameters

number_of_recordsnumber

Number of records to return. Defaults to 10 if no value is provided

start_datestring date
Example:2020-03-31

Starting date

end_datestring date
Example:2020-03-31

Ending date

pageinteger

Page number

type'payout' | 'load' | 'spendback' | 'payin'
Example:payout

Filter particular types of transactions. Comma separated to include multiple types

wallet_tokenstring uuid

Filter transactions to include only provided wallet token.

show_all_clientsboolean

Whether to show transactions from all clients

Headers

Idempotency-Keystring

Unique key to prevent duplicate processing

Response

Succesful operation.

tokenstring uuid required

Token represnting the transaction

type'load' | 'payout' | 'spend back' | 'info' | 'payin' required

Type of transaction

time_of_txnstring date-time required

Time the transaction was created. In UTC

source_amountnumber float required

Source amount

source_currency_codestring required

The currency originating balance is stored in. Using ISO 4217 format. In most cases this value will be USD, and therefore the defaut value if none is provided

destination_amountnumber float required

The amount that was received in destination_currency_code

destination_currency_codestring required

The currency of the funds received. Using ISO 4217 format

feenumber float required

Fee of the transaction

status'PENDING' | 'EXPIRED' | 'PROCESSING' | 'COMPLETED' | 'CANCELLED' | 'SCHEDULED' | 'READY_FOR_PICKUP' | 'HOLD' | 'ERROR' | 'CANCELLED_AT_LATER_TIME' required

Status of the transaction

notesstring

Notes of the transaction when load or spend back

payer_namestring

Name of the payer when payout transaction

pickup_codestring

Code/pin that is required when collecting the money when payout transaction

source_tokenstring uuid

Token that represents the funding source i.e. bank account, wallet. 36 characters long

destination_tokenstring uuid required

Token that represents the payout destination i.e. MassPay->Brazil->Bank Deposit->Itau. To be retrieved from the #pricing callback. If not provided, the last destination that was used for this user will be used. 36 characters long

delivery_type'CASH_PICKUP' | 'BANK_DEPOSIT' | 'HOME_DELIVERY' | 'MOBILE_WALLET' | 'MASSPAY_CARD' | 'PAPER_CHECK' | 'BILL' | 'CRYPTOCURRENCY'

The type of service. I.e. cash pickup, home delivery, etc. Only provided for payouts

client_transfer_idstring

A client defined transfer identifier. This is the unique ID assigned to the transfer on your system. Max 50 characters.

status_reasonstring

The reason for the status change. Usually would include reason for an ERROR or CANCEL status

client_idinteger

Optional client id

user_tokenstring

User token representing the user this transaction belongs to

destination_countrystring

3 letters ISO code for destination country

Example response

[
  {
    "token": "123e4567-e89b-12d3-a456-426614174000",
    "type": "payout",
    "source_amount": 50.1,
    "source_currency_code": "USD",
    "destination_amount": 44.99,
    "fee": 2.98,
    "status": "READY_FOR_PICKUP",
    "notes": "Purchase of Candles. Order #14930",
    "payer_name": "Elektra",
    "pickup_code": "343432",
    "source_token": "123e4567-e89b-12d3-a456-426614174000",
    "destination_token": "123e4567-e89b-12d3-a456-426614174000"
  }
]