create_order
Create an order in Eduframe by specifying the catalog variant and creator. Optionally include cost, payment method, account, and student enrollment details.
Instructions
Create an order.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"catalog_variant_id": "<catalog_variant_id>",
"creator_id": "<creator_id>"
},
"name": "create_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cost | No | Decimal representing the value of the order | |
| cost_scheme | No | The cost schema that the payment will follow for the specified order. | |
| catalog_variant_id | Yes | Unique identifier of the orders CatalogVariant. | |
| creator_id | Yes | Unique identifier of the orders Creator (User). | |
| account_id | No | The unique identifier associated with the orders Account. If not provided, the system will default to using the personal account. | |
| planned_course_id | No | *DEPRECATED*: Use catalog_variant_id instead. Unique identifier of the order's planned course. | |
| payment_method_id | No | Unique identifier of the orders PaymentMethod. | |
| student_ids | No | Array of student ids. A non-empty array is required if there are no student ids specified in the enrollments_attributes. | |
| payment_option_id | No | Unique identifier of the orders PaymentOption. | |
| custom | No | The custom properties of the order. | |
| approve | No | Optional: If the order should be approved or not. When omitted will default to false | |
| label_ids | No | Optional: Assign labels to the order. | |
| referral_id | No | Optional: Identifier of the referral. |