Skip to main content

SFTP

Introduction

Moyasar PG provides the partner acquirers with the ability to download the End-of-Day file using SSH File Transfer Protocol or SFTP.

Important

We recommend using the REST API which is described in the guide End-of-Day: REST API

Prerequistes

This guide assumes you are a registered acquirer within Moyasar and you have an acquirer API key to access the service in addition to the acquirer name registered within the PG.

The API key must have the following permissions assigned to it:

  • eod_list
  • eod_read

The username and API key should look something like this:

  • abc_bank
  • acquirer_key_random_string_123

Service Endpoints

You can access the service on the following endpoints:

  • Staging: pg.mysr.dev:9086

Authentication

SFTP uses SSH under the hood and hence uses the same authentication mechanism.

The username for SFTP should be the word acquirer_ with the acquirer name attached to it. Here is an example for the acquirer abc_bank:

acquirer_abc_bank

The password for SFTP should be the API key described earlier.

Downloading The

Once you have logged into the SFTP server, you can download the statement file from the following path:

/eod-of-day/yyyy-mm-dd/statement.csv

You should replace the part yyyy-mm-dd with the date you want to download the statement for.