{"components":{"responses":{},"schemas":{"ApplicableDiscount":{"properties":{"data":{"properties":{"attributes":{"$ref":"#/components/schemas/ApplicableDiscountAttributes"},"id":{"description":"discounts ID","type":"string"},"type":{"enum":["discounts"],"type":"string"}},"required":["type","attributes"],"type":"object"},"jsonapi":{"$ref":"#/components/schemas/JsonApi"}},"title":"ApplicableDiscount","type":"object","x-struct":"Elixir.OMSWeb.APISchemas.ApplicableDiscountsResponse.ApplicableDiscount"},"ApplicableDiscountAttributes":{"properties":{"auto_apply":{"description":"Whether the discount is automatically applied","type":"boolean"},"code_name":{"description":"Discount code","type":"string"},"description":{"description":"Discount description","type":"string"},"end_date":{"description":"Expiration date","format":"datetime","type":"string"},"legal_disclaimer":{"description":"Legal disclaimer","type":"string"},"prerequisite_customer_type":{"description":"First time/returning customer eligibility requirements","type":"string"},"redemption_details":{"description":"Redemption details","type":"string"},"title":{"description":"Discount title","type":"string"}},"title":"ApplicableDiscountAttributes","type":"object","x-struct":"Elixir.OMSWeb.APISchemas.ApplicableDiscountAttributes"},"ApplicableDiscountsResponse":{"description":"Response schema for applicable discounts","properties":{"data":{"description":"Discount details","items":{"$ref":"#/components/schemas/ApplicableDiscount"},"type":"array"}},"title":"ApplicableDiscountsResponse","type":"object","x-struct":"Elixir.OMSWeb.APISchemas.ApplicableDiscountsResponse"},"DocumentUrlResponse":{"properties":{"data":{"description":"URL of document resource","type":"string"}},"required":["data"],"title":"DocumentUrlResponse","type":"object","x-struct":"Elixir.OMSWeb.APISchemas.DocumentUrlResponse"},"Forbidden":{"properties":{"errors":{"items":{"properties":{"code":{"enum":["2-8"],"example":"2-8","type":"string"},"detail":{"example":"Permission error, unable to access this object","type":"string"},"status":{"enum":["403"],"type":"string"},"title":{"example":"Forbidden","type":"string"}},"type":"object"},"type":"array"},"jsonapi":{"properties":{"version":{"enum":["1.0"],"type":"string"}},"required":["version"],"type":"object"}},"required":["errors","jsonapi"],"title":"Forbidden","type":"object","x-struct":"Elixir.OMSWeb.APISchemas.Forbidden"},"JsonApi":{"properties":{"version":{"enum":["1.0"],"type":"string"}},"title":"JsonApi","type":"object","x-struct":"Elixir.OMSWeb.JsonApi"},"NoContentResponse":{"title":"NoContentResponse","type":"string","x-struct":"Elixir.OMSWeb.APISchemas.NoContentResponse"},"NotFoundResponse":{"properties":{"errors":{"items":{"properties":{"code":{"enum":["3-13"],"example":"3-13","type":"string"},"detail":{"example":"The requested resource cannot be found.","type":"string"},"source":{"properties":{"parameter":{"example":"path://id","type":"string"}},"required":["parameter"],"type":"object"},"status":{"enum":["404"],"type":"string"},"title":{"example":"ResourceNotFound","type":"string"}},"required":["detail","code","source","status","title"],"type":"object"},"type":"array"},"jsonapi":{"properties":{"version":{"enum":["1.0"],"type":"string"}},"required":["version"],"type":"object"}},"required":["errors","jsonapi"],"title":"NotFoundResponse","type":"object","x-struct":"Elixir.OMSWeb.APISchemas.NotFoundResponse"},"OrderPayload":{"additionalProperties":true,"description":"Order payload. See specification in the OMS specs.","title":"OrderPayload","type":"object","x-struct":"Elixir.OMSWeb.OrderPayload"},"ScheduledOrderWindowResponse":{"description":"List of available time windows for scheduling","items":{"properties":{"end":{"description":"ISO 8601 formatted UTC timestamp for the end of this window","nullable":false,"type":"string"},"start":{"description":"ISO 8601 formatted UTC timestamp for the start of this window","nullable":false,"type":"string"}},"type":"object"},"nullable":false,"title":"ScheduledOrderWindowResponse","type":"array","x-struct":"Elixir.OMSWeb.APISchemas.ScheduledOrderWindowResponse"},"ServiceUnavailableResponse":{"properties":{"errors":{"items":{"properties":{"code":{"enum":["1-3"],"type":"string"},"meta":{"type":"object"},"status":{"enum":["503"],"type":"string"},"title":{"enum":["UpstreamServiceFailure"],"type":"string"}},"required":["code","status","title"],"type":"object"},"type":"array"},"jsonapi":{"properties":{"version":{"enum":["1.0"],"type":"string"}},"required":["version"],"type":"object"}},"required":["errors","jsonapi"],"title":"ServiceUnavailableResponse","type":"object","x-struct":"Elixir.OMSWeb.APISchemas.ServiceUnavailableResponse"},"UnauthorizedResponse":{"properties":{"errors":{"items":{"properties":{"code":{"enum":["2-6"],"example":"2-6","type":"string"},"detail":{"example":"Produced when the authorization header is absent or invalid","type":"string"},"title":{"example":"UnauthorizedResponse","type":"string"}},"type":"object"},"type":"array"},"jsonapi":{"properties":{"version":{"enum":["1.0"],"type":"string"}},"required":["version"],"type":"object"}},"required":["errors","jsonapi"],"title":"UnauthorizedResponse","type":"object","x-struct":"Elixir.OMSWeb.APISchemas.UnauthorizedResponse"},"UnprocessableEntityResponse":{"properties":{"errors":{"items":{"properties":{"code":{"enum":["3-4","3-14"],"type":"string"},"detail":{"example":"Invalid request","type":"string"},"source":{"minProperties":1,"properties":{"parameter":{"example":"path://id","type":"string"},"pointer":{"example":"/path/to/field/2/sub_field","type":"string"}},"type":"object"},"status":{"enum":["422"],"type":"string"},"title":{"example":"Request Failed","type":"string"}},"required":["detail","title","code","source"],"type":"object"},"type":"array"},"jsonapi":{"properties":{"version":{"enum":["1.0"],"type":"string"}},"required":["version"],"type":"object"}},"required":["errors","jsonapi"],"title":"UnprocessableEntityResponse","type":"object","x-struct":"Elixir.OMSWeb.APISchemas.UnprocessableEntityResponse"}},"securitySchemes":{"bearerAuth":{"bearerFormat":"JWT","scheme":"bearer","type":"http"}}},"info":{"title":"Order Management API","version":"2026-01"},"openapi":"3.0.0","paths":{"/listings/{listing_wmid}/available_discounts":{"get":{"callbacks":{},"deprecated":false,"operationId":"OMSWeb.V202601.ListingDiscountController.available_discounts","parameters":[{"description":"Listing WMID","example":"180218893","in":"path","name":"listing_wmid","required":true,"schema":{"type":"string"}},{"description":"Pagination page","in":"query","name":"page","required":false,"schema":{"type":"integer"}},{"description":"Pagination page size","in":"query","name":"page_size","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/vnd.api+json":{"schema":{"$ref":"#/components/schemas/ApplicableDiscountsResponse"}}},"description":"OK"},"422":{"content":{"application/vnd.api+json":{"schema":{"$ref":"#/components/schemas/UnprocessableEntityResponse"}}},"description":"UnprocessableEntityResponse"}},"security":[],"summary":"Get all available discounts that match listing_wmid for WM Store","tags":["Listings","Listings"]}},"/merchants/{listing_wmid}/available-scheduled-order-windows":{"get":{"callbacks":{},"deprecated":false,"operationId":"OMSWeb.V202601.ScheduledOrderController.available_windows","parameters":[{"description":"Listing WMID","example":"2000","in":"path","name":"listing_wmid","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduledOrderWindowResponse"}}},"description":"ScheduledOrderWindowResponse"},"204":{"content":{"application/vnd.api+json":{"schema":{"$ref":"#/components/schemas/NoContentResponse"}}},"description":"NoContentResponse"}},"security":[],"summary":"Get all available time windows for a listing for order scheduling","tags":["Listings"]}},"/merchants/{wmid}/documents/{id}/url":{"get":{"callbacks":{},"deprecated":false,"operationId":"OMSWeb.Integrators.V202601.DocumentController.url","parameters":[{"description":"Seller ID","example":"1234","in":"path","name":"wmid","required":true,"schema":{"type":"string"}},{"description":"Document ID with embedded Order ID","example":"1234--0b8475b2-21ec-4b5c-8987-872f8f5bdc8d","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentUrlResponse"}}},"description":"DocumentUrlResponse"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}},"description":"UnauthorizedResponse"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forbidden"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}},"description":"NotFoundResponse"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnprocessableEntityResponse"}}},"description":"UnprocessableEntityResponse"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceUnavailableResponse"}}},"description":"ServiceUnavailableResponse"}},"security":[],"summary":"Get short-lived resource URL for the given document ID","tags":["Documents"]}},"/merchants/{wmid}/orders/{id}":{"put":{"callbacks":{},"deprecated":false,"operationId":"OMSWeb.Integrators.V202601.OrderController.update","parameters":[{"description":"Weedmaps ID","in":"path","name":"wmid","required":true,"schema":{"type":"string"}},{"description":"Order ID","in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderPayload"}}},"description":"Order payload","required":false},"responses":{"204":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoContentResponse"}}},"description":"No Content"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnprocessableEntityResponse"}}},"description":"Unprocessable Entity"}},"security":[],"summary":"Update an order","tags":["Orders"]}}},"security":[{"bearerAuth":[]}],"servers":[{"description":"Production","url":"https://api-g.weedmaps.com/oos/2026-01","variables":{}},{"description":"Acceptance","url":"https://acceptance.internal-weedmaps.com/oos/2026-01","variables":{}},{"description":"Local","url":"https://api-g-production.internal-weedmaps.com/public/2026-01","variables":{}}],"tags":[]}