Policies
The store's refund, privacy, terms of service, shipping and contact policies.
Endpoints#
Paths are relative to https://store.weftgrid.com/api/admin/2026-10. The examples read the token from $STORELOOM_TOKEN and ids from variables like $ORDER_ID.
List policies#
GET
/policies.jsonread_policiesThe store's refund, privacy, terms of service, shipping and contact information policies, in that order. Only policies that have been written are listed; ones with an empty body aren't shown in the store.
Request
curl "https://store.weftgrid.com/api/admin/2026-10/policies.json" \
-H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"Example responseShowHide
{ "policies": [ … ] }Set a policy#
PUT
/policies/{type}.jsonwrite_policiestype is refund, privacy, terms, shipping or contact (or the policy's handle, like refund-policy). The body is sanitized HTML; an empty body hides the policy from the store.
Request body
{ "policy": { "body": "<p>Returns are free within 30 days.</p>" } }Request with curl
curl -X PUT "https://store.weftgrid.com/api/admin/2026-10/policies/$TYPE.json" \
-H "X-Storeloom-Access-Token: $STORELOOM_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "policy": { "body": "<p>Returns are free within 30 days.</p>" } }'Example responseShowHide
{
"policy": {
"id": "cm2policy01",
"type": "refund",
"title": "Refund policy",
"handle": "refund-policy",
"body": "<p>We want you to love what you order…</p>",
"url": "https://juniper.example/policies/refund-policy",
"created_at": "2026-09-01T09:00:00.000Z",
"updated_at": "2026-10-20T08:00:00.000Z"
}
}