Create a new owned item

POST /Api/OwnedItems

Requires verified email; Requires one of the following permissions: Shop.CreateOwnedItem; Requires the following features to be enabled: Shop

Body

Responses

curl \
 -X POST https://app.lovassy.hu/Api/OwnedItems \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"userId":"string","productId":42,"usedAt":"2024-05-04T09:42:00+00:00"}'
curl \
 -X POST https://app.lovassy.hu/Api/OwnedItems \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: text/json"
curl \
 -X POST https://app.lovassy.hu/Api/OwnedItems \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/*+json"
Request examples
{
  "userId": "string",
  "productId": 42,
  "usedAt": "2025-05-04T09:42:00Z"
}
Response examples (201)
{
  "id": 42,
  "userId": "string",
  "product": {
    "id": 42,
    "name": "string",
    "description": "string",
    "richTextContent": "string",
    "qrCodeActivated": true,
    "inputs": [
      {
        "type": "string",
        "key": "string",
        "label": "string"
      }
    ],
    "thumbnailUrl": "string",
    "createdAt": "2024-05-04T09:42:00+00:00",
    "updatedAt": "2024-05-04T09:42:00+00:00"
  },
  "usedAt": "2024-05-04T09:42:00+00:00",
  "createdAt": "2024-05-04T09:42:00+00:00",
  "updatedAt": "2024-05-04T09:42:00+00:00"
}