Add membership

Created by Yee Sin Lum, Modified on Thu, 16 Jun 2022 at 11:41 PM by Yee Sin Lum

Add membership

interface address

hostname/openapi/v1/customerOpenApi/add

Request header

User-Agent: openApi

Content-Type: application/json; charset=utf-8

Accept-encoding: gzip,deflate

Time-stamp: 1437528688233

Data-signature: BF706E6AC693BA3B1BABD32E6713431D

Request method

POST

Request body

{

"appId": "abcdefghijklmn",

"customerInfo": {

"categoryName": "Gold Card,"

"number": "KYBIO002",

"name": "OpenApi creation",

"point": 0,

"discount": 60,

"balance": 0,

"phone": "17759205640",

"birthday": "",

"qq": "",

"email": "",

"address": "",

"remarks": "",

"onAccount": 0,

"enable": 1

"password": "EA4CEADDDDDD"

}

}

parameter name

Is it necessary

Types of

Instructions

appId

Yes

String

KYBIO configured access credentials

categoryName

no

String

Member's category name

Number

Yes

String

Member No.

Name

no

String

Member name, empty by default

Phone

no

String

Member contact number, empty by default

Birthday

no

String

Member's birthday, empty by default

Qq

no

String

QQ number, empty by default

Email

no

String

Member email, empty by default

Address

no

String

Affiliate address, empty by default

Remarks

no

String

Remarks information, empty by default

Point

no

BigDecimal

Membership points, the default is 0

Discount

no

BigDecimal

Membership discount, 0-100, default is 0

Balance

no

BigDecimal

Membership balance, default is 0

Enable

no

Int

-1: Delete; 0: Disable; 1: Available;

onAccount

no

Int

Whether to allow member credits, 0 or 1, the default is 1

Password

no

String

member password

Return result

{

"status": "success",

"messages": [],

"errorCode":null

}

Field name

Types of

Instructions

Status

String

Whether the request is processed correctly, return success or error, case-insensitive

Messages

String[]

Processing result message

errorCode

Int

Business process error code, see error code table

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article