Activity

This endpoint returns detailed information about the last ten transactions made on each one of your LP accounts

Activity

GET https://api.stage.localpayment.com/api/accounts/:accountNumber/activity

Get the activity report of an account number

Path Parameters

NameTypeDescription

accountNumber*

string

Mandatory. Your account number

since

string

Date in yyyy-mm-dd format.

until

string

Date in yyyy-mm-dd format.

Headers

NameTypeDescription

Authorization*

string

Mandatory. BearerJWT token in format Bearer eyJ0... . For more information about authentication, please refer to Authentication token

{
    "openingBalance": 0.0,
    "closingBalance": 365.8,
    "listSize": 5,
    "details": [
        {
            "createdAt": "2021-06-02T19:54:11.670392",
            "processedAt": "2021-06-02T19:54:11.670392",
            "entityId": 9,
            "accountNumber": "032.32.00000004",
            "merchant": "Netflix001",
            "internalId": "b995e7d5-84e6-4075-9c5b-181f015debff",
            "externalId": "1622663402",
            "transactionType": "PayIn",
            "status": "COMPLETED",
            "paymentCurrency": "ARS",
            "paymentAmount": 50.0,
            "fxQuote": 0.0,
            "confirmedCurrency": "ARS",
            "confirmedAmount": 50.0,
            "feesCurrency": "ARS",
            "feesAmount": 10.5,
            "localTaxesCurrency": "ARS",
            "localTaxesAmount": 0.0,
            "withholdingsCurrency": "ARS",
            "withholdingsAmount": 0.0,
            "accountCurrency": "ARS",
            "accountAmount": 39.5,
            "closingBalance": 39.5,
            "paymentMethodType": "Cash",
            "accountingInternalNumber": 45
        }
    ]
}

Example without date ranges

curl --location \
--request GET '{{api_base_url}}/api/accounts/032.032.00000001/activity' \
--header 'Authorization: Bearer {{token}}'

If neither the date from nor the date to is entered, it brings the last 10 transactions.

Example with date range

curl --location  \
--request GET '{{api_base_url}}/api/accounts/032.032.00000001/activity?since=2023-03-21&until=2023-03-28' \
--header 'Authorization: Bearer {{token}}'
  • If date-from is entered, date-to is required. The same in reverse.

  • The maximum number of days between two dates is 7.

  • The maximum nuber of months with history is 3.

Last updated