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 (*.fasteditor.com)

Response body

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

NameDescriptionDataTypeExample
skuThe SKU of the created product as known by Partner.String101032-001#DigitalTransferOS#itemfront#100#50#3
projectKeyFastEditor’s Unique identifier for the finished copy of the project. This needs to be communicated back in the request in Sale NotificationInteger1480
projectIdFastEditor's Unique Identifier for the project. This can be used with the Smartlink function to send the user back into the project.Integer615
pagesThe number of pages in the project. This is mostly relevant for photo books and sets of prints.Integer46
quantityNumber of items to add to the shopping cart.Integer1
imageUrlThe URL of a thumbnail image of the project.Stringhttps://zecbotvh3i.execute-api.eu-west-1.amazonaws.com/staging/project-image/21/1480/WkLBs47TZOCbpRzxKjhg/1759747383
outputFor logo products with multiple print areas. This provides an array of objects with parameters "previewUrls" and (optionally) "name"Array<Object>See output table below
pricePrice for product as calculated by FastEditor. Cents as decimals.Number19.95
currency3-letter ISO code for the currency that the price is communicated inStringEUR
country2-letter ISO code for the country linked to the user sessionStringES
languageISO code for the active language in the editorStringnl
customAttributesReturns the customAttributes send to the POST - Create SmartlinkAPI endpointObject{ "quantity": 2 }
addOnQuantityFor products like photo books, this provides the number of extra pages (on top of the base number of pages for the product)Integer8

Output

The output parameter in the response body will hold an array with all (used) print positions in the product. Each object in the array will have the following

NameDescriptionDataTypeExample
previewUrlsProvides the URL to the image showing the mockup of the print positionArray<string>"[https://zecbotvh3i.execute-api.eu-west-1.amazonaws.com/staging/project-image/21/1480/WkLBs47TZOCbpRzxKjhg/1759747383?pageid=8ivi8IvIz7tfI9NqwlfVJ"]
printMethodOne of the (normalized) available print methods, see: Onboarding of ProductsStringDigital transfer
nameLocalized name of the print positionStringFront
pmsColorsArray of used PMS colors in the user's artworkArray<string>["PANTONE 353 C"]
supplierPrintMethodNamePrint method name as defined in the original supplier data (non-normalized source data)StringDigital transfer
supplierPrintMethodCodePrint method code as defined in the original supplier data (non-normalized source data)StringDigital Transfer OS
supplierPrintAreaCodeCode for the print position as defined in the original supplier data (non-normalized source data)Stringitem front
supplierPrintAreaNameName for the print position as defined in the original supplier data (non-normalized source data)Stringitem front

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