receipt_template
Collection: receipt_templates
The Receipt Template contains the Twig content used to display the receipt page for your store. To use the default responsive theme, leave the content property empty. If you want to set your own template content, configure a content_url and then POST to the cache link relationship to cache your store's receipt template. This will run your content through our caching system which will rewrite all the JavaScript, CSS, and HTML to cache images securely on our servers.
Required Scopes
store_full_access templates_read templates_write Actions
Properties (5)
description String The description of your receipt template. Required. 100 characters or less. Defaults to Receipt Template.
content String The content of your receipt template. Leave blank to use the default responsive template. This shouldn't be set directly unless all of your image references are already over https. If they are not, set the content_url to point to your template content online and then POST to the cache link relationship.
content_url String The URL of your receipt template hosted on your own server online and publicly available for our server to cache. 300 characters or less.
date_created String (nullable) · Read-only The date this resource was created.
date_modified String (nullable) · Read-only The date this resource was last modified.
Link Relations (5)
self This Template fx:cache POST here to cache your template using the content_url fx:encode POST here to encode a body of html for use with our HMAC cart encryption. Example Representation
{
"_links": {
"curies": [
{
"name": "fx",
"href": "https://api.foxycart.com/rels/{rel}",
"templated": true
}
],
"self": {
"href": "https://api.foxycart.com/receipt_templates/123",
"title": "This Template"
},
"fx:store": {
"href": "https://api.foxycart.com/stores/456",
"title": "This Store"
},
"fx:template_sets": {
"href": "https://api.foxycart.com/receipt_templates/123/template_sets",
"title": "Template Sets using this template"
},
"fx:cache": {
"href": "https://api.foxycart.com/receipt_templates/123/cache",
"title": "POST here to cache your template using the content_url"
},
"fx:encode": {
"href": "https://api.foxycart.com/encode",
"title": "POST here to encode a body of html for use with our HMAC cart encryption."
}
},
"description": "Receipt Template",
"content": "",
"content_url": "",
"date_created": "2012-08-10T11:58:54-0700",
"date_modified": "2012-08-10T11:58:54-0700"
}