plan_code: flexible) is sold only through an enterprise offer coupon: coupon_code is required, the price comes from the coupon, quantity is forced to 1, and the plan is for the organization named by organization_id (one the buyer administers) or for new_organization, which is created on payment. For any other plan, sending organization_id or new_organization is rejected.curl --location 'https://my.xentree.ai/api/payments/xendit/checkout' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"plan_code": "pro",
"cycle": "monthly",
"quantity": 1,
"gateway": "xendit",
"coupon_code": "string",
"organization_id": "string",
"new_organization": {
"name": "string",
"slug": "string"
}
}'{
"checkout_url": "string",
"external_id": "string",
"zero_amount": true,
"subtotal_amount": 0,
"discount_amount": 0,
"final_amount": 0,
"currency": "IDR",
"plan_code": "string",
"cycle": "string",
"quantity": 0,
"coupon_code": "string"
}