create_order
Create orders in Eduframe by specifying catalog variants, student IDs, payment details, and cost schemes to process educational enrollments.
Instructions
Create an order.
Input Schema
TableJSON 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. |