{"openapi":"3.0.3","info":{"title":"Luzingu API","version":"2026-11","description":"Connect apps to Luzingu stores. Docs: https://luzingu.app/developers"},"servers":[{"url":"https://luzingu.app/api/v1"}],"components":{"securitySchemes":{"oauth":{"type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https://luzingu.app/oauth/authorize","tokenUrl":"https://luzingu.app/api/oauth/token","refreshUrl":"https://luzingu.app/api/oauth/token","scopes":{"read_store":"See the store's name, currency, country and link","read_products":"See products, variants, prices and stock","write_products":"Create, update and remove products the app manages","read_orders":"See orders, including the customer's name, email, phone and shipping address","write_fulfillments":"Add tracking to orders and mark them shipped or delivered"}}}}},"schemas":{"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}},"Variant":{"type":"object","properties":{"id":{"type":"string"},"sku":{"type":"string","nullable":true},"name":{"type":"string"},"options":{"type":"object","additionalProperties":{"type":"string"}},"price":{"type":"number","nullable":true},"stock":{"type":"integer","nullable":true},"image_url":{"type":"string","nullable":true},"status":{"type":"string","enum":["active","hidden"]}}},"Product":{"type":"object","properties":{"id":{"type":"string"},"external_id":{"type":"string","nullable":true},"managed_by_app":{"type":"string","nullable":true},"name":{"type":"string"},"display_name":{"type":"string"},"description":{"type":"string"},"status":{"type":"string","enum":["active","draft"]},"kind":{"type":"string"},"price":{"type":"number","nullable":true},"currency":{"type":"string"},"stock":{"type":"integer","nullable":true},"image_url":{"type":"string","nullable":true},"options":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"values":{"type":"array","items":{"type":"string"}}}}},"variants":{"type":"array","items":{"$ref":"#/components/schemas/Variant"}},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}}},"ProductInput":{"type":"object","required":["name"],"properties":{"external_id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"price":{"type":"number"},"stock":{"type":"integer","nullable":true},"status":{"type":"string","enum":["active","draft"]},"image_url":{"type":"string"},"images":{"type":"array","items":{"type":"string"}},"options":{"type":"array","items":{"type":"object"}},"variants":{"type":"array","items":{"type":"object"}}}},"Order":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"status":{"type":"string"},"currency":{"type":"string"},"subtotal":{"type":"number"},"shipping":{"type":"number"},"discount":{"type":"number"},"tax":{"type":"number"},"total":{"type":"number"},"refunded":{"type":"number"},"customer":{"type":"object"},"shipping_address":{"type":"object"},"items":{"type":"array","items":{"type":"object"}},"fulfillment":{"type":"object"},"paid_at":{"type":"string","nullable":true},"created_at":{"type":"string"},"updated_at":{"type":"string"}}},"FulfillmentInput":{"type":"object","properties":{"tracking_number":{"type":"string"},"carrier":{"type":"string"},"tracking_url":{"type":"string"},"status":{"type":"string","enum":["shipped","delivered"]},"group":{"type":"string","enum":["this_app","merchant"]}}}}},"paths":{"/store":{"get":{"summary":"The connected store","security":[{"oauth":["read_store"]}],"responses":{"200":{"description":"OK"},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/products":{"get":{"summary":"List products","security":[{"oauth":["read_products"]}],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":250}},{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"updated_since","in":"query","schema":{"type":"string","format":"date-time"}},{"name":"status","in":"query","schema":{"type":"string","enum":["active","draft"]}},{"name":"managed","in":"query","schema":{"type":"boolean"}},{"name":"external_id","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"products":{"type":"array","items":{"$ref":"#/components/schemas/Product"}},"next_cursor":{"type":"string","nullable":true}}}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create a product","security":[{"oauth":["write_products"]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductInput"}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"product":{"$ref":"#/components/schemas/Product"}}}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/products/{id}":{"get":{"summary":"Get a product","security":[{"oauth":["read_products"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"product":{"$ref":"#/components/schemas/Product"}}}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"summary":"Update a product your app created","security":[{"oauth":["write_products"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductInput"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"product":{"$ref":"#/components/schemas/Product"}}}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"summary":"Remove a product your app created","security":[{"oauth":["write_products"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK"},"403":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/orders":{"get":{"summary":"List paid orders","security":[{"oauth":["read_orders"]}],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":250}},{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"updated_since","in":"query","schema":{"type":"string","format":"date-time"}},{"name":"status","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"orders":{"type":"array","items":{"$ref":"#/components/schemas/Order"}},"next_cursor":{"type":"string","nullable":true}}}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/orders/{id}":{"get":{"summary":"Get an order","security":[{"oauth":["read_orders"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"order":{"$ref":"#/components/schemas/Order"}}}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/test/orders":{"post":{"summary":"Sandbox only: create a simulated paid order in a test store (no payment, no emails)","security":[{"oauth":["read_orders"]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","required":["product_id"],"properties":{"product_id":{"type":"string"},"variant_id":{"type":"string"},"quantity":{"type":"integer","minimum":1,"maximum":99}}}},"customer":{"type":"object"},"shipping_address":{"type":"object"}}}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"order":{"$ref":"#/components/schemas/Order"}}}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/orders/{id}/fulfillments":{"post":{"summary":"Add tracking","security":[{"oauth":["write_fulfillments"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FulfillmentInput"}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"order":{"$ref":"#/components/schemas/Order"}}}}}},"401":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"x-webhooks":{"orders/paid":{"post":{"summary":"orders/paid","description":"POST JSON signed with X-Luzingu-Signature: t=<unix>,v1=<hex HMAC-SHA256 of 't.body'>","responses":{"200":{"description":"Any 2xx within 10 seconds"}}}},"orders/updated":{"post":{"summary":"orders/updated","description":"POST JSON signed with X-Luzingu-Signature: t=<unix>,v1=<hex HMAC-SHA256 of 't.body'>","responses":{"200":{"description":"Any 2xx within 10 seconds"}}}},"products/created":{"post":{"summary":"products/created","description":"POST JSON signed with X-Luzingu-Signature: t=<unix>,v1=<hex HMAC-SHA256 of 't.body'>","responses":{"200":{"description":"Any 2xx within 10 seconds"}}}},"products/updated":{"post":{"summary":"products/updated","description":"POST JSON signed with X-Luzingu-Signature: t=<unix>,v1=<hex HMAC-SHA256 of 't.body'>","responses":{"200":{"description":"Any 2xx within 10 seconds"}}}},"inventory/updated":{"post":{"summary":"inventory/updated","description":"POST JSON signed with X-Luzingu-Signature: t=<unix>,v1=<hex HMAC-SHA256 of 't.body'>","responses":{"200":{"description":"Any 2xx within 10 seconds"}}}},"products/deleted":{"post":{"summary":"products/deleted","description":"POST JSON signed with X-Luzingu-Signature: t=<unix>,v1=<hex HMAC-SHA256 of 't.body'>","responses":{"200":{"description":"Any 2xx within 10 seconds"}}}},"app/uninstalled":{"post":{"summary":"app/uninstalled","description":"POST JSON signed with X-Luzingu-Signature: t=<unix>,v1=<hex HMAC-SHA256 of 't.body'>","responses":{"200":{"description":"Any 2xx within 10 seconds"}}}}}}