Authorization
Example:
Authorization | Bearer Paste-Your-API-Key-HereRequest Body
The unique identifier of the product (payment link) the new member is registered
against. The product must belong to the authenticated user.Example:
7c9d2e1f-4a5b-4c6d-8e9f-0a1b2c3d4e5fThe unique identifier of the membership tier the member is enrolled in.Example:
9b2d4f6a-8c1e-4a3b-bd5c-6e7f8a9b0c1dThe customer’s contact details.
The customer’s full name.
The customer’s email address. A customer may only be registered once per tier —
re-using an email that already exists on the same tier responds
400 "Email sudah terdaftar pada tier ini.".The customer’s mobile phone number.
The monthly billing period for the membership (for example
1).Response
Successful Response — HTTP201
Main Structure (Root Object)
Status code from the API.
201 on successful registration.Status message that describes the status code. Note the singular
message key
(write endpoints use message; read/list endpoints use the plural messages).The registration result wrapper.
The newly created membership customer record.
Errors
All errors use the envelope{ "statusCode": <code>, "message": "<reason>" } (singular message).
Error Example 400
The HTTP status code of the error.
A human-readable description of the error.
| Status | message | When |
|---|---|---|
400 | Validation Error | The request body fails validation (missing or malformed fields). |
400 | You are not authorized to edit this product! | The productId does not belong to the authenticated user. |
400 | Email sudah terdaftar pada tier ini. | A customer with this email is already registered on the given tier. |
400 | Paket membership ini telah mencapai batas limit anggota yang ditentukan. | The tier has reached its configured member limit. |
