Wallkit provides paid access to the site content for end-users. The content entity can be such as

articles, files, reports, tickets, etc. (it is called “content” within the Wallkit).

Before following that guide, you might want to learn more about the value of content and access

rules in the Wallkit.

A typical flow of purchasing content on a WordPress website for this model would look like

this:

1. Admin creates an article in WordPress (specifying the purchasing price). While saving it, a

POST / admin / content request is being sent to the api to create a corresponding product on

Wallkit.

{
  "key": "string",
  "title": "string",
  "description": "string",
  "price": 0,
  "currency": "string",
  "content_type": "string",
  "taxonomies": [
    {
      "key": "string",
      "title": "string",
      "terms": [
        {
          "key": "string",
          "title": "string"
        }
      ]
    }
  ],
  "extra": {},
  "published_at": "string",
  "link": "string",
  "images": [
    {
      "url": "string",
      "title": "string",
      "width": 0,
      "height": 0
    }
  ]
}

2. When user visits this article - WordPress sends a GET / user / content / {key} request to

Wallkit to check if the user has an access rights to it.

{
  "allow": true,
  "data": {
    "key": "string",
    "title": "string",
    "description": "string",
    "price": 0,
    "currency": "string",
    "content_type": "string",
    "taxonomies": [
      {
        "key": "string",
        "title": "string",
        "terms": [
          {
            "key": "string",
            "title": "string"
          }
        ]
      }
    ],
    "extra": {},
    "published_at": "string",
    "link": "string",
    "images": [
      {
        "url": "string",
        "width": 0,
        "height": 0
      }
    ]
  }
}

3. The user can get access to an article in the following ways:

[
  {
    "item_type": "string",
    "item_key": "string",
    "user_card_id": 0,
    "item_resource": "string",
    "promo": "string"
  }
]