@spree/docs 0.1.96 → 0.1.97
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: "Monetary Amounts"
|
|
3
3
|
sidebarTitle: "Monetary Amounts"
|
|
4
|
-
description: "How
|
|
4
|
+
description: "How the Admin API represents money as decimal strings, why JSON numbers are avoided, and how to send prices, costs, and amounts safely in requests."
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
All monetary values in the Admin API are **strings** (e.g., `"29.99"`, `"0.0"`), both in responses and in request bodies. This preserves decimal precision and avoids the floating-point rounding issues common with JSON numbers — critical when an admin is setting prices and costs.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: "Call the Admin API from the CLI"
|
|
3
3
|
sidebarTitle: "Admin API"
|
|
4
|
-
description: "Use spree api
|
|
4
|
+
description: "Use spree api for generic get/post/patch/delete calls, schema introspection, and zero-config credentials — built for scripts and AI agents."
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
The `spree api` command group turns the CLI into a first-class Admin API client: generic HTTP verbs against any endpoint, schema introspection without leaving the terminal, and credentials that resolve automatically — from a local dev project to a production store profile. It works against any Spree 5.5+ instance and is designed to be driven by both humans and AI coding agents.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Store Credits & Gift Cards
|
|
3
|
-
description:
|
|
3
|
+
description: How Spree models store credits and gift cards — stored value balances, redeemable codes, and checkout usage for refunds, loyalty, and gifting.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
import { Since } from '/snippets/since.mdx';
|