Return and Shipping Policies, Defined Once¶
"Free returns within 30 days" and "free shipping over €50" sell products. Shoppers look for them, and search engines show them next to prices in product results. Yet in most catalogs they're text: a line in each product description, or a field copied onto every offer. When the policy changes, someone has to find every copy.
A policy is one thing with many users. Model it that way.
Two objects¶
Schema.org has a type for each, and ObjectsGrid stores both as objects of their own:
- A MerchantReturnPolicy: whether returns are accepted and for how long, how items come back, who pays, how the customer is refunded.
- A ShippingService: a way you ship or hand over orders, with its conditions and rates.
curl -X POST https://apis.objectsgrid.com/merchantreturnpolicies \
-H 'X-ObjectsGrid-AccessPoint: EU' -H "Authorization: Bearer $TOKEN" -H 'Content-Type: application/json' \
-d '{"name": [{"at_language": "en", "at_value": "30-day free returns"}],
"applicableCountry": "DE",
"returnPolicyCategory": ["https://schema.org/MerchantReturnFiniteReturnWindow"],
"merchantReturnDays": 30,
"returnMethod": ["https://schema.org/ReturnByMail"],
"returnFees": ["https://schema.org/FreeReturn"],
"refundType": ["https://schema.org/FullRefund"],
"merchantReturnLink": "https://shop.example.com/returns"}'
The values are Schema.org enumerations, the same in every language, so your page translates the labels and the data stays one.
Free shipping is a condition¶
A ShippingService holds ShippingConditions: where it ships, for which order values, weights or numbers of items, at what rate, and how long delivery takes. Free shipping above an amount isn't a special field; it's a second condition:
{
"name": [{"at_language": "en", "at_value": "Standard delivery"}],
"fulfillmentType": "https://schema.org/FulfillmentTypeDelivery",
"handlingTime": {"minValue": 0, "maxValue": 1, "value": 1, "unitCode": "DAY"},
"shippingConditions": [
{"shippingDestination": [{"addressCountry": "DE"}],
"orderValue": {"currency": "EUR", "value": 0, "maxValue": 49.99},
"shippingRate": {"currency": "EUR", "value": 4.90},
"transitTime": {"minValue": 1, "maxValue": 3, "value": 2, "unitCode": "DAY"}},
{"shippingDestination": [{"addressCountry": "DE"}],
"orderValue": {"currency": "EUR", "value": 50, "minValue": 50},
"shippingRate": {"currency": "EUR", "value": 0}}
]
}
Pickup in store is another service, with fulfillmentType FulfillmentTypePickupInStore, and a country you don't
ship to is a condition with doesNotShip.
Reference them¶
Your Organization points to its policies, and so they apply to everything it sells:
{
"name": [{"at_language": "en", "at_value": "Northpeak Outdoor"}],
"hasMerchantReturnPolicy": [{"at_id": "https://apis.objectsgrid.com/merchantreturnpolicies/<id>"}],
"hasShippingService": [{"at_id": "https://apis.objectsgrid.com/shippingservices/<id>"}]
}
Where something differs, the narrower object says so: a final-sale Offer or a bulky
Product has its own hasMerchantReturnPolicy, and an Offer's shippingDetails can name
the hasShippingService it ships with. Apps take the Offer's policy first, then its Product's, then the seller's.
Change the 30 days to 60 in one object, and every page that shows it is right on its next read.
In your structured data¶
Search engines read these policies from Schema.org markup on your pages, on the products and on the organization. Ask
ObjectsGrid for an Offer, Product or Organization as application/ld+json, and its
JSON-LD document embeds the return policies and shipping services it references, under
your own page addresses. You don't assemble the markup, and it can't drift from what your checkout charges.
Check a page with Google's Rich Results Test after you publish, and keep the text on the page the same as the markup: a page that promises 30 days while its data says 14 is the kind of mismatch search engines refuse.
Who may change them¶
They're objects, so your access policy decides. A new Organization Account's default policy lets anyone read them, as part of the public catalog, and only your own accounts change them. Every change is a version you can read back, so "what did our return policy say on 3 March?" has an answer.
See Carts and checkout for the rest of the shopping flow, and what JSON-LD is and how Google uses it for why structured data matters.