action envoice_order_api_new { label: "Create an order" provider: envoice method: POST path: "/api/order/new" encoding: form input: { type: "object" properties: { AfterPaymentDescription: { type: "string" description: "After payment description" } Attachments: { type: "array" description: "List of Order attachments" items: { type: "object" properties: { Link: { type: "string" description: "Link to the file" } ObfuscatedFileName: { type: "string" description: "Hashed file name to avoid url wildguessing" } OriginalFileName: { type: "string" description: "Name of the file" } Size: { type: "integer" format: "int64" description: "File size number in bytes" } Type: { type: "string" description: "Type of the link (Attached or external)" enum: ["External", "Uploaded"] } } } } CouponCode: { type: "string" description: "Coupon to apply in order to get the discount" } CurrencyId: { type: "integer" format: "int32" description: "Foreign key Currency" } Description: { type: "string" description: "Product description" } DiscountAmount: { type: "number" format: "double" description: "Discount amount" } Items: { type: "array" description: "List of Order items" items: { type: "object" properties: { Cost: { type: "number" format: "double" description: "Work item cost" } Description: { type: "string" description: "General description" } ProductItemId: { type: "integer" format: "int32" description: "Foreign key product item id" } Quantity: { type: "number" format: "double" description: "Work item quantity" } ReferenceId: { type: "string" description: "Order SKU" } SubTotalAmount: { type: "number" format: "double" description: "Subtotal amount of product" } TaxAmount: { type: "number" format: "double" description: "Tax amount" } TaxId: { type: "integer" format: "int32" description: "Foreign key Tax id" } TaxPercentage: { type: "number" format: "double" description: "Tax percentage" } TotalAmount: { type: "number" format: "double" description: "Total amount of product" } WorkTypeId: { type: "integer" format: "int32" description: "Foreign key work type id" } } } } Name: { type: "string" description: "Product alias" } Note: { type: "string" description: "Customer note to seller" } OrderBillingDetails: { type: "object" properties: { Address: { type: "string" description: "Client street and number" } CountryId: { type: "integer" format: "int32" description: "Client country id" } Email: { type: "string" description: "Client email" } Name: { type: "string" description: "Client name" } PhoneNumber: { type: "string" description: "Client phone number" } } } OrderShippingDetails: { type: "object" properties: { Address: { type: "string" description: "Client street and number" } CountryId: { type: "integer" format: "int32" description: "Client country id" } Email: { type: "string" description: "Client email" } Name: { type: "string" description: "Client name" } PhoneNumber: { type: "string" description: "Client phone number" } } } ProductId: { type: "integer" format: "int32" description: "Product id" } Referral: { type: "string" description: "Represent the referral for this order" } ShippingAmount: { type: "number" format: "double" description: "Cost for shipping the product" } ShippingDescription: { type: "string" description: "Client instructions for shipping" } Status: { type: "string" description: "Order status" enum: ["PendingPayment", "Processing", "Shipped", "Completed", "OnHold", "Cancelled", "Refunded", "Failed"] } SubTotalAmount: { type: "number" format: "double" description: "Sub total amount" } TaxAmount: { type: "number" format: "double" description: "Tax amount" } TotalAmount: { type: "number" format: "double" description: "Total amount" } WhatHappensNextDescription: { type: "string" description: "What happens next description" } "x-auth-key": { type: "string" } "x-auth-secret": { type: "string" } } required: ["x-auth-key", "x-auth-secret"] additionalProperties: false } output: { type: "integer" format: "int32" } }