{"swagger":"2.0","info":{"version":"v2","title":"Founder Sport Group Orders API"},"host":"api.teamworkathletic.com","schemes":["https"],"paths":{"/order_items/{id}":{"get":{"tags":["order_items"],"summary":"Returns order_items object by your order id (string) for checking order status and shipping updates. Please pass the API signature into the x-api-key HTTP header.","operationId":"order_items_GetOrder","consumes":[],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"id","in":"path","required":true,"type":"string"}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/order_items"}}}}},"/order_items":{"post":{"tags":["order_items"],"summary":"Submit new order to Teamwork. Please pass the API signature into the x-api-key HTTP header (preferable) or as a value of the api_signature field in the request body.","operationId":"order_items_PostOrder","consumes":["application/json","text/json","application/xml","text/xml","application/x-www-form-urlencoded"],"produces":["application/json","text/json","application/xml","text/xml"],"parameters":[{"name":"_order","in":"body","required":true,"schema":{"$ref":"#/definitions/order_items"}}],"responses":{"200":{"description":"OK","schema":{"$ref":"#/definitions/order_items"}}}}}},"definitions":{"order_items":{"required":["api_signature","shipping_address","shipping_carrier","items"],"type":"object","properties":{"api_signature":{"description":"API signature provided by Teamwork","type":"string"},"order_id":{"description":"Your order id, accepting alpha numeric characters","maxLength":40,"minLength":0,"type":"string"},"po_number":{"description":"Purchase order number","maxLength":20,"minLength":0,"type":"string"},"reference":{"description":"Reference number","maxLength":40,"minLength":0,"type":"string"},"status":{"description":" Order status we return to you (\r\naccepted,\r\nmanufacturing,\r\nshipping,\r\nshipped,\r\nbad_address,\r\ncancelled)","type":"string"},"status_description":{"description":"Extra information available for current order status.","maxLength":512,"minLength":0,"type":"string"},"promise_date":{"format":"date-time","description":"The date when order is promised to be shipped","type":"string"},"mfg_time":{"format":"int32","description":"Requested manufacturing time in business days (3,5,10). Extra fee may apply.","type":"integer"},"shipping_address":{"$ref":"#/definitions/Address","description":"Drop ship address."},"shipping_carrier":{"description":"Shipping carrier (USPS,UPS,FedEx)","type":"string"},"shipping_account":{"description":"3rd Party Billing Account for shipping carrier","maxLength":60,"minLength":0,"type":"string"},"shipping_method":{"description":"Valid shipping methods per carrier are:\r\nfor USPS ('First', 'Priority', 'INTERNATIONAL_PRIORITY')\r\nwhere 'Priority' is Priority Mail, \r\n'First' is First-Class Mail for packages up to 13 oz otherwise it will be automatically flipped to Priority Mail, \r\n'INTERNATIONAL_PRIORITY' is Priority Mail International,\r\nfor UPS ('UPS Ground','UPS 3 Day Select','UPS 2nd Day Air','UPS Next Day Air Saver','UPS Next Day Air'),\r\nfor FedEx ('FedEx Ground','FedEx Second Day Air','Fedex Next Day Air Saver','FedEx Next Day Air','FEDEX_INTL_MAILSERVICE')  \r\nwhere 'FEDEX_INTL_MAILSERVICE' is FedEx International MailService.","maxLength":40,"minLength":0,"type":"string"},"tracking_number":{"description":"Tracking number returned here once we shipped the order.","maxLength":80,"minLength":0,"type":"string"},"items":{"description":"Ordered products","type":"array","items":{"$ref":"#/definitions/Item"}},"id":{"format":"int64","description":"Legacy order id, 64 bit integer, remains for compatibility with older integrations and will be deprecated in future release","type":"integer"},"M3OrderNumber":{"description":"Intercompany order number","type":"string"}}},"Address":{"required":["postcode","country"],"type":"object","properties":{"full_name":{"description":"Ship to name","maxLength":60,"minLength":0,"type":"string"},"address_line_1":{"description":"Street","maxLength":80,"minLength":0,"type":"string"},"address_line_2":{"description":"Street, second line if needed","maxLength":80,"minLength":0,"type":"string"},"address_line_3":{"description":"City","maxLength":60,"minLength":0,"type":"string"},"address_line_4":{"description":"State / Province, use code instead of full name","maxLength":10,"minLength":0,"type":"string"},"postcode":{"description":"Zip code / Postal code","maxLength":10,"minLength":0,"type":"string"},"country":{"description":"Country, at this time we can ship to: United States, Canada, United Kingdom, Australia, Austria, Belgium, Denmark, Finland, Germany, Norway, Sweden.","maxLength":20,"minLength":0,"type":"string"},"phone":{"description":"Contact phone, required for international orders","maxLength":20,"minLength":0,"type":"string"}}},"Item":{"required":["sku","quantity","print_ready_url","attributes"],"type":"object","properties":{"sku":{"description":"id of the product style you are ordering, it has to be coordinated with Teamwork","maxLength":10,"minLength":0,"type":"string"},"quantity":{"format":"int32","description":"Ordered quantity","type":"integer"},"consumer_price":{"format":"double","description":"The price consumer paid for the product, we need it only for international orders to declare on customs form CN 22.","type":"number"},"print_ready_url":{"description":"Web accessible URL to your artwork file","maxLength":7999,"minLength":0,"type":"string"},"preview_url":{"description":"Web accessible URL to your product preview, so we can validate correctness of our manufactured product.","maxLength":7999,"minLength":0,"type":"string"},"attributes":{"$ref":"#/definitions/ItemAttribute","description":"Extra product attributes"}}},"ItemAttribute":{"required":["size"],"type":"object","properties":{"size":{"description":"Size of the product","maxLength":20,"minLength":0,"type":"string"},"thread_color":{"description":"Thread color (Royal, Scarlet, Kelly, Black, White, Gold, Navy, Orange, Maroon, Teal, ElectricBlue, Purple, Cardinal, Lavender, Grape, DarkGreen, Yellow, Cream, FluorescentGreen, LightGray, Silver, LightBlue, DarkGray, Fuschia, ColumbiaBlue, Watermelon, FluorescentPink, Pink, Brown, DarkBrown, FluorescentYellow, AppleGreen, VegasGold, TennesseeOrange, TexasOrange ).","maxLength":40,"minLength":0,"type":"string"},"zipper_color":{"description":"Zipper color (Royal, Scarlet, Kelly, Black, White, Gold, Navy, Orange, Maroon, Purple, DarkGreen, Silver, DarkGray, ColumbiaBlue, Pink, VegasGold).","maxLength":40,"minLength":0,"type":"string"},"drawstring_color":{"description":"Drawstring color (Royal, Scarlet, Kelly, Black, White, Gold, Navy, Orange, Maroon, Purple, DarkGreen, Silver, DarkGray, ColumbiaBlue, Pink, VegasGold).","maxLength":40,"minLength":0,"type":"string"},"neck_tape_color":{"description":"Neck tape color (Royal, Scarlet, Black, Gold, Navy, Orange, Maroon, Purple, DarkGreen, Silver, ColumbiaBlue, Pink, White).","maxLength":40,"minLength":0,"type":"string"},"woven_label":{"description":"Woven label (StarWars, Marvel, Disney, DisneyPixar, Nintendo, FIFA, CLC, LLP).","maxLength":40,"minLength":0,"type":"string"},"player_name":{"description":"Player name.","maxLength":256,"minLength":0,"type":"string"},"player_number":{"description":"Player number.","maxLength":40,"minLength":0,"type":"string"}}}},"securityDefinitions":{"x-api-key":{"type":"apiKey","description":"API signature provided by Teamwork","name":"x-api-key","in":"header"}}}