Packages

Get Packages

GET /admin/members/packages

Query Parameters

Name
Type
Description

q

String

for search

show

Integer

Show item per page, default: 9

order

String

Order data either by DESC or ASC, default: DESC

status

String

Get data based on status, options: all, active, nonactive default: active

page

Integer

change page

Headers

Name
Type
Description

Client-Key*

String

Your client Key

Authorization*

String

Your bearer token

{
    "data": [
        {
            "id": 4,
            "name": "Premium",
            "code": "demo-premium",
            "description": "Apa Ya",
            "information": "<p>Ini adalah info</p>",
            "price": 100000,
            "validity_type": "yearly",
            "validity_amount": 1,
            "custom_date": "2042-08-08",
            "prefix": "PREMIUM",
            "suffix": "WAHWAHWAH",
            "format": "-##-$$-",
            "cover": "https://minio-s3.dev.embrio.id/munio/uploads/public/655/c2e/625/655c2e625c5d5507245869.jpeg",
            "card_background": "https://minio-s3.dev.embrio.id/munio/uploads/public/655/c2e/625/655c2e625c5d5507245869.jpeg",
            "virtual_card_preview": "https://minio-s3.dev.embrio.id/munio/uploads/public/655/c2e/625/655c2e625c5d5507245869.jpeg",
            "is_auto_numbering": 1,
            "is_active": 1,
            "total_members": 0,
            "created_at": "2023-11-13T02:41:39.000000Z",
            "is_transaction_fee_covered": 0,
            "dimension_package": {
                "weight": "1700",
                "height": "",
                "length": "",
                "width": ""
            },
            "is_use_shipment": 1,
            "is_shipment_covered": 0
        }
    ],
    "meta": {
        "pagination": {
            "total": 2,
            "count": 2,
            "per_page": 15,
            "current_page": 1,
            "total_pages": 1,
            "links": {}
        }
    }
}

Create Package

POST /admin/members/packages

Headers

Name
Type
Description

Client-Key*

String

Your client Key

Authorization*

String

Bearer access_token

Request Body

Name
Type
Description

name*

String

Division name

description

String

is_active

Boolean

image

String

Base64

card_background

String

Base64

information

String

price

Number

Min: 0

validity_type

String

Options: monthly, yearly, custom_date

validity_amount

Number

For validity type monthly and yearly only

custom_date

Date

Format YYYY-MM-DD,

is_auto_numbering

Boolean

If auto member number generate from system

prefix

String

suffix

String

format

String

random_length

Number

character_type

String

Options: alphabet, numeric, alphanumeric

is_transaction_fee_covered

Boolean

dimension_package

Object

is_use_shipment

Boolean

is_shipment_covered

Boolean

Get Detail Package

GET /admin/members/packages/{id}

Path Parameters

Name
Type
Description

id*

Integer

The id of the package

Headers

Name
Type
Description

Client-Key*

String

Your client Key

Authorization*

String

Your admin bearer token

Update Package

PUT /admin/members/packages/{id}

Path Parameters

Name
Type
Description

id

Integer

The id of the package

Headers

Name
Type
Description

Client-Key*

String

Your client Key

Authorization*

String

Bearer access_token

Request Body

Name
Type
Description

name*

String

Division name

description

String

is_active

Boolean

image

String

Base64

card_background

String

Base64

information

String

price

Number

Min: 0

validity_type

String

Options: monthly, yearly, custom_date

validity_amount

Number

For validity type monthly and yearly only

custom_date

Date

Format YYYY-MM-DD,

is_auto_numbering

Boolean

If auto member number generate from system

prefix

String

suffix

String

format

String

random_length

Number

character_type

String

Options: alphabet, numeric, alphanumeric

is_transaction_fee_covered

Boolean

dimension_package

Object

is_use_shipment

Boolean

is_shipment_covered

Boolean

Delete Package

DELETE /admin/members/packages/{id}

Path Parameters

Name
Type
Description

id*

Integer

The id of the package

Headers

Name
Type
Description

Client-Key*

String

Your client Key

Authorization*

String

Bearer access_token

Example Request Create

Example Request Update

Last updated