Membership Module
There are 3 endpoints to use the module
List Package
GET https://asia-southeast2-deoapp-indonesia.cloudfunctions.net/membershipList
Headers
Authorization*
String
[ask to imam]
[
{
"_id": "64a692932953b0faa443c203",
"package_name": "basic",
"package_amount": 100000,
"package_expired_duration": "1 month",
"package_code": "b_100k"
}
]Create Order
POST https://asia-southeast2-deoapp-indonesia.cloudfunctions.net/membershipCreate
Request Body
is_production*
Boolean
true (use the live xendit for payment) / false
package_code*
String
You must copy the package_code value from List Package API to use this endpoint
company_name*
String
The name of company
user_name*
String
user_email*
String
user_phone*
String
redirect_url*
String
The page that this payment is generated
```json
{
"status": true,
"message": {
"is_production": false,
"company_name": "company testing 2",
"user_name": "imam",
"user_email": "[email protected]",
"user_phone": "08170030991",
"order_id": "MEMBER202371261411",
"package_name": "pro",
"package_amount": 300000,
"redirect_url": "https://www.google.com",
"status": "pending"
}
}
```Create a virtual account to pay
POST https://asia-southeast2-deoapp-indonesia.cloudfunctions.net/membershipPay
Request Body
order_id*
String
The unique invoice which is returned from Create Order API
{
"status": true,
"message": {
"membership_order_id": "64a7d23e143b20d0a4cc611f",
"order_id": "MEMBER20237785214",
"external_id": "PVA-MEMBER20237785214-DATE20230710041011",
"bank_code": "BRI",
"amount": 100000,
"type": "virtual_account",
"status": "requested",
"dump": {
"owner_id": "6218908f16fdf33a805a07c3",
"external_id": "MEMBER20237785214",
"account_number": "132819999967712",
"bank_code": "BRI",
"merchant_code": "13281",
"name": "company testing 2",
"is_closed": true,
"expected_amount": 104000,
"is_single_use": false,
"status": "PENDING",
"currency": "IDR",
"country": "ID",
"expiration_date": "2054-07-09T17:00:00.000Z",
"id": "64ab84a4c8f06e1e06fee721",
"ori_external_id": "PVA-MEMBER20237785214-DATE20230710041011"
}
}
}Last updated