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
Name | Type | Description |
---|---|---|
accountNumber* | string | Mandatory. Your account number |
since | string | Date in yyyy-mm-dd format. |
until | string | Date in yyyy-mm-dd format. |
Headers
Name | Type | Description |
---|---|---|
Authorization* | string | Mandatory. BearerJWT token in format Bearer |
{
"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
}
]
}
{
"detail": "You do not have permission to perform this action."
}
Example without date ranges
curl --location \
--request GET '{{api_base_url}}/api/accounts/032.032.00000001/activity' \
--header 'Authorization: Bearer {{token}}'
{
"openingBalance": 10448.4,
"closingBalance": 24474.5,
"size": 8,
"page": 1,
"details": [
{
"createdAt": "2023-03-20T21:31:57.000331",
"processedAt": "2023-03-20T21:31:57.000319",
"entityCode": "0001",
"accountNumber": "032.032.00000001",
"internalId": "0bd000ea-acaf-4a04-999c-f6aafb1adad2",
"externalId": "",
"transactionType": "Debit",
"status": "Completed",
"description": "ACCOUNT ADJUSTMENT",
"paymentCurrency": "ARS",
"paymentAmount": 972.9,
"fxQuote": 0.0,
"confirmedCurrency": "ARS",
"confirmedAmount": 972.9,
"feesCurrency": "",
"feesAmount": 0.0,
"localTaxesCurrency": "",
"localTaxesAmount": 0.0,
"withholdingsCurrency": "",
"withholdingsAmount": 0.0,
"accountCurrency": "ARS",
"accountAmount": -972.9,
"closingBalance": 9475.5
},
{
"createdAt": "2023-03-23T17:15:25.273131",
"processedAt": "2023-03-23T17:15:25.273121",
"entityCode": "0001",
"accountNumber": "032.032.00000001",
"internalId": "032521f2-e502-48a3-909b-bbb0ffebcf00",
"externalId": "",
"transactionType": "CurrencyExchange",
"status": "Completed",
"description": "CURRENCY EXCHANGE",
"paymentCurrency": "ARS",
"paymentAmount": 10000.0,
"fxQuote": 211.95,
"confirmedCurrency": "ARS",
"confirmedAmount": -10000.0,
"feesCurrency": "",
"feesAmount": 0.0,
"localTaxesCurrency": "",
"localTaxesAmount": 0.0,
"withholdingsCurrency": "",
"withholdingsAmount": 0.0,
"accountCurrency": "ARS",
"accountAmount": -10000.0,
"closingBalance": -524.5
},
{
"createdAt": "2023-03-24T19:18:08.6538",
"processedAt": "2023-03-24T19:18:08.653788",
"entityCode": "0001",
"accountNumber": "032.032.00000001",
"internalId": "052ce87b-6e61-44b9-ab72-a7789da686c3",
"externalId": "",
"transactionType": "CurrencyExchange",
"status": "Completed",
"description": "CURRENCY EXCHANGE",
"paymentCurrency": "ARS",
"paymentAmount": 1000.0,
"fxQuote": 211.834233,
"confirmedCurrency": "ARS",
"confirmedAmount": -1000.0,
"feesCurrency": "",
"feesAmount": 0.0,
"localTaxesCurrency": "",
"localTaxesAmount": 0.0,
"withholdingsCurrency": "",
"withholdingsAmount": 0.0,
"accountCurrency": "ARS",
"accountAmount": -1000.0,
"closingBalance": -1524.5
},
{
"createdAt": "2023-03-24T19:28:54.33227",
"processedAt": "2023-03-24T19:28:54.33226",
"entityCode": "0001",
"accountNumber": "032.032.00000001",
"internalId": "67de58fa-0d03-4fed-87dd-1352e5f9647f",
"externalId": "",
"transactionType": "Credit",
"status": "Completed",
"description": "COMMISSION REFUNDED",
"paymentCurrency": "ARS",
"paymentAmount": 30000.0,
"fxQuote": 0.0,
"confirmedCurrency": "ARS",
"confirmedAmount": 30000.0,
"feesCurrency": "",
"feesAmount": 0.0,
"localTaxesCurrency": "",
"localTaxesAmount": 0.0,
"withholdingsCurrency": "",
"withholdingsAmount": 0.0,
"accountCurrency": "ARS",
"accountAmount": 30000.0,
"closingBalance": 28475.5
},
{
"createdAt": "2023-03-24T19:29:11.640422",
"processedAt": "2023-03-24T19:29:11.640413",
"entityCode": "0001",
"accountNumber": "032.032.00000001",
"internalId": "8b92d92b-02af-434a-995b-5a4fe3ca1a29",
"externalId": "1111222211",
"transactionType": "CurrencyExchange",
"status": "Completed",
"description": "CURRENCY EXCHANGE",
"paymentCurrency": "ARS",
"paymentAmount": 1000.0,
"fxQuote": 211.83,
"confirmedCurrency": "ARS",
"confirmedAmount": -1000.0,
"feesCurrency": "",
"feesAmount": 0.0,
"localTaxesCurrency": "",
"localTaxesAmount": 0.0,
"withholdingsCurrency": "",
"withholdingsAmount": 0.0,
"accountCurrency": "ARS",
"accountAmount": -1000.0,
"closingBalance": 27475.5
},
{
"createdAt": "2023-03-24T20:09:50.490056",
"processedAt": "2023-03-24T20:09:50.490024",
"entityCode": "0001",
"accountNumber": "032.032.00000001",
"internalId": "d573fb5c-6872-4b43-ad48-2d930d717864",
"externalId": "",
"transactionType": "CurrencyExchange",
"status": "Completed",
"description": "CURRENCY EXCHANGE",
"paymentCurrency": "ARS",
"paymentAmount": 1000.0,
"fxQuote": 211.846078,
"confirmedCurrency": "ARS",
"confirmedAmount": -1000.0,
"feesCurrency": "",
"feesAmount": 0.0,
"localTaxesCurrency": "",
"localTaxesAmount": 0.0,
"withholdingsCurrency": "",
"withholdingsAmount": 0.0,
"accountCurrency": "ARS",
"accountAmount": -1000.0,
"closingBalance": 26475.5
},
{
"createdAt": "2023-03-24T20:10:12.71261",
"processedAt": "2023-03-24T20:10:12.712599",
"entityCode": "0001",
"accountNumber": "032.032.00000001",
"internalId": "6c58157d-6fe5-4e83-bfa3-7d80ede9ebce",
"externalId": "1111222211",
"transactionType": "CurrencyExchange",
"status": "Completed",
"description": "CURRENCY EXCHANGE",
"paymentCurrency": "ARS",
"paymentAmount": 1000.0,
"fxQuote": 211.85,
"confirmedCurrency": "ARS",
"confirmedAmount": -1000.0,
"feesCurrency": "",
"feesAmount": 0.0,
"localTaxesCurrency": "",
"localTaxesAmount": 0.0,
"withholdingsCurrency": "",
"withholdingsAmount": 0.0,
"accountCurrency": "ARS",
"accountAmount": -1000.0,
"closingBalance": 25475.5
},
{
"createdAt": "2023-03-24T20:20:54.23805",
"processedAt": "2023-03-24T20:20:54.237866",
"entityCode": "0001",
"accountNumber": "032.032.00000001",
"internalId": "70d6105d-5a23-4b5c-837b-f6614c260278",
"externalId": "1111222211",
"transactionType": "CurrencyExchange",
"status": "Completed",
"description": "CURRENCY EXCHANGE",
"paymentCurrency": "ARS",
"paymentAmount": 1001.0,
"fxQuote": 211.85,
"confirmedCurrency": "ARS",
"confirmedAmount": -1001.0,
"feesCurrency": "",
"feesAmount": 0.0,
"localTaxesCurrency": "",
"localTaxesAmount": 0.0,
"withholdingsCurrency": "",
"withholdingsAmount": 0.0,
"accountCurrency": "ARS",
"accountAmount": -1001.0,
"closingBalance": 24474.5
}
]
}
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}}'
{
"openingBalance": 9475.5,
"closingBalance": 24474.5,
"size": 7,
"page": 1,
"details": [
{
"createdAt": "2023-03-23T17:15:25.273131",
"processedAt": "2023-03-23T17:15:25.273121",
"entityCode": "0001",
"accountNumber": "032.032.00000001",
"internalId": "032521f2-e502-48a3-909b-bbb0ffebcf00",
"externalId": "",
"transactionType": "CurrencyExchange",
"status": "Completed",
"description": "CURRENCY EXCHANGE",
"paymentCurrency": "ARS",
"paymentAmount": 10000.0,
"fxQuote": 211.95,
"confirmedCurrency": "ARS",
"confirmedAmount": -10000.0,
"feesCurrency": "",
"feesAmount": 0.0,
"localTaxesCurrency": "",
"localTaxesAmount": 0.0,
"withholdingsCurrency": "",
"withholdingsAmount": 0.0,
"accountCurrency": "ARS",
"accountAmount": -10000.0,
"closingBalance": -524.5
},
{
"createdAt": "2023-03-24T19:18:08.6538",
"processedAt": "2023-03-24T19:18:08.653788",
"entityCode": "0001",
"accountNumber": "032.032.00000001",
"internalId": "052ce87b-6e61-44b9-ab72-a7789da686c3",
"externalId": "",
"transactionType": "CurrencyExchange",
"status": "Completed",
"description": "CURRENCY EXCHANGE",
"paymentCurrency": "ARS",
"paymentAmount": 1000.0,
"fxQuote": 211.834233,
"confirmedCurrency": "ARS",
"confirmedAmount": -1000.0,
"feesCurrency": "",
"feesAmount": 0.0,
"localTaxesCurrency": "",
"localTaxesAmount": 0.0,
"withholdingsCurrency": "",
"withholdingsAmount": 0.0,
"accountCurrency": "ARS",
"accountAmount": -1000.0,
"closingBalance": -1524.5
},
{
"createdAt": "2023-03-24T19:28:54.33227",
"processedAt": "2023-03-24T19:28:54.33226",
"entityCode": "0001",
"accountNumber": "032.032.00000001",
"internalId": "67de58fa-0d03-4fed-87dd-1352e5f9647f",
"externalId": "",
"transactionType": "Credit",
"status": "Completed",
"description": "COMMISSION REFUNDED",
"paymentCurrency": "ARS",
"paymentAmount": 30000.0,
"fxQuote": 0.0,
"confirmedCurrency": "ARS",
"confirmedAmount": 30000.0,
"feesCurrency": "",
"feesAmount": 0.0,
"localTaxesCurrency": "",
"localTaxesAmount": 0.0,
"withholdingsCurrency": "",
"withholdingsAmount": 0.0,
"accountCurrency": "ARS",
"accountAmount": 30000.0,
"closingBalance": 28475.5
},
{
"createdAt": "2023-03-24T19:29:11.640422",
"processedAt": "2023-03-24T19:29:11.640413",
"entityCode": "0001",
"accountNumber": "032.032.00000001",
"internalId": "8b92d92b-02af-434a-995b-5a4fe3ca1a29",
"externalId": "1111222211",
"transactionType": "CurrencyExchange",
"status": "Completed",
"description": "CURRENCY EXCHANGE",
"paymentCurrency": "ARS",
"paymentAmount": 1000.0,
"fxQuote": 211.83,
"confirmedCurrency": "ARS",
"confirmedAmount": -1000.0,
"feesCurrency": "",
"feesAmount": 0.0,
"localTaxesCurrency": "",
"localTaxesAmount": 0.0,
"withholdingsCurrency": "",
"withholdingsAmount": 0.0,
"accountCurrency": "ARS",
"accountAmount": -1000.0,
"closingBalance": 27475.5
},
{
"createdAt": "2023-03-24T20:09:50.490056",
"processedAt": "2023-03-24T20:09:50.490024",
"entityCode": "0001",
"accountNumber": "032.032.00000001",
"internalId": "d573fb5c-6872-4b43-ad48-2d930d717864",
"externalId": "",
"transactionType": "CurrencyExchange",
"status": "Completed",
"description": "CURRENCY EXCHANGE",
"paymentCurrency": "ARS",
"paymentAmount": 1000.0,
"fxQuote": 211.846078,
"confirmedCurrency": "ARS",
"confirmedAmount": -1000.0,
"feesCurrency": "",
"feesAmount": 0.0,
"localTaxesCurrency": "",
"localTaxesAmount": 0.0,
"withholdingsCurrency": "",
"withholdingsAmount": 0.0,
"accountCurrency": "ARS",
"accountAmount": -1000.0,
"closingBalance": 26475.5
},
{
"createdAt": "2023-03-24T20:10:12.71261",
"processedAt": "2023-03-24T20:10:12.712599",
"entityCode": "0001",
"accountNumber": "032.032.00000001",
"internalId": "6c58157d-6fe5-4e83-bfa3-7d80ede9ebce",
"externalId": "1111222211",
"transactionType": "CurrencyExchange",
"status": "Completed",
"description": "CURRENCY EXCHANGE",
"paymentCurrency": "ARS",
"paymentAmount": 1000.0,
"fxQuote": 211.85,
"confirmedCurrency": "ARS",
"confirmedAmount": -1000.0,
"feesCurrency": "",
"feesAmount": 0.0,
"localTaxesCurrency": "",
"localTaxesAmount": 0.0,
"withholdingsCurrency": "",
"withholdingsAmount": 0.0,
"accountCurrency": "ARS",
"accountAmount": -1000.0,
"closingBalance": 25475.5
},
{
"createdAt": "2023-03-24T20:20:54.23805",
"processedAt": "2023-03-24T20:20:54.237866",
"entityCode": "0001",
"accountNumber": "032.032.00000001",
"internalId": "70d6105d-5a23-4b5c-837b-f6614c260278",
"externalId": "1111222211",
"transactionType": "CurrencyExchange",
"status": "Completed",
"description": "CURRENCY EXCHANGE",
"paymentCurrency": "ARS",
"paymentAmount": 1001.0,
"fxQuote": 211.85,
"confirmedCurrency": "ARS",
"confirmedAmount": -1001.0,
"feesCurrency": "",
"feesAmount": 0.0,
"localTaxesCurrency": "",
"localTaxesAmount": 0.0,
"withholdingsCurrency": "",
"withholdingsAmount": 0.0,
"accountCurrency": "ARS",
"accountAmount": -1001.0,
"closingBalance": 24474.5
}
]
}
{
"status": 404,
"reason": "The maximum number of days between two dates is 7."
}
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