Fourthwall APIs (v1.0)
Download OpenAPI specification:Download
We are excited to offer you access to our Open API, allowing you to integrate our services seamlessly with your applications.
However, kindly note that the creation of API credentials is reserved for users with the SUPER ADMIN role for security reasons.
To obtain the required credentials, please follow these steps:
- Log in to your shop dashboard with your SUPER ADMIN account.
- In the left panel, navigate to the "Settings" section.
- Click on the "For Developers" tab.
Creating API User
If API credentials haven't been generated yet, you will find a "Create API User" button under the "Open API" section. Click on it, and shortly after, the Username and Password for the Open API User will be provided.
Important Security Note
Keep your API credentials confidential and do not share them with unauthorized personnel. These credentials grant access to sensitive data and actions within our system. Always use HTTPS/SSL for encrypted communication when making API requests.
To ensure fair usage and maintain optimal system performance, we have implemented rate limiting for API requests. This means that each user is allowed a maximum of 100 requests within a 10-second rolling window.
What it means for you:
- You can make up to 100 requests within any 10-second period.
- If you exceed this limit, any additional requests will be delayed until the 10-second window is reset.
Please plan your API usage accordingly to avoid interruptions and ensure the smooth functioning of our services.
Need to check webhooks? The documentation provides comprehensive guidance.
If you're just looking to read public product information, you do not need to use Open API. All sites publish a Merchant Center Feed under an RSS address:
{$shop_url}/.well-known/merchant-center/rss.xml
Example: for https://shop.fourthwall.com the RSS feed url would be https://shop.fourthwall.com/.well-known/merchant-center/rss.xml
Set streaming status to started
Sets streaming status to started for specified services
Authorizations:
Request Body schema: application/jsonrequired
required | Array of com.fourthwall.app.openapi.StreamingStartedRequest$Service$Twitch (object) | ||||||||
Array One of
|
Responses
Request samples
- Payload
{- "services": [
- {
- "type": "TWITCH",
- "broadcasterId": "string",
- "broadcasterLogin": "string",
- "thumbnailUrl": "string"
}
]
}
Response samples
- 200
{- "shopId": "string",
- "services": [
- {
- "type": "TWITCH",
- "status": "ONLINE",
- "broadcasterId": "string",
- "broadcasterLogin": "string",
- "thumbnailUrl": "string"
}
]
}
Set streaming status to ended
Sets streaming status to ended for specified services
Authorizations:
Request Body schema: application/jsonrequired
services required | Array of strings Items Value: "TWITCH" |
Responses
Request samples
- Payload
{- "services": [
- "TWITCH"
]
}
Response samples
- 200
{- "shopId": "string",
- "services": [
- {
- "type": "TWITCH",
- "status": "ONLINE",
- "broadcasterId": "string",
- "broadcasterLogin": "string",
- "thumbnailUrl": "string"
}
]
}
Update product (offer) availability by id
Updates a product (offer) availability
Authorizations:
path Parameters
productId required | string Example: 00aa4abd-5778-4199-8161-0b49b2f212e5 |
Request Body schema: application/jsonrequired
available required | boolean |
Responses
Request samples
- Payload
{- "available": true
}
Response samples
- 200
{- "id": "00aa4abd-5778-4199-8161-0b49b2f212e5",
- "name": "My t-shirt",
- "slug": "my-t-shirt",
- "description": "My t-shirt description",
- "state": {
- "type": "AVAILABLE"
}, - "access": {
- "type": "PUBLIC"
}, - "images": [
- {
- "id": "00aa4abd-5778-4199-8161-0b49b2f212e5",
- "width": 800,
- "height": 600
}
], - "variants": [
- {
- "id": "00aa4abd-5778-4199-8161-0b49b2f212e5",
- "name": "My t-shirt - Black, L",
- "sku": "WDEK-DRE200L",
- "unitPrice": {
- "value": 10,
- "currency": "USD"
}, - "attributes": {
- "description": "Black, L",
- "color": {
- "name": "Black",
- "swatch": "#000000"
}, - "size": {
- "name": "L"
}
}, - "stock": {
- "type": "UNLIMITED"
}, - "weight": {
- "value": 1,
- "unit": "kg"
}, - "dimensions": {
- "length": 1,
- "width": 2,
- "height": 3,
- "unit": "cm"
}, - "images": [
- {
- "id": "00aa4abd-5778-4199-8161-0b49b2f212e5",
- "width": 800,
- "height": 600
}
]
}
], - "createdAt": "2020-08-13T09:05:36.939Z",
- "updatedAt": "2020-08-13T09:05:36.939Z"
}
Get all products (offers)
Returns all products with pagination
Authorizations:
query Parameters
page | integer <int32> Default: 0 Example: page=5 |
size | integer <int32> Default: 20 Example: size=5 |
Responses
Response samples
- 200
{- "results": [
- {
- "id": "00aa4abd-5778-4199-8161-0b49b2f212e5",
- "name": "My t-shirt",
- "slug": "my-t-shirt",
- "description": "My t-shirt description",
- "state": {
- "type": "AVAILABLE"
}, - "access": {
- "type": "PUBLIC"
}, - "images": [
- {
- "id": "00aa4abd-5778-4199-8161-0b49b2f212e5",
- "width": 800,
- "height": 600
}
], - "variants": [
- {
- "id": "00aa4abd-5778-4199-8161-0b49b2f212e5",
- "name": "My t-shirt - Black, L",
- "sku": "WDEK-DRE200L",
- "unitPrice": {
- "value": 10,
- "currency": "USD"
}, - "attributes": {
- "description": "Black, L",
- "color": {
- "name": "Black",
- "swatch": "#000000"
}, - "size": {
- "name": "L"
}
}, - "stock": {
- "type": "UNLIMITED"
}, - "weight": {
- "value": 1,
- "unit": "kg"
}, - "dimensions": {
- "length": 1,
- "width": 2,
- "height": 3,
- "unit": "cm"
}, - "images": [
- {
- "id": "00aa4abd-5778-4199-8161-0b49b2f212e5",
- "width": 800,
- "height": 600
}
]
}
], - "createdAt": "2020-08-13T09:05:36.939Z",
- "updatedAt": "2020-08-13T09:05:36.939Z"
}
]
}
Get product (offer) by id
Returns product by id
Authorizations:
path Parameters
productId required | string Example: 00aa4abd-5778-4199-8161-0b49b2f212e5 |
Responses
Response samples
- 200
{- "id": "00aa4abd-5778-4199-8161-0b49b2f212e5",
- "name": "My t-shirt",
- "slug": "my-t-shirt",
- "description": "My t-shirt description",
- "state": {
- "type": "AVAILABLE"
}, - "access": {
- "type": "PUBLIC"
}, - "images": [
- {
- "id": "00aa4abd-5778-4199-8161-0b49b2f212e5",
- "width": 800,
- "height": 600
}
], - "variants": [
- {
- "id": "00aa4abd-5778-4199-8161-0b49b2f212e5",
- "name": "My t-shirt - Black, L",
- "sku": "WDEK-DRE200L",
- "unitPrice": {
- "value": 10,
- "currency": "USD"
}, - "attributes": {
- "description": "Black, L",
- "color": {
- "name": "Black",
- "swatch": "#000000"
}, - "size": {
- "name": "L"
}
}, - "stock": {
- "type": "UNLIMITED"
}, - "weight": {
- "value": 1,
- "unit": "kg"
}, - "dimensions": {
- "length": 1,
- "width": 2,
- "height": 3,
- "unit": "cm"
}, - "images": [
- {
- "id": "00aa4abd-5778-4199-8161-0b49b2f212e5",
- "width": 800,
- "height": 600
}
]
}
], - "createdAt": "2020-08-13T09:05:36.939Z",
- "updatedAt": "2020-08-13T09:05:36.939Z"
}
Finish draw
Finish draw and select winners
Authorizations:
path Parameters
id required | string |
Request Body schema: application/jsonrequired
required | Array of com.fourthwall.app.openapi.DrawFinishedRequest$Participant$Twitch (object) | ||||||
Array One of
|
Responses
Request samples
- Payload
{- "participants": [
- {
- "service": "TWITCH",
- "userId": "string",
- "userName": "string"
}
]
}
Response samples
- 200
{- "id": "gdr_EdJvIXu3SEiXe_QkPavHSA",
- "type": "INITIAL",
- "giveawayId": "giv_EdJvIXu3SEiXe_QkPavHSA",
- "giveawayFriendlyId": "D3XZFWPP",
- "shopId": "sh_c689d374-22ca-43d3-8d29-9ef0805cc4cb",
- "offer": {
- "id": "00aa4abd-5778-4199-8161-0b49b2f212e5",
- "name": "My t-shirt",
- "slug": "my-t-shirt",
- "description": "My t-shirt description",
- "primaryImage": {
- "id": "00aa4abd-5778-4199-8161-0b49b2f212e5",
- "width": 800,
- "height": 600
}
}, - "amounts": {
- "subtotal": {
- "value": 10,
- "currency": "USD"
}, - "total": {
- "value": 10,
- "currency": "USD"
}
}, - "email": "supporter@fourthwall.com",
- "username": "Johnny123",
- "message": "Sample message",
- "gifts": [
- {
- "id": "string"
}
], - "createdAt": "2019-08-24T14:15:22Z",
- "durationSeconds": 0
}
Response samples
- 200
{- "id": "gdr_EdJvIXu3SEiXe_QkPavHSA",
- "type": "INITIAL",
- "giveawayId": "giv_EdJvIXu3SEiXe_QkPavHSA",
- "giveawayFriendlyId": "D3XZFWPP",
- "shopId": "sh_c689d374-22ca-43d3-8d29-9ef0805cc4cb",
- "offer": {
- "id": "00aa4abd-5778-4199-8161-0b49b2f212e5",
- "name": "My t-shirt",
- "slug": "my-t-shirt",
- "description": "My t-shirt description",
- "primaryImage": {
- "id": "00aa4abd-5778-4199-8161-0b49b2f212e5",
- "width": 800,
- "height": 600
}
}, - "amounts": {
- "subtotal": {
- "value": 10,
- "currency": "USD"
}, - "total": {
- "value": 10,
- "currency": "USD"
}
}, - "email": "supporter@fourthwall.com",
- "username": "Johnny123",
- "message": "Sample message",
- "gifts": [
- {
- "id": "string"
}
], - "createdAt": "2019-08-24T14:15:22Z",
- "durationSeconds": 0
}
Create giveaway links
Creates a new package with specified number of giveaway links
Authorizations:
Request Body schema: application/jsonrequired
productId required | string <uuid> |
number required | integer <int32> |
Responses
Request samples
- Payload
{- "productId": "dcd53ddb-8104-4e48-8cc0-5df1088c6113",
- "number": 0
}
Response samples
- 200
{- "packageId": "gpg_EdJvIXu3SEiXe_QkPavHSA",
- "giveawayLinks": [
- {
- "status": "AVAILABLE",
- "id": "gft_EdJvIXu3SEiXe_QkPavHSA",
- "link": "string",
- "productId": "00aa4abd-5778-4199-8161-0b49b2f212e5",
- "createdAt": "2020-08-13T09:05:36.939Z"
}
]
}
Get giveaway links
Returns all giveaway links for packageId
Authorizations:
path Parameters
packageId required | string Example: 00aa4abd-5778-4199-8161-0b49b2f212e5 |
Responses
Response samples
- 200
{- "packageId": "gpg_EdJvIXu3SEiXe_QkPavHSA",
- "giveawayLinks": [
- {
- "status": "AVAILABLE",
- "id": "gft_EdJvIXu3SEiXe_QkPavHSA",
- "link": "string",
- "productId": "00aa4abd-5778-4199-8161-0b49b2f212e5",
- "createdAt": "2020-08-13T09:05:36.939Z"
}
]
}
Create a fulfillment for an order
Creates a fulfillment with a shipment tracker for provided order items. When trackers change their state, order.status will change to IN_PRODUCTION, PARTIALLY_IN_PRODUCTION, PARTIALLY_SHIPPED, SHIPPED depending on the shipping tracker info. Order updated webhooks will be triggered.
Authorizations:
Request Body schema: application/jsonrequired
orderId required | string <uuid> |
required | Array of objects (com.fourthwall.app.openapi.FulfillmentItem) |
required | object (com.fourthwall.app.openapi.ShippingLabel) |
Responses
Request samples
- Payload
{- "orderId": "b3e1eced-f2bd-4d8c-9765-fbc9d1d222d5",
- "items": [
- {
- "variantId": "d53feca7-c65b-4741-aca7-827a42d686bf",
- "quantity": 1
}
], - "shippingLabel": {
- "trackingNumber": "string",
- "trackingCompany": "USPS"
}
}
Response samples
- 201
{- "fulfillmentId": "string"
}
Get Thank You by id
Get Thank You details
Authorizations:
path Parameters
thankYouId required | string Example: ty_EdJvIXu3SEiXe_QkPavHSA |
Responses
Response samples
- 200
{- "id": "ty_EdJvIXu3SEiXe_QkPavHSA",
- "contribution": {
- "type": "ORDER",
- "id": "00aa4abd-5778-4199-8161-0b49b2f212e5",
- "shopId": "sh_c689d374-22ca-43d3-8d29-9ef0805cc4cb",
- "supporter": {
- "email": "supporter@fourthwall.com",
- "username": "Johnny123",
- "message": "Sample message"
}
}
}
Get all orders
Returns all orders with pagination
Authorizations:
query Parameters
page | integer <int32> Default: 0 Example: page=5 |
size | integer <int32> Default: 20 Example: size=5 |
createdAt[gt] | string <date-time> Example: createdAt[gt]=2020-08-13T09:05:36.939Z |
createdAt[lt] | string <date-time> Example: createdAt[lt]=2020-08-13T09:05:36.939Z |
updatedAt[gt] | string <date-time> Example: updatedAt[gt]=2020-08-13T09:05:36.939Z |
updatedAt[lt] | string <date-time> Example: updatedAt[lt]=2020-08-13T09:05:36.939Z |
status | Array of strings unique Items Enum: "CONFIRMED" "PARTIALLY_IN_PRODUCTION" "IN_PRODUCTION" "PARTIALLY_SHIPPED" "SHIPPED" "PARTIALLY_DELIVERED" "DELIVERED" "CANCELLED" "COMPLETED" Example: status=CONFIRMED |
Responses
Response samples
- 200
{- "results": [
- {
- "id": "00aa4abd-5778-4199-8161-0b49b2f212e5",
- "shopId": "sh_c689d374-22ca-43d3-8d29-9ef0805cc4cb",
- "friendlyId": "D3XZFWPP",
- "checkoutId": "ch_BV44UYrXQA2T_Xcf1288tw",
- "promotionId": "prm_EdJvIXu3SEiXe_QkPavHSA",
- "status": "CONFIRMED",
- "email": "supporter@fourthwall.com",
- "emailMarketingOptIn": true,
- "username": "Johnny123",
- "message": "Sample message",
- "amounts": {
- "subtotal": {
- "value": 10,
- "currency": "USD"
}, - "shipping": {
- "value": 10,
- "currency": "USD"
}, - "tax": {
- "value": 10,
- "currency": "USD"
}, - "donation": {
- "value": 10,
- "currency": "USD"
}, - "discount": {
- "value": 10,
- "currency": "USD"
}, - "total": {
- "value": 10,
- "currency": "USD"
}
}, - "billing": {
- "address": {
- "name": "Joe Doe",
- "address1": "Main Street 1",
- "address2": "string",
- "city": "San Francisco",
- "state": "CA",
- "country": "US",
- "zip": "12345",
- "phone": "123456789"
}
}, - "shipping": {
- "address": {
- "name": "Joe Doe",
- "address1": "Main Street 1",
- "address2": "string",
- "city": "San Francisco",
- "state": "CA",
- "country": "US",
- "zip": "12345",
- "phone": "123456789"
}
}, - "offers": [
- {
- "id": "00aa4abd-5778-4199-8161-0b49b2f212e5",
- "name": "My t-shirt",
- "slug": "my-t-shirt",
- "description": "My t-shirt description",
- "primaryImage": {
- "id": "00aa4abd-5778-4199-8161-0b49b2f212e5",
- "width": 800,
- "height": 600
}, - "variant": {
- "id": "00aa4abd-5778-4199-8161-0b49b2f212e5",
- "name": "My t-shirt - Black, L",
- "sku": "WDEK-DRE200L",
- "unitPrice": {
- "value": 10,
- "currency": "USD"
}, - "attributes": {
- "description": "Black, L",
- "color": {
- "name": "Black",
- "swatch": "#000000"
}, - "size": {
- "name": "L"
}
}, - "quantity": 5,
- "price": {
- "value": 10,
- "currency": "USD"
}, - "weight": {
- "value": 1,
- "unit": "kg"
}, - "dimensions": {
- "length": 1,
- "width": 2,
- "height": 3,
- "unit": "cm"
}
}
}
], - "source": {
- "type": "ORDER"
}, - "createdAt": "2020-08-13T09:05:36.939Z",
- "updatedAt": "2020-08-13T09:05:36.939Z"
}
]
}
Get order by id
Returns order by id
Authorizations:
path Parameters
orderId required | string Example: 00aa4abd-5778-4199-8161-0b49b2f212e5 |
Responses
Response samples
- 200
{- "id": "00aa4abd-5778-4199-8161-0b49b2f212e5",
- "shopId": "sh_c689d374-22ca-43d3-8d29-9ef0805cc4cb",
- "friendlyId": "D3XZFWPP",
- "checkoutId": "ch_BV44UYrXQA2T_Xcf1288tw",
- "promotionId": "prm_EdJvIXu3SEiXe_QkPavHSA",
- "status": "CONFIRMED",
- "email": "supporter@fourthwall.com",
- "emailMarketingOptIn": true,
- "username": "Johnny123",
- "message": "Sample message",
- "amounts": {
- "subtotal": {
- "value": 10,
- "currency": "USD"
}, - "shipping": {
- "value": 10,
- "currency": "USD"
}, - "tax": {
- "value": 10,
- "currency": "USD"
}, - "donation": {
- "value": 10,
- "currency": "USD"
}, - "discount": {
- "value": 10,
- "currency": "USD"
}, - "total": {
- "value": 10,
- "currency": "USD"
}
}, - "billing": {
- "address": {
- "name": "Joe Doe",
- "address1": "Main Street 1",
- "address2": "string",
- "city": "San Francisco",
- "state": "CA",
- "country": "US",
- "zip": "12345",
- "phone": "123456789"
}
}, - "shipping": {
- "address": {
- "name": "Joe Doe",
- "address1": "Main Street 1",
- "address2": "string",
- "city": "San Francisco",
- "state": "CA",
- "country": "US",
- "zip": "12345",
- "phone": "123456789"
}
}, - "offers": [
- {
- "id": "00aa4abd-5778-4199-8161-0b49b2f212e5",
- "name": "My t-shirt",
- "slug": "my-t-shirt",
- "description": "My t-shirt description",
- "primaryImage": {
- "id": "00aa4abd-5778-4199-8161-0b49b2f212e5",
- "width": 800,
- "height": 600
}, - "variant": {
- "id": "00aa4abd-5778-4199-8161-0b49b2f212e5",
- "name": "My t-shirt - Black, L",
- "sku": "WDEK-DRE200L",
- "unitPrice": {
- "value": 10,
- "currency": "USD"
}, - "attributes": {
- "description": "Black, L",
- "color": {
- "name": "Black",
- "swatch": "#000000"
}, - "size": {
- "name": "L"
}
}, - "quantity": 5,
- "price": {
- "value": 10,
- "currency": "USD"
}, - "weight": {
- "value": 1,
- "unit": "kg"
}, - "dimensions": {
- "length": 1,
- "width": 2,
- "height": 3,
- "unit": "cm"
}
}
}
], - "source": {
- "type": "ORDER"
}, - "createdAt": "2020-08-13T09:05:36.939Z",
- "updatedAt": "2020-08-13T09:05:36.939Z"
}
Get gift purchase by id
Returns gift purchase details by id
Authorizations:
path Parameters
giftPurchaseId required | string Example: giv_EdJvIXu3SEiXe_QkPavHSA |
Responses
Response samples
- 200
{- "id": "giv_EdJvIXu3SEiXe_QkPavHSA",
- "friendlyId": "D3XZFWPP",
- "shopId": "sh_c689d374-22ca-43d3-8d29-9ef0805cc4cb",
- "offer": {
- "id": "00aa4abd-5778-4199-8161-0b49b2f212e5",
- "name": "My t-shirt",
- "slug": "my-t-shirt",
- "description": "My t-shirt description",
- "primaryImage": {
- "id": "00aa4abd-5778-4199-8161-0b49b2f212e5",
- "width": 800,
- "height": 600
}
}, - "amounts": {
- "subtotal": {
- "value": 10,
- "currency": "USD"
}, - "tax": {
- "value": 10,
- "currency": "USD"
}, - "total": {
- "value": 10,
- "currency": "USD"
}, - "profit": {
- "value": 10,
- "currency": "USD"
}, - "prepaidShipping": {
- "value": 10,
- "currency": "USD"
}
}, - "email": "supporter@fourthwall.com",
- "username": "Johnny123",
- "message": "Sample message",
- "gifts": [
- {
- "status": "REDEEMED",
- "id": "gft_EdJvIXu3SEiXe_QkPavHSA",
- "orderId": "00aa4abd-5778-4199-8161-0b49b2f212e5",
- "orderFriendlyId": "D3XZFWPP",
- "winner": {
- "email": "supporter@fourthwall.com",
- "username": "Johnny123",
- "selectedAt": "2020-08-13T09:05:36.939Z"
}
}
], - "createdAt": "2019-08-24T14:15:22Z"
}
Get all donations
Returns all donations with pagination
Authorizations:
query Parameters
page | integer <int32> Default: 0 Example: page=5 |
size | integer <int32> Default: 20 Example: size=5 |
Responses
Response samples
- 200
{- "results": [
- {
- "id": "don_Kpcjx4HIQ1e4bTIOjX9CsA",
- "shopId": "sh_c689d374-22ca-43d3-8d29-9ef0805cc4cb",
- "status": "OPEN",
- "email": "supporter@fourthwall.com",
- "username": "Johnny123",
- "message": "Sample message",
- "amounts": {
- "total": {
- "value": 10,
- "currency": "USD"
}
}, - "createdAt": "2020-08-13T09:05:36.939Z",
- "updatedAt": "2020-08-13T09:05:36.939Z"
}
]
}
Get donation by id
Returns donation by id
Authorizations:
path Parameters
donationId required | string Example: 00aa4abd-5778-4199-8161-0b49b2f212e5 |
Responses
Response samples
- 200
{- "id": "don_Kpcjx4HIQ1e4bTIOjX9CsA",
- "shopId": "sh_c689d374-22ca-43d3-8d29-9ef0805cc4cb",
- "status": "OPEN",
- "email": "supporter@fourthwall.com",
- "username": "Johnny123",
- "message": "Sample message",
- "amounts": {
- "total": {
- "value": 10,
- "currency": "USD"
}
}, - "createdAt": "2020-08-13T09:05:36.939Z",
- "updatedAt": "2020-08-13T09:05:36.939Z"
}