GET /v1.1/transactions/<payment_reference>

 

Path parameters

Attribute

Type

Condition

Description

payment_reference

String

Mandatory

The payment reference of the transactions

 

 

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

 

 

Response body

Attribute

Type

Condition

Description

details

List of

Transaction Detail

Mandatory

A list of transaction detail objects

 

 

Examples

curl -X GET \
  https://transactions-api.mypos.com/v1.1/transactions/993975 \
  -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/993975',
    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/993975',
    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/993975');
$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;
}

{
    "details": [
        {
            "value": "",
            "label": "Transaction details"
        },
        {
            "value": "Visa Business",
            "label": "Card type"
        },
        {
            "value": "POSA01519200BVNL",
            "label": "Transaction reference"
        },
        {
            "value": "50710731642",
            "label": "Account number"
        },
        {
            "value": "EUR ACCOUNT",
            "label": "Account name"
        },
        {
            "value": "003044CHF1081401",
            "label": "Fee code"
        },
        {
            "value": "1.0000",
            "label": "Exchange rate"
        },
        {
            "value": "-37.83 EUR",
            "label": "Amount"
        },
        {
            "value": "2.500%",
            "label": "Fee rate"
        },
        {
            "value": "POS Payment / EEA Commercial Cards",
            "label": "Fee descriptor"
        }
    ]
}