Skip to main content

Create Member

The endpoint and http method information to create members are stated below.

Members can be of three different types:

  • Buyer
  • Sub-merchant (used in Marketplace solution)
  • Buyer Featured Sub-merchant (Both Buyer and Seller) (used in Marketplace solution)

URL

POST/onboarding/v1/members

Request Parameters

The parameters expected to be sent in requests to create a new member are listed under the table and subheadings below.

isBuyer
boolean

Set this parameter true if member is a buyer

isSubMerchant
boolean

Set this parameter true if member is a seller

memberType
MemberType

Member type. Required if member is a seller. See: Member Types

Values:
PERSONAL
PRIVATE_COMPANY
LIMITED_OR_JOINT_STOCK_COMPANY
memberExternalId
string
required

External id of the member

name
string

Name of the member. Required if member is a seller and has limited/joint stock company

address
string
required

Address of the member

email
string
required

E-mail address of the member

iban
string

Member IBAN. Required if member is a seller and settlementEarningsDestination parameter is IBAN. Only TR IBAN should be send

phoneNumber
string
required

Phone number of the member

legalCompanyTitle
string

Legal company title of the member's company. Required if member is a seller and has limited/joint stock company

taxOffice
string

Tax office of the member's company. Required if member is a seller and has limited/joint stock company

taxNumber
string

Tax number of the member's company. Required if member is a seller and has limited/joint stock company

contactName
string

Contact name of the member. Required if member is a buyer or is a seller and has personal or private company

contactSurname
string

Contact surname of the member. Required if member is a buyer or is a seller and has personal or private company

subMerchantMaximumAllowedNegativeBalance
number

Maximum allowed negative balance limit for sub merchant. It will be use if sub merchant balance is not enough for make refund.

settlementDelayCount
number

Blockage day for sub merchant

Response Parameters

Parameters returned as a result of member creation are also subject to the rules specified in the Response Formats section of the API documentation home page. In the absence of a systematic or fictional error, the sub-parameters of the object returned in the data parameter are as follows:

id
number

ID of the member

createdDate
date

The date that the member is created

updatedDate
date

The date that the member is updated

status
Status

Member status. See: Status

Values:
ACTIVE
PASSIVE
isBuyer
boolean

Returns true if member is a buyer

isSubMerchant
boolean

Returns true if member is a seller

memberType
MemberType

Member type. See: Member Types

Values:
PERSONAL
PRIVATE_COMPANY
LIMITED_OR_JOINT_STOCK_COMPANY
memberExternalId
string

External id of the member

name
string

Name of the member

address
string

Address information of the member

email
string

E-mail address of the member

phoneNumber
string

Phone number of the member

contactName
string

Contact name of the member

contactSurname
string

Contact surname of the member

legalCompanyTitle
string

Legal company title of member's company

taxOffice
string

Tax office of the member's company

taxNumber
string

Tax number of the member's company

settlementEarningsDestination
SettlementEarningsDestination

Settlement earning destination of the member. See: Payout Destinations

Values:
IBAN
WALLET
CROSS_BORDER
iban
string

Member IBAN

subMerchantMaximumAllowedNegativeBalance
number

Maximum allowed negative balance limit for sub merchant. It will be use if sub merchant balance is not enough for make refund.

settlementDelayCount
number

Blockage day for sub merchant

Sample Codes

You can review the sample codes in the open source Craftgate API clients.

Buyer Creation

Loading..

Sub-merchant Creation (for Marketplace solution)

Loading..