FormNord: bestill for brukeren
create_orderPlace an order for a quote on the user's behalf and get a payment link. Only call this after the user has given you their details and explicitly confirmed that they accept the terms (https://formnord.no/print/vilkar) and have the right to use the model. Returns payment_url, which the user opens to pay with Vipps or card (the order is not paid until they do). Calling it again for the same quote returns the same order. Delivery address must be in Norway. If kode is price_pending, slicing is still confirming the price: wait a minute (or poll get_quote_status) and call again.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| customer | Yes | ||
| quote_id | Yes | tilbud_id from get_print_quote. | |
| accepted_terms | Yes | true only if the user explicitly accepted https://formnord.no/print/vilkar. | |
| confirmed_rights | Yes | true only if the user confirmed they have the right to use and print the model. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| kode | No | Machine-readable error code when ok is false. | |
| grunn | No | Human-readable reason (Norwegian) when ok is false. | |
| order_id | No | ||
| total_nok | No | ||
| payment_url | No | The user opens this to pay with Vipps or card. | |
| already_ordered | No |