Update a selling plan
Authorizations
Path parameters
idstringRequired
Selling plan ID
Header parameters
X-Auth-TokenstringRequired
API key for authentication
Body
Responses
200
Selling plan updated successfully
application/json
401
Unauthorized
404
Selling plan not found
422
Validation errors
application/json
put
PUT /api/v1/external/preorders/{id} HTTP/1.1
Host: app.stoqapp.com
X-Auth-Token: text
Content-Type: application/json
Accept: */*
Content-Length: 1023
{
"selling_plan": {
"name": "text",
"internal_name": "text",
"enabled": true,
"billing_type": "exact_time",
"billing_at": "2025-07-01T20:30:33.192Z",
"billing_after_n_intervals": 1,
"billing_after_interval_type": "day",
"billing_checkout_charge_amount": 1,
"billing_checkout_charge_percentage": 1,
"billing_checkout_charge_type": "percentage",
"billing_title": "text",
"billing_description": "text",
"delivery_type": "anchor",
"delivery_at": "2025-07-01T20:30:33.192Z",
"delivery_after_n_intervals": 1,
"delivery_after_interval_type": "day",
"inventory_reserve_type": "on_sale",
"inventory_provider": "stoq",
"pricing_type": "percentage",
"pricing_amount": 1,
"pricing_percentage": 1,
"preorder_button_text": "text",
"preorder_button_description": "text",
"preorder_badge_enabled": true,
"preorder_badge_text": "text",
"preorder_badge_text_color": "text",
"preorder_badge_background_color": "text",
"shipping_text": "text",
"discount_text": "text",
"preorder_tags": "text",
"product_variants_source": "all",
"product_variants_source_id": 1,
"markets_enabled": true,
"shopify_market_ids": [
1
]
}
}
{
"id": "text",
"name": "text",
"internal_name": "text",
"enabled": true,
"billing_type": "exact_time",
"billing_at": "2025-07-01T20:30:33.192Z",
"billing_after_n_intervals": 1,
"billing_after_interval_type": "day",
"billing_checkout_charge_amount": 1,
"billing_checkout_charge_percentage": 1,
"billing_checkout_charge_type": "percentage",
"billing_title": "text",
"billing_description": "text",
"delivery_type": "anchor",
"delivery_at": "2025-07-01T20:30:33.192Z",
"delivery_after_n_intervals": 1,
"delivery_after_interval_type": "day",
"inventory_reserve_type": "on_sale",
"inventory_provider": "stoq",
"pricing_type": "percentage",
"pricing_amount": 1,
"pricing_percentage": 1,
"preorder_button_text": "text",
"preorder_button_description": "text",
"preorder_badge_enabled": true,
"preorder_badge_text": "text",
"preorder_badge_text_color": "text",
"preorder_badge_background_color": "text",
"shipping_text": "text",
"discount_text": "text",
"preorder_tags": "text",
"product_variants_source": "all",
"product_variants_source_id": 1,
"selling_plan_product_variants_count": 1,
"shopify_selling_plan_id": 1,
"shopify_selling_plan_group_id": 1,
"shop_id": 1,
"market_id": 1,
"created_at": "2025-07-01T20:30:33.192Z",
"updated_at": "2025-07-01T20:30:33.192Z",
"discarded_at": "2025-07-01T20:30:33.192Z",
"ongoing_job": true,
"shopify_variant_ids": [
1
]
}
Last updated