Download OpenAPI specification:Download
The Fourthwall API provides access to your shop's resources including products, orders, customers, webhooks, and more.
See Authentication for more information.
Endpoints for handling donations.
Get all donations
Returns all donations with pagination
Authorizations:
query Parameters
page | integer <int32> Default: 0 |
size | integer <int32> Default: 20 Example: size=5 |
Responses
Response Schema: application/json
required | Array of objects (com.fourthwall.openapi.model.DonationV1) | ||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||
total | integer <int32> |
Response Schema: */*
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"
}
], - "total": 0
}
Get donation by id
Returns donation by id
Authorizations:
path Parameters
donationId required | string Example: 00aa4abd-5778-4199-8161-0b49b2f212e5 |
Responses
Response Schema: application/json
id required | string | ||||||||
shopId required | string | ||||||||
status required | string Enum: "OPEN" "COMPLETED" "ABANDONED" "CANCELLED" "FAILED" | ||||||||
email required | string | ||||||||
username | string | ||||||||
message | string | ||||||||
required | object (com.fourthwall.openapi.model.DonationV1.Amounts) | ||||||||
| |||||||||
createdAt required | string <date-time> | ||||||||
updatedAt required | string <date-time> |
Response Schema: */*
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"
}
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) non-empty | ||||
Array (non-empty)
| |||||
required | object (com.fourthwall.app.openapi.ShippingLabel) | ||||
|
Responses
Response Schema: application/json
fulfillmentId required | string |
Response Schema: */*
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"
}
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
Response Schema: application/json
id required | string | ||||||||||||||||||||||
type required | string Enum: "INITIAL" "REDO" | ||||||||||||||||||||||
giveawayId required | string | ||||||||||||||||||||||
giveawayFriendlyId required | string | ||||||||||||||||||||||
shopId required | string | ||||||||||||||||||||||
required | object (com.fourthwall.openapi.model.OfferAbstractV1.OfferGiftPurchaseV1) | ||||||||||||||||||||||
| |||||||||||||||||||||||
required | object (com.fourthwall.openapi.model.GiftDraftV1.Amounts) | ||||||||||||||||||||||
| |||||||||||||||||||||||
email required | string | ||||||||||||||||||||||
username | string | ||||||||||||||||||||||
message | string | ||||||||||||||||||||||
required | Array of com.fourthwall.openapi.model.GiftDraftV1.Gift.Available (object) or com.fourthwall.openapi.model.GiftDraftV1.Gift.Cancelled (object) or com.fourthwall.openapi.model.GiftDraftV1.Gift.ChangedToPromotion (object) or com.fourthwall.openapi.model.GiftDraftV1.Gift.Redeemed (object) | ||||||||||||||||||||||
Array One of
| |||||||||||||||||||||||
createdAt required | string <date-time> | ||||||||||||||||||||||
durationSeconds required | integer <int64> |
Response Schema: */*
Request samples
- Payload
{- "participants": [
- {
- "service": "string",
- "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": "gft_EdJvIXu3SEiXe_QkPavHSA",
- "status": "string",
- "winner": {
- "email": "supporter@fourthwall.com",
- "username": "Johnny123",
- "selectedAt": "2020-08-13T09:05:36.939Z",
- "redeemUri": "string"
}
}
], - "createdAt": "2019-08-24T14:15:22Z",
- "durationSeconds": 0
}
Get draw
Get draw details
Authorizations:
path Parameters
id required | string |
Responses
Response Schema: application/json
id required | string | ||||||||||||||||||||||
type required | string Enum: "INITIAL" "REDO" | ||||||||||||||||||||||
giveawayId required | string | ||||||||||||||||||||||
giveawayFriendlyId required | string | ||||||||||||||||||||||
shopId required | string | ||||||||||||||||||||||
required | object (com.fourthwall.openapi.model.OfferAbstractV1.OfferGiftPurchaseV1) | ||||||||||||||||||||||
| |||||||||||||||||||||||
required | object (com.fourthwall.openapi.model.GiftDraftV1.Amounts) | ||||||||||||||||||||||
| |||||||||||||||||||||||
email required | string | ||||||||||||||||||||||
username | string | ||||||||||||||||||||||
message | string | ||||||||||||||||||||||
required | Array of com.fourthwall.openapi.model.GiftDraftV1.Gift.Available (object) or com.fourthwall.openapi.model.GiftDraftV1.Gift.Cancelled (object) or com.fourthwall.openapi.model.GiftDraftV1.Gift.ChangedToPromotion (object) or com.fourthwall.openapi.model.GiftDraftV1.Gift.Redeemed (object) | ||||||||||||||||||||||
Array One of
| |||||||||||||||||||||||
createdAt required | string <date-time> | ||||||||||||||||||||||
durationSeconds required | integer <int64> |
Response Schema: */*
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": "gft_EdJvIXu3SEiXe_QkPavHSA",
- "status": "string",
- "winner": {
- "email": "supporter@fourthwall.com",
- "username": "Johnny123",
- "selectedAt": "2020-08-13T09:05:36.939Z",
- "redeemUri": "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
Response Schema: application/json
packageId required | string | ||||||||||
required | Array of com.fourthwall.openapi.model.GiveawayLinksV1.GiveawayLinkV1.Available (object) or com.fourthwall.openapi.model.GiveawayLinksV1.GiveawayLinkV1.Cancelled (object) or com.fourthwall.openapi.model.GiveawayLinksV1.GiveawayLinkV1.Redeemed (object) | ||||||||||
Array One of
|
Response Schema: */*
Request samples
- Payload
{- "productId": "dcd53ddb-8104-4e48-8cc0-5df1088c6113",
- "number": 0
}
Response samples
- 200
{- "packageId": "gpg_EdJvIXu3SEiXe_QkPavHSA",
- "giveawayLinks": [
- {
- "status": "string",
- "id": "gft_EdJvIXu3SEiXe_QkPavHSA",
- "productId": "00aa4abd-5778-4199-8161-0b49b2f212e5",
- "createdAt": "2020-08-13T09:05:36.939Z"
}
]
}
Get all giveaway packages
Returns all packages with giveaway links
Authorizations:
Responses
Response Schema: application/json
required | Array of objects (com.fourthwall.openapi.model.GiveawayPackagesV1.GiveawayPackage) | ||||
Array
|
Response Schema: */*
Response samples
- 200
{- "packages": [
- {
- "packageId": "gpg_EdJvIXu3SEiXe_QkPavHSA",
- "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 Schema: application/json
packageId required | string | ||||||||||
required | Array of com.fourthwall.openapi.model.GiveawayLinksV1.GiveawayLinkV1.Available (object) or com.fourthwall.openapi.model.GiveawayLinksV1.GiveawayLinkV1.Cancelled (object) or com.fourthwall.openapi.model.GiveawayLinksV1.GiveawayLinkV1.Redeemed (object) | ||||||||||
Array One of
|
Response Schema: */*
Response samples
- 200
{- "packageId": "gpg_EdJvIXu3SEiXe_QkPavHSA",
- "giveawayLinks": [
- {
- "status": "string",
- "id": "gft_EdJvIXu3SEiXe_QkPavHSA",
- "productId": "00aa4abd-5778-4199-8161-0b49b2f212e5",
- "createdAt": "2020-08-13T09:05:36.939Z"
}
]
}
Access to your mailing list via API.
Get all mailing list entries
Returns all mailing list entries
Authorizations:
query Parameters
page | integer <int32> Default: 0 |
size | integer <int32> Default: 20 Example: size=5 |
Responses
Response Schema: application/json
required | Array of objects (com.fourthwall.openapi.model.MailingListEntryV1) | ||||
Array
| |||||
total | integer <int32> |
Response Schema: */*
Response samples
- 200
{- "results": [
- {
- "id": "00aa4abd-5778-4199-8161-0b49b2f212e5",
- "email": "string"
}
], - "total": 0
}
Get all orders
Returns all orders with pagination
Authorizations:
query Parameters
page | integer <int32> Default: 0 |
size | integer <int32> Default: 20 Example: size=5 |
string Example: email=supporter@fourthwall.com | |
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 Schema: application/json
required | Array of objects (com.fourthwall.openapi.model.OrderV1) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
total | integer <int32> |
Response Schema: */*
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"
}, - "unitCost": {
- "value": 10,
- "currency": "USD"
}, - "compareAtPrice": {
- "value": 10,
- "currency": "USD"
}, - "attributes": {
- "description": "Black, L",
- "color": {
- "name": "Black",
- "swatch": "#000000"
}, - "size": {
- "name": "L"
}
}, - "quantity": 5,
- "price": {
- "value": 10,
- "currency": "USD"
}, - "cost": {
- "value": 10,
- "currency": "USD"
}, - "weight": {
- "value": 1,
- "unit": "kg"
}, - "dimensions": {
- "length": 1,
- "width": 2,
- "height": 3,
- "unit": "cm"
}
}
}
], - "source": {
- "type": "string",
- "giftId": "gft_EdJvIXu3SEiXe_QkPavHSA"
}, - "trackingParams": {
- "fbc": "string",
- "fbp": "string",
- "utm_source": "string",
- "utm_medium": "string",
- "utm_campaign": "string",
- "utm_content": "string",
- "utm_term": "string"
}, - "createdAt": "2020-08-13T09:05:36.939Z",
- "updatedAt": "2020-08-13T09:05:36.939Z"
}
], - "total": 0
}
Get order by id
Returns order by id
Authorizations:
path Parameters
orderId required | string Example: 00aa4abd-5778-4199-8161-0b49b2f212e5 |
Responses
Response Schema: application/json
id required | string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
shopId required | string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
friendlyId required | string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
checkoutId required | string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
promotionId | string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
status required | string Enum: "CONFIRMED" "PARTIALLY_IN_PRODUCTION" "IN_PRODUCTION" "PARTIALLY_SHIPPED" "SHIPPED" "PARTIALLY_DELIVERED" "DELIVERED" "CANCELLED" "COMPLETED" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
email required | string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
emailMarketingOptIn required | boolean | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
username | string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
message required | string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
required | object (com.fourthwall.openapi.model.OrderV1.OrderAmounts) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object (com.fourthwall.openapi.model.OrderV1.Billing) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object (com.fourthwall.openapi.model.OrderV1.Shipping) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
required | Array of objects (com.fourthwall.openapi.model.OfferAbstractV1.OfferOrderV1) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
required | com.fourthwall.openapi.model.OrderV1.Source.GiveawayLinks (object) or com.fourthwall.openapi.model.OrderV1.Source.Order (object) or com.fourthwall.openapi.model.OrderV1.Source.SamplesOrder (object) or com.fourthwall.openapi.model.OrderV1.Source.TwitchGiftRedemption (object) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
One of
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object (com.fourthwall.openapi.model.OrderV1.TrackingParams) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
createdAt required | string <date-time> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
updatedAt required | string <date-time> |
Response Schema: */*
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"
}, - "unitCost": {
- "value": 10,
- "currency": "USD"
}, - "compareAtPrice": {
- "value": 10,
- "currency": "USD"
}, - "attributes": {
- "description": "Black, L",
- "color": {
- "name": "Black",
- "swatch": "#000000"
}, - "size": {
- "name": "L"
}
}, - "quantity": 5,
- "price": {
- "value": 10,
- "currency": "USD"
}, - "cost": {
- "value": 10,
- "currency": "USD"
}, - "weight": {
- "value": 1,
- "unit": "kg"
}, - "dimensions": {
- "length": 1,
- "width": 2,
- "height": 3,
- "unit": "cm"
}
}
}
], - "source": {
- "type": "string",
- "giftId": "gft_EdJvIXu3SEiXe_QkPavHSA"
}, - "trackingParams": {
- "fbc": "string",
- "fbp": "string",
- "utm_source": "string",
- "utm_medium": "string",
- "utm_campaign": "string",
- "utm_content": "string",
- "utm_term": "string"
}, - "createdAt": "2020-08-13T09:05:36.939Z",
- "updatedAt": "2020-08-13T09:05:36.939Z"
}
Get order by friendly id
Returns order by friendly id
Authorizations:
path Parameters
friendlyId required | string Example: D3XZFWPP |
Responses
Response Schema: application/json
id required | string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
shopId required | string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
friendlyId required | string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
checkoutId required | string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
promotionId | string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
status required | string Enum: "CONFIRMED" "PARTIALLY_IN_PRODUCTION" "IN_PRODUCTION" "PARTIALLY_SHIPPED" "SHIPPED" "PARTIALLY_DELIVERED" "DELIVERED" "CANCELLED" "COMPLETED" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
email required | string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
emailMarketingOptIn required | boolean | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
username | string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
message required | string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
required | object (com.fourthwall.openapi.model.OrderV1.OrderAmounts) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object (com.fourthwall.openapi.model.OrderV1.Billing) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object (com.fourthwall.openapi.model.OrderV1.Shipping) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
required | Array of objects (com.fourthwall.openapi.model.OfferAbstractV1.OfferOrderV1) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
required | com.fourthwall.openapi.model.OrderV1.Source.GiveawayLinks (object) or com.fourthwall.openapi.model.OrderV1.Source.Order (object) or com.fourthwall.openapi.model.OrderV1.Source.SamplesOrder (object) or com.fourthwall.openapi.model.OrderV1.Source.TwitchGiftRedemption (object) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
One of
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object (com.fourthwall.openapi.model.OrderV1.TrackingParams) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
createdAt required | string <date-time> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
updatedAt required | string <date-time> |
Response Schema: */*
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"
}, - "unitCost": {
- "value": 10,
- "currency": "USD"
}, - "compareAtPrice": {
- "value": 10,
- "currency": "USD"
}, - "attributes": {
- "description": "Black, L",
- "color": {
- "name": "Black",
- "swatch": "#000000"
}, - "size": {
- "name": "L"
}
}, - "quantity": 5,
- "price": {
- "value": 10,
- "currency": "USD"
}, - "cost": {
- "value": 10,
- "currency": "USD"
}, - "weight": {
- "value": 1,
- "unit": "kg"
}, - "dimensions": {
- "length": 1,
- "width": 2,
- "height": 3,
- "unit": "cm"
}
}
}
], - "source": {
- "type": "string",
- "giftId": "gft_EdJvIXu3SEiXe_QkPavHSA"
}, - "trackingParams": {
- "fbc": "string",
- "fbp": "string",
- "utm_source": "string",
- "utm_medium": "string",
- "utm_campaign": "string",
- "utm_content": "string",
- "utm_term": "string"
}, - "createdAt": "2020-08-13T09:05:36.939Z",
- "updatedAt": "2020-08-13T09:05:36.939Z"
}
Endpoint to get access tokens. See Authentication for clearer documentation.
exchangeToken
query Parameters
client_id required | string |
client_secret required | string |
redirect_uri | string |
grant_type required | string |
code | string |
refresh_token | string |
access_token | string |
Responses
Response Schema: application/json
Response Schema: */*
Response samples
- 200
{ }
Product catalog management, including product listings, pricing, availability, and variant configurations for your shop.
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
Response Schema: application/json
id required | string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
name required | string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
slug required | string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
description required | string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
required | com.fourthwall.openapi.model.OfferAbstractV1.OfferStateV1.Available (object) or com.fourthwall.openapi.model.OfferAbstractV1.OfferStateV1.SoldOut (object) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
One of
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
required | com.fourthwall.openapi.model.OfferAbstractV1.OfferAccessV1.Archived (object) or com.fourthwall.openapi.model.OfferAbstractV1.OfferAccessV1.Hidden (object) or com.fourthwall.openapi.model.OfferAbstractV1.OfferAccessV1.Public (object) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
One of
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object (com.fourthwall.openapi.model.Image) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
required | Array of objects (com.fourthwall.openapi.model.Image) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
required | Array of objects (com.fourthwall.openapi.model.OfferAbstractV1.OfferVariantAbstractV1.OfferVariantV1) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object (com.fourthwall.openapi.model.OfferAbstractV1.OfferAdditionalInformationV1) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object (com.fourthwall.openapi.model.OfferAbstractV1.OfferSizeGuideV1) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
createdAt required | string <date-time> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
updatedAt required | string <date-time> |
Response Schema: */*
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": "string"
}, - "access": {
- "type": "string"
}, - "thumbnailImage": {
- "id": "00aa4abd-5778-4199-8161-0b49b2f212e5",
- "width": 800,
- "height": 600,
}, - "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"
}, - "compareAtPrice": {
- "value": 10,
- "currency": "USD"
}, - "unitCost": {
- "value": 10,
- "currency": "USD"
}, - "attributes": {
- "description": "Black, L",
- "color": {
- "name": "Black",
- "swatch": "#000000"
}, - "size": {
- "name": "L"
}
}, - "stock": {
- "type": "string",
- "inStock": 5
}, - "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,
}
], - "thumbnailImage": {
- "id": "00aa4abd-5778-4199-8161-0b49b2f212e5",
- "width": 800,
- "height": 600,
}
}
], - "additionalInformation": {
- "sizeAndFit": "string",
- "guaranteeAndReturns": "string",
- "moreDetails": "string"
}, - "sizeGuide": {
- "previewUrl": "string",
- "fileUrl": "string",
- "description": "string",
- "fitGuideDescription": "string",
- "fitGuideUrls": [
- "string"
]
}, - "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 |
size | integer <int32> Default: 20 Example: size=5 |
search | string Example: search=search_phrase |
Responses
Response Schema: application/json
required | Array of objects (com.fourthwall.openapi.model.OfferAbstractV1.OfferFullV1) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
total | integer <int32> |
Response Schema: */*
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": "string"
}, - "access": {
- "type": "string"
}, - "thumbnailImage": {
- "id": "00aa4abd-5778-4199-8161-0b49b2f212e5",
- "width": 800,
- "height": 600,
}, - "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"
}, - "compareAtPrice": {
- "value": 10,
- "currency": "USD"
}, - "unitCost": {
- "value": 10,
- "currency": "USD"
}, - "attributes": {
- "description": "Black, L",
- "color": {
- "name": "Black",
- "swatch": "#000000"
}, - "size": {
- "name": "L"
}
}, - "stock": {
- "type": "string",
- "inStock": 5
}, - "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,
}
], - "thumbnailImage": {
- "id": "00aa4abd-5778-4199-8161-0b49b2f212e5",
- "width": 800,
- "height": 600,
}
}
], - "additionalInformation": {
- "sizeAndFit": "string",
- "guaranteeAndReturns": "string",
- "moreDetails": "string"
}, - "sizeGuide": {
- "previewUrl": "string",
- "fileUrl": "string",
- "description": "string",
- "fitGuideDescription": "string",
- "fitGuideUrls": [
- "string"
]
}, - "createdAt": "2020-08-13T09:05:36.939Z",
- "updatedAt": "2020-08-13T09:05:36.939Z"
}
], - "total": 0
}
Get product (offer) by id
Returns product by id
Authorizations:
path Parameters
productId required | string Example: 00aa4abd-5778-4199-8161-0b49b2f212e5 |
Responses
Response Schema: application/json
id required | string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
name required | string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
slug required | string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
description required | string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
required | com.fourthwall.openapi.model.OfferAbstractV1.OfferStateV1.Available (object) or com.fourthwall.openapi.model.OfferAbstractV1.OfferStateV1.SoldOut (object) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
One of
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
required | com.fourthwall.openapi.model.OfferAbstractV1.OfferAccessV1.Archived (object) or com.fourthwall.openapi.model.OfferAbstractV1.OfferAccessV1.Hidden (object) or com.fourthwall.openapi.model.OfferAbstractV1.OfferAccessV1.Public (object) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
One of
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object (com.fourthwall.openapi.model.Image) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
required | Array of objects (com.fourthwall.openapi.model.Image) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
required | Array of objects (com.fourthwall.openapi.model.OfferAbstractV1.OfferVariantAbstractV1.OfferVariantV1) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object (com.fourthwall.openapi.model.OfferAbstractV1.OfferAdditionalInformationV1) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object (com.fourthwall.openapi.model.OfferAbstractV1.OfferSizeGuideV1) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
createdAt required | string <date-time> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
updatedAt required | string <date-time> |
Response Schema: */*
Response samples
- 200
{- "id": "00aa4abd-5778-4199-8161-0b49b2f212e5",
- "name": "My t-shirt",
- "slug": "my-t-shirt",
- "description": "My t-shirt description",
- "state": {
- "type": "string"
}, - "access": {
- "type": "string"
}, - "thumbnailImage": {
- "id": "00aa4abd-5778-4199-8161-0b49b2f212e5",
- "width": 800,
- "height": 600,
}, - "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"
}, - "compareAtPrice": {
- "value": 10,
- "currency": "USD"
}, - "unitCost": {
- "value": 10,
- "currency": "USD"
}, - "attributes": {
- "description": "Black, L",
- "color": {
- "name": "Black",
- "swatch": "#000000"
}, - "size": {
- "name": "L"
}
}, - "stock": {
- "type": "string",
- "inStock": 5
}, - "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,
}
], - "thumbnailImage": {
- "id": "00aa4abd-5778-4199-8161-0b49b2f212e5",
- "width": 800,
- "height": 600,
}
}
], - "additionalInformation": {
- "sizeAndFit": "string",
- "guaranteeAndReturns": "string",
- "moreDetails": "string"
}, - "sizeGuide": {
- "previewUrl": "string",
- "fileUrl": "string",
- "description": "string",
- "fitGuideDescription": "string",
- "fitGuideUrls": [
- "string"
]
}, - "createdAt": "2020-08-13T09:05:36.939Z",
- "updatedAt": "2020-08-13T09:05:36.939Z"
}
Get product (offer) inventory by id
Returns product (offer) inventory by id
Authorizations:
path Parameters
productId required | string Example: 00aa4abd-5778-4199-8161-0b49b2f212e5 |
Responses
Response Schema: application/json
required | Array of objects (com.fourthwall.openapi.model.StockV1) | ||||||||
Array
| |||||||||
total | integer <int32> |
Response Schema: */*
Response samples
- 200
{- "results": [
- {
- "variantId": "d53feca7-c65b-4741-aca7-827a42d686bf",
- "quantity": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "total": 0
}
Get all promotions
Returns all promotions
Authorizations:
query Parameters
page | integer <int32> Default: 0 |
size | integer <int32> Default: 20 Example: size=5 |
Responses
Response Schema: application/json
required | Array of com.fourthwall.openapi.model.promotions.AutoApplyingShopPromotionV1 (object) or com.fourthwall.openapi.model.promotions.MultiMembershipsPromotionV1 (object) or com.fourthwall.openapi.model.promotions.MultiShopPromotionV1 (object) or com.fourthwall.openapi.model.promotions.SingleMembershipsPromotionV1 (object) or com.fourthwall.openapi.model.promotions.SingleShopPromotionV1 (object) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array One of
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||
total | integer <int32> |
Response Schema: */*
Response samples
- 200
{- "results": [
- {
- "type": "string",
- "id": "string",
- "title": "string",
- "code": "string",
- "discount": {
- "type": "string",
- "money": {
- "value": 10,
- "currency": "USD"
}, - "freeShipping": true
}, - "status": "Live",
- "requirements": {
- "minimumOrderValue": {
- "value": 10,
- "currency": "USD"
}
}, - "usageCount": 0,
- "limits": {
- "maximumUsesNumber": 0,
- "oneUsePerCustomer": true
}, - "appliesTo": {
- "type": "string"
}
}
], - "total": 0
}
Create a promotion
Creates a promotion
Authorizations:
Request Body schema: application/jsonrequired
type required | string | ||||
codes required | Array of strings | ||||
required | com.fourthwall.app.openapi.model.requests.promotions.OpenApiPromotionDiscountType.Memberships.Percentage (object) | ||||
One of
| |||||
object (com.fourthwall.app.openapi.model.requests.promotions.OpenApiPromotionRequirements.Memberships) | |||||
| |||||
com.fourthwall.app.openapi.model.requests.promotions.OpenApiPromotionMembershipSubscriptionTypeAppliesTo.AllMembers (object) or com.fourthwall.app.openapi.model.requests.promotions.OpenApiPromotionMembershipSubscriptionTypeAppliesTo.AnnualMembersOnly (object) or com.fourthwall.app.openapi.model.requests.promotions.OpenApiPromotionMembershipSubscriptionTypeAppliesTo.MonthlyMembersOnly (object) | |||||
One of
| |||||
com.fourthwall.app.openapi.model.requests.promotions.OpenApiPromotionMembershipTiersAppliesTo.AllTiers (object) or com.fourthwall.app.openapi.model.requests.promotions.OpenApiPromotionMembershipTiersAppliesTo.SelectedTiers (object) | |||||
One of
|
Responses
Response Schema: application/json
type required | string | ||||||||||||
id required | string | ||||||||||||
title required | string | ||||||||||||
code required | string | ||||||||||||
required | com.fourthwall.openapi.model.promotions.PromotionShopDiscountTypeV1.FixedAmount (object) or com.fourthwall.openapi.model.promotions.PromotionShopDiscountTypeV1.FreeProducts (object) or com.fourthwall.openapi.model.promotions.PromotionShopDiscountTypeV1.FreeShipping (object) or com.fourthwall.openapi.model.promotions.PromotionShopDiscountTypeV1.Percentage (object) | ||||||||||||
One of
| |||||||||||||
status required | string Enum: "Live" "Ended" "Archived" "AllUsed" | ||||||||||||
required | object (com.fourthwall.openapi.model.promotions.PromotionRequirementsV1.Shop) | ||||||||||||
| |||||||||||||
usageCount required | integer <int32> | ||||||||||||
required | object (com.fourthwall.openapi.model.promotions.PromotionLimitsV1) | ||||||||||||
| |||||||||||||
required | com.fourthwall.openapi.model.promotions.PromotionShopAppliesToV1.EntireOrder (object) or com.fourthwall.openapi.model.promotions.PromotionShopAppliesToV1.SelectedProducts (object) | ||||||||||||
One of
|
Response Schema: */*
Request samples
- Payload
{- "type": "string",
- "codes": [
- "string"
], - "discount": {
- "type": "string",
- "percentage": 0
}, - "requirements": {
- "newMembersOnly": true
}, - "subscriptionType": {
- "type": "string"
}, - "tiers": {
- "type": "string"
}
}
Response samples
- 200
{- "type": "string",
- "id": "string",
- "title": "string",
- "code": "string",
- "discount": {
- "type": "string",
- "money": {
- "value": 10,
- "currency": "USD"
}, - "freeShipping": true
}, - "status": "Live",
- "requirements": {
- "minimumOrderValue": {
- "value": 10,
- "currency": "USD"
}
}, - "usageCount": 0,
- "limits": {
- "maximumUsesNumber": 0,
- "oneUsePerCustomer": true
}, - "appliesTo": {
- "type": "string"
}
}
Get a promotion by id
Returns a promotion by id
Authorizations:
path Parameters
promotionId required | string Example: 00aa4abd-5778-4199-8161-0b49b2f212e5 |
Responses
Response Schema: application/json
type required | string | ||||||||||||
id required | string | ||||||||||||
title required | string | ||||||||||||
code required | string | ||||||||||||
required | com.fourthwall.openapi.model.promotions.PromotionShopDiscountTypeV1.FixedAmount (object) or com.fourthwall.openapi.model.promotions.PromotionShopDiscountTypeV1.FreeProducts (object) or com.fourthwall.openapi.model.promotions.PromotionShopDiscountTypeV1.FreeShipping (object) or com.fourthwall.openapi.model.promotions.PromotionShopDiscountTypeV1.Percentage (object) | ||||||||||||
One of
| |||||||||||||
status required | string Enum: "Live" "Ended" "Archived" "AllUsed" | ||||||||||||
required | object (com.fourthwall.openapi.model.promotions.PromotionRequirementsV1.Shop) | ||||||||||||
| |||||||||||||
usageCount required | integer <int32> | ||||||||||||
required | object (com.fourthwall.openapi.model.promotions.PromotionLimitsV1) | ||||||||||||
| |||||||||||||
required | com.fourthwall.openapi.model.promotions.PromotionShopAppliesToV1.EntireOrder (object) or com.fourthwall.openapi.model.promotions.PromotionShopAppliesToV1.SelectedProducts (object) | ||||||||||||
One of
|
Response Schema: */*
Response samples
- 200
{- "type": "string",
- "id": "string",
- "title": "string",
- "code": "string",
- "discount": {
- "type": "string",
- "money": {
- "value": 10,
- "currency": "USD"
}, - "freeShipping": true
}, - "status": "Live",
- "requirements": {
- "minimumOrderValue": {
- "value": 10,
- "currency": "USD"
}
}, - "usageCount": 0,
- "limits": {
- "maximumUsesNumber": 0,
- "oneUsePerCustomer": true
}, - "appliesTo": {
- "type": "string"
}
}
Get current shop
Returns the current shop
Authorizations:
Responses
Response Schema: application/json
id required | string |
name required | string |
domain required | string |
publicDomain required | string |
Response Schema: */*
Response samples
- 200
{- "id": "00aa4abd-5778-4199-8161-0b49b2f212e5",
- "name": "string",
- "domain": "string",
- "publicDomain": "string"
}
Get current shop contact info
Returns the current shop contact info
Authorizations:
Responses
Response Schema: application/json
shopEmail required | string | ||||||||||||||
contactEmail required | string | ||||||||||||||
transactionalEmail required | string | ||||||||||||||
customerSupportEmail | string | ||||||||||||||
phone required | string | ||||||||||||||
shopName required | string | ||||||||||||||
domain required | string | ||||||||||||||
required | object (com.fourthwall.openapi.model.AddressV1) | ||||||||||||||
|
Response Schema: */*
Response samples
- 200
{- "shopEmail": "string",
- "contactEmail": "string",
- "transactionalEmail": "string",
- "customerSupportEmail": "string",
- "phone": "string",
- "shopName": "string",
- "domain": "string",
- "location": {
- "name": "string",
- "address1": "string",
- "address2": "string",
- "city": "string",
- "state": "string",
- "zip": "string",
- "country": "string"
}
}
Set streaming status for your shop, which will be displayed on your storefront and enable giveaways (for Twitch).
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
Response Schema: application/json
shopId required | string | ||||||||||
required | Array of com.fourthwall.openapi.model.StreamingStatusV1.Service.Twitch (object) | ||||||||||
Array One of
|
Response Schema: */*
Request samples
- Payload
{- "services": [
- {
- "type": "string",
- "broadcasterId": "string",
- "broadcasterLogin": "string",
- "thumbnailUrl": "string"
}
]
}
Response samples
- 200
{- "shopId": "string",
- "services": [
- {
- "type": "string",
- "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
Response Schema: application/json
shopId required | string | ||||||||||
required | Array of com.fourthwall.openapi.model.StreamingStatusV1.Service.Twitch (object) | ||||||||||
Array One of
|
Response Schema: */*
Request samples
- Payload
{- "services": [
- "TWITCH"
]
}
Response samples
- 200
{- "shopId": "string",
- "services": [
- {
- "type": "string",
- "status": "ONLINE",
- "broadcasterId": "string",
- "broadcasterLogin": "string",
- "thumbnailUrl": "string"
}
]
}
Get streaming status
Returns streaming status for all services
Authorizations:
Responses
Response Schema: application/json
shopId required | string | ||||||||||
required | Array of com.fourthwall.openapi.model.StreamingStatusV1.Service.Twitch (object) | ||||||||||
Array One of
|
Response Schema: */*
Response samples
- 200
{- "shopId": "string",
- "services": [
- {
- "type": "string",
- "status": "ONLINE",
- "broadcasterId": "string",
- "broadcasterLogin": "string",
- "thumbnailUrl": "string"
}
]
}
Get Thank You by id
Get Thank You details
Authorizations:
path Parameters
thankYouId required | string Example: ty_EdJvIXu3SEiXe_QkPavHSA |
Responses
Response Schema: application/json
id required | string | ||||||||||||||||
mediaUrl required | string | ||||||||||||||||
required | com.fourthwall.openapi.model.ThankYouContribution.Donation (object) or com.fourthwall.openapi.model.ThankYouContribution.GiftPurchase (object) or com.fourthwall.openapi.model.ThankYouContribution.Membership (object) or com.fourthwall.openapi.model.ThankYouContribution.Order (object) | ||||||||||||||||
One of
|
Response Schema: */*
Response samples
- 200
{- "id": "ty_EdJvIXu3SEiXe_QkPavHSA",
- "contribution": {
- "type": "string",
- "id": "don_Kpcjx4HIQ1e4bTIOjX9CsA",
- "shopId": "sh_c689d374-22ca-43d3-8d29-9ef0805cc4cb",
- "supporter": {
- "email": "supporter@fourthwall.com",
- "username": "Johnny123",
- "message": "Sample message"
}
}
}
Get gift purchase by id
Returns gift purchase details by id
Authorizations:
path Parameters
giftPurchaseId required | string Example: giv_EdJvIXu3SEiXe_QkPavHSA |
Responses
Response Schema: application/json
id required | string | ||||||||||||||||||||||||||||||||||||||||
friendlyId required | string | ||||||||||||||||||||||||||||||||||||||||
shopId required | string | ||||||||||||||||||||||||||||||||||||||||
required | object (com.fourthwall.openapi.model.OfferAbstractV1.OfferGiftPurchaseV1) | ||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||
required | object (com.fourthwall.openapi.model.GiftPurchaseV1.Amounts) | ||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||
email required | string | ||||||||||||||||||||||||||||||||||||||||
username | string | ||||||||||||||||||||||||||||||||||||||||
message | string | ||||||||||||||||||||||||||||||||||||||||
quantity required | integer <int32> | ||||||||||||||||||||||||||||||||||||||||
required | Array of com.fourthwall.openapi.model.GiftPurchaseV1.Gift.Available (object) or com.fourthwall.openapi.model.GiftPurchaseV1.Gift.Cancelled (object) or com.fourthwall.openapi.model.GiftPurchaseV1.Gift.ChangedToPromotion (object) or com.fourthwall.openapi.model.GiftPurchaseV1.Gift.Redeemed (object) | ||||||||||||||||||||||||||||||||||||||||
Array One of
| |||||||||||||||||||||||||||||||||||||||||
createdAt required | string <date-time> |
Response Schema: */*
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",
- "quantity": 0,
- "gifts": [
- {
- "status": "string",
- "id": "gft_EdJvIXu3SEiXe_QkPavHSA",
- "winner": {
- "email": "supporter@fourthwall.com",
- "username": "Johnny123",
- "selectedAt": "2020-08-13T09:05:36.939Z"
}
}
], - "createdAt": "2019-08-24T14:15:22Z"
}
Get a webhook
Get a webhook
Authorizations:
path Parameters
webhookConfigurationId required | string |
Responses
Response Schema: application/json
id required | string |
url required | string |
allowedTypes required | Array of strings Items Enum: "ORDER_PLACED" "ORDER_UPDATED" "GIFT_PURCHASE" "PRODUCT_CREATED" "PRODUCT_UPDATED" "DONATION" "SUBSCRIPTION_PURCHASED" "SUBSCRIPTION_EXPIRED" "SUBSCRIPTION_CHANGED" "NEWSLETTER_SUBSCRIBED" "THANK_YOU_SENT" "GIFT_DRAW_STARTED" "GIFT_DRAW_ENDED" "PROMOTION_CREATED" "PROMOTION_UPDATED" "PROMOTION_STATUS_CHANGED" "PLATFORM_APP_DISCONNECTED" |
apiVersion required | string Value: "V1" |
Response Schema: */*
Response samples
- 200
{- "id": "string",
- "url": "string",
- "allowedTypes": [
- "ORDER_PLACED"
], - "apiVersion": "V1"
}
Update a webhook
Update a webhook
Authorizations:
path Parameters
webhookConfigurationId required | string |
Request Body schema: application/jsonrequired
url required | string |
allowedTypes required | Array of strings Items Enum: "ORDER_PLACED" "ORDER_UPDATED" "GIFT_PURCHASE" "PRODUCT_CREATED" "PRODUCT_UPDATED" "DONATION" "SUBSCRIPTION_PURCHASED" "SUBSCRIPTION_EXPIRED" "SUBSCRIPTION_CHANGED" "NEWSLETTER_SUBSCRIBED" "THANK_YOU_SENT" "GIFT_DRAW_STARTED" "GIFT_DRAW_ENDED" "PROMOTION_CREATED" "PROMOTION_UPDATED" "PROMOTION_STATUS_CHANGED" "PLATFORM_APP_DISCONNECTED" |
Responses
Response Schema: application/json
id required | string |
url required | string |
allowedTypes required | Array of strings Items Enum: "ORDER_PLACED" "ORDER_UPDATED" "GIFT_PURCHASE" "PRODUCT_CREATED" "PRODUCT_UPDATED" "DONATION" "SUBSCRIPTION_PURCHASED" "SUBSCRIPTION_EXPIRED" "SUBSCRIPTION_CHANGED" "NEWSLETTER_SUBSCRIBED" "THANK_YOU_SENT" "GIFT_DRAW_STARTED" "GIFT_DRAW_ENDED" "PROMOTION_CREATED" "PROMOTION_UPDATED" "PROMOTION_STATUS_CHANGED" "PLATFORM_APP_DISCONNECTED" |
apiVersion required | string Value: "V1" |
Response Schema: */*
Request samples
- Payload
{- "url": "string",
- "allowedTypes": [
- "ORDER_PLACED"
]
}
Response samples
- 200
{- "id": "string",
- "url": "string",
- "allowedTypes": [
- "ORDER_PLACED"
], - "apiVersion": "V1"
}
Get webhooks
Get webhooks
Authorizations:
Responses
Response Schema: application/json
required | Array of objects (com.fourthwall.openapi.model.WebhookConfigurationV1) | ||||||||
Array
| |||||||||
total | integer <int32> |
Response Schema: */*
Response samples
- 200
{- "results": [
- {
- "id": "string",
- "url": "string",
- "allowedTypes": [
- "ORDER_PLACED"
], - "apiVersion": "V1"
}
], - "total": 0
}
Create a webhook
Create a webhook
Authorizations:
Request Body schema: application/jsonrequired
url required | string |
allowedTypes required | Array of strings Items Enum: "ORDER_PLACED" "ORDER_UPDATED" "GIFT_PURCHASE" "PRODUCT_CREATED" "PRODUCT_UPDATED" "DONATION" "SUBSCRIPTION_PURCHASED" "SUBSCRIPTION_EXPIRED" "SUBSCRIPTION_CHANGED" "NEWSLETTER_SUBSCRIBED" "THANK_YOU_SENT" "GIFT_DRAW_STARTED" "GIFT_DRAW_ENDED" "PROMOTION_CREATED" "PROMOTION_UPDATED" "PROMOTION_STATUS_CHANGED" "PLATFORM_APP_DISCONNECTED" |
Responses
Response Schema: application/json
id required | string |
url required | string |
allowedTypes required | Array of strings Items Enum: "ORDER_PLACED" "ORDER_UPDATED" "GIFT_PURCHASE" "PRODUCT_CREATED" "PRODUCT_UPDATED" "DONATION" "SUBSCRIPTION_PURCHASED" "SUBSCRIPTION_EXPIRED" "SUBSCRIPTION_CHANGED" "NEWSLETTER_SUBSCRIBED" "THANK_YOU_SENT" "GIFT_DRAW_STARTED" "GIFT_DRAW_ENDED" "PROMOTION_CREATED" "PROMOTION_UPDATED" "PROMOTION_STATUS_CHANGED" "PLATFORM_APP_DISCONNECTED" |
apiVersion required | string Value: "V1" |
Response Schema: */*
Request samples
- Payload
{- "url": "string",
- "allowedTypes": [
- "ORDER_PLACED"
]
}
Response samples
- 200
{- "id": "string",
- "url": "string",
- "allowedTypes": [
- "ORDER_PLACED"
], - "apiVersion": "V1"
}
List membership tiers
Lists all tiers for the current shop
Authorizations:
Responses
Response Schema: application/json
id required | string |
name required | string |
imageUrl | string |
Response Schema: */*
Response samples
- 200
[- {
- "id": "string",
- "name": "string",
- "imageUrl": "string"
}
]
List members
Lists all members for the current shop
Authorizations:
query Parameters
page | integer <int32> Default: 0 |
size | integer <int32> Default: 20 Example: size=5 |
Responses
Response Schema: application/json
required | Array of objects (com.fourthwall.openapi.model.MembershipSupporterV1) | ||||||||||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||||||||||
total | integer <int32> |
Response Schema: */*
Response samples
- 200
{- "results": [
- {
- "id": "string",
- "email": "supporter@fourthwall.com",
- "nickname": "string",
- "createdAt": "2020-08-13T09:05:36.939Z",
- "subscription": {
- "type": "string",
- "variant": {
- "id": "string",
- "tierId": "string",
- "interval": "ANNUAL",
- "amount": {
- "value": 10,
- "currency": "USD"
}
}
}
}
], - "total": 0
}
Get member
Gets a member by id
Authorizations:
path Parameters
id required | string Example: 123456 |
Responses
Response Schema: application/json
id required | string | ||||||||||||||||||||
email required | string | ||||||||||||||||||||
nickname required | string | ||||||||||||||||||||
createdAt required | string <date-time> | ||||||||||||||||||||
required | com.fourthwall.openapi.model.MembershipSupporterV1.Subscription.Active (object) or com.fourthwall.openapi.model.MembershipSupporterV1.Subscription.Cancelled (object) or com.fourthwall.openapi.model.MembershipSupporterV1.Subscription.None (object) or com.fourthwall.openapi.model.MembershipSupporterV1.Subscription.Suspended (object) | ||||||||||||||||||||
One of
|
Response Schema: */*
Response samples
- 200
{- "id": "string",
- "email": "supporter@fourthwall.com",
- "nickname": "string",
- "createdAt": "2020-08-13T09:05:36.939Z",
- "subscription": {
- "type": "string",
- "variant": {
- "id": "string",
- "tierId": "string",
- "interval": "ANNUAL",
- "amount": {
- "value": 10,
- "currency": "USD"
}
}
}
}