2. Update Member

Update Member

PUT {{MemberBaseAddress}}/api/paywall/member

Important: In order to use the member service, you need to send the 'apikeypublic' and 'apiclientpublic' parameters in the 'Header' field.

MemberAPI Address

ParameterTypeMandatoryDescription

apikeypublic

string

Yes

The Public Key obtained from the member business panel.

apiclientpublic

string

Yes

The Public Client obtained from the member business panel."

The parameters that need to be sent to the service are as follows:

ParameterTypeMandatoryDescription

Id

int

Yes

The Id information of the member in PayWall.

IsSubMerchant

boolean

Yes

Is the added member a sub-member business?

MemberType

int

Yes/No

The type of member is a mandatory field if IsSubMerchant is sent as true.

MemberExternalId

string

Yes

The Id information of the member in your system.

MemberName

string

Yes

The nickname provided to the member by your side

MemberTitle

string

Yes

The real name of the member.

Company: Title Individual: First Name Last Name

MemberTaxOffice

string

Yes/No

The tax office of the member. Mandatory if the member is of the company type

MemberTaxNumber

string

Yes/No

The tax number of the member. Mandatory if the member is of the company type

MemberIdentityNumber

string

Yes/No

The ID number of the member. Mandatory if the member is an individual or a sole proprietorship.

MemberEmail

string

Yes

The email address of the member.

MemberPhone

string

Yes

The phone number of the member.

MemberAddress

string

Yes

The address of the member.

ContactName

string

Yes

The contact name of the member. Mandatory if the member is an individual or a sole proprietorship.

ContactLastname

string

Yes

The contact name of the member. Mandatory if the member is an individual or a sole proprietorship.

Sample to be sent to the service JSON and sample codes is as follows

{
    "Id": 12,
    "IsSubMerchant": true,
    "MemberType": 3,
    "MemberExternalId": "11111211aa111",
    "MemberName": "Intranet Technology",
    "MemberTitle": "Intranet Technology Yazılım A.S",
    "MemberTaxOffice": "Besiktas",
    "MemberTaxNumber": "4651176935",
    "MemberIdentityNumber": "38350370122",
    "MemberEmail": "member2@paywall.one",
    "MemberPhone": "5554443311",
    "MemberAddress": "test adresi",
    "ContactName": "MemberName",
    "ContactLastname": "Lastname"
}

The parameters returned from the service are as follows:

ParameterTypeDescription

ErrorCode

int

Error code. It returns '0' if the transaction is successful.

Result

bool

It returns either true or false. If the transaction is successful, it returns 'true'.

Message

string

If the transaction is erroneous, this is the specified error message, providing language support based on the 'locale' parameter.

Body

nesne

Transaction details

{
    "ErrorCode": 0,
    "Result": true,
    "Message": "",
    "Body": {
        "Id": 12,
        "IsSubMerchant": true,
        "MemberType": 1,
        "MemberExternalId": "111aa11135552244413",
        "MemberName": "Intranet Technology",
        "MemberTitle": "Intranet Technology Yazılım A.S",
        "MemberTaxOffice": "Besiktas",
        "MemberTaxNumber": "*6*1*7*9*5",
        "MemberIdentityNumber": "",
        "MemberEmail": "member@paywall.one",
        "MemberPhone": "5554443322",
        "MemberAddress": "test adresi",
        "ContactName": "Member Name",
        "ContactLastname": "Lastname",
        "InsertDateTime": "2023-06-29T15:32:52.570869+03:00"
    }
}

Last updated