Transactions: List
Request
GET https://api.univapay.com/stores/{storeId}/transaction_history
List charges for all stores
GET https://api.univapay.com/transaction_history
Parameters:
Parameters | |
from | string (ISO-8601) Filter for transactions only after the specified date |
to | string (ISO-8601) Filter for transactions only before the specified date |
search | string Can be a charge /refund id, metadata information, the cardholder’s name, the cardholder’s email address, or the last 4 digits of a card number. |
type | string One of charge or refund |
status | string One of the charge or refund statuses. |
mode | string One of test or live . |
Headers:
Authorization: Bearer {secret}.{jwt}
Body:
curl --request GET \
--url https://api.univapay.com/stores/37ff5664-18c6-11e7-8221-ff4914d76afc/transaction_history \
--header 'Authorization: Bearer {secret}.{jwt}'
List charges for all stores
curl --request GET \
--url https://api.univapay.com/transaction_history \
--header 'Authorization: Bearer {secret}.{jwt}'
Response
Code: 200
Headers:
Content-Type: application/json
Body:
{
"items": [
{
"store_id": "11e8863f-7e2d-8074-a083-2716eac36a7c",
"resource_id": "11e88648-1d9b-723a-88cf-37ed9bdb6670",
"amount": 1000,
"currency": "JPY",
"amount_formatted": 1000,
"type": "charge",
"status": "canceled",
"metadata": {},
"created_on": "2018-07-13T02:54:52.729168Z",
"mode": "test"
},
{
"store_id": "11e8863f-7e2d-8074-a083-2716eac36a7c",
"resource_id": "11e88647-f441-fe0e-88cf-075cd85209c0",
"amount": 1000,
"currency": "JPY",
"amount_formatted": 1000,
"type": "charge",
"status": "successful",
"metadata": {},
"created_on": "2018-07-13T02:53:43.356352Z",
"mode": "test"
},
{
"store_id": "11e8863f-7e2d-8074-a083-2716eac36a7c",
"resource_id": "11e88647-343e-486a-88cf-1b72d10ba675",
"amount": 1000,
"currency": "JPY",
"amount_formatted": 1000,
"type": "refund",
"status": "canceled",
"metadata": {},
"created_on": "2018-07-13T02:48:21.209227Z",
"mode": "test"
}
],
"has_more": false
}