Get Seller Public Key

Credentials

No credentials are documented for this endpoint.

Overview

This API endpoint will allow you as a partner to get the unique public keys used for various services in our system.

Parameters

Name In Type Required Description
PayMe-Partner-Key header string yes The PayMe unique partner key.
seller_payme_id path string yes

Code samples

curl

curl -X GET 'https://sandbox.payme.io/api/sellers/<seller_payme_id>/public-keys' \
  -H 'PayMe-Partner-Key: <PayMe-Partner-Key>'

Node.js

const response = await fetch("https://sandbox.payme.io/api/sellers/<seller_payme_id>/public-keys", {
  method: "GET",
  headers: {
    "PayMe-Partner-Key": "<PayMe-Partner-Key>",
  },
});

console.log(await response.text());

Python

import requests

response = requests.get(
    "https://sandbox.payme.io/api/sellers/<seller_payme_id>/public-keys",
    headers={
        "PayMe-Partner-Key": "<PayMe-Partner-Key>",
    },
)

print(response.text)

PHP

<?php

$ch = curl_init('https://sandbox.payme.io/api/sellers/<seller_payme_id>/public-keys');
curl_setopt_array($ch, [
    CURLOPT_CUSTOMREQUEST => 'GET',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        'PayMe-Partner-Key: <PayMe-Partner-Key>',
    ],
]);

$response = curl_exec($ch);
curl_close($ch);

echo $response;

Responses

200 — OK (success)

Field Type Description
status_code integer Status code 0 - Success Status code 1 - Failure
page integer Page presented
items_total integer Total count of items
items_per_page integer Items per page count
seller_payme_id string The unique seller ID
items array
items[].uuid string The unique public key
items[].description string The public key title
{
  "status_code": 0,
  "page": 1,
  "items_total": 1,
  "items_per_page": 1,
  "seller_payme_id": "MPL151111-1111111-SAUCJ4KX-TVEDZCIN",
  "items": [
    {
      "uuid": "12345678-7c83-46fc-ac97-12345678",
      "description": "PayMe-Public-Key"
    }
  ]
}