Add to Cart

Once the user is done customizing the product(s), we will forward the user to the URL of your shopping cart. Added to that URL is a query parameter labelled fe_cart_url that passes the URL at which you can request the items that need to be added to the user's shopping cart. You can then make a GET request to that URL and will receive the response body referenced below.

Important: Make sure to validate that the domain of the received fe_cart_url matches with the expected value (by default: api.{yourlabel}.fasteditor.com)

Response body

This response body is a JSON array with items, each having the following parameters:

NameRequiredDescriptionDataTypeExample
skuYesThe SKU of the created product as known by Partner.StringBOOK_13X13
projectKeyYesFastEditor’s Unique identifier for the finished copy of the project. This needs to be communicated back in the request in Sale NotificationInteger492393
projectIdYesFastEditor's Unique Identifier for the project. This can be used with the Smartlink function to send the user back into the project.Integer501438
pagesYesThe number of pages in the project. This is mostly relevant for photo books and sets of prints.Integer46
quantityYesNumber of items to add to the shopping cart.Integer1
imageUrlYesThe URL of a thumbnail image of the project.Stringhttps://fasteditor.com/image.jpg
outputNoFor logo products with multiple print areas. This provides an array of objects with parameters "previewUrls" and (optionally) "name"Array<Object>[{"previewUrls":["https://fasteditor.com/project-image/24/81/d51KHzFC5uahbFZuE0yn/1747750142?pageid=HXX-0yy5szTcr7yBh8WKF"],"name":"Front"},{"previewUrls":["https://fasteditor.com/project-image/24/81/d51KHzFC5uahbFZuE0yn/1747750142?pageid=qhnNe2JGC8CIAvDD_3SL6"],"name":"Back"}]
priceNoPrice for product as calculated by FastEditor. Cents as decimals.Number29.95
currencyNo3-letter ISO code for the currency that the price is communicated inStringEUR
customAttributesNoReturns the customAttributes send to the SmartLink endpointObject{ "quantity": 2 }
addOnQuantityNoFor products like photo books, this provides the number of extra pages (on top of the base number of pages for the product)Integer8

Example response

Below is an example response body that you can receive when making the GET request to the URL received through the fe_cart_url query parameter.

JSON
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard