Policy

The list of policies that a merchant has configured for their store, such as their refund or privacy policies.

Only the shop owner can edit this information from inside their shop admin dashboard by navigating to the "Settings" tab and selecting the "Checkout" tab. The API doesn't let you do anything other than retrieve information about a shop.

What can you do with Policy?

The Shopify API lets you do the following with the Policy resource. More detailed versions of these general actions may be available:

Policy Properties

title
{ "title" : "Refund Policy" }

Name of the policy

body
{ "body" : "You have 30 days to get a refund" }

Contents of the policy

url
{ "url" : "https://apple.myshopify.com/690933842/policies/878590288"" }

Public URL to policy

created_at
{ "created_at" : "2012-02-15T15:12:21-05:00" }

The date and time when the policy was created. The API returns this value in ISO 8601 format.

updated_at
{ "updated_at" : "2012-08-24T14:01:47-04:00" }

The date and time when the policy was last modified. The API returns this value in ISO 8601 format.

Endpoints

GET /admin/policies.json

Get the policies and their contents for a shop

getting the shops policies

GET /admin/policies.json
View Response
HTTP/1.1 200 OK
{
  "policies": [
    {
      "title": "Refund Policy",
      "body": "You have 30 days to get a refund",
      "created_at": "2016-11-09T13:43:06-05:00",
      "updated_at": "2016-11-09T13:43:06-05:00",
      "url": "https:\/\/apple.myshopify.com\/690933842\/policies\/878590288"
    }
  ]
}