---
updatedAt: 2025-09-03T06:03:02.000Z
agentTools:
  projectIndex: https://docs.deducto.io/llms.txt
---

# Handle incoming Shopify webhook events

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Deducto API",
    "version": "1.0.0",
    "description": "Deducto backend management API and storefront integration endpoints"
  },
  "servers": [
    {
      "url": "https://api.use.deducto.io",
      "description": "US East server"
    },
    {
      "url": "https://api.usw.deducto.io",
      "description": "US West server"
    },
    {
      "url": "https://api.euc.deducto.io",
      "description": "EU server"
    },
    {
      "url": "https://api.au.deducto.io",
      "description": "Asia Pacific server"
    }
  ],
  "security": [
    {
      "BearerAuth": []
    }
  ],
  "components": {
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "JWT token or API key for authentication. Include as 'Bearer <token>' in the Authorization header."
      }
    },
    "schemas": {
      "EmptyResponse": {
        "type": "object",
        "properties": {}
      }
    }
  },
  "paths": {
    "/v1/checkout/{projectId}/shopify/webhook": {
      "post": {
        "tags": [
          "Shopify"
        ],
        "summary": "Handle incoming Shopify webhook events",
        "parameters": [
          {
            "name": "projectId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The project ID"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "admin_graphql_api_id": {
                    "type": "string"
                  },
                  "token": {
                    "type": "string"
                  },
                  "cart_token": {
                    "type": "string"
                  },
                  "checkout_id": {
                    "type": "string"
                  },
                  "email": {
                    "type": "string",
                    "nullable": true
                  },
                  "buyer_accepts_marketing": {
                    "type": "boolean"
                  },
                  "created_at": {
                    "type": "string"
                  },
                  "updated_at": {
                    "type": "string"
                  },
                  "user_id": {
                    "type": "string"
                  },
                  "taxes_included": {
                    "type": "boolean"
                  },
                  "total_weight": {
                    "type": "number"
                  },
                  "currency": {
                    "type": "string"
                  },
                  "completed_at": {
                    "type": "string",
                    "nullable": true
                  },
                  "closed_at": {
                    "type": "string",
                    "nullable": true
                  },
                  "note_attributes": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string"
                        },
                        "value": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "name",
                        "value"
                      ]
                    }
                  },
                  "line_items": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "product_id": {
                          "type": "number"
                        },
                        "variant_id": {
                          "type": "number"
                        },
                        "title": {
                          "type": "string"
                        },
                        "price": {
                          "type": "string"
                        },
                        "quantity": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "product_id",
                        "variant_id",
                        "title",
                        "price",
                        "quantity"
                      ]
                    }
                  },
                  "shipping_lines": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "price": {
                          "type": "string"
                        },
                        "handle": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "code",
                        "price"
                      ]
                    }
                  }
                },
                "required": [
                  "id",
                  "admin_graphql_api_id",
                  "token",
                  "cart_token",
                  "checkout_id",
                  "email",
                  "buyer_accepts_marketing",
                  "created_at",
                  "updated_at",
                  "user_id",
                  "taxes_included",
                  "total_weight",
                  "currency",
                  "completed_at",
                  "closed_at",
                  "note_attributes",
                  "line_items",
                  "shipping_lines"
                ],
                "description": "Request schema for handling incoming Shopify webhook events",
                "title": "Shopify Webhook Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful operation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmptyResponse"
                }
              }
            }
          }
        }
      }
    }
  }
}
```