# Fourthwall

> Read shop orders, products, members and donations, and watch Fourthwall webhook events.

App · 20 actions. Web page: https://docs.lodol.com/docs/integrations/fourthwall

## Actions

### Get donation

Get donation.

**Inputs**

- Donation ID (`donation_id`, text, required): Donation ID from List donations.

**Outputs**

- `data` (object): The response from Fourthwall.

**Example output**

```json
{
  "data": {
    "amounts": {
      "total": {
        "currency": "example",
        "value": 1
      }
    },
    "createdAt": "example",
    "email": "example",
    "id": "example",
    "message": "example",
    "shopId": "example",
    "status": "example",
    "updatedAt": "example",
    "username": "example"
  }
}
```

### Get order by order number

Get order by order number.

**Inputs**

- Order number (`order_number`, text, required): Order number shown to the customer.

**Outputs**

- `data` (object): The response from Fourthwall.

**Example output**

```json
{
  "data": {
    "amounts": {
      "discount": {
        "currency": "example",
        "value": 1
      },
      "donation": {
        "currency": "example",
        "value": 1
      },
      "giftCards": [
        {
          "amountUsed": {},
          "code": "example"
        }
      ],
      "shipping": {
        "currency": "example",
        "value": 1
      },
      "subtotal": {
        "currency": "example",
        "value": 1
      },
      "tax": {
        "currency": "example",
        "value": 1
      },
      "total": {
        "currency": "example",
        "value": 1
      }
    },
    "billing": {
      "address": {
        "address1": "example",
        "address2": "example",
        "city": "example",
        "country": "example",
        "name": "example",
        "phone": "example",
        "state": "example",
        "zip": "example"
      }
    },
    "checkoutId": "example",
    "createdAt": "example",
    "email": "example",
    "emailMarketingOptIn": true,
    "friendlyId": "example",
    "id": "example",
    "message": "example",
    "metadata": {},
    "offers": [
      {
        "description": "example",
        "id": "example",
        "name": "example",
        "primaryImage": {
          "height": 1,
          "id": "example",
          "transformedUrl": "example",
          "url": "example",
          "width": 1
        },
        "slug": "example",
        "variant": {
          "attributes": {},
          "compareAtPrice": {},
          "cost": {},
          "dimensions": {},
          "id": "example",
          "name": "example",
          "price": {},
          "quantity": 1,
          "sku": "example",
          "unitCost": {},
          "unitPrice": {},
          "weight": {}
        }
      }
    ],
    "promotionId": "example",
    "shipping": {
      "address": {
        "address1": "example",
        "address2": "example",
        "city": "example",
        "country": "example",
        "name": "example",
        "phone": "example",
        "state": "example",
        "zip": "example"
      }
    },
    "shopId": "example",
    "source": {},
    "status": "example",
    "trackingParams": {
      "fbc": "example",
      "fbp": "example",
      "utm_campaign": "example",
      "utm_content": "example",
      "utm_medium": "example",
      "utm_source": "example",
      "utm_term": "example"
    },
    "updatedAt": "example",
    "username": "example"
  }
}
```

### Get product collection

Get product collection.

**Inputs**

- Collection (`collection`, text, required): Collection ID or slug.

**Outputs**

- `data` (object): The response from Fourthwall.

**Example output**

```json
{
  "data": {
    "available": true,
    "description": "example",
    "id": "example",
    "name": "example",
    "offerIds": [
      "example"
    ],
    "shopId": "example",
    "slug": "example",
    "state": {}
  }
}
```

### Get product inventory

Get product inventory.

**Inputs**

- Product (`product_id`, text, required): Product from your shop.

**Outputs**

- `data` (object): The response from Fourthwall.

**Example output**

```json
{
  "data": {
    "page": 1,
    "results": [
      {
        "createdAt": "example",
        "quantity": 1,
        "updatedAt": "example",
        "variantId": "example"
      }
    ],
    "size": 1,
    "total": 1,
    "totalPages": 1
  }
}
```

### Get shop contact details

Get shop contact details.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Fourthwall.

**Example output**

```json
{
  "data": {
    "contactEmail": "example",
    "customerSupportEmail": "example",
    "domain": "example",
    "location": {
      "address1": "example",
      "address2": "example",
      "city": "example",
      "country": "example",
      "name": "example",
      "state": "example",
      "zip": "example"
    },
    "phone": "example",
    "shopEmail": "example",
    "shopName": "example",
    "transactionalEmail": "example"
  }
}
```

### Get shop member

Get shop member.

**Inputs**

- Member ID (`member_id`, text, required): Member ID from List shop members.

**Outputs**

- `data` (object): The response from Fourthwall.

**Example output**

```json
{
  "data": {
    "createdAt": "example",
    "email": "example",
    "id": "example",
    "nickname": "example",
    "subscription": {}
  }
}
```

### Get shop order

Get shop order.

**Inputs**

- Order ID (`order_id`, text, required): Order ID from List shop orders.

**Outputs**

- `data` (object): The response from Fourthwall.

**Example output**

```json
{
  "data": {
    "amounts": {
      "discount": {
        "currency": "example",
        "value": 1
      },
      "donation": {
        "currency": "example",
        "value": 1
      },
      "giftCards": [
        {
          "amountUsed": {},
          "code": "example"
        }
      ],
      "shipping": {
        "currency": "example",
        "value": 1
      },
      "subtotal": {
        "currency": "example",
        "value": 1
      },
      "tax": {
        "currency": "example",
        "value": 1
      },
      "total": {
        "currency": "example",
        "value": 1
      }
    },
    "billing": {
      "address": {
        "address1": "example",
        "address2": "example",
        "city": "example",
        "country": "example",
        "name": "example",
        "phone": "example",
        "state": "example",
        "zip": "example"
      }
    },
    "checkoutId": "example",
    "createdAt": "example",
    "email": "example",
    "emailMarketingOptIn": true,
    "friendlyId": "example",
    "id": "example",
    "message": "example",
    "metadata": {},
    "offers": [
      {
        "description": "example",
        "id": "example",
        "name": "example",
        "primaryImage": {
          "height": 1,
          "id": "example",
          "transformedUrl": "example",
          "url": "example",
          "width": 1
        },
        "slug": "example",
        "variant": {
          "attributes": {},
          "compareAtPrice": {},
          "cost": {},
          "dimensions": {},
          "id": "example",
          "name": "example",
          "price": {},
          "quantity": 1,
          "sku": "example",
          "unitCost": {},
          "unitPrice": {},
          "weight": {}
        }
      }
    ],
    "promotionId": "example",
    "shipping": {
      "address": {
        "address1": "example",
        "address2": "example",
        "city": "example",
        "country": "example",
        "name": "example",
        "phone": "example",
        "state": "example",
        "zip": "example"
      }
    },
    "shopId": "example",
    "source": {},
    "status": "example",
    "trackingParams": {
      "fbc": "example",
      "fbp": "example",
      "utm_campaign": "example",
      "utm_content": "example",
      "utm_medium": "example",
      "utm_source": "example",
      "utm_term": "example"
    },
    "updatedAt": "example",
    "username": "example"
  }
}
```

### Get shop product

Get shop product.

**Inputs**

- Product (`product_id`, text, required): Product from your shop.

**Outputs**

- `data` (object): The response from Fourthwall.

**Example output**

```json
{
  "data": {
    "access": {},
    "additionalInformation": {
      "guaranteeAndReturns": "example",
      "moreDetails": "example",
      "sizeAndFit": "example"
    },
    "createdAt": "example",
    "description": "example",
    "digitalFiles": [
      {
        "fileSize": "example",
        "mediaType": "example",
        "name": "example",
        "uri": "example"
      }
    ],
    "id": "example",
    "images": [
      {
        "height": 1,
        "id": "example",
        "transformedUrl": "example",
        "url": "example",
        "width": 1
      }
    ],
    "name": "example",
    "sizeGuide": {
      "description": "example",
      "fileUrl": "example",
      "fitGuideDescription": "example",
      "fitGuideUrls": [
        "example"
      ],
      "previewUrl": "example"
    },
    "slug": "example",
    "state": {},
    "thumbnailImage": {
      "height": 1,
      "id": "example",
      "transformedUrl": "example",
      "url": "example",
      "width": 1
    },
    "type": "example",
    "updatedAt": "example",
    "variants": [
      {
        "attributes": {
          "color": {},
          "description": "example",
          "size": {}
        },
        "compareAtPrice": {
          "currency": "example",
          "value": 1
        },
        "creatorDeclaredCost": {
          "currency": "example",
          "value": 1
        },
        "dimensions": {
          "height": 1,
          "length": 1,
          "unit": "example",
          "width": 1
        },
        "id": "example",
        "images": [
          {}
        ],
        "name": "example",
        "sku": "example",
        "stock": {},
        "thumbnailImage": {
          "height": 1,
          "id": "example",
          "transformedUrl": "example",
          "url": "example",
          "width": 1
        },
        "unitCost": {
          "currency": "example",
          "value": 1
        },
        "unitPrice": {
          "currency": "example",
          "value": 1
        },
        "weight": {
          "unit": "example",
          "value": 1
        }
      }
    ]
  }
}
```

### Get webhook event

Get webhook event.

**Inputs**

- Event ID (`event_id`, text, required): Event ID from List webhook events.

**Outputs**

- `data` (object): The response from Fourthwall.

**Example output**

```json
{
  "data": {
    "apiVersion": "example",
    "body": "example",
    "createdAt": "example",
    "error": "example",
    "id": "example",
    "state": "example",
    "testMode": true,
    "type": "example",
    "updatedAt": "example",
    "url": "example"
  }
}
```

### Get your Fourthwall shop

Get your Fourthwall shop.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Fourthwall.

**Example output**

```json
{
  "data": {
    "domain": "example",
    "id": "example",
    "name": "example",
    "publicDomain": "example",
    "status": "example"
  }
}
```

### List donations

List donations.

**Inputs**

- Page (`page`, number): Page number to return. From 0 to 10000.
- Size (`size`, number): Maximum number of results on the page. From 1 to 100.

**Outputs**

- `data` (object): The response from Fourthwall.

**Example output**

```json
{
  "data": {
    "page": 1,
    "results": [
      {
        "amounts": {
          "total": {}
        },
        "createdAt": "example",
        "email": "example",
        "id": "example",
        "message": "example",
        "shopId": "example",
        "status": "example",
        "updatedAt": "example",
        "username": "example"
      }
    ],
    "size": 1,
    "total": 1,
    "totalPages": 1
  }
}
```

### List membership tiers

List membership tiers.

**Inputs**: None.

**Outputs**

- `data` (list): The response from Fourthwall.

**Example output**

```json
{
  "data": [
    {
      "id": "example",
      "imageUrl": "example",
      "name": "example",
      "variants": [
        {
          "amount": {},
          "id": "example",
          "interval": "example",
          "offerId": "example",
          "tierId": "example"
        }
      ]
    }
  ]
}
```

### List product collections

List product collections.

**Inputs**

- Page (`page`, number): Page number to return. From 0 to 10000.
- Size (`size`, number): Maximum number of results on the page. From 1 to 100.
- Search (`search`, text): Words to match against collections.

**Outputs**

- `data` (object): The response from Fourthwall.

**Example output**

```json
{
  "data": {
    "page": 1,
    "results": [
      {
        "available": true,
        "description": "example",
        "id": "example",
        "name": "example",
        "shopId": "example",
        "slug": "example",
        "state": {}
      }
    ],
    "size": 1,
    "total": 1,
    "totalPages": 1
  }
}
```

### List products in a collection

List products in a collection.

**Inputs**

- Collection (`collection`, text, required): Collection from your shop.
- Page (`page`, number): Page number to return. From 0 to 10000.
- Size (`size`, number): Maximum number of results on the page. From 1 to 100.
- Status (`status`, text): Availability of products to show. One of: `PUBLIC`, `AVAILABLE`, `SOLD_OUT` (Sold out), `HIDDEN`, `ARCHIVED`.

**Outputs**

- `data` (object): The response from Fourthwall.

**Example output**

```json
{
  "data": {
    "page": 1,
    "results": [
      {
        "access": {},
        "additionalInformation": {
          "guaranteeAndReturns": "example",
          "moreDetails": "example",
          "sizeAndFit": "example"
        },
        "createdAt": "example",
        "description": "example",
        "digitalFiles": [
          {}
        ],
        "id": "example",
        "images": [
          {}
        ],
        "name": "example",
        "sizeGuide": {
          "description": "example",
          "fileUrl": "example",
          "fitGuideDescription": "example",
          "fitGuideUrls": [
            {}
          ],
          "previewUrl": "example"
        },
        "slug": "example",
        "state": {},
        "thumbnailImage": {
          "height": 1,
          "id": "example",
          "transformedUrl": "example",
          "url": "example",
          "width": 1
        },
        "type": "example",
        "updatedAt": "example",
        "variants": [
          {}
        ]
      }
    ],
    "size": 1,
    "total": 1,
    "totalPages": 1
  }
}
```

### List shop members

List shop members.

**Inputs**

- Page (`page`, number): Page number to return. From 0 to 10000.
- Size (`size`, number): Maximum number of results on the page. From 1 to 100.

**Outputs**

- `data` (object): The response from Fourthwall.

**Example output**

```json
{
  "data": {
    "page": 1,
    "results": [
      {
        "createdAt": "example",
        "email": "example",
        "id": "example",
        "nickname": "example",
        "subscription": {}
      }
    ],
    "size": 1,
    "total": 1,
    "totalPages": 1
  }
}
```

### List shop orders

List shop orders.

**Inputs**

- Page (`page`, number): Page number to return. From 0 to 10000.
- Size (`size`, number): Maximum number of results on the page. From 1 to 100.
- Email (`email`, text): Filter by the customer’s email.
- Start time (`start_time`, date and time): Only orders created after this time.
- End time (`end_time`, date and time): Only orders created before this time.
- Status (`status`, list): Order statuses to include. One or more of: `CONFIRMED`, `PARTIALLY_IN_PRODUCTION` (Partially in production), `IN_PRODUCTION` (In production), `PARTIALLY_SHIPPED` (Partially shipped), `SHIPPED`, `PARTIALLY_DELIVERED` (Partially delivered), `DELIVERED`, `CANCELLED`, `COMPLETED`.

**Outputs**

- `data` (object): The response from Fourthwall.

**Example output**

```json
{
  "data": {
    "page": 1,
    "results": [
      {
        "amounts": {
          "discount": {},
          "donation": {},
          "giftCards": [
            {}
          ],
          "shipping": {},
          "subtotal": {},
          "tax": {},
          "total": {}
        },
        "billing": {
          "address": {}
        },
        "checkoutId": "example",
        "createdAt": "example",
        "email": "example",
        "emailMarketingOptIn": true,
        "friendlyId": "example",
        "id": "example",
        "message": "example",
        "metadata": {},
        "offers": [
          {}
        ],
        "promotionId": "example",
        "shipping": {
          "address": {}
        },
        "shopId": "example",
        "source": {},
        "status": "example",
        "trackingParams": {
          "fbc": "example",
          "fbp": "example",
          "utm_campaign": "example",
          "utm_content": "example",
          "utm_medium": "example",
          "utm_source": "example",
          "utm_term": "example"
        },
        "updatedAt": "example",
        "username": "example"
      }
    ],
    "size": 1,
    "total": 1,
    "totalPages": 1
  }
}
```

### List shop products

List shop products.

**Inputs**

- Page (`page`, number): Page number to return. From 0 to 10000.
- Size (`size`, number): Maximum number of results on the page. From 1 to 100.
- Search (`search`, text): Words to match against products.

**Outputs**

- `data` (object): The response from Fourthwall.

**Example output**

```json
{
  "data": {
    "page": 1,
    "results": [
      {
        "access": {},
        "additionalInformation": {
          "guaranteeAndReturns": "example",
          "moreDetails": "example",
          "sizeAndFit": "example"
        },
        "createdAt": "example",
        "description": "example",
        "digitalFiles": [
          {}
        ],
        "id": "example",
        "images": [
          {}
        ],
        "name": "example",
        "sizeGuide": {
          "description": "example",
          "fileUrl": "example",
          "fitGuideDescription": "example",
          "fitGuideUrls": [
            {}
          ],
          "previewUrl": "example"
        },
        "slug": "example",
        "state": {},
        "thumbnailImage": {
          "height": 1,
          "id": "example",
          "transformedUrl": "example",
          "url": "example",
          "width": 1
        },
        "type": "example",
        "updatedAt": "example",
        "variants": [
          {}
        ]
      }
    ],
    "size": 1,
    "total": 1,
    "totalPages": 1
  }
}
```

### List shop reports

List shop reports.

**Inputs**: None.

**Outputs**

- `data` (list): The response from Fourthwall.

**Example output**

```json
{
  "data": [
    {
      "availablePrecisions": [
        "example"
      ],
      "columns": [
        {
          "key": "example",
          "label": "example",
          "type": "example"
        }
      ],
      "id": "example",
      "name": "example"
    }
  ]
}
```

### List webhook events

List webhook events.

**Inputs**

- Page (`page`, number): Page number to return. From 0 to 10000.
- Size (`size`, number): Maximum number of results on the page. From 1 to 100.
- Event types (`event_types`, list): Webhook event types to include. One or more of: `ORDER_PLACED` (Order placed), `ORDER_UPDATED` (Order updated), `GIFT_PURCHASE` (Gift purchase), `PRODUCT_CREATED` (Product created), `PRODUCT_UPDATED` (Product updated), `DONATION`, `SUBSCRIPTION_PURCHASED` (Subscription purchased), `SUBSCRIPTION_EXPIRED` (Subscription expired), `SUBSCRIPTION_CHANGED` (Subscription changed), `NEWSLETTER_SUBSCRIBED` (Newsletter subscribed), and 19 more.

**Outputs**

- `data` (object): The response from Fourthwall.

**Example output**

```json
{
  "data": {
    "page": 1,
    "results": [
      {
        "apiVersion": "example",
        "body": "example",
        "createdAt": "example",
        "error": "example",
        "id": "example",
        "state": "example",
        "testMode": true,
        "type": "example",
        "updatedAt": "example",
        "url": "example"
      }
    ],
    "size": 1,
    "total": 1,
    "totalPages": 1
  }
}
```

### List webhook subscriptions

List webhook subscriptions.

**Inputs**

- Page (`page`, number): Page number to return. From 0 to 10000.
- Size (`size`, number): Maximum number of results on the page. From 1 to 100.

**Outputs**

- `data` (object): The response from Fourthwall.

**Example output**

```json
{
  "data": {
    "page": 1,
    "results": [
      {
        "allowedTypes": [
          "example"
        ],
        "apiVersion": "example",
        "id": "example",
        "url": "example"
      }
    ],
    "size": 1,
    "total": 1,
    "totalPages": 1
  }
}
```
