Read a category template
GET
The template has three parts.
category.settings tells you the rules of the category:
| Setting | Meaning |
|---|---|
inventoryMode | unique (one item per listing), stock (many identical items) or currency (sold by amount) |
stockListingsEnabled | Whether a unique category also accepts stock listings |
allowedDeliveryModes | instant, manual or both |
deliveryMethods | Delivery methods the category accepts |
deliveryHours | Delivery time options for manual delivery |
catalogRequired | The listing must point to a catalog product |
sellerTitle | Whether you write the title. When false, the title is built from your selections |
sellerImages, maxImages | Whether you can add images and how many |
discountEnabled | Whether a discount is accepted |
requireReview | Whether a published listing goes to review first |
commissionRate | Commission taken from the sale |
maxActiveListingsPerSeller | Base cap on active listings in this category |
fields lists the fields of the category. Each field has a fieldKey (the name you send), a label, a renderType, its options, its rules in settings and a fieldGroup:
fieldGroup | Where the values go |
|---|---|
listing | attributes of the listing |
delivery | deliveryPayload of the listing, payload of a stock item, values when you deliver an order |
buyer | Filled by the buyer at checkout. You read them on the order |
schemaHash changes when the fields change. Store it and read the template again when it differs.