GET /v1/transactions/details

 

Request headers

Attribute

Type

Condition

Description

X-Request-ID

UUID

Mandatory

ID of the request, unique to the call.

Authorization

String

Mandatory

The oAuth2 Bearer token

API-Key

String

Mandatory

The Client ID obtained from the myPOS Account

Content-Type

String

Mandatory

application/json

 

 

Query parameters

Attribute

Type

Condition

Description

references

String

Required

Up to 5 "payment_reference" of transactions for which to fetch details separated with comma (","). Example: POSA00120029SK5F,POSA00120029SK5B

 

 

Response body

Attribute

Type

Condition

Description

transactions_details

An array of Transaction Details

Mandatory

An array of transaction details including the "payment_reference" of the transaction related to them.

 

 

Examples

curl -X GET \
https://transactions-api.mypos.com/v1.1/transactions/details?references=POSA00120029SK5F,POSA00120029SK5B \
  -H 'Authorization: Bearer PLpC1CqVE9CYXolbGNBPqz0NYy8asFzG95XcToDsMP' \
  -H 'Content-Type: application/json' \
  -H 'API-Key: MY_API_KEY' \
  -H 'X-Request-ID: 232465ab-66ea-4776-b3f0-f7a123f988e4'
import requests

requests.get(
    url='https://transactions-api.mypos.com/v1.1/transactions/details?references=POSA00120029SK5F,POSA00120029SK5B',
    headers={
        'Authorization': 'Bearer PLpC1CqVE9CYXolbGNBPqz0NYy8asFzG95XcToDsMP',
        'Content-Type': 'application/json',
        'API-Key': 'MY_API_KEY',
        'X-Request-ID': '232465ab-66ea-4776-b3f0-f7a123f988e4'
    }
)
const request = require("request");

const options = {
    method: 'GET',
    url: 'https://transactions-api.mypos.com/v1.1/transactions/details?references=POSA00120029SK5F,POSA00120029SK5B',
    headers: {
        'Authorization': 'Bearer PLpC1CqVE9CYXolbGNBPqz0NYy8asFzG95XcToDsMP',
        'Content-Type': 'application/json',
        'API-Key': 'MY_API_KEY',
        'X-Request-ID': '232465ab-66ea-4776-b3f0-f7a123f988e4'
    }
};

request(options, (error, response, body) => {

});
<?php

$request = new HttpRequest();
$request->setUrl('https://transactions-api.mypos.com/v1.1/transactions/details?references=POSA00120029SK5F,POSA00120029SK5B');
$request->setMethod(HTTP_METH_GET);

$request->setHeaders(array(
    'Authorization' => 'Bearer PLpC1CqVE9CYXolbGNBPqz0NYy8asFzG95XcToDsMP',
    'Content-Type' => 'application/json',
    'API-Key' => 'MY_API_KEY',
    'X-Request-ID' => '232465ab-66ea-4776-b3f0-f7a123f988e4'
));

try {
    $response = $request->send();

    echo $response->getBody();
} catch (HttpException $ex) {
    echo $ex;
}

{
    "transactions_details": [
        {
            "reference": "POSA00120029SK5F",
            "general": {
                "canRequestReversal": false,
                "isFee": false,
                "isReversal": false,
                "transactionType": "501"
            },
            "details": [
                {
                    "value": "",
                    "label": "Card details"
                },
                {
                    "value": "*1075",
                    "label": "Payment from card"
                },
                {
                    "value": "MasterCard",
                    "label": "Processor"
                },
                {
                    "value": "",
                    "label": "Transaction details"
                },
                {
                    "value": "29.01.2020 11:01",
                    "label": "Transaction date"
                },
                {
                    "value": "POSA00120029SK5F",
                    "label": "Transaction reference"
                },
                {
                    "value": "50241868913",
                    "label": "Account number"
                },
                {
                    "value": "az",
                    "label": "Account name"
                },
                {
                    "value": "1.0000",
                    "label": "Exchange rate"
                },
                {
                    "value": "5.00 RON",
                    "label": "Amount"
                },
                {
                    "value": "5.00 RON",
                    "label": "Transaction amount"
                },
                {
                    "value": "5.00 RON",
                    "label": "Authorization amount"
                },
                {
                    "value": "0.00 RON",
                    "label": "Reversal"
                },
                {
                    "value": "-0.13 RON",
                    "label": "Fee"
                },
                {
                    "value": "2.600%",
                    "label": "Fee rate"
                },
                {
                    "value": "Payment on myPOS / Non-EEA Cards",
                    "label": "Fee descriptor"
                },
                {
                    "value": "",
                    "label": "Terminal details"
                },
                {
                    "value": "90004828",
                    "label": "Terminal ID"
                },
                {
                    "value": "my temrminal",
                    "label": "Terminal name"
                }
            ]
        },
        {
            "reference": "POSA00120029SK5B",
            "general": {
                "canRequestReversal": false,
                "isFee": false,
                "isReversal": false,
                "transactionType": "501"
            },
            "details": [
                {
                    "value": "",
                    "label": "Card details"
                },
                {
                    "value": "*1075",
                    "label": "Payment from card"
                },
                {
                    "value": "MasterCard",
                    "label": "Processor"
                },
                {
                    "value": "",
                    "label": "Transaction details"
                },
                {
                    "value": "29.01.2020 11:01",
                    "label": "Transaction date"
                },
                {
                    "value": "POSA00120029SK5B",
                    "label": "Transaction reference"
                },
                {
                    "value": "50241868913",
                    "label": "Account number"
                },
                {
                    "value": "az",
                    "label": "Account name"
                },
                {
                    "value": "1.0000",
                    "label": "Exchange rate"
                },
                {
                    "value": "8.00 RON",
                    "label": "Amount"
                },
                {
                    "value": "8.00 RON",
                    "label": "Transaction amount"
                },
                {
                    "value": "8.00 RON",
                    "label": "Authorization amount"
                },
                {
                    "value": "0.00 RON",
                    "label": "Reversal"
                },
                {
                    "value": "-0.21 RON",
                    "label": "Fee"
                },
                {
                    "value": "2.600%",
                    "label": "Fee rate"
                },
                {
                    "value": "Payment on myPOS / Non-EEA Cards",
                    "label": "Fee descriptor"
                },
                {
                    "value": "",
                    "label": "Terminal details"
                },
                {
                    "value": "90004828",
                    "label": "Terminal ID"
                },
                {
                    "value": "my temrminal",
                    "label": "Terminal name"
                }
            ]
        }
    ]
}