---
title: "Create a sales plan group"

doc_type: openapi
doc_category: openapi
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/admin-rest-api/product/sales-plan-group/create-a-sales-plan-group'
  md: 'https://developer.shopline.com/docs/admin-rest-api/product/sales-plan-group/create-a-sales-plan-group.md'
---
# Create a sales plan group

- **Base URL:** `https://{handle}.myshopline.com/admin/openapi`
- **Required Scopes:** `write_selling_plan_group`
- **API Version:** v20270301
- **API Type:** Admin
- **API Protocol:** RESTful

## Endpoint

```http
POST /selling_plan_groups/selling_plan_group.json
```

## Base URL

* `https://{handle}.myshopline.com/admin/openapi`

  * `{handle}`: `handle` : The store's unique identifier, which is the prefix of the store's domain name. For example, if a store's domain name is `open001.myshopline.com` , the store handle is `open001` .

## Required Permissions

* `write_selling_plan_group`

## Request

### Request Headers

* `Content-Type`

  string (required)

  The field must be set to the fixed value `application/json; charset=utf-8`.

* `Authorization`

  string (required)

   The access token for the API resource. Refer to [App authorization](https://developer.shopline.com/docs/apps/api-instructions-for-use/app-authorization.md?lang=en) to obtain the access token, and then pass the obtained token in the Bearer format. 

### Request Body

* `merchant_code`

  string

  Code to show to seller

* `name`

  string

  Name of sales program group to show buyers

* `options`

  array<string>

  List of sales plan group options

* `position`

  integer

  Display position , the smaller the more front

* `product_ids`

  array<string>

  Product listing for binding

* `selling_plans_to_create`

  array<object>

  List of sales plans created

  * `name`

    string

    Name of sales plan to show to buyers

  * `options`

    array<string>

    List of sales plan options

  * `position`

    integer

    Display position , the smaller the more front

  * `pricing_policies`

    array<object>

    Price policy

    * `fixed`

      object

      Fixed price policy content

      * `adjustment_value`

        object

        Discount value

      * `adjustment_type`

        string

        Discount type : FIXED_AMOUNT- minus , PERCENTAGE- discount

    * `policy_type`

      string

      Strategy type : FIXED- fixed price strategy

  * `billing_policy`

    object

    Billing strategy

    * `policy_type`

      string

      Strategy type : RECURRING- periodic billing strategy

    * `recurring`

      object

      Periodic billing strategy

      * `max_cycles`

        integer

        Maximum billing cycle

      * `min_cycles`

        integer

        Minimum billing cycle

      * `interval`

        string

        Billing frequency unit : DAY、MONTH、WEEK、YEAR , default MONTH

      * `interval_count`

        integer

        Billing interval , default is 1

  * `description`

    string

    Description of sales plan to show to buyers

* `description`

  string

  Show the description to the seller

## Response

### Status Codes

* `200`

  For the complete list of codes and messages, see [Http status code](https://developer.shopline.com/docs/apps/api-instructions-for-use/http-status-code.md?lang=en).

* `401`

  

* `429`

  

### Response Headers

* `traceId`

  A globally unique identifier for the request. It is used to track the request flow throughout the system, allowing for easy location and debugging when issues arise.

### Response Body

#### 200

* `selling_plan_group`

  object

  Sales plan group

  * `name`

    string

    Sales plan group name

  * `product_ids`

    array<string>

    Product id list for binding

  * `app_id`

    string

    Sales channel id

  * `options`

    array<string>

    List of sales program group options

  * `id`

    string

    Sales plan group id

  * `position`

    integer

    Display position , the smaller the more front

  * `description`

    string

    Show the description to the seller

  * `merchant_code`

    string

    Name of the sales plan group to show to the seller

  * `selling_plans`

    array<object>

    Sales program list

    * `billing_policy`

      object

      Billing strategy

      * `policy_type`

        string

        Strategy type : RECURRING- periodic billing strategy

      * `recurring`

        object

        Periodic billing strategy

    * `description`

      string

      Description of sales plan to show to buyers

    * `id`

      string

      Sales plan id

    * `name`

      string

      Name of sales plan to show to buyers

    * `options`

      array<string>

      List of sales plan options

    * `position`

      integer

      Display position , the smaller the more front

    * `pricing_policies`

      array<object>

      Price policy

      * `fixed`

        object

        Fixed price policy content

      * `policy_type`

        string

        Strategy type : FIXED- fixed price strategy


#### 401

* `errors`

  string

  Error message. 


#### 429

* `errors`

  string

  Error message. 


## OpenAPI Definition

```json
{
  "externalDocs": {
    "description": "Permission point used by the interface is `write_selling_plan_group` , For more information about the use of permission points, see",
    "url": "ec20/3cv5d7wpfgr6a8z5/xabczf5442284vkq?lang=en",
    "errorTableDescription": ""
  },
  "operationId": "f91hd1xB",
  "parameters": [
    {
      "name": "Content-Type",
      "in": "header",
      "description": "The field must be set to the fixed value `application/json; charset=utf-8`.",
      "required": true,
      "style": "string",
      "schema": {
        "name": "Content-Type",
        "type": "string",
        "example": "application/json; charset=utf-8"
      }
    },
    {
      "name": "Authorization",
      "in": "header",
      "description": " The access token for the API resource. Refer to [App authorization](https://developer.shopline.com/docs/apps/api-instructions-for-use/app-authorization.md?lang=en) to obtain the access token, and then pass the obtained token in the Bearer format. ",
      "required": true,
      "style": "string",
      "schema": {
        "name": "Authorization",
        "description": " The access token for the API. Please refer to [App authorization](https://developer.shopline.com/docs/apps/api-instructions-for-use/app-authorization.md?lang=en) to obtain the access token, and then put the obtained access token into the API request header in Bearer Token.",
        "type": "string",
        "example": "Bearer eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJhcHBJZCI6MCwiYXBwS2V5IjoiNzU2ZjI1NWE2NjdlZTcwNTk1MzM0ZjVjYzk4NzU5MzBmN2E3NGZjMSIsImV4cCI6MTg3OTQ4MjA3NiwiaXNzIjoieXNvdWwiLCJzZWxsZXJJZCI6IjIwMDAyMzQ4ODAiLCJzdG9yZUlkIjoiMTY3MjM2OTcyOTYwNiIsInRpbWVzdGFtcCI6MTc4NDc4NzY3NjY2MSwidmVyc2lvbiI6IlYyIn0.3ZzbGAH4cLU1QR2VPEvMOQInUDvus-C4amkINSQIPuNVlXsFKj0sAt1c0KnUy9MWUOFV9cHlkf7J90r2y1FzpA"
      },
      "example": "Bearer eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJhcHBJZCI6MCwiYXBwS2V5IjoiNzU2ZjI1NWE2NjdlZTcwNTk1MzM0ZjVjYzk4NzU5MzBmN2E3NGZjMSIsImV4cCI6MTg3OTQ4MjA3NiwiaXNzIjoieXNvdWwiLCJzZWxsZXJJZCI6IjIwMDAyMzQ4ODAiLCJzdG9yZUlkIjoiMTY3MjM2OTcyOTYwNiIsInRpbWVzdGFtcCI6MTc4NDc4NzY3NjY2MSwidmVyc2lvbiI6IlYyIn0.3ZzbGAH4cLU1QR2VPEvMOQInUDvus-C4amkINSQIPuNVlXsFKj0sAt1c0KnUy9MWUOFV9cHlkf7J90r2y1FzpA"
    }
  ],
  "requestBody": {
    "content": {
      "application/json": {
        "schema": {
          "type": "object",
          "properties": {
            "merchant_code": {
              "name": "merchant_code",
              "description": "Code to show to seller",
              "type": "string",
              "example": "Subscription plan group default name"
            },
            "name": {
              "name": "name",
              "description": "Name of sales program group to show buyers",
              "type": "string",
              "example": "Subscription plan group default name"
            },
            "options": {
              "name": "options",
              "description": "List of sales plan group options",
              "type": "array",
              "items": {
                "name": "options",
                "description": "List of sales plan group options",
                "type": "string",
                "example": "[\"delivery every 1 months\", \"delivery every 2 months\", \"delivery every 3 months\"]"
              },
              "example": [
                "[\"delivery every 1 months\", \"delivery every 2 months\", \"delivery every 3 months\"]"
              ]
            },
            "position": {
              "name": "position",
              "description": "Display position , the smaller the more front",
              "type": "integer",
              "example": 1
            },
            "product_ids": {
              "name": "product_ids",
              "description": "Product listing for binding",
              "type": "array",
              "items": {
                "name": "product_ids",
                "description": "Product listing for binding",
                "type": "string",
                "example": "[\"16057039432335097907370282\"]"
              },
              "example": [
                "[\"16057039432335097907370282\"]"
              ]
            },
            "selling_plans_to_create": {
              "name": "selling_plans_to_create",
              "description": "List of sales plans created",
              "type": "array",
              "items": {
                "name": "selling_plans_to_create",
                "description": "List of sales plans created",
                "type": "object",
                "properties": {
                  "name": {
                    "name": "name",
                    "description": "Name of sales plan to show to buyers",
                    "type": "string",
                    "example": "Subscription plan group default name"
                  },
                  "options": {
                    "name": "options",
                    "description": "List of sales plan options",
                    "type": "array",
                    "items": {
                      "name": "options",
                      "description": "List of sales plan options",
                      "type": "string",
                      "example": "[\"Delivery every 10 days\"]"
                    },
                    "example": [
                      "[\"Delivery every 10 days\"]"
                    ]
                  },
                  "position": {
                    "name": "position",
                    "description": "Display position , the smaller the more front",
                    "type": "integer",
                    "example": 1
                  },
                  "pricing_policies": {
                    "name": "pricing_policies",
                    "description": "Price policy",
                    "type": "array",
                    "items": {
                      "name": "pricing_policies",
                      "description": "Price policy",
                      "type": "object",
                      "properties": {
                        "fixed": {
                          "name": "fixed",
                          "description": "Fixed price policy content",
                          "type": "object",
                          "properties": {
                            "adjustment_value": {
                              "name": "adjustment_value",
                              "description": "Discount value",
                              "type": "object",
                              "properties": {
                                "fixed_value": {
                                  "name": "fixed_value",
                                  "description": "Deduction amount , value range : [ 0 , 99999999999.99] , precision retention of two decimal points , rounding",
                                  "type": "string",
                                  "example": "10"
                                },
                                "percentage": {
                                  "name": "percentage",
                                  "description": "Deduction percentage , value range : [ 0 , 100] , precision retention whole number , rounding",
                                  "type": "string",
                                  "example": "10.5"
                                }
                              },
                              "example": {
                                "fixed_value": "10",
                                "percentage": "10.5"
                              }
                            },
                            "adjustment_type": {
                              "name": "adjustment_type",
                              "description": "Discount type : FIXED_AMOUNT- minus , PERCENTAGE- discount",
                              "type": "string",
                              "example": "FIXED_AMOUNT"
                            }
                          },
                          "example": {
                            "adjustment_type": "FIXED_AMOUNT",
                            "adjustment_value": {
                              "fixed_value": "10",
                              "percentage": "10.5"
                            }
                          }
                        },
                        "policy_type": {
                          "name": "policy_type",
                          "description": "Strategy type : FIXED- fixed price strategy",
                          "type": "string",
                          "example": "FIXED"
                        }
                      },
                      "example": {
                        "policy_type": "FIXED",
                        "fixed": {
                          "adjustment_type": "FIXED_AMOUNT",
                          "adjustment_value": {
                            "percentage": "10.5",
                            "fixed_value": "10"
                          }
                        }
                      }
                    },
                    "example": [
                      {
                        "fixed": {
                          "adjustment_type": "FIXED_AMOUNT",
                          "adjustment_value": {
                            "percentage": "10.5",
                            "fixed_value": "10"
                          }
                        },
                        "policy_type": "FIXED"
                      }
                    ]
                  },
                  "billing_policy": {
                    "name": "billing_policy",
                    "description": "Billing strategy",
                    "type": "object",
                    "properties": {
                      "policy_type": {
                        "name": "policy_type",
                        "description": "Strategy type : RECURRING- periodic billing strategy",
                        "type": "string",
                        "example": "RECURRING"
                      },
                      "recurring": {
                        "name": "recurring",
                        "description": "Periodic billing strategy",
                        "type": "object",
                        "properties": {
                          "max_cycles": {
                            "name": "max_cycles",
                            "description": "Maximum billing cycle",
                            "type": "integer",
                            "example": 1
                          },
                          "min_cycles": {
                            "name": "min_cycles",
                            "description": "Minimum billing cycle",
                            "type": "integer",
                            "example": 1
                          },
                          "interval": {
                            "name": "interval",
                            "description": "Billing frequency unit : DAY、MONTH、WEEK、YEAR , default MONTH",
                            "type": "string",
                            "example": "DAY"
                          },
                          "interval_count": {
                            "name": "interval_count",
                            "description": "Billing interval , default is 1",
                            "type": "integer",
                            "example": 10
                          }
                        },
                        "example": {
                          "min_cycles": 1,
                          "interval": "DAY",
                          "interval_count": 10,
                          "max_cycles": 1
                        }
                      }
                    },
                    "example": {
                      "recurring": {
                        "min_cycles": 1,
                        "interval": "DAY",
                        "interval_count": 10,
                        "max_cycles": 1
                      },
                      "policy_type": "RECURRING"
                    }
                  },
                  "description": {
                    "name": "description",
                    "description": "Description of sales plan to show to buyers",
                    "type": "string",
                    "example": "This is a description"
                  }
                },
                "required": [
                  "billing_policy",
                  "name"
                ],
                "example": {
                  "position": 1,
                  "pricing_policies": [
                    {
                      "policy_type": "FIXED",
                      "fixed": {
                        "adjustment_type": "FIXED_AMOUNT",
                        "adjustment_value": {
                          "percentage": "10.5",
                          "fixed_value": "10"
                        }
                      }
                    }
                  ],
                  "billing_policy": {
                    "recurring": {
                      "min_cycles": 1,
                      "interval": "DAY",
                      "interval_count": 10,
                      "max_cycles": 1
                    },
                    "policy_type": "RECURRING"
                  },
                  "description": "This is a description",
                  "name": "Subscription plan group default name",
                  "options": [
                    "[\"Delivery every 10 days\"]"
                  ]
                }
              },
              "example": [
                {
                  "position": 1,
                  "pricing_policies": [
                    {
                      "policy_type": "FIXED",
                      "fixed": {
                        "adjustment_type": "FIXED_AMOUNT",
                        "adjustment_value": {
                          "fixed_value": "10",
                          "percentage": "10.5"
                        }
                      }
                    }
                  ],
                  "billing_policy": {
                    "policy_type": "RECURRING",
                    "recurring": {
                      "interval": "DAY",
                      "interval_count": 10,
                      "max_cycles": 1,
                      "min_cycles": 1
                    }
                  },
                  "description": "This is a description",
                  "name": "Subscription plan group default name",
                  "options": [
                    "[\"Delivery every 10 days\"]"
                  ]
                }
              ]
            },
            "description": {
              "name": "description",
              "description": "Show the description to the seller",
              "type": "string",
              "example": "This is a description"
            }
          },
          "required": [
            "name",
            "selling_plans_to_create"
          ],
          "example": {
            "selling_plans_to_create": [
              {
                "description": "This is a description",
                "name": "Subscription plan group default name",
                "options": [
                  "[\"Delivery every 10 days\"]"
                ],
                "position": 1,
                "pricing_policies": [
                  {
                    "fixed": {
                      "adjustment_type": "FIXED_AMOUNT",
                      "adjustment_value": {
                        "percentage": "10.5",
                        "fixed_value": "10"
                      }
                    },
                    "policy_type": "FIXED"
                  }
                ],
                "billing_policy": {
                  "recurring": {
                    "interval": "DAY",
                    "interval_count": 10,
                    "max_cycles": 1,
                    "min_cycles": 1
                  },
                  "policy_type": "RECURRING"
                }
              }
            ],
            "description": "This is a description",
            "merchant_code": "Subscription plan group default name",
            "name": "Subscription plan group default name",
            "options": [
              "[\"delivery every 1 months\", \"delivery every 2 months\", \"delivery every 3 months\"]"
            ],
            "position": 1,
            "product_ids": [
              "[\"16057039432335097907370282\"]"
            ]
          }
        },
        "examples": {
          "Create": {
            "value": {
              "position": 1,
              "product_ids": [
                "16060878916899800731963144"
              ],
              "description": "Thisisadescription",
              "name": "Subscriptionplangroupdefaultname",
              "selling_plans_to_create": [
                {
                  "pricing_policies": [
                    {
                      "fixed": {
                        "adjustment_value": {
                          "fixed_value": "10",
                          "percentage": "10.5"
                        },
                        "adjustment_type": "FIXED_AMOUNT"
                      },
                      "policy_type": "FIXED"
                    }
                  ],
                  "billing_policy": {
                    "policy_type": "RECURRING",
                    "recurring": {
                      "min_cycles": 1,
                      "interval": "DAY",
                      "interval_count": 10,
                      "max_cycles": 1
                    }
                  },
                  "description": "Thisisadescription",
                  "id": "14156200245844372441120009",
                  "name": "deliveryevery1weeks",
                  "options": [
                    "Deliveryevery10days"
                  ],
                  "position": 1
                }
              ],
              "id": "14156200245844372441120009",
              "options": [
                "deliveryevery1months"
              ],
              "app_id": "c41ac9e6736785502d2333d1b1153aca795075c4",
              "merchant_code": "Subscriptionplangroupdefaultname"
            }
          }
        }
      }
    },
    "required": true
  },
  "responses": {
    "200": {
      "description": "For the complete list of codes and messages, see [Http status code](https://developer.shopline.com/docs/apps/api-instructions-for-use/http-status-code.md?lang=en).",
      "headers": {
        "traceId": {
          "description": "A globally unique identifier for the request. It is used to track the request flow throughout the system, allowing for easy location and debugging when issues arise."
        }
      },
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "selling_plan_group": {
                "name": "selling_plan_group",
                "description": "Sales plan group",
                "type": "object",
                "properties": {
                  "name": {
                    "name": "name",
                    "description": "Sales plan group name",
                    "type": "string",
                    "example": "Subscription plan group default name"
                  },
                  "product_ids": {
                    "name": "product_ids",
                    "description": "Product id list for binding",
                    "type": "array",
                    "items": {
                      "name": "product_ids",
                      "description": "Product id list for binding",
                      "type": "string",
                      "example": "[\"16057039432335097907370282\"]"
                    },
                    "example": [
                      "[\"16057039432335097907370282\"]"
                    ]
                  },
                  "app_id": {
                    "name": "app_id",
                    "description": "Sales channel id",
                    "type": "string",
                    "example": "c41ac9e6736785502d2333d1b1153aca795075c3"
                  },
                  "options": {
                    "name": "options",
                    "description": "List of sales program group options",
                    "type": "array",
                    "items": {
                      "name": "options",
                      "description": "List of sales program group options",
                      "type": "string",
                      "example": "[\"delivery every 1 months\", \"delivery every 2 months\", \"delivery every 3 months\"]"
                    },
                    "example": [
                      "[\"delivery every 1 months\", \"delivery every 2 months\", \"delivery every 3 months\"]"
                    ]
                  },
                  "id": {
                    "name": "id",
                    "description": "Sales plan group id",
                    "type": "string",
                    "example": "14156200245844372441120009\n"
                  },
                  "position": {
                    "name": "position",
                    "description": "Display position , the smaller the more front",
                    "type": "integer",
                    "example": 1
                  },
                  "description": {
                    "name": "description",
                    "description": "Show the description to the seller",
                    "type": "string",
                    "example": "This is a description"
                  },
                  "merchant_code": {
                    "name": "merchant_code",
                    "description": "Name of the sales plan group to show to the seller",
                    "type": "string",
                    "example": "Subscription plan group default name"
                  },
                  "selling_plans": {
                    "name": "selling_plans",
                    "description": "Sales program list",
                    "type": "array",
                    "items": {
                      "name": "selling_plans",
                      "description": "Sales program list",
                      "type": "object",
                      "properties": {
                        "billing_policy": {
                          "name": "billing_policy",
                          "description": "Billing strategy",
                          "type": "object",
                          "properties": {
                            "policy_type": {
                              "name": "policy_type",
                              "description": "Strategy type : RECURRING- periodic billing strategy",
                              "type": "string",
                              "example": "RECURRING"
                            },
                            "recurring": {
                              "name": "recurring",
                              "description": "Periodic billing strategy",
                              "type": "object",
                              "properties": {
                                "interval": {
                                  "name": "interval",
                                  "description": "Billing frequency unit : DAY、MONTH、WEEK、YEAR , default MONTH",
                                  "type": "string",
                                  "example": "DAY"
                                },
                                "interval_count": {
                                  "name": "interval_count",
                                  "description": "Billing interval , default is 1",
                                  "type": "integer",
                                  "example": 10
                                },
                                "max_cycles": {
                                  "name": "max_cycles",
                                  "description": "Maximum billing cycle",
                                  "type": "integer",
                                  "example": 1
                                },
                                "min_cycles": {
                                  "name": "min_cycles",
                                  "description": "Minimum billing cycle",
                                  "type": "integer",
                                  "example": 1
                                }
                              },
                              "example": {
                                "min_cycles": 1,
                                "interval": "DAY",
                                "interval_count": 10,
                                "max_cycles": 1
                              }
                            }
                          },
                          "example": {
                            "policy_type": "RECURRING",
                            "recurring": {
                              "interval": "DAY",
                              "interval_count": 10,
                              "max_cycles": 1,
                              "min_cycles": 1
                            }
                          }
                        },
                        "description": {
                          "name": "description",
                          "description": "Description of sales plan to show to buyers",
                          "type": "string",
                          "example": "This is a description"
                        },
                        "id": {
                          "name": "id",
                          "description": "Sales plan id",
                          "type": "string",
                          "example": "14156200245844372441120009"
                        },
                        "name": {
                          "name": "name",
                          "description": "Name of sales plan to show to buyers",
                          "type": "string",
                          "example": "delivery every 1 weeks"
                        },
                        "options": {
                          "name": "options",
                          "description": "List of sales plan options",
                          "type": "array",
                          "items": {
                            "name": "options",
                            "description": "List of sales plan options",
                            "type": "string",
                            "example": "[\"Delivery every 10 days\"]"
                          },
                          "example": [
                            "[\"Delivery every 10 days\"]"
                          ]
                        },
                        "position": {
                          "name": "position",
                          "description": "Display position , the smaller the more front",
                          "type": "integer",
                          "example": 1
                        },
                        "pricing_policies": {
                          "name": "pricing_policies",
                          "description": "Price policy",
                          "type": "array",
                          "items": {
                            "name": "pricing_policies",
                            "description": "Price policy",
                            "type": "object",
                            "properties": {
                              "fixed": {
                                "name": "fixed",
                                "description": "Fixed price policy content",
                                "type": "object",
                                "properties": {
                                  "adjustment_value": {
                                    "name": "adjustment_value",
                                    "description": "Discount value",
                                    "type": "object",
                                    "properties": {
                                      "fixed_value": {
                                        "name": "fixed_value",
                                        "description": "Deduction amount , value range : [ 0 , 99999999999.99] , precision retention of two decimal points , rounding",
                                        "type": "string",
                                        "example": "10"
                                      },
                                      "percentage": {
                                        "name": "percentage",
                                        "description": "Deduction percentage , value range : [ 0 , 100] , precision retention whole number , rounding",
                                        "type": "string",
                                        "example": "10.5"
                                      }
                                    },
                                    "example": {
                                      "percentage": "10.5",
                                      "fixed_value": "10"
                                    }
                                  },
                                  "adjustment_type": {
                                    "name": "adjustment_type",
                                    "description": "Discount type : FIXED_AMOUNT- minus , PERCENTAGE- discount",
                                    "type": "string",
                                    "example": "FIXED_AMOUNT"
                                  }
                                },
                                "example": {
                                  "adjustment_type": "FIXED_AMOUNT",
                                  "adjustment_value": {
                                    "fixed_value": "10",
                                    "percentage": "10.5"
                                  }
                                }
                              },
                              "policy_type": {
                                "name": "policy_type",
                                "description": "Strategy type : FIXED- fixed price strategy",
                                "type": "string",
                                "example": "FIXED"
                              }
                            },
                            "example": {
                              "fixed": {
                                "adjustment_type": "FIXED_AMOUNT",
                                "adjustment_value": {
                                  "fixed_value": "10",
                                  "percentage": "10.5"
                                }
                              },
                              "policy_type": "FIXED"
                            }
                          },
                          "example": [
                            {
                              "fixed": {
                                "adjustment_type": "FIXED_AMOUNT",
                                "adjustment_value": {
                                  "fixed_value": "10",
                                  "percentage": "10.5"
                                }
                              },
                              "policy_type": "FIXED"
                            }
                          ]
                        }
                      },
                      "example": {
                        "name": "delivery every 1 weeks",
                        "options": [
                          "[\"Delivery every 10 days\"]"
                        ],
                        "position": 1,
                        "pricing_policies": [
                          {
                            "fixed": {
                              "adjustment_type": "FIXED_AMOUNT",
                              "adjustment_value": {
                                "percentage": "10.5",
                                "fixed_value": "10"
                              }
                            },
                            "policy_type": "FIXED"
                          }
                        ],
                        "billing_policy": {
                          "policy_type": "RECURRING",
                          "recurring": {
                            "max_cycles": 1,
                            "min_cycles": 1,
                            "interval": "DAY",
                            "interval_count": 10
                          }
                        },
                        "description": "This is a description",
                        "id": "14156200245844372441120009"
                      }
                    },
                    "example": [
                      {
                        "options": [
                          "[\"Delivery every 10 days\"]"
                        ],
                        "position": 1,
                        "pricing_policies": [
                          {
                            "fixed": {
                              "adjustment_type": "FIXED_AMOUNT",
                              "adjustment_value": {
                                "percentage": "10.5",
                                "fixed_value": "10"
                              }
                            },
                            "policy_type": "FIXED"
                          }
                        ],
                        "billing_policy": {
                          "policy_type": "RECURRING",
                          "recurring": {
                            "max_cycles": 1,
                            "min_cycles": 1,
                            "interval": "DAY",
                            "interval_count": 10
                          }
                        },
                        "description": "This is a description",
                        "id": "14156200245844372441120009",
                        "name": "delivery every 1 weeks"
                      }
                    ]
                  }
                },
                "example": {
                  "position": 1,
                  "product_ids": [
                    "[\"16057039432335097907370282\"]"
                  ],
                  "selling_plans": [
                    {
                      "pricing_policies": [
                        {
                          "fixed": {
                            "adjustment_type": "FIXED_AMOUNT",
                            "adjustment_value": {
                              "fixed_value": "10",
                              "percentage": "10.5"
                            }
                          },
                          "policy_type": "FIXED"
                        }
                      ],
                      "billing_policy": {
                        "policy_type": "RECURRING",
                        "recurring": {
                          "interval_count": 10,
                          "max_cycles": 1,
                          "min_cycles": 1,
                          "interval": "DAY"
                        }
                      },
                      "description": "This is a description",
                      "id": "14156200245844372441120009",
                      "name": "delivery every 1 weeks",
                      "options": [
                        "[\"Delivery every 10 days\"]"
                      ],
                      "position": 1
                    }
                  ],
                  "name": "Subscription plan group default name",
                  "options": [
                    "[\"delivery every 1 months\", \"delivery every 2 months\", \"delivery every 3 months\"]"
                  ],
                  "id": "14156200245844372441120009\n",
                  "merchant_code": "Subscription plan group default name",
                  "app_id": "c41ac9e6736785502d2333d1b1153aca795075c3",
                  "description": "This is a description"
                }
              }
            },
            "example": {
              "selling_plan_group": {
                "selling_plans": [
                  {
                    "position": 1,
                    "pricing_policies": [
                      {
                        "fixed": {
                          "adjustment_value": {
                            "fixed_value": "10",
                            "percentage": "10.5"
                          },
                          "adjustment_type": "FIXED_AMOUNT"
                        },
                        "policy_type": "FIXED"
                      }
                    ],
                    "billing_policy": {
                      "recurring": {
                        "interval_count": 10,
                        "max_cycles": 1,
                        "min_cycles": 1,
                        "interval": "DAY"
                      },
                      "policy_type": "RECURRING"
                    },
                    "description": "This is a description",
                    "id": "14156200245844372441120009",
                    "name": "delivery every 1 weeks",
                    "options": [
                      "[\"Delivery every 10 days\"]"
                    ]
                  }
                ],
                "name": "Subscription plan group default name",
                "options": [
                  "[\"delivery every 1 months\", \"delivery every 2 months\", \"delivery every 3 months\"]"
                ],
                "product_ids": [
                  "[\"16057039432335097907370282\"]"
                ],
                "merchant_code": "Subscription plan group default name",
                "app_id": "c41ac9e6736785502d2333d1b1153aca795075c3",
                "position": 1,
                "description": "This is a description",
                "id": "14156200245844372441120009\n"
              }
            }
          },
          "examples": {
            "Create": {
              "value": {
                "selling_plan_group": {
                  "name": "Subscriptionplangroupdefaultname",
                  "selling_plans": [
                    {
                      "id": "14160881232364316992693144",
                      "name": "deliveryevery1weeks",
                      "options": [
                        "Deliveryevery10days"
                      ],
                      "position": 1,
                      "pricing_policies": [
                        {
                          "fixed": {
                            "adjustment_type": "FIXED_AMOUNT",
                            "adjustment_value": {
                              "fixed_value": "10.00"
                            }
                          },
                          "policy_type": "FIXED"
                        }
                      ],
                      "billing_policy": {
                        "policy_type": "RECURRING",
                        "recurring": {
                          "min_cycles": 1,
                          "interval": "DAY",
                          "interval_count": 10,
                          "max_cycles": 1
                        }
                      },
                      "description": "Thisisadescription"
                    }
                  ],
                  "product_ids": [
                    "16060878916899800731963144"
                  ],
                  "merchant_code": "Subscriptionplangroupdefaultname",
                  "options": [
                    "deliveryevery1months"
                  ],
                  "description": "Thisisadescription",
                  "position": 1,
                  "id": "14060881232364316992673144",
                  "app_id": "111afe2f9baceb93004af92b1276582619f1db26"
                }
              }
            }
          }
        }
      }
    },
    "401": {
      "headers": {
        "traceId": {
          "description": "A globally unique identifier for the request. It is used to track the request flow throughout the system, allowing for easy location and debugging when issues arise."
        }
      },
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "errors": {
                "description": "Error message. ",
                "type": "string"
              }
            },
            "required": [
              "errors"
            ]
          }
        }
      }
    },
    "429": {
      "headers": {
        "traceId": {
          "description": "A globally unique identifier for the request. It is used to track the request flow throughout the system, allowing for easy location and debugging when issues arise."
        }
      },
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "errors": {
                "description": "Error message. ",
                "type": "string"
              }
            },
            "required": [
              "errors"
            ]
          }
        }
      }
    }
  },
  "security": [
    {
      "oauth2": []
    }
  ],
  "method": "post",
  "path": "/selling_plan_groups/selling_plan_group.json",
  "servers": [
    {
      "url": "https://{handle}.myshopline.com/admin/openapi",
      "variables": {
        "handle": {
          "default": "openapiceshidianpu",
          "description": "`handle` : The store's unique identifier, which is the prefix of the store's domain name. For example, if a store's domain name is `open001.myshopline.com` , the store handle is `open001` ."
        }
      }
    }
  ],
  "info": {
    "title": "Create a sales plan group",
    "version": "v20270301"
  },
  "authIndexes": [
    "write_selling_plan_group"
  ]
}
```