v1
latestOpenAPI 3.0.02026-07-246335313.6 KBPlan APIs
Create Plan
Use this API for Creating Plan.
post/api/subscription/createPlan
Headers
Content-Typestring
X-Portone-Client-Keystring
The PortOne Key of the merchant
Authorizationstring
The Authorization header is used to include the JWT for authenticating API requests; learn how to generate the token <a href="/docs/jwt-authentication" target="_blank">in this guide</a>
Request body
Example request
{
"portone_key": "<PortoneKey>",
"signature_hash": "<Genrated signature_hash>",
"merchant_order_ref": "<Unique merchant_order_ref>",
"source": "api",
"amount": 100,
"currency": "THB",
"description": "Testing",
"environment": "sandbox",
"frequency": 1,
"period": "M",
"name": "100 THB Monthly",
"plan_type": "REGULAR"
}Response
Successful response