TR EN


Add/Edit user



By this request you are able to add a new activated user in Payfull or edit existing one. .


Request parameters
merchant: required
merchant name which you created in your Payfull account.

type: required
Transaction type should be Set.

set_param: required
The name of parameter you like to set, so it should be User.

user_op: required
There are two available operations add / edit

language: required
Response message language can be en / tr

client_ip: required
The client IP who uses the application which sends the request to the API.

user_firstname: required
User Firstname.

user_lastname: required
User Lastname.

user_email: required
User Email.

user_phone: required
User Phone number.

user_password: required
User Password.

user_address: optional
User Address.

user_company: optional
User Company name.

user_tax_number: optional
User Tax Number.

user_tax_office: optional
User Office tax number.

user_tc: optional
User TC number.

hash: required
Generated hash code on the caller side

To generate the hash code please follow the steps below:
  • - Arrange the parameters alphabetically from A to Z
  • - Create a parameters string which has the length for each parameters with its value side by side
  • - Create the sha256 hash code from the parameters string and pass the merchant password as Shared secret key
  • - Add the hash code to the request parameters


Sample request


merchant: merchant name
type: Set
set_param: User
user_op: add
user_firstname: Ali
user_lastname: Mohammad
user_email: demo@gmail.com
user_phone: 5396665544
user_password: 34535^$#2
user_address: istanbul / Turkey
user_company: T4U
user_tax_number: 12121212
user_tax_office: 12121212
user_tc: 42955327726
language: tr
client_ip: 192.168.1.1
hash: 14339MjuG01015018



Sample Response


{
"status":1,
"ErrorMSG":"",
"ErrorCode":"00",
"data":{"approved":true}
}


PHP Example