Orders

Options like product_id, location_id, and more can be retrieved using the Products endpoint.

Products

Toggle Order Auto Extend

POST /orders/toggle-auto-extend

Body parameters

Name
Type
Description
Available options

order_id

Integer

Order id

is_enabled

Boolean

Should the auto extend be enabled or disabled

product_plan_id

Integer

The product plan ID for the order. This is not required, and will default to the current product id of the order if empty

payment_type

String

Payment type for the extend. Not required if is_enabled is false

card
balance

card_id

Integer

The id of the card used to pay for the extend. Not required if payment_type is balance

Example request:

curl -X POST "https://apid.iproyal.com/v1/reseller/orders/toggle-auto-extend" \
     -H "X-Access-Token: <your_access_token>" \
     -H "Content-Type: application/json" \
     -d '{
           "order_id": 123,
           "product_plan_id": 3,
           "is_enabled": true,
           "payment_type": "card",
           "card_id": 1
         }'

Example response:

{
    "order_id": 202,
    "is_enabled": true,
    "product_plan_id": 3,
    "payment_type": "balance",
    "card_id": null
}

Last updated

Was this helpful?