> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Unfulfill order

> Returns a fulfilled ecommerce order to unfulfilled state.

`webflow.unfulfillOrder` returns a fulfilled ecommerce order to unfulfilled state.

## Example

```ts automations/webflow-unfulfill-order.automation.ts theme={null}
import { automation, onDashboardRun } from "automate.ax"
import { webflow } from "automate.ax/webflow"

export default automation("Unfulfill order", () => {
  onDashboardRun({ title: "Unfulfill order" })

  webflow.unfulfillOrder({
    siteId: "site-id",
    orderId: "order-id",
  })
})
```

## Inputs

Every input accepts a compatible signal. It requires the `ecommerce:write` OAuth scope.

| Field     | Type     | Required | Description       |
| --------- | -------- | -------- | ----------------- |
| `siteId`  | `string` | Yes      | Webflow site ID.  |
| `orderId` | `string` | Yes      | Webflow order ID. |

## Output

Returns an object with the fields below. Automate.ax converts provider `Date` values to ISO 8601 strings.

| Field                 | Type                               | Description                          |
| --------------------- | ---------------------------------- | ------------------------------------ |
| `orderId`             | `string`                           | Webflow order ID.                    |
| `status`              | `Webflow.OrderStatus`              | Webflow `status` value.              |
| `comment`             | `string`                           | Webflow `comment` value.             |
| `orderComment`        | `string`                           | Webflow `orderComment` value.        |
| `acceptedOn`          | `string`                           | Webflow `acceptedOn` value.          |
| `fulfilledOn`         | `string`                           | Webflow `fulfilledOn` value.         |
| `refundedOn`          | `string`                           | Webflow `refundedOn` value.          |
| `disputedOn`          | `string`                           | Webflow `disputedOn` value.          |
| `disputeUpdatedOn`    | `string`                           | Webflow `disputeUpdatedOn` value.    |
| `disputeLastStatus`   | `Webflow.OrderDisputeLastStatus`   | Webflow `disputeLastStatus` value.   |
| `customerPaid`        | `Webflow.OrderPrice`               | Webflow `customerPaid` value.        |
| `netAmount`           | `Webflow.OrderPrice`               | Webflow `netAmount` value.           |
| `applicationFee`      | `Webflow.OrderPrice`               | Webflow `applicationFee` value.      |
| `allAddresses`        | `Webflow.OrderAddress[]`           | Webflow `allAddresses` value.        |
| `shippingAddress`     | `Webflow.OrderShippingAddress`     | Webflow `shippingAddress` value.     |
| `billingAddress`      | `Webflow.OrderBillingAddress`      | Webflow `billingAddress` value.      |
| `shippingProvider`    | `string`                           | Webflow `shippingProvider` value.    |
| `shippingTracking`    | `string`                           | Webflow `shippingTracking` value.    |
| `shippingTrackingUrl` | `string`                           | Webflow `shippingTrackingUrl` value. |
| `customerInfo`        | `Webflow.OrderCustomerInfo`        | Webflow `customerInfo` value.        |
| `purchasedItems`      | `Webflow.OrderPurchasedItem[]`     | Webflow `purchasedItems` value.      |
| `purchasedItemsCount` | `number`                           | Webflow `purchasedItemsCount` value. |
| `stripeDetails`       | `Webflow.StripeDetails`            | Webflow `stripeDetails` value.       |
| `stripeCard`          | `Webflow.StripeCard`               | Webflow `stripeCard` value.          |
| `paypalDetails`       | `Webflow.PaypalDetails`            | Webflow `paypalDetails` value.       |
| `customData`          | `Record<string, Encodable>[]`      | Webflow `customData` value.          |
| `metadata`            | `Webflow.OrderMetadata`            | Webflow `metadata` value.            |
| `isCustomerDeleted`   | `boolean`                          | Webflow `isCustomerDeleted` value.   |
| `isShippingRequired`  | `boolean`                          | Webflow `isShippingRequired` value.  |
| `hasDownloads`        | `boolean`                          | Webflow `hasDownloads` value.        |
| `paymentProcessor`    | `string`                           | Webflow `paymentProcessor` value.    |
| `totals`              | `Webflow.OrderTotals`              | Webflow `totals` value.              |
| `downloadFiles`       | `Webflow.OrderDownloadFilesItem[]` | Webflow `downloadFiles` value.       |
