GET /v1/devices/receipt/<payment_reference>

 

Path parameters

Attribute

Type

Condition

Description

payment_reference

String

Mandatory

The unique reference of the transaction.

 

 

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

Receipt Details

Mandatory

Details of the transaction receipt.

 

 

Examples

curl -X GET \
  https://devices-api.mypos.com/v1/devices/receipt/POSA00120076VGMO \
  -H 'Authorization: Bearer PLpC1CqVE9CYXolbGNBPqz0NYy8asFzG95XcToDsMP' \
  -H 'API-Key: CLIENT_ID' \
  -H 'Content-Type: application/json' \
  -H 'X-Request-ID: 232465ab-66ea-4776-b3f0-f7a123f988e4'
import requests

requests.get(
    url='https://devices-api.mypos.com/v1/devices/receipt/POSA00120076VGMO',
    headers={
        'Authorization': 'Bearer PLpC1CqVE9CYXolbGNBPqz0NYy8asFzG95XcToDsMP',
        'API-Key': 'CLIENT_ID',
        'Content-Type': 'application/json',
        'X-Request-ID': '232465ab-66ea-4776-b3f0-f7a123f988e4'
    }
)
const request = require("request");

const options = {
    method: 'GET',
    url: 'https://devices-api.mypos.com/v1/devices/receipt/POSA00120076VGMO',
    headers: {
        'Authorization': 'Bearer PLpC1CqVE9CYXolbGNBPqz0NYy8asFzG95XcToDsMP',
        'API-Key': 'CLIENT_ID',
        'Content-Type': 'application/json',
        'X-Request-ID': '232465ab-66ea-4776-b3f0-f7a123f988e4'
    }
};

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

});
<?php

$request = new HttpRequest();
$request->setUrl('https://devices-api.mypos.com/v1/devices/receipt/POSA00120076VGMO');
$request->setMethod(HTTP_METH_GET);

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

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

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

{
    "is_declined": 0,
    "receipt_layout_version": 0,
    "exchange_rate": null,
    "date": "2020-03-16",
    "time": "10:42:27",
    "stan": "000030",
    "terminal_id": "90006109",
    "merchant_id": "000000009908021",
    "merchant_name": "D200C",
    "address_line_1": "SEGR                      FRANCE",
    "address_line_2": "34535",
    "pl_card_balance": null,
    "pl_card_balance_currency": null,
    "resp_code": null,
    "reference_number": "",
    "application_preferred_name": "MASTERCARD",
    "installment_type": null,
    "installment_number": null,
    "installment_interest_rate": null,
    "installment_first_amount": null,
    "installment_subseq_amount": null,
    "installment_annual_perc_rate": null,
    "installment_fee_rate": null,
    "installment_total_amount": null,
    "transaction_preauth_code": "",
    "card_scheme": "MasterCard",
    "pan": "XXXX-XXXX-XXXX-6701",
    "emboss_name": "",
    "amount": "2.00",
    "currency": "EUR",
    "auth_code": "MCQSIM",
    "rrn": "007609228819",
    "aid": "A0000000041010",
    "amount_tip": null,
    "amount_total": null,
    "operator_code": "",
    "dcc_amount": null,
    "dcc_currency": null,
    "tran_type": "PAYMENT",
    "sign_row_1": "NO SIGNATURE REQUIRED",
    "sign_row_2": "",
    "sign_row_3": "",
    "exchange_rate_translation": null,
    "tran_status": "APPROVED",
    "receipt_footer_row_1": null,
    "receipt_footer_row_2": null
}