Update Member
This API is used to update subscribed member data on Faspay. Merchants can only change for parameters:
member_name
member_email
process_date
recurring_amount
recurring_end_date
recurring_status
URL EndPoint
Request Parameter:
request
Varchar
O
Request Description
merchant_id
Numeric (5)
M
ID Merchant
merchant
Varchar (32)
O
Merchant Name
member_id
Varchar (50)
M
Merchant’s member ID
member_name
Varchar (50)
M
Merchant’s member name
member_email
Varchar (50)
M
Merchant’s member email
member_email_notif
Numeric (1)
M
Member’s email Notification
1= True, 0= False
process_date
Varchar
M
Process date = Date,Date (up to 9 times)
Process date, this parameters used for date of transaction and date of retry recurring if there is a failed recurring.
Sample:
process_date = "16,20,22,24,26,28,30,31". (Max 9 date)
16 is a date for register new recurring transaction date.
20,22,24,26,28,30,31 is a date for retry recurring if any failed recurring to this member.
recurring_amount
Numeric (12)
M
Recurring amount
recurring_start_date
Date
M
Recurring start date
Format= YYYY-MM-DD
recurring_end_date
Date
M
Recurring End Date
Format= YYYY-MM-DD
recurring_period
Varchar (1)
M
Recurring Period
D = Daily, M = Monthly, Y = Yearly
recurring_period_at
Numeric (1)
M
Repetition of Recurring Period, sample case: if user fill recurring_period with M (monthly), recurring_perriod_at is used for repetition of deduction by period. Sample:
-recurring_period: M
-recurring_perriod_at: 1
so, recurring will process by system per months, if fill with 3, recurring will process per 3 months.
recurring_accumulate_at
Numeric (1)
M
Repetition of Recurring Accumulate in Days
recurring_status
Numeric (2)
M
Recurring Status:
0 = False
1 = True
card_expire_notif
Numeric (1)
M
Value=1, then if one month the credit card is about expire, it will be notified to the Merchant.
Value=0, then it will not be notified to the merchant
signature
Varchar (50)
M
sha1(md5(transaction account + transaction password + member_id))
{
"merchant_id":"99999",
"merchant":"Sophia Store",
"member_id":"20210726085543",
"member_name":"John Doe",
"member_email":"[email protected]",
"member_email_notif":"1",
"process_date":"16,20,22,24,26,28,30,31",
"recurring_amount":"80000",
"recurring_start_date":"2021-07-26",
"recurring_end_date":"2022-07-26",
"recurring_period":"M",
"recurring_period_at":"1",
"recurring_accumulate":"1",
"recurring_accumulate_at":"1",
"recurring_status":"1",
"card_expire_notif":"1",
"signature":"f2f80fe2d49f9a73a6cc6fe92c12776d41cc27b3"
}Response:
response
Varchar
O
Response description
merchant_id
Numeric (5)
M
Merchant Code
merchant
Varchar (32)
O
Merchant name
member_id
Varchar (50)
M
Merchant’s member ID
response_code
Varchar (50)
M
Response code
0: Success 1: Failed
response_desc
Varchar (50)
M
Response Description
{
"response": "Update Member-Recurring",
"merchant_id": "99999",
"merchant": "Sophia Store",
"member_id": "20210726085543",
"response_code": "0",
"response_desc": "Success"
}Last updated
