Right now, Platform OAuth is invite only. Please contact us to get access.
We will need to know:
- Your redirect URL
- The permissions you need for the app
Authorize url
Link your users to this url to start the login process for your app.
https://my-shop.fourthwall.com/admin/platform-apps/<YOUR_CLIENT_ID>/connect?redirect_uri=<YOUR_URL_ENCODED_REDIRECT_URL>
Getting an access token
After the user has authorized your app, they will be redirected to your redirect URL with an authorization code. You will need to exchange this code for an access token.
curl example:
curl -XPOST https://auth.fourthwall.com/auth/realms/Fourthwall/protocol/openid-connect/token \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "grant_type=authorization_code&redirect_uri=<YOUR_REDIRECT_URL>&client_id=<YOUR_CLIENT_ID>&client_secret=<YOUR_CLIENT_SECRET>&code=<AUTHORIZATION_CODE>"
The response will contain an access_token
, refresh_token
, and other information.
Using the access token
curl example:
curl -XGET https://api.fourthwall.com/open-api/v1/order/{YOUR_ORDER_ID} \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
Refreshing the access token
Access tokens expire rather quickly (within 1 hour). You can use the refresh_token to get a new access token without having to re-authorize the user.
curl example:
curl -XPOST https://auth.fourthwall.com/auth/realms/Fourthwall/protocol/openid-connect/token \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "grant_type=refresh_token&client_id=<YOUR_CLIENT_ID>&client_secret=<YOUR_CLIENT_SECRET>&refresh_token=<YOUR_REFRESH_TOKEN>"
Getting credentials
Note that the creation of API credentials is reserved for users with the SUPER ADMIN role.
- Navigate to For developers to create an 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. 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.
Authorizing with credentials
After Open API User was created, you can authorize your request by using Basic Access Authentication.
This can be achieved by constructing an Authorization header with the format Basic
curl example:
curl -u "your_username:your_password" http://api.fourthwall.com/open-api/v1/order/{YOUR_ORDER_ID}
Javascript example:
const username = "your_username";
const password = "your_password";
// Combine username and password with a colon
const combinedCredentials = `${username}:${password}`;
// Encode the combined credentials to Base64
const base64Credentials = btoa(combinedCredentials);
const apiUrl = "http://api.fourthwall.com/open-api/v1/order/{YOUR_ORDER_ID}";
const requestOptions = {
method: "GET",
headers: {
"Authorization": `Basic ${base64Credentials}`,
"Content-Type": "application/json"
}
};
fetch(apiUrl, requestOptions)
.then(response => response.json()) // Parse the JSON response directly
.then(data => {
// Handle the API response data here
console.log(data);
})
.catch(error => {
// Handle errors
console.error("Error:", error);
});
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.
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
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" |
Responses
Request samples
- Payload
{- "url": "string",
- "allowedTypes": [
- "ORDER_PLACED"
]
}
Response samples
- 200
{- "id": "string",
- "url": "string",
- "allowedTypes": [
- "ORDER_PLACED"
], - "apiVersion": "V1"
}
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" |
Responses
Request samples
- Payload
{- "url": "string",
- "allowedTypes": [
- "ORDER_PLACED"
]
}
Response samples
- 200
{- "id": "string",
- "url": "string",
- "allowedTypes": [
- "ORDER_PLACED"
], - "apiVersion": "V1"
}
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": "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
Request samples
- Payload
{- "services": [
- "TWITCH"
]
}
Response samples
- 200
{- "shopId": "string",
- "services": [
- {
- "type": "string",
- "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": "string"
}, - "access": {
- "type": "string"
}, - "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": "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
}
]
}
], - "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 |
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": "string"
}, - "access": {
- "type": "string"
}, - "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": "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
}
]
}
], - "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": "string"
}, - "access": {
- "type": "string"
}, - "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": "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
}
]
}
], - "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": "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
}
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 a promotion
Creates a promotion
Authorizations:
Request Body schema: application/jsonrequired
type required | string |
Responses
Request samples
- Payload
{- "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"
}
}
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": "string",
- "id": "gft_EdJvIXu3SEiXe_QkPavHSA",
- "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": "string",
- "id": "gft_EdJvIXu3SEiXe_QkPavHSA",
- "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"
}
Add shipping label to fulfillment
Takes fulfillment_id, carrier name, tracking number and adds new shipping label to fulfillment. Optionally you can provide shipping method, tracker url and list items contained in particular shipping label.
Authorizations:
path Parameters
fulfillmentId required | string |
Request Body schema: application/jsonrequired
trackingCompany required | string |
trackingService | string |
trackingNumber | string |
labelUrl | string |
required | Array of objects (com.fourthwall.fulfillment.model.FulfillmentShippingLabelItem) |
Responses
Request samples
- Payload
{- "trackingCompany": "string",
- "trackingService": "string",
- "trackingNumber": "string",
- "labelUrl": "string",
- "items": [
- {
- "offerVariantId": "d6f05316-88ea-4522-826d-f67ebef7c3f0",
- "quantity": 1
}
]
}
Response samples
- 201
{- "id": "string",
- "shopId": "string",
- "orderId": "b3e1eced-f2bd-4d8c-9765-fbc9d1d222d5",
- "status": "OPEN",
- "fulfillmentService": "FULFILLED_BY_CREATOR",
- "items": [
- {
- "variantId": "d53feca7-c65b-4741-aca7-827a42d686bf",
- "quantity": 1
}
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "shippingLabels": [
- {
- "trackingCompany": "string",
- "trackingService": "string",
- "trackingNumber": "string",
- "labelUrl": "string",
- "items": [
- {
- "offerVariantId": "d6f05316-88ea-4522-826d-f67ebef7c3f0",
- "quantity": 1
}
]
}
], - "orderShipmentId": "string",
- "fulfillmentServiceShopConfigId": 0
}
Find fulfillments ids by friendly ids and fulfillment service
Find fulfillments ids by friendly ids and fulfillment service
Authorizations:
Request Body schema: application/jsonrequired
friendlyIds required | Array of strings |
fulfillmentService required | string Enum: "FULFILLED_BY_CREATOR" "FULFILLED_BY_FOURTHWALL" "FULFILLED_BY_MANUFACTURER" "WLM" "CTC" "WLM_3PL" "PRINTFUL" "SPOKE" "GNARLYWOOD" "DIGITAL_ITEM" "WHIPLASH_3PL" "WHIPLASH_FREE" "COSMOPOLITAN" "BOLT_STITCH" "SUPER_CULTURE" "SEVENTY_EIGHT_STRANGE" "MOGUL_MERCH_LOCAL" "MOGUL_MERCH_SHIP_BOB" "RVLT_SHIP_HERO" "OFFLINE_TV_SHIPSTATION" "HOMEMADE_MERCH" "DUBOW" "DUBOW_ORDER_DESK" "TRIBE" "OPTIGER" "OVERCAST" "MWW" "P3" "P3_ORDER_DESK" "CHIVA_TOYS" "USOURCED" "KNITWISE" "SHIP_MONK" "DOD" |
Responses
Request samples
- Payload
{- "friendlyIds": [
- "string"
], - "fulfillmentService": "FULFILLED_BY_CREATOR"
}
Response samples
- 200
[- {
- "friendlyId": "string",
- "fulfillmentService": "FULFILLED_BY_CREATOR",
- "fulfillmentId": "string"
}
]
Bulk add shipping label to fulfillment
Takes a list of fulfillment_id, carrier name, tracking number and adds new shipping label to fulfillment. Similar to saveFulfillmentShippingLabel but in bulk.
Authorizations:
query Parameters
required | object (com.fourthwall.app.openapi.OpenApiFulfillmentEndpoint$BulkSaveFulfillmentsShippingLabelsRequest) |
Responses
Response samples
- 201
{- "result": [
- {
- "id": "string",
- "shopId": "string",
- "orderId": "b3e1eced-f2bd-4d8c-9765-fbc9d1d222d5",
- "status": "OPEN",
- "fulfillmentService": "FULFILLED_BY_CREATOR",
- "items": [
- {
- "variantId": "d53feca7-c65b-4741-aca7-827a42d686bf",
- "quantity": 1
}
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z",
- "shippingLabels": [
- {
- "trackingCompany": "string",
- "trackingService": "string",
- "trackingNumber": "string",
- "labelUrl": "string",
- "items": [
- {
- "offerVariantId": "d6f05316-88ea-4522-826d-f67ebef7c3f0",
- "quantity": 1
}
]
}
], - "orderShipmentId": "string",
- "fulfillmentServiceShopConfigId": 0
}
]
}
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": "string",
- "id": "don_Kpcjx4HIQ1e4bTIOjX9CsA",
- "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 |
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": "string",
- "giftId": "gft_EdJvIXu3SEiXe_QkPavHSA"
}, - "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": "string",
- "giftId": "gft_EdJvIXu3SEiXe_QkPavHSA"
}, - "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": "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 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 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"
}