Merchant Edit

Merchant Edit request is used to change the details of the shop, created 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/updatePartner.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

Merchant identifier, under which there was created the partner, whose details will be changed.

This value is assigned by WayForPay

yes

merchantSignature

Request signature

yes

merchantAccountEdit

The unique identifier of the seller whose details you need to change

yes

site

Partner web-site

no

phone

Merchant telephone number in international format 

no

email

Partner E-mail

no

description

Partner description/activity category

no

compensationCardNumber

Compensation card number

no

compensationCardExpYear

Expiry year (string 4)

no

compensationCardExpMonth

Expiry month (string 2)

no

compensationCardCvv

Card CVV code

no

compensationCardHolder

Card owner name and surname

no

compensationAccount

Compensation bank account number (string 4-20)

no

compensationAccountMfo

Bank MFO (string 6)

no

compensationAccountOkpo

Recipient OKPO/ITN (string 8,10 or 14)

no

compensationAccountName

Legal entity/account name

no

Response parameters

Parameter

Description

Example

merchantAccount

Unique seller identifier generated for the merchant

test_merch_n2

secretKey

Shop secret key

sdfds3eda323eds

reason

Request result

update

reasonCode

Request processing result code.  

1100

Request and response example

Request:
{
"merchantAccount":"test_merch_n1",
"merchantSignature":"0f4ab40a5а56710а0e8e8b41bb05fb48e85bb047",
"merchantAccountEdit":"test_merch_n2",
"site":"http://site.com",
"phone":"380901234567",
"email":"ff1f@com",
"compensationCardNumber":"4111111111111111",
"compensationCardHolder":"super holder",
"compensationCardExpYear":"2029",
"compensationCardExpMonth":"05",
"compensationCardCvv":"111",
"description":"opisanie of shop"
}
 
Response:
{
"merchantAccount":"test_merch_n2",
"secretKey":"0f4ab40a5а56710а0e8e8b41bb05fb48e85bb047",
"reason":"update",
"reasonCode":"1100"
}