Fejlesztőknek
Kezdj bele
Appok/Jogosultságok és témák

Jogosultságok és témák

Minden jogosultság, amit egy app kérhet, minden webhook-téma, amire feliratkozhat, minden UI target, ahová renderelhet, és minden API-hibakód. A platform contractokból generálva.

Ezen az oldalon

Ezek a táblázatok minden dokumentáció-build során a platform contractokból készülnek, így mindig megegyeznek azzal, amit a manifest-érvényesítő elfogad.

Jogosultságok

Egy app a jogosultság-azonosítókat a poltura.app.json fájl permissions.required és permissions.optional mezőiben sorolja fel, mindegyikhez megadva a célt. Ugyanezeket a jogosultságokat adják a kereskedők a csapattagjaiknak is, így a kereskedő a telepítéskor ugyanazt a címkét látja, mint a csapatbeállításokban. Az írási jogosultságok csak azokat a mezőket módosítják, amelyek az App API referenciában szerepelnek. A telepítési tárhelyhez és az app.* lifecycle webhookokhoz nem kell jogosultság.

A teljes katalógus – angol és magyar nyelvű címkékkel és leírásokkal – elérhető a GET https://api.poltura.com/v1/access/catalog?locale=en (vagy locale=hu) endpointon.

PermissionAccessWhat merchants see
orders.readReadSee orders See orders, their items, payments and fulfilments
orders.writeWriteChange orders Edit orders, create fulfilments and returns
orders.refundWriteRefund orders Refund payments
products.readReadSee products See products, variants, prices, stock and collections
products.writeWriteEdit products Create and edit products, variants, prices, stock and collections
products.publishWritePublish products Put products on the storefront and take them down
customers.readReadSee customers See customers, their contact details, addresses and order history
customers.writeWriteChange customers Create and edit customers, their addresses and groups
promotions.readReadSee discounts See discounts, promotions and their rules
promotions.writeWriteChange discounts Create and change discounts and promotions
content.readReadSee content See pages, blog posts and guides
content.writeWriteChange content Write and edit pages, blog posts and guides
media.readReadSee media See the store’s images, videos and files
media.writeWriteUpload and edit media Upload, replace and edit images, videos and files
media.deleteWriteDelete media Delete images, videos and files nothing uses any more
settings.readReadSee store settings See the store’s name, languages, currencies, regions and shipping
settings.writeWriteChange store settings Change the store’s name, languages, currencies, regions and shipping
imports.readReadSee imports and their reports See imports from other platforms and files, and their reports
imports.writeWriteConnect shops and run imports Connect another shop and import its products, customers and orders
integrations.readReadSee apps See connected apps and their settings
integrations.writeWriteConnect and set up apps Connect apps and change their settings
apps.installWriteInstall apps Install and remove apps, and choose the stores and permissions each one gets
feeds.readReadSee feeds See product feeds for comparison sites and marketplaces, and which products they list
feeds.writeWriteSet up and change feeds Set up product feeds and change their rules
team.readReadSee the team See the organization’s members and their roles
organization.settings.writeWriteChange organization settings Change the organization’s name and settings
projects.manageWriteCreate and delete stores Create new stores in the organization and delete existing ones
domains.readReadSee domains See the organization’s domains and their DNS status
domains.manageWriteAdd and change domains Add, connect and change domains, and point them at stores
billing.readReadSee invoices and plans See invoices, plans, add-ons and usage
billing.accounts.manageWriteManage billing accounts Create billing accounts and change their billing details
theme.readReadSee the theme See the storefront theme and its settings
theme.writeWriteChange the theme Change the storefront theme, its sections and settings
theme.code.writeWriteEdit theme code Change theme code files, styles and assets in a theme draft
theme.publishWritePublish the theme Make a theme draft live for shoppers, or roll the live theme back
storefront.status.readReadSee the store status and password See whether the store is open, closed or behind a password, and the password
storefront.status.manageWriteOpen, close and set the store password Open and close the store, and set or remove its password
inbox.readReadRead messages Read customer messages and conversations
inbox.replyWriteReply to messages Reply to customer messages and assign conversations
inbox.manageWriteChange inbox settings Change the inbox’s channels, rules and settings
inbox.ai.useWriteDraft replies with AI Draft replies to customers with AI
mail.readReadSee sent emails See the emails the store sent and whether they arrived
mail.content.readReadOpen sent email content Open what a sent email said
mail.resendWriteResend sent emails Send an email the store sent once more
ai.assistant.useWriteUse the AI assistant Ask the AI assistant for help in the admin
ai.coder.useWriteChange the store’s code with AI Have AI change the storefront’s code
translation.useWriteTranslate the store Translate the store into other languages

Webhook-témák

Iratkozz fel a webhooks[] tömbben egy téma és egy HTTPS-célcím megadásával. A kézbesítések Ed25519-aláírással vannak ellátva; lásd: Webhookok.

ResourceTopics
productproduct.createdproduct.updatedproduct.deleted
orderorder.createdorder.updatedorder.paidorder.fulfilledorder.cancelled
customercustomer.createdcustomer.updated
inventoryinventory.updated
appapp.installedapp.updatedapp.suspendedapp.uninstalled
installationinstallation.permissions_changedinstallation.stores_changed

UI targetek

A natív UI-workerek ezekre a targetekre renderelnek. Lásd: Adminfelület és Webáruház.

SurfaceTargets
adminadmin.page, admin.home, admin.product, admin.collection, admin.order, admin.customer
storefrontstorefront.home, storefront.products, storefront.product, storefront.cart, storefront.checkout, storefront.login, storefront.register, storefront.account, storefront.contact, storefront.page, storefront.layout.header, storefront.layout.footer, storefront.app-page

Hibakódok

Minden App API-hiba az alábbi kódok valamelyikét tartalmazza.

CodeStatus
invalid_input400
unauthorized401
forbidden403
insufficient_scope403
not_found404
conflict409
stale_version412
quota_exceeded409
rate_limited429
payload_too_large413
unsupported_api_version400
unavailable503
Utoljára frissítve