action api2cart_order_refund_add { label: "OrderRefundAdd" description: "Add a refund to the order." provider: api2cart method: POST path: "/order.refund.add.json" encoding: json input: { type: "object" properties: { date: { type: "string" description: "Specifies an order creation date in format Y-m-d H:i:s" } fee_price: { type: "number" description: "Specifies refund's fee price" } is_online: { type: "boolean" description: "Indicates whether refund type is online" } item_restock: { type: "boolean" description: "Boolean, whether or not to add the line items back to the store inventory." } items: { type: "array" description: "Defines items in the order that will be refunded" items: { type: "object" properties: { order_product_id: { type: "string" } price: { type: "number" } quantity: { type: "integer" } } } } message: { type: "string" description: "Refund reason, or some else message which assigned to refund." } order_id: { type: "string" description: "Defines the order for which the refund will be created." } send_notifications: { type: "boolean" description: "Send notifications to customer after refund was created" } shipping_price: { type: "number" description: "Defines refund shipping amount." } total_price: { type: "number" description: "Defines order refund amount." } } } output: { type: "object" properties: { result: { type: "object" properties: { refund_id: { type: "string" } } } return_code: { type: "integer" } return_message: { type: "string" } } } }