View receipt template
documentedRetrieve a receipt template.
GET /template_sets/{template_set_id}/receipt_templateStoresno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
Note: The Foxy hAPI docs expose the receipt template as a linked resource from the template_set resource (fx:receipt_template). There isn’t a documented, single-step endpoint explicitly named GET /template_sets/{template_set_id}/receipt_template. To fetch the receipt_template for a given template_set, you typically first fetch the template_set to discover the fx:receipt_template URL, then request that URL. See the template_set representation showing fx:receipt_template href (e.g. https://api-sandbox.foxycart.com/receipt_templates/20). ([api.foxy.io](https://api.foxy.io/rels/template_sets))
# Step 1: Get the template_set to discover the receipt_template URL
npx -y keychains@latest curl "https://api-sandbox.foxycart.com/template_sets/{{$template_set_id}}" \
-X GET \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Accept: application/hal+json" \
# Step 2: Fetch the receipt_template using the URL discovered in Step 1
npx -y keychains@latest curl "https://api-sandbox.foxycart.com/receipt_templates/{{$receipt_template_id}}" \
-X GET \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Accept: application/hal+json"