openapi: 3.1.0 info: title: Shopify Admin REST Collections Webhooks API description: 'The Shopify Admin REST API lets you build apps and integrations that extend and enhance the Shopify admin. It provides access to products, customers, orders, inventory, fulfillment, shipping, and store configuration. All requests require a valid Shopify access token. Note: Shopify is deprecating the REST Admin API in favor of GraphQL. New development should use the GraphQL Admin API.' version: 2024-10 termsOfService: https://www.shopify.com/legal/api-terms contact: name: Shopify Developer Support url: https://shopify.dev/docs/api/admin-rest license: name: API Terms of Service url: https://www.shopify.com/legal/api-terms servers: - url: https://{store_name}.myshopify.com/admin/api/2024-10 description: Shopify Admin REST API variables: store_name: description: The name of the Shopify store default: mystore security: - AccessToken: [] tags: - name: Webhooks paths: /webhooks.json: get: operationId: listWebhooks summary: List Webhooks description: Retrieves a list of webhook subscriptions. tags: - Webhooks responses: '200': description: Successful response with list of webhooks content: application/json: schema: type: object properties: webhooks: type: array items: $ref: '#/components/schemas/Webhook' post: operationId: createWebhook summary: Create Webhook description: Creates a new webhook subscription. tags: - Webhooks requestBody: required: true content: application/json: schema: type: object properties: webhook: $ref: '#/components/schemas/WebhookInput' responses: '201': description: Webhook created successfully content: application/json: schema: type: object properties: webhook: $ref: '#/components/schemas/Webhook' /webhooks/{webhook_id}.json: delete: operationId: deleteWebhook summary: Delete Webhook description: Deletes a webhook subscription. tags: - Webhooks parameters: - name: webhook_id in: path required: true description: The ID of the webhook schema: type: integer format: int64 responses: '200': description: Webhook deleted successfully components: schemas: Webhook: type: object properties: id: type: integer format: int64 address: type: string format: uri topic: type: string created_at: type: string format: date-time updated_at: type: string format: date-time format: type: string enum: - json - xml api_version: type: string WebhookInput: type: object required: - topic - address - format properties: topic: type: string description: The event that triggers the webhook (e.g., orders/create, products/update) address: type: string format: uri description: The URL where the webhook will POST data format: type: string enum: - json - xml description: The format of the data sent to the webhook address securitySchemes: AccessToken: type: apiKey in: header name: X-Shopify-Access-Token description: Shopify access token for authentication