Partner Info

Partner Info is used to obtain data about the partner created by the shop in the wayforpay system.

Request parameters

The request with the required parameters is generated on the side of the merchant and transferred with the help of POST method through HTTP protocol to URL https://api.wayforpay.com/mms/partnerInfo.php

In order to confirm the data validity, there shall be generated and transferred in the HMAC_MD5 request the control signature with use of the merchant SecretKey.

The line, subject to HMAC_MD5, is generated through concatenation of UTF-8-encoded merchantAccount, partnerCode separated with “;” (semicolon)

 

Parameter

Description

Mandatory

merchantAccount

Unique merchant identifier.

yes

partnerCode

Account of the shop, about which it is required to obtain the information

yes

merchantSignature

Request signature

yes

Answer parameters

Parameter

Description

Example

reason

Request result

Ok

reasonCode

Request processing result code.  

1100

merchantAccount

Unique merchant identifier, generated for the shop

test_merch_n1

partnerCode

Partner code – partner name – partner id

test_partner

site

Partner web-site

site.com

description

Partner description/activity category

description of shop

phone

Partner telephone number in international format 

380901234567

email

Partner E-mail

ff1f@com

compensation

Compensation type: card/account

card

partnerStatus

Partner status: New, Active, Blocked

active

createDate

Partner creation date

12.01.2016

Request and response example

Request:
{
"merchantAccount":"test_merch_n1",
"partnerCode":"test_partner",
"merchantSignature":"860ee1b8f4595660ecae76c431cea88b"
}
 
Response:
{
"reason":"Ok",
"reasonCode":"1100",
"merchantAccount":"test_merch_n2",
"partnerCode":"test_partner",
"site":"site.com",
"description":"description of shop",
"phone":"380901234567",
"email":"ff1f@com",
"compensation":"card",
"partnerStatus":"active",
"createDate":"12.01.2016"
}