v1
latestOpenAPI 3.0.02026-07-246335313.6 KBSubscription APIs
Create Ondemand Deduction
Use this API for Creating Ondemand Deduction.
post/api/subscription/createDeduction
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>",
"subscription_order_ref": "<Unique subscription_order_ref>",
"description": "Product name for the customer's subscription purchase",
"source": "api",
"amount": 10,
"currency": "THB",
"subscription_type": "ONDEMAND"
}Response
Successful response