Membership Module

There are 3 endpoints to use the module

List Package

GET https://asia-southeast2-deoapp-indonesia.cloudfunctions.net/membershipList

Headers

Name
Type
Description

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

Name
Type
Description

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

Create a virtual account to pay

POST https://asia-southeast2-deoapp-indonesia.cloudfunctions.net/membershipPay

Request Body

Name
Type
Description

order_id*

String

The unique invoice which is returned from Create Order API

Last updated