@shipengine/connect-fulfillment-provider-api 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (378) hide show
  1. package/README.md +3 -0
  2. package/jest.config.ts +5 -0
  3. package/lib/app/connector.d.ts +7 -0
  4. package/lib/app/connector.js +3 -0
  5. package/lib/app/connector.js.map +1 -0
  6. package/lib/app/diagnostic-routes.d.ts +5 -0
  7. package/lib/app/diagnostic-routes.js +3 -0
  8. package/lib/app/diagnostic-routes.js.map +1 -0
  9. package/lib/app/fulfillment-provider-app-definition.d.ts +41 -0
  10. package/lib/app/fulfillment-provider-app-definition.js +3 -0
  11. package/lib/app/fulfillment-provider-app-definition.js.map +1 -0
  12. package/lib/app/fulfillment-provider-app-metadata.d.ts +46 -0
  13. package/lib/app/fulfillment-provider-app-metadata.js +3 -0
  14. package/lib/app/fulfillment-provider-app-metadata.js.map +1 -0
  15. package/lib/app/fulfillment-provider-app.d.ts +9 -0
  16. package/lib/app/fulfillment-provider-app.js +70 -0
  17. package/lib/app/fulfillment-provider-app.js.map +1 -0
  18. package/lib/app/function-specification.d.ts +4 -0
  19. package/lib/app/function-specification.js +3 -0
  20. package/lib/app/function-specification.js.map +1 -0
  21. package/lib/app/index.d.ts +6 -0
  22. package/lib/app/index.js +19 -0
  23. package/lib/app/index.js.map +1 -0
  24. package/lib/app/internal/branded-images.d.ts +9 -0
  25. package/lib/app/internal/branded-images.js +3 -0
  26. package/lib/app/internal/branded-images.js.map +1 -0
  27. package/lib/app/internal/connect-runtime-app.d.ts +12 -0
  28. package/lib/app/internal/connect-runtime-app.js +3 -0
  29. package/lib/app/internal/connect-runtime-app.js.map +1 -0
  30. package/lib/app/internal/index.d.ts +5 -0
  31. package/lib/app/internal/index.js +18 -0
  32. package/lib/app/internal/index.js.map +1 -0
  33. package/lib/app/internal/metadata.d.ts +82 -0
  34. package/lib/app/internal/metadata.js +108 -0
  35. package/lib/app/internal/metadata.js.map +1 -0
  36. package/lib/app/internal/metadata.test.d.ts +1 -0
  37. package/lib/app/internal/metadata.test.js +17 -0
  38. package/lib/app/internal/metadata.test.js.map +1 -0
  39. package/lib/app/internal/method.d.ts +7 -0
  40. package/lib/app/internal/method.js +12 -0
  41. package/lib/app/internal/method.js.map +1 -0
  42. package/lib/app/internal/route.d.ts +6 -0
  43. package/lib/app/internal/route.js +3 -0
  44. package/lib/app/internal/route.js.map +1 -0
  45. package/lib/index.d.ts +5 -0
  46. package/lib/index.js +18 -0
  47. package/lib/index.js.map +1 -0
  48. package/lib/models/auth.d.ts +9 -0
  49. package/lib/models/auth.js +3 -0
  50. package/lib/models/auth.js.map +1 -0
  51. package/lib/models/carrier/addresses/address-base.d.ts +33 -0
  52. package/lib/models/carrier/addresses/address-base.js +3 -0
  53. package/lib/models/carrier/addresses/address-base.js.map +1 -0
  54. package/lib/models/carrier/addresses/address-residential-indicator.d.ts +6 -0
  55. package/lib/models/carrier/addresses/address-residential-indicator.js +11 -0
  56. package/lib/models/carrier/addresses/address-residential-indicator.js.map +1 -0
  57. package/lib/models/carrier/addresses/index.d.ts +6 -0
  58. package/lib/models/carrier/addresses/index.js +19 -0
  59. package/lib/models/carrier/addresses/index.js.map +1 -0
  60. package/lib/models/carrier/addresses/pudo-location.d.ts +8 -0
  61. package/lib/models/carrier/addresses/pudo-location.js +3 -0
  62. package/lib/models/carrier/addresses/pudo-location.js.map +1 -0
  63. package/lib/models/carrier/addresses/ship-from-display.d.ts +3 -0
  64. package/lib/models/carrier/addresses/ship-from-display.js +3 -0
  65. package/lib/models/carrier/addresses/ship-from-display.js.map +1 -0
  66. package/lib/models/carrier/addresses/ship-from.d.ts +6 -0
  67. package/lib/models/carrier/addresses/ship-from.js +3 -0
  68. package/lib/models/carrier/addresses/ship-from.js.map +1 -0
  69. package/lib/models/carrier/addresses/ship-to.d.ts +6 -0
  70. package/lib/models/carrier/addresses/ship-to.js +3 -0
  71. package/lib/models/carrier/addresses/ship-to.js.map +1 -0
  72. package/lib/models/carrier/advanced-options.d.ts +18 -0
  73. package/lib/models/carrier/advanced-options.js +3 -0
  74. package/lib/models/carrier/advanced-options.js.map +1 -0
  75. package/lib/models/carrier/billing/billing-categories.d.ts +25 -0
  76. package/lib/models/carrier/billing/billing-categories.js +30 -0
  77. package/lib/models/carrier/billing/billing-categories.js.map +1 -0
  78. package/lib/models/carrier/billing/billing-line-item.d.ts +10 -0
  79. package/lib/models/carrier/billing/billing-line-item.js +3 -0
  80. package/lib/models/carrier/billing/billing-line-item.js.map +1 -0
  81. package/lib/models/carrier/billing/index.d.ts +2 -0
  82. package/lib/models/carrier/billing/index.js +15 -0
  83. package/lib/models/carrier/billing/index.js.map +1 -0
  84. package/lib/models/carrier/confirmation-types.d.ts +13 -0
  85. package/lib/models/carrier/confirmation-types.js +18 -0
  86. package/lib/models/carrier/confirmation-types.js.map +1 -0
  87. package/lib/models/carrier/currency.d.ts +5 -0
  88. package/lib/models/carrier/currency.js +3 -0
  89. package/lib/models/carrier/currency.js.map +1 -0
  90. package/lib/models/carrier/customs/customs-content-types.d.ts +9 -0
  91. package/lib/models/carrier/customs/customs-content-types.js +14 -0
  92. package/lib/models/carrier/customs/customs-content-types.js.map +1 -0
  93. package/lib/models/carrier/customs/customs-item.d.ts +13 -0
  94. package/lib/models/carrier/customs/customs-item.js +3 -0
  95. package/lib/models/carrier/customs/customs-item.js.map +1 -0
  96. package/lib/models/carrier/customs/customs-non-delivery.d.ts +5 -0
  97. package/lib/models/carrier/customs/customs-non-delivery.js +10 -0
  98. package/lib/models/carrier/customs/customs-non-delivery.js.map +1 -0
  99. package/lib/models/carrier/customs/customs.d.ts +12 -0
  100. package/lib/models/carrier/customs/customs.js +3 -0
  101. package/lib/models/carrier/customs/customs.js.map +1 -0
  102. package/lib/models/carrier/customs/index.d.ts +4 -0
  103. package/lib/models/carrier/customs/index.js +17 -0
  104. package/lib/models/carrier/customs/index.js.map +1 -0
  105. package/lib/models/carrier/fulfillment-plans/fulfillment-plan-details.d.ts +9 -0
  106. package/lib/models/carrier/fulfillment-plans/fulfillment-plan-details.js +3 -0
  107. package/lib/models/carrier/fulfillment-plans/fulfillment-plan-details.js.map +1 -0
  108. package/lib/models/carrier/fulfillment-plans/fulfillment-plan-items.d.ts +12 -0
  109. package/lib/models/carrier/fulfillment-plans/fulfillment-plan-items.js +3 -0
  110. package/lib/models/carrier/fulfillment-plans/fulfillment-plan-items.js.map +1 -0
  111. package/lib/models/carrier/fulfillment-plans/index.d.ts +3 -0
  112. package/lib/models/carrier/fulfillment-plans/index.js +16 -0
  113. package/lib/models/carrier/fulfillment-plans/index.js.map +1 -0
  114. package/lib/models/carrier/fulfillment-plans/raw-external-source.d.ts +3 -0
  115. package/lib/models/carrier/fulfillment-plans/raw-external-source.js +3 -0
  116. package/lib/models/carrier/fulfillment-plans/raw-external-source.js.map +1 -0
  117. package/lib/models/carrier/identifier.d.ts +5 -0
  118. package/lib/models/carrier/identifier.js +3 -0
  119. package/lib/models/carrier/identifier.js.map +1 -0
  120. package/lib/models/carrier/index.d.ts +17 -0
  121. package/lib/models/carrier/index.js +35 -0
  122. package/lib/models/carrier/index.js.map +1 -0
  123. package/lib/models/carrier/insurance-providers.d.ts +7 -0
  124. package/lib/models/carrier/insurance-providers.js +12 -0
  125. package/lib/models/carrier/insurance-providers.js.map +1 -0
  126. package/lib/models/carrier/labels/form-download.d.ts +4 -0
  127. package/lib/models/carrier/labels/form-download.js +3 -0
  128. package/lib/models/carrier/labels/form-download.js.map +1 -0
  129. package/lib/models/carrier/labels/index.d.ts +8 -0
  130. package/lib/models/carrier/labels/index.js +22 -0
  131. package/lib/models/carrier/labels/index.js.map +1 -0
  132. package/lib/models/carrier/labels/label-download.d.ts +4 -0
  133. package/lib/models/carrier/labels/label-download.js +3 -0
  134. package/lib/models/carrier/labels/label-download.js.map +1 -0
  135. package/lib/models/carrier/labels/label-layouts.d.ts +7 -0
  136. package/lib/models/carrier/labels/label-layouts.js +12 -0
  137. package/lib/models/carrier/labels/label-layouts.js.map +1 -0
  138. package/lib/models/carrier/labels/label-message.d.ts +6 -0
  139. package/lib/models/carrier/labels/label-message.js +3 -0
  140. package/lib/models/carrier/labels/label-message.js.map +1 -0
  141. package/lib/models/carrier/labels/label-package.d.ts +9 -0
  142. package/lib/models/carrier/labels/label-package.js +3 -0
  143. package/lib/models/carrier/labels/label-package.js.map +1 -0
  144. package/lib/models/carrier/labels/return-label-details.d.ts +4 -0
  145. package/lib/models/carrier/labels/return-label-details.js +3 -0
  146. package/lib/models/carrier/labels/return-label-details.js.map +1 -0
  147. package/lib/models/carrier/labels/void-request.d.ts +7 -0
  148. package/lib/models/carrier/labels/void-request.js +3 -0
  149. package/lib/models/carrier/labels/void-request.js.map +1 -0
  150. package/lib/models/carrier/labels/void-response.d.ts +9 -0
  151. package/lib/models/carrier/labels/void-response.js +3 -0
  152. package/lib/models/carrier/labels/void-response.js.map +1 -0
  153. package/lib/models/carrier/manifests/index.d.ts +2 -0
  154. package/lib/models/carrier/manifests/index.js +15 -0
  155. package/lib/models/carrier/manifests/index.js.map +1 -0
  156. package/lib/models/carrier/manifests/label.d.ts +5 -0
  157. package/lib/models/carrier/manifests/label.js +3 -0
  158. package/lib/models/carrier/manifests/label.js.map +1 -0
  159. package/lib/models/carrier/manifests/manifest.d.ts +8 -0
  160. package/lib/models/carrier/manifests/manifest.js +3 -0
  161. package/lib/models/carrier/manifests/manifest.js.map +1 -0
  162. package/lib/models/carrier/package.d.ts +13 -0
  163. package/lib/models/carrier/package.js +3 -0
  164. package/lib/models/carrier/package.js.map +1 -0
  165. package/lib/models/carrier/pickup/cancellation-details.d.ts +11 -0
  166. package/lib/models/carrier/pickup/cancellation-details.js +3 -0
  167. package/lib/models/carrier/pickup/cancellation-details.js.map +1 -0
  168. package/lib/models/carrier/pickup/cancellation-reason.d.ts +8 -0
  169. package/lib/models/carrier/pickup/cancellation-reason.js +13 -0
  170. package/lib/models/carrier/pickup/cancellation-reason.js.map +1 -0
  171. package/lib/models/carrier/pickup/index.d.ts +11 -0
  172. package/lib/models/carrier/pickup/index.js +24 -0
  173. package/lib/models/carrier/pickup/index.js.map +1 -0
  174. package/lib/models/carrier/pickup/pickup-confirmation.d.ts +8 -0
  175. package/lib/models/carrier/pickup/pickup-confirmation.js +3 -0
  176. package/lib/models/carrier/pickup/pickup-confirmation.js.map +1 -0
  177. package/lib/models/carrier/pickup/pickup-contact-details.d.ts +8 -0
  178. package/lib/models/carrier/pickup/pickup-contact-details.js +3 -0
  179. package/lib/models/carrier/pickup/pickup-contact-details.js.map +1 -0
  180. package/lib/models/carrier/pickup/pickup-location-details.d.ts +11 -0
  181. package/lib/models/carrier/pickup/pickup-location-details.js +3 -0
  182. package/lib/models/carrier/pickup/pickup-location-details.js.map +1 -0
  183. package/lib/models/carrier/pickup/pickup-package.d.ts +12 -0
  184. package/lib/models/carrier/pickup/pickup-package.js +3 -0
  185. package/lib/models/carrier/pickup/pickup-package.js.map +1 -0
  186. package/lib/models/carrier/pickup/pickup-shipment-details.d.ts +7 -0
  187. package/lib/models/carrier/pickup/pickup-shipment-details.js +3 -0
  188. package/lib/models/carrier/pickup/pickup-shipment-details.js.map +1 -0
  189. package/lib/models/carrier/pickup/pickup-window.d.ts +7 -0
  190. package/lib/models/carrier/pickup/pickup-window.js +3 -0
  191. package/lib/models/carrier/pickup/pickup-window.js.map +1 -0
  192. package/lib/models/carrier/pickup/shipment-identifier.d.ts +6 -0
  193. package/lib/models/carrier/pickup/shipment-identifier.js +3 -0
  194. package/lib/models/carrier/pickup/shipment-identifier.js.map +1 -0
  195. package/lib/models/carrier/pickup/shipped-package.d.ts +12 -0
  196. package/lib/models/carrier/pickup/shipped-package.js +3 -0
  197. package/lib/models/carrier/pickup/shipped-package.js.map +1 -0
  198. package/lib/models/carrier/pickup/shipped-shipment.d.ts +16 -0
  199. package/lib/models/carrier/pickup/shipped-shipment.js +3 -0
  200. package/lib/models/carrier/pickup/shipped-shipment.js.map +1 -0
  201. package/lib/models/carrier/rates/index.d.ts +1 -0
  202. package/lib/models/carrier/rates/index.js +14 -0
  203. package/lib/models/carrier/rates/index.js.map +1 -0
  204. package/lib/models/carrier/rates/rate.d.ts +29 -0
  205. package/lib/models/carrier/rates/rate.js +3 -0
  206. package/lib/models/carrier/rates/rate.js.map +1 -0
  207. package/lib/models/carrier/resource-download.d.ts +5 -0
  208. package/lib/models/carrier/resource-download.js +3 -0
  209. package/lib/models/carrier/resource-download.js.map +1 -0
  210. package/lib/models/carrier/taxes/index.d.ts +2 -0
  211. package/lib/models/carrier/taxes/index.js +15 -0
  212. package/lib/models/carrier/taxes/index.js.map +1 -0
  213. package/lib/models/carrier/taxes/tax-identifier-type.d.ts +28 -0
  214. package/lib/models/carrier/taxes/tax-identifier-type.js +33 -0
  215. package/lib/models/carrier/taxes/tax-identifier-type.js.map +1 -0
  216. package/lib/models/carrier/taxes/tax-identifier.d.ts +12 -0
  217. package/lib/models/carrier/taxes/tax-identifier.js +3 -0
  218. package/lib/models/carrier/taxes/tax-identifier.js.map +1 -0
  219. package/lib/models/carrier/time-window.d.ts +17 -0
  220. package/lib/models/carrier/time-window.js +3 -0
  221. package/lib/models/carrier/time-window.js.map +1 -0
  222. package/lib/models/documents/document-formats.d.ts +6 -0
  223. package/lib/models/documents/document-formats.js +11 -0
  224. package/lib/models/documents/document-formats.js.map +1 -0
  225. package/lib/models/documents/document-type.d.ts +7 -0
  226. package/lib/models/documents/document-type.js +12 -0
  227. package/lib/models/documents/document-type.js.map +1 -0
  228. package/lib/models/documents/document.d.ts +8 -0
  229. package/lib/models/documents/document.js +3 -0
  230. package/lib/models/documents/document.js.map +1 -0
  231. package/lib/models/documents/index.d.ts +2 -0
  232. package/lib/models/documents/index.js +15 -0
  233. package/lib/models/documents/index.js.map +1 -0
  234. package/lib/models/errors/detailed-error.d.ts +9 -0
  235. package/lib/models/errors/detailed-error.js +3 -0
  236. package/lib/models/errors/detailed-error.js.map +1 -0
  237. package/lib/models/errors/index.d.ts +2 -0
  238. package/lib/models/errors/index.js +15 -0
  239. package/lib/models/errors/index.js.map +1 -0
  240. package/lib/models/errors/standardized-error-code.d.ts +16 -0
  241. package/lib/models/errors/standardized-error-code.js +21 -0
  242. package/lib/models/errors/standardized-error-code.js.map +1 -0
  243. package/lib/models/index.d.ts +7 -0
  244. package/lib/models/index.js +20 -0
  245. package/lib/models/index.js.map +1 -0
  246. package/lib/models/order-source/address.d.ts +47 -0
  247. package/lib/models/order-source/address.js +12 -0
  248. package/lib/models/order-source/address.js.map +1 -0
  249. package/lib/models/order-source/bill-to.d.ts +8 -0
  250. package/lib/models/order-source/bill-to.js +3 -0
  251. package/lib/models/order-source/bill-to.js.map +1 -0
  252. package/lib/models/order-source/branding.d.ts +8 -0
  253. package/lib/models/order-source/branding.js +3 -0
  254. package/lib/models/order-source/branding.js.map +1 -0
  255. package/lib/models/order-source/buyer.d.ts +11 -0
  256. package/lib/models/order-source/buyer.js +3 -0
  257. package/lib/models/order-source/buyer.js.map +1 -0
  258. package/lib/models/order-source/charge.d.ts +7 -0
  259. package/lib/models/order-source/charge.js +3 -0
  260. package/lib/models/order-source/charge.js.map +1 -0
  261. package/lib/models/order-source/index.d.ts +12 -0
  262. package/lib/models/order-source/index.js +25 -0
  263. package/lib/models/order-source/index.js.map +1 -0
  264. package/lib/models/order-source/label-voucher.d.ts +7 -0
  265. package/lib/models/order-source/label-voucher.js +3 -0
  266. package/lib/models/order-source/label-voucher.js.map +1 -0
  267. package/lib/models/order-source/note.d.ts +28 -0
  268. package/lib/models/order-source/note.js +24 -0
  269. package/lib/models/order-source/note.js.map +1 -0
  270. package/lib/models/order-source/packing-slip.d.ts +5 -0
  271. package/lib/models/order-source/packing-slip.js +3 -0
  272. package/lib/models/order-source/packing-slip.js.map +1 -0
  273. package/lib/models/order-source/payment.d.ts +32 -0
  274. package/lib/models/order-source/payment.js +14 -0
  275. package/lib/models/order-source/payment.js.map +1 -0
  276. package/lib/models/order-source/product.d.ts +56 -0
  277. package/lib/models/order-source/product.js +3 -0
  278. package/lib/models/order-source/product.js.map +1 -0
  279. package/lib/models/order-source/sales-order-item.d.ts +27 -0
  280. package/lib/models/order-source/sales-order-item.js +3 -0
  281. package/lib/models/order-source/sales-order-item.js.map +1 -0
  282. package/lib/models/order-source/sales-order.d.ts +87 -0
  283. package/lib/models/order-source/sales-order.js +14 -0
  284. package/lib/models/order-source/sales-order.js.map +1 -0
  285. package/lib/models/order-source/shipment-notification.d.ts +55 -0
  286. package/lib/models/order-source/shipment-notification.js +3 -0
  287. package/lib/models/order-source/shipment-notification.js.map +1 -0
  288. package/lib/models/order-source/shipping-preferences.d.ts +52 -0
  289. package/lib/models/order-source/shipping-preferences.js +3 -0
  290. package/lib/models/order-source/shipping-preferences.js.map +1 -0
  291. package/lib/models/order-source/weight.d.ts +8 -0
  292. package/lib/models/order-source/weight.js +3 -0
  293. package/lib/models/order-source/weight.js.map +1 -0
  294. package/lib/models/sales-order-status-change.d.ts +22 -0
  295. package/lib/models/sales-order-status-change.js +3 -0
  296. package/lib/models/sales-order-status-change.js.map +1 -0
  297. package/lib/models/units/dimension-details.d.ts +9 -0
  298. package/lib/models/units/dimension-details.js +3 -0
  299. package/lib/models/units/dimension-details.js.map +1 -0
  300. package/lib/models/units/dimension-unit.d.ts +5 -0
  301. package/lib/models/units/dimension-unit.js +10 -0
  302. package/lib/models/units/dimension-unit.js.map +1 -0
  303. package/lib/models/units/dimensions.d.ts +6 -0
  304. package/lib/models/units/dimensions.js +3 -0
  305. package/lib/models/units/dimensions.js.map +1 -0
  306. package/lib/models/units/index.d.ts +5 -0
  307. package/lib/models/units/index.js +18 -0
  308. package/lib/models/units/index.js.map +1 -0
  309. package/lib/models/units/weight-details.d.ts +8 -0
  310. package/lib/models/units/weight-details.js +3 -0
  311. package/lib/models/units/weight-details.js.map +1 -0
  312. package/lib/models/units/weight-unit.d.ts +7 -0
  313. package/lib/models/units/weight-unit.js +12 -0
  314. package/lib/models/units/weight-unit.js.map +1 -0
  315. package/lib/requests/cancellation-request.d.ts +6 -0
  316. package/lib/requests/cancellation-request.js +3 -0
  317. package/lib/requests/cancellation-request.js.map +1 -0
  318. package/lib/requests/connect-request.d.ts +4 -0
  319. package/lib/requests/connect-request.js +3 -0
  320. package/lib/requests/connect-request.js.map +1 -0
  321. package/lib/requests/delegation-request.d.ts +5 -0
  322. package/lib/requests/delegation-request.js +3 -0
  323. package/lib/requests/delegation-request.js.map +1 -0
  324. package/lib/requests/get-rates-request.d.ts +21 -0
  325. package/lib/requests/get-rates-request.js +3 -0
  326. package/lib/requests/get-rates-request.js.map +1 -0
  327. package/lib/requests/get-recent-changes-request.d.ts +6 -0
  328. package/lib/requests/get-recent-changes-request.js +3 -0
  329. package/lib/requests/get-recent-changes-request.js.map +1 -0
  330. package/lib/requests/index.d.ts +8 -0
  331. package/lib/requests/index.js +21 -0
  332. package/lib/requests/index.js.map +1 -0
  333. package/lib/requests/inventory-request.d.ts +5 -0
  334. package/lib/requests/inventory-request.js +3 -0
  335. package/lib/requests/inventory-request.js.map +1 -0
  336. package/lib/requests/reconnect-request.d.ts +4 -0
  337. package/lib/requests/reconnect-request.js +3 -0
  338. package/lib/requests/reconnect-request.js.map +1 -0
  339. package/lib/requests/status-request.d.ts +5 -0
  340. package/lib/requests/status-request.js +3 -0
  341. package/lib/requests/status-request.js.map +1 -0
  342. package/lib/responses/cancellation-response.d.ts +3 -0
  343. package/lib/responses/cancellation-response.js +3 -0
  344. package/lib/responses/cancellation-response.js.map +1 -0
  345. package/lib/responses/connect-response.d.ts +4 -0
  346. package/lib/responses/connect-response.js +3 -0
  347. package/lib/responses/connect-response.js.map +1 -0
  348. package/lib/responses/delegation-response.d.ts +3 -0
  349. package/lib/responses/delegation-response.js +3 -0
  350. package/lib/responses/delegation-response.js.map +1 -0
  351. package/lib/responses/get-rates-response.d.ts +5 -0
  352. package/lib/responses/get-rates-response.js +3 -0
  353. package/lib/responses/get-rates-response.js.map +1 -0
  354. package/lib/responses/get-recent-changes-response.d.ts +5 -0
  355. package/lib/responses/get-recent-changes-response.js +3 -0
  356. package/lib/responses/get-recent-changes-response.js.map +1 -0
  357. package/lib/responses/index.d.ts +8 -0
  358. package/lib/responses/index.js +21 -0
  359. package/lib/responses/index.js.map +1 -0
  360. package/lib/responses/inventory-response.d.ts +12 -0
  361. package/lib/responses/inventory-response.js +3 -0
  362. package/lib/responses/inventory-response.js.map +1 -0
  363. package/lib/responses/reconnect-response.d.ts +4 -0
  364. package/lib/responses/reconnect-response.js +3 -0
  365. package/lib/responses/reconnect-response.js.map +1 -0
  366. package/lib/responses/status-response.d.ts +8 -0
  367. package/lib/responses/status-response.js +3 -0
  368. package/lib/responses/status-response.js.map +1 -0
  369. package/lib/spec.d.ts +2 -0
  370. package/lib/spec.js +6 -0
  371. package/lib/spec.js.map +1 -0
  372. package/lib/spec.test.d.ts +1 -0
  373. package/lib/spec.test.js +12 -0
  374. package/lib/spec.test.js.map +1 -0
  375. package/package.json +34 -0
  376. package/spec.json +2819 -0
  377. package/spec.yaml +2111 -0
  378. package/tsconfig.tsbuildinfo +1 -0
package/spec.yaml ADDED
@@ -0,0 +1,2111 @@
1
+ openapi: 3.1.0
2
+ info:
3
+ title: fulfillment-provider-api
4
+ version: '1.0'
5
+ paths:
6
+ /connect:
7
+ post:
8
+ summary: Connect to Partner
9
+ operationId: post-connect
10
+ responses:
11
+ '200':
12
+ description: OK
13
+ content:
14
+ application/json:
15
+ schema:
16
+ type: object
17
+ properties:
18
+ auth:
19
+ $ref: '#/components/schemas/Auth'
20
+ parameters:
21
+ - schema:
22
+ type: string
23
+ in: header
24
+ name: tenant-id
25
+ requestBody:
26
+ content:
27
+ application/json:
28
+ schema:
29
+ type: object
30
+ description: ''
31
+ properties:
32
+ auth:
33
+ $ref: '#/components/schemas/Auth'
34
+ description: Contains form data for connecting to the app
35
+ /fulfillment/delegation:
36
+ post:
37
+ summary: Fulfillment Delegation Request
38
+ operationId: post-fulfillment-delegation
39
+ responses:
40
+ '200':
41
+ description: OK
42
+ content:
43
+ application/json:
44
+ schema:
45
+ type: object
46
+ properties:
47
+ fulfillment_provider_order_id:
48
+ type: string
49
+ description: ''
50
+ requestBody:
51
+ content:
52
+ application/json:
53
+ schema:
54
+ type: object
55
+ properties:
56
+ auth:
57
+ $ref: '#/components/schemas/Auth'
58
+ bill_to:
59
+ $ref: '#/components/schemas/BillTo'
60
+ buyer:
61
+ $ref: '#/components/schemas/Buyer'
62
+ created_date_time:
63
+ type: string
64
+ description: The (ISO 8601) datetime (UTC) associated with when this order was created
65
+ example: '2021-03-31T18:21:14.858Z'
66
+ currency:
67
+ type: string
68
+ description: The three character ISO 4217 code of the currency used for all monetary amounts
69
+ example: 'USD,EUR,NZD'
70
+ fulfilled_date:
71
+ type: string
72
+ description: The (ISO 8601) datetime (UTC) associated with when this order shipped
73
+ example: '2021-03-31T18:21:14.858Z'
74
+ integration_context:
75
+ type: string
76
+ description: Data provided by the order source that should be included in calls back to the order source. This data is only meaningful to the integration and not otherwise used by the platform.
77
+ modified_date_time:
78
+ type: string
79
+ description: The (ISO 8601) datetime (UTC) associated with when this order was last modified
80
+ example: '2021-03-31T18:21:14.858Z'
81
+ notes:
82
+ type: array
83
+ description: Notes about the order
84
+ items:
85
+ $ref: '#/components/schemas/Note'
86
+ order_id:
87
+ type: string
88
+ description: The unique identifier of the sales order from the order source
89
+ order_number:
90
+ type: string
91
+ description: The customer facing identifier of the sales order
92
+ order_url:
93
+ type: string
94
+ description: A unique url associated with the order
95
+ original_order_source:
96
+ $ref: '#/components/schemas/OriginalOrderSource'
97
+ paid_date:
98
+ type: string
99
+ description: The (ISO 8601) datetime (UTC) associated with when this sales order was paid for
100
+ example: '2021-03-31T18:21:14.858Z'
101
+ payment:
102
+ $ref: '#/components/schemas/Payment'
103
+ requested_fulfillments:
104
+ type: array
105
+ description: The fulfillment requested by the marketplace or the buyer
106
+ items:
107
+ $ref: '#/components/schemas/RequestedFulfillment'
108
+ ship_from:
109
+ $ref: '#/components/schemas/Address'
110
+ status:
111
+ type: string
112
+ description: The sales order status
113
+ enum:
114
+ - AwaitingPayment
115
+ - AwaitingShipment
116
+ - Cancelled
117
+ - Completed
118
+ - OnHold
119
+ - PendingFulfillment
120
+ required:
121
+ - auth
122
+ - requested_fulfillments
123
+ - status
124
+ examples:
125
+ example-1:
126
+ value:
127
+ bill_to:
128
+ address_line_1: string
129
+ address_line_2: string
130
+ address_line_3: string
131
+ city: string
132
+ company: string
133
+ country_code: 'US,MX,CA'
134
+ email: string
135
+ is_verified: true
136
+ name: string
137
+ phone: string
138
+ pickup_location:
139
+ carrier_id: string
140
+ relay_id: string
141
+ postal_code: string
142
+ residential_indicator: R
143
+ state_province: string
144
+ buyer:
145
+ buyer_id: string
146
+ email: string
147
+ name: string
148
+ phone: string
149
+ created_date_time: '2021-03-31T18:21:14.858Z'
150
+ currency: 'USD,EUR,NZD'
151
+ fulfilled_date: '2021-03-31T18:21:14.858Z'
152
+ integration_context: string
153
+ modified_date_time: '2021-03-31T18:21:14.858Z'
154
+ notes:
155
+ - text: string
156
+ type: BackOrderMessage
157
+ order_id: string
158
+ order_number: string
159
+ order_url: string
160
+ original_order_source:
161
+ marketplace_code: string
162
+ order_id: string
163
+ source_id: string
164
+ paid_date: '2021-03-31T18:21:14.858Z'
165
+ payment:
166
+ adjustments:
167
+ - amount: string
168
+ description: string
169
+ amount_paid: string
170
+ coupon_code: string
171
+ label_voucher: string
172
+ payment_id: string
173
+ payment_method: string
174
+ payment_status: AwaitingPayment
175
+ shipping_charges:
176
+ - amount: string
177
+ description: string
178
+ taxes:
179
+ - amount: string
180
+ description: string
181
+ requested_fulfillments:
182
+ - branding:
183
+ company_name: string
184
+ packing_slip:
185
+ url: string
186
+ extensions:
187
+ custom_field_1: string
188
+ custom_field_2: string
189
+ custom_field_3: string
190
+ items:
191
+ - adjustments:
192
+ - amount: string
193
+ description: string
194
+ description: string
195
+ item_url: string
196
+ line_item_id: string
197
+ modified_date_time: '2021-03-31T18:21:14.858Z'
198
+ product:
199
+ description: string
200
+ details:
201
+ - name: Color
202
+ value: Red
203
+ dimensions:
204
+ height: 0
205
+ length: 0
206
+ unit: Centimeter
207
+ width: 0
208
+ identifiers:
209
+ asin: string
210
+ fulfillment_sku: string
211
+ inventory_id: string
212
+ isbn: string
213
+ sku: string
214
+ upc: string
215
+ location: string
216
+ name: string
217
+ product_id: string
218
+ unit_code: 0
219
+ urls:
220
+ image_url: string
221
+ product_url: string
222
+ thumbnail_url: string
223
+ weight:
224
+ unit: Gram
225
+ value: string
226
+ quantity: 0
227
+ shipping_charges:
228
+ - amount: string
229
+ description: string
230
+ taxes:
231
+ - amount: string
232
+ description: string
233
+ unit_price: 0
234
+ requested_fulfillment_id: string
235
+ ship_to:
236
+ address_line_1: string
237
+ address_line_2: string
238
+ address_line_3: string
239
+ city: string
240
+ company: string
241
+ country_code: 'US,MX,CA'
242
+ is_verified: true
243
+ name: string
244
+ first_name: string
245
+ last_name: string
246
+ phone: string
247
+ pickup_location:
248
+ carrier_id: string
249
+ relay_id: string
250
+ postal_code: string
251
+ residential_indicator: R
252
+ state_province: string
253
+ shipping_preferences:
254
+ additional_handling: true
255
+ bill_duties_to_sender: true
256
+ deliver_by_date: '2021-03-31T18:21:14.858Z'
257
+ digital_fulfillment: true
258
+ do_not_prepay_postage: true
259
+ documents:
260
+ - data: string
261
+ format: PDF
262
+ type:
263
+ - commercial_invoice
264
+ gift: true
265
+ has_alcohol: true
266
+ hold_until_date: '2021-03-31T18:21:14.858Z'
267
+ insurance_requested: true
268
+ insured_value: 0
269
+ is_premium_program: true
270
+ non_machinable: true
271
+ package_type: string
272
+ premium_program_name: string
273
+ preplanned_fulfillment_id: string
274
+ ready_to_ship_date: '2021-03-31T18:21:14.858Z'
275
+ requested_warehouse: string
276
+ saturday_delivery: true
277
+ ship_by_date: '2021-03-31T18:21:14.858Z'
278
+ shipping_service: string
279
+ show_postage: true
280
+ suppress_email_notify: true
281
+ suppress_marketplace_notify: true
282
+ ship_from:
283
+ address_line_1: string
284
+ address_line_2: string
285
+ address_line_3: string
286
+ city: string
287
+ company: string
288
+ country_code: 'US,MX,CA'
289
+ is_verified: true
290
+ name: string
291
+ first_name: string
292
+ last_name: string
293
+ phone: string
294
+ pickup_location:
295
+ carrier_id: string
296
+ relay_id: string
297
+ postal_code: string
298
+ residential_indicator: R
299
+ state_province: string
300
+ status: AwaitingPayment
301
+ description: ''
302
+ parameters:
303
+ - schema:
304
+ type: string
305
+ in: header
306
+ name: tenant-id
307
+ /fulfillment/status:
308
+ post:
309
+ summary: Get Fulfillment Status
310
+ operationId: post-fulfillment-status
311
+ responses:
312
+ '200':
313
+ description: OK
314
+ content:
315
+ application/json:
316
+ schema:
317
+ type: object
318
+ properties:
319
+ status:
320
+ $ref: '#/components/schemas/SalesOrderStatusChange'
321
+ polling:
322
+ type: object
323
+ properties:
324
+ is_final_update_state:
325
+ type: boolean
326
+ enum:
327
+ - once
328
+ - changes_since
329
+ max_age_seconds:
330
+ type: number
331
+ requestBody:
332
+ content:
333
+ application/json:
334
+ schema:
335
+ type: object
336
+ properties:
337
+ auth:
338
+ $ref: '#/components/schemas/Auth'
339
+ fulfillment_provider_order_id:
340
+ type: string
341
+ required:
342
+ - auth
343
+ - fulfillment_provider_order_id
344
+ description: |-
345
+ Receives an single partner orderid id that was returned from the /fulfillment/delegation resource.
346
+ It should return matching fulfillment quantity updates for all line items of the original fulfillment delegations.
347
+ It should return quantities for rejected, cancelled, and shipped per line item.
348
+ Rejected means the partner cannot fulfill that item.
349
+ Cancelled means the client has requested an item not be fulfilled and the partner was able to stop fulfillment.
350
+ Shipped means the item has left for delivery.
351
+
352
+ The original fulfillment will be marked shipped when all line items are either rejected/cancelled/shipped and at least one is shipped.
353
+
354
+ This resource is requested after the first time /fulfillment/status returns a polling method of "Batch".
355
+ The polling interval is once every 30 minutes.
356
+ The maximum number of ids per request is 50.
357
+ When there are more than 50 ids to request they are sequentially sent in batches of 50.
358
+
359
+ Polling can be controlled by returning the polling.max_age_seconds or polling.per_request_limit property.
360
+ The polling.max_age_seconds property overrides the 30 minute interval.
361
+ The polling.per_request_limit property overrides the 50 ids sent per request.
362
+
363
+ Individual fulfillments can be removed from the batch polling method by returning "once" or "cursor" in the polling.method property.
364
+ parameters:
365
+ - schema:
366
+ type: string
367
+ in: header
368
+ name: tenant-id
369
+ /fulfillment/cancellation:
370
+ post:
371
+ summary: Fulfillment Cancellation Request
372
+ operationId: post-fulfillment-cancellation
373
+ responses:
374
+ '200':
375
+ description: OK
376
+ content:
377
+ application/json:
378
+ schema:
379
+ type: object
380
+ properties:
381
+ reason:
382
+ type: string
383
+ parameters:
384
+ - schema:
385
+ type: string
386
+ in: header
387
+ name: tenant-id
388
+ requestBody:
389
+ content:
390
+ application/json:
391
+ schema:
392
+ type: object
393
+ properties:
394
+ auth:
395
+ $ref: '#/components/schemas/Auth'
396
+ partner_fulfillment_order_id:
397
+ type: string
398
+ reason:
399
+ type: string
400
+ required:
401
+ - auth
402
+ - partner_fulfillment_order_id
403
+ - reason
404
+ /rates:
405
+ post:
406
+ summary: Get Estimated Rates
407
+ operationId: post-rates
408
+ responses:
409
+ '200':
410
+ description: OK
411
+ content:
412
+ application/json:
413
+ schema:
414
+ $ref: '#/components/schemas/GetRatesResponse'
415
+ requestBody:
416
+ content:
417
+ application/json:
418
+ schema:
419
+ type: object
420
+ properties:
421
+ advanced_options:
422
+ type: object
423
+ description: 'This is a schemaless object. It is for open ended customizations unique to particular carriers. If the field is absent it should be interpreted as the default value for any applicable options, e.g. false for booleans.'
424
+ auth:
425
+ $ref: '#/components/schemas/Auth'
426
+ confirmation:
427
+ $ref: '#/components/schemas/DeliveryConfirmation'
428
+ customs:
429
+ $ref: '#/components/schemas/Customs'
430
+ fulfillment_plan_details:
431
+ $ref: '#/components/schemas/FulfillmentPlanDetails'
432
+ insurance_provider:
433
+ type: string
434
+ description: 'The insurance provider for the insured value of the label, carrier indicates that the user is requesting insurance from the carrier directly, anything else is extra information that should not result in a transaction.'
435
+ enum:
436
+ - None
437
+ - Shipstation
438
+ - Carrier
439
+ - External
440
+ international:
441
+ type: boolean
442
+ description: Indicates Whether the shipment is international.
443
+ is_return_label:
444
+ type: boolean
445
+ description: Indicates whether the label is a return.
446
+ is_residential:
447
+ type: boolean
448
+ description: Indicates whether the label is to a residential address.
449
+ next_day:
450
+ type: boolean
451
+ description: Indicates whether this shipment is expected to use a next day service class. If the field is absent it should be interpreted as false
452
+ packages:
453
+ type: string
454
+ description: All the packages that make up this shipment. There will always be at least one package defined.
455
+ pickup_location:
456
+ $ref: '#/components/schemas/PickupLocationDetails'
457
+ service_code:
458
+ type: string
459
+ description: Code used to map to what the carrier uses to identify the service.
460
+ ship_datetime:
461
+ type: string
462
+ description: 'When the package is expected to ship. Not guaranteed to be in the future. Formatted per the https://tools.ietf.org/html/rfc3339 spec. Will always be in UTC.'
463
+ ship_from:
464
+ $ref: '#/components/schemas/ShippingAddress'
465
+ ship_from_display:
466
+ $ref: '#/components/schemas/ShippingAddress'
467
+ ship_to:
468
+ $ref: '#/components/schemas/ShippingAddress'
469
+ description: This method get possible rates for labels between two addresses.
470
+ parameters:
471
+ - schema:
472
+ type: string
473
+ in: header
474
+ name: tenant-id
475
+ /get-recent-changes:
476
+ parameters: []
477
+ post:
478
+ summary: Get recent fulfillment changes since when
479
+ operationId: post-fulfillment-get-recent-changes
480
+ responses:
481
+ '200':
482
+ description: OK
483
+ content:
484
+ application/json:
485
+ schema:
486
+ type: object
487
+ properties:
488
+ changes:
489
+ type: array
490
+ items:
491
+ $ref: '#/components/schemas/SalesOrderStatusChange'
492
+ next_request:
493
+ type: string
494
+ since:
495
+ type: string
496
+ '':
497
+ content:
498
+ application/json:
499
+ schema:
500
+ type: object
501
+ properties:
502
+ changes:
503
+ type: string
504
+ next_request:
505
+ type:
506
+ - object
507
+ - string
508
+ description: |-
509
+ Receives a timestamp and returns a list of line item changes since then.
510
+ It may also return order level status changes that should be applied to all line items on the order as a whole.
511
+ requestBody:
512
+ content:
513
+ application/json:
514
+ schema:
515
+ type: object
516
+ properties:
517
+ auth:
518
+ $ref: '#/components/schemas/Auth'
519
+ next_request:
520
+ type:
521
+ - object
522
+ - string
523
+ since:
524
+ type: string
525
+ parameters:
526
+ - schema:
527
+ type: string
528
+ in: header
529
+ name: tenant-id
530
+ /reconnect:
531
+ post:
532
+ summary: Refresh Auth to Partner
533
+ operationId: post-reconnect
534
+ responses:
535
+ '200':
536
+ description: OK
537
+ content:
538
+ application/json:
539
+ schema:
540
+ type: object
541
+ properties:
542
+ auth:
543
+ $ref: '#/components/schemas/Auth'
544
+ parameters:
545
+ - schema:
546
+ type: string
547
+ in: header
548
+ name: tenant-id
549
+ requestBody:
550
+ content:
551
+ application/json:
552
+ schema:
553
+ type: object
554
+ properties:
555
+ auth:
556
+ $ref: '#/components/schemas/Auth'
557
+ /inventory:
558
+ post:
559
+ summary: Get Inventory
560
+ operationId: post-inventory
561
+ responses:
562
+ '200':
563
+ description: OK
564
+ content:
565
+ application/json:
566
+ schema:
567
+ type: object
568
+ properties:
569
+ inventory:
570
+ type: array
571
+ items:
572
+ type: object
573
+ properties:
574
+ sku:
575
+ type: string
576
+ warehouse_id:
577
+ type: string
578
+ available_quantity:
579
+ type: number
580
+ committed_quantity:
581
+ type: number
582
+ on_hand_quantity:
583
+ type: number
584
+ next_request:
585
+ type: object
586
+ parameters:
587
+ - schema:
588
+ type: string
589
+ in: header
590
+ name: tenant-id
591
+ requestBody:
592
+ content:
593
+ application/json:
594
+ schema:
595
+ type: object
596
+ properties:
597
+ auth:
598
+ $ref: '#/components/schemas/Auth'
599
+ next_request:
600
+ type:
601
+ - object
602
+ - string
603
+ components:
604
+ schemas:
605
+ Address:
606
+ title: Address
607
+ type: object
608
+ description: This defines the shape of an address
609
+ properties:
610
+ address_line_1:
611
+ type: string
612
+ description: The first line of the address
613
+ address_line_2:
614
+ type: string
615
+ description: The second line of the address
616
+ address_line_3:
617
+ type: string
618
+ description: The third line of the address
619
+ city:
620
+ type: string
621
+ description: The city associated with this address
622
+ company:
623
+ type: string
624
+ description: The name of the company associated with this address
625
+ country_code:
626
+ type: string
627
+ description: The two character ISO 3166 country code of this address
628
+ example: 'US,MX,CA'
629
+ is_verified:
630
+ type: boolean
631
+ description: Indicates whether or not this address has been verified using an Address Verification Service
632
+ name:
633
+ type: string
634
+ description: The full name of the contact associated with this address
635
+ first_name:
636
+ type: string
637
+ description: The first name of the contact associated with this address
638
+ last_name:
639
+ type: string
640
+ description: The last name of the contact associated with this address
641
+ phone:
642
+ type: string
643
+ description: The phone number associated with this address
644
+ pickup_location:
645
+ $ref: '#/components/schemas/PickupLocation'
646
+ postal_code:
647
+ type: string
648
+ description: The postal code associated with this address
649
+ residential_indicator:
650
+ type: string
651
+ description: Indicates this is a residential or commercial address
652
+ enum:
653
+ - R
654
+ - C
655
+ - 'null'
656
+ state_province:
657
+ type: string
658
+ description: 'The state, province, or municipality of the address'
659
+ Auth:
660
+ title: Auth
661
+ type: object
662
+ description: Authentication properties
663
+ properties:
664
+ access_token:
665
+ type: string
666
+ description: Custom Value 1
667
+ api_key:
668
+ type: string
669
+ description: Custom Value 2
670
+ connection_context:
671
+ type: string
672
+ description: Custom Value 3
673
+ fulfillment_partner_api_code:
674
+ type: string
675
+ password:
676
+ type: string
677
+ url:
678
+ type: string
679
+ username:
680
+ type: string
681
+ required:
682
+ - fulfillment_partner_api_code
683
+ BillingCategory:
684
+ type: string
685
+ title: BillingCategory
686
+ description: This table lists the valid values for billing categories.
687
+ enum:
688
+ - uncategorized
689
+ - shipping
690
+ - insurance
691
+ - confirm
692
+ - discount
693
+ - fuel_charge
694
+ - additional_fees
695
+ - tariff
696
+ - tax
697
+ - delivery
698
+ - handling
699
+ - special_goods
700
+ - pickup
701
+ - location_fee
702
+ - oversize
703
+ - returns
704
+ - notifications
705
+ BillingLineItem:
706
+ title: Billing Line Item
707
+ type: object
708
+ properties:
709
+ billing_category:
710
+ $ref: '#/components/schemas/BillingCategory'
711
+ carrier_description:
712
+ type: string
713
+ description: If the carrier provides a description from their API about the billing charge (not specific to the user). Maximum length of 100 characters.
714
+ carrier_billing_code:
715
+ type: string
716
+ description: If the carrier provides a billing code for the billing charge.
717
+ memo:
718
+ type: string
719
+ description: 'This will often be empty; however, if there was additionally specific information about the charge it should go here, could also be a reference number. Maximum length of 250 characters.'
720
+ amount:
721
+ type: object
722
+ required:
723
+ - amount
724
+ - currency
725
+ description: Total amount and currency of the line item.
726
+ properties:
727
+ amount:
728
+ type: string
729
+ description: The amount of the line item.
730
+ currency:
731
+ type: string
732
+ description: The currency of the line item.
733
+ required:
734
+ - billing_category
735
+ - amount
736
+ description: This table lists the properties of a billing line item object and identifies those properties that are required.
737
+ BillTo:
738
+ type: object
739
+ title: BillTo
740
+ description: This model represents information for who is being billed
741
+ x-internal: false
742
+ properties:
743
+ address_line_1:
744
+ type: string
745
+ description: The first line of the address
746
+ address_line_2:
747
+ type: string
748
+ description: The second line of the address
749
+ address_line_3:
750
+ type: string
751
+ description: The third line of the address
752
+ city:
753
+ type: string
754
+ description: The city associated with this address
755
+ company:
756
+ type: string
757
+ description: The name of the company associated with this address
758
+ country_code:
759
+ type: string
760
+ description: The two character ISO 3166 country code of this address
761
+ example: 'US,MX,CA'
762
+ email:
763
+ type: string
764
+ description: The email address of the person being billed
765
+ is_verified:
766
+ type: boolean
767
+ description: Indicates whether or not this address has been verified using an Address Verification Service
768
+ name:
769
+ type: string
770
+ description: The name of the individual associated with this address
771
+ phone:
772
+ type: string
773
+ description: The phone number associated with this address
774
+ pickup_location:
775
+ $ref: '#/components/schemas/PickupLocation'
776
+ postal_code:
777
+ type: string
778
+ description: The postal code associated with this address
779
+ residential_indicator:
780
+ type: string
781
+ description: Indicates this is a residential or commercial address
782
+ enum:
783
+ - R
784
+ - C
785
+ - 'null'
786
+ state_province:
787
+ type: string
788
+ description: 'The state, province, or municipality of the address'
789
+ required:
790
+ - address_line_1
791
+ - address_line_2
792
+ - address_line_3
793
+ - city
794
+ - company
795
+ - country_code
796
+ - name
797
+ - phone
798
+ - postal_code
799
+ - state_province
800
+ Branding:
801
+ title: Branding
802
+ type: object
803
+ properties:
804
+ company_name:
805
+ type: string
806
+ packing_slip:
807
+ $ref: '#/components/schemas/PackingSlip'
808
+ description: The brand requested for a fulfillment
809
+ Buyer:
810
+ title: Buyer
811
+ type: object
812
+ description: Contact information for the buyer of this sales order
813
+ properties:
814
+ buyer_id:
815
+ type: string
816
+ description: An ID for this buyer in the vendor API
817
+ email:
818
+ type: string
819
+ description: The primary email address of the buyer
820
+ name:
821
+ type: string
822
+ description: The full name of the buyer
823
+ phone:
824
+ type: string
825
+ description: The primary phone number of the buyer
826
+ Charge:
827
+ title: Charge
828
+ type: object
829
+ description: This represents an amount charged
830
+ properties:
831
+ amount:
832
+ type: string
833
+ description: The amount of the currency
834
+ description:
835
+ type: string
836
+ description: A description for display purposes only
837
+ required:
838
+ - amount
839
+ - description
840
+ CountryCode:
841
+ type: string
842
+ title: Country Code
843
+ description: 'This is the list of ISO 3166-1 alpha-2 supported. You must use the specified abbreviation anytime a country is needed, such as in your Delivery Service Definition files in the availableCountries properties.'
844
+ enum:
845
+ - AF
846
+ - AX
847
+ - AL
848
+ - DZ
849
+ - AS
850
+ - AD
851
+ - AO
852
+ - AI
853
+ - AQ
854
+ - AG
855
+ - AR
856
+ - AM
857
+ - AW
858
+ - AU
859
+ - AT
860
+ - AZ
861
+ - BS
862
+ - BH
863
+ - BD
864
+ - BB
865
+ - BY
866
+ - BE
867
+ - BZ
868
+ - BJ
869
+ - BM
870
+ - BT
871
+ - BO
872
+ - BA
873
+ - BW
874
+ - BV
875
+ - BR
876
+ - IO
877
+ - BN
878
+ - BG
879
+ - BF
880
+ - BI
881
+ - KH
882
+ - CM
883
+ - CA
884
+ - CV
885
+ - KY
886
+ - CF
887
+ - TD
888
+ - CL
889
+ - CN
890
+ - CX
891
+ - CC
892
+ - CO
893
+ - KM
894
+ - CG
895
+ - CD
896
+ - CK
897
+ - CR
898
+ - CI
899
+ - HR
900
+ - CU
901
+ - CY
902
+ - CZ
903
+ - DK
904
+ - DJ
905
+ - DM
906
+ - DO
907
+ - EC
908
+ - EG
909
+ - SV
910
+ - GQ
911
+ - ER
912
+ - EE
913
+ - ET
914
+ - FK
915
+ - FO
916
+ - FJ
917
+ - FI
918
+ - FR
919
+ - GF
920
+ - PF
921
+ - TF
922
+ - GA
923
+ - GM
924
+ - GE
925
+ - DE
926
+ - GH
927
+ - GI
928
+ - GR
929
+ - GL
930
+ - GD
931
+ - GP
932
+ - GU
933
+ - GT
934
+ - GG
935
+ - GN
936
+ - GW
937
+ - GY
938
+ - HT
939
+ - HM
940
+ - VA
941
+ - HN
942
+ - HK
943
+ - HU
944
+ - IS
945
+ - IN
946
+ - ID
947
+ - IR
948
+ - IQ
949
+ - IE
950
+ - IM
951
+ - IL
952
+ - IT
953
+ - JM
954
+ - JP
955
+ - JE
956
+ - JO
957
+ - KZ
958
+ - KE
959
+ - KI
960
+ - KR
961
+ - KW
962
+ - KG
963
+ - LA
964
+ - LV
965
+ - LB
966
+ - LS
967
+ - LR
968
+ - LY
969
+ - LI
970
+ - LT
971
+ - LU
972
+ - MO
973
+ - MK
974
+ - MG
975
+ - MW
976
+ - MY
977
+ - MV
978
+ - ML
979
+ - MT
980
+ - MH
981
+ - MQ
982
+ - MR
983
+ - MU
984
+ - YT
985
+ - MX
986
+ - FM
987
+ - MD
988
+ - MC
989
+ - MN
990
+ - ME
991
+ - MS
992
+ - MA
993
+ - MZ
994
+ - MM
995
+ - NA
996
+ - NR
997
+ - NP
998
+ - NL
999
+ - AN
1000
+ - NC
1001
+ - NZ
1002
+ - NI
1003
+ - NE
1004
+ - NG
1005
+ - NU
1006
+ - NF
1007
+ - MP
1008
+ - 'NO'
1009
+ - OM
1010
+ - PK
1011
+ - PW
1012
+ - PS
1013
+ - PA
1014
+ - PG
1015
+ - PY
1016
+ - PE
1017
+ - PH
1018
+ - PN
1019
+ - PL
1020
+ - PT
1021
+ - PR
1022
+ - QA
1023
+ - RE
1024
+ - RO
1025
+ - RU
1026
+ - RW
1027
+ - BL
1028
+ - SH
1029
+ - KN
1030
+ - LC
1031
+ - MF
1032
+ - PM
1033
+ - VC
1034
+ - WS
1035
+ - SM
1036
+ - ST
1037
+ - SA
1038
+ - SN
1039
+ - RS
1040
+ - SC
1041
+ - SL
1042
+ - SG
1043
+ - SK
1044
+ - SI
1045
+ - SB
1046
+ - SO
1047
+ - ZA
1048
+ - GS
1049
+ - ES
1050
+ - LK
1051
+ - SD
1052
+ - SR
1053
+ - SJ
1054
+ - SZ
1055
+ - SE
1056
+ - CH
1057
+ - SY
1058
+ - TW
1059
+ - TJ
1060
+ - TZ
1061
+ - TH
1062
+ - TL
1063
+ - TG
1064
+ - TK
1065
+ - TO
1066
+ - TT
1067
+ - TN
1068
+ - TR
1069
+ - TM
1070
+ - TC
1071
+ - TV
1072
+ - UG
1073
+ - UA
1074
+ - AE
1075
+ - GB
1076
+ - US
1077
+ - UM
1078
+ - UY
1079
+ - UZ
1080
+ - VU
1081
+ - VE
1082
+ - VN
1083
+ - VG
1084
+ - VI
1085
+ - WF
1086
+ - EH
1087
+ - YE
1088
+ - ZM
1089
+ - ZW
1090
+ Customs:
1091
+ title: Customs
1092
+ type: object
1093
+ description: Customs declarations for this package.
1094
+ properties:
1095
+ customs:
1096
+ type: object
1097
+ properties:
1098
+ contents:
1099
+ $ref: '#/components/schemas/DeliveryConfirmation'
1100
+ non_delivery:
1101
+ type: string
1102
+ description: 'Indicates what should be done if the package cannot be delivered. If undefined, the default behavior of the receiving country''s customs department applies, which may incur charges.'
1103
+ enum:
1104
+ - return_to_sender
1105
+ - treat_as_abandoned
1106
+ customs_items:
1107
+ type: array
1108
+ items:
1109
+ type: object
1110
+ properties:
1111
+ description:
1112
+ type: string
1113
+ description: A description of the item. Usually required if type is other. This string will not contain newline characters.
1114
+ quantity:
1115
+ type: number
1116
+ description: The quantity of items in the package.
1117
+ value:
1118
+ type: object
1119
+ description: The monetary value of each unit in the package.
1120
+ properties:
1121
+ amount:
1122
+ type: number
1123
+ description: The amount of this value.
1124
+ currency:
1125
+ type: string
1126
+ description: The currency that the value represents.
1127
+ country_of_origin:
1128
+ $ref: '#/components/schemas/CountryCode'
1129
+ harmonized_tariff_code:
1130
+ type: string
1131
+ description: The Harmonized Tariff Code for the item. This string must not contain newline characters.
1132
+ sku:
1133
+ type: string
1134
+ description: The Stock Keeping Unit of this customs item. This field is completely free form.
1135
+ sku_description:
1136
+ type: string
1137
+ description: The user specified SKU description of this customs item. This field is completely free form.
1138
+ item_weight:
1139
+ $ref: '#/components/schemas/WeightDetails'
1140
+ buyer_shipping_amount_paid:
1141
+ type: object
1142
+ description: 'Indicates how much the buyer paid for shipping, if any. This amount may be different than the shipping cost billed to the shipper.'
1143
+ properties:
1144
+ amount:
1145
+ type: number
1146
+ description: The amount of this value.
1147
+ currency:
1148
+ type: string
1149
+ description: The currency that the value represents.
1150
+ required:
1151
+ - amount
1152
+ - currency
1153
+ duties_paid:
1154
+ type: object
1155
+ description: 'The amount of duties paid by the shipper, if any. This is generally only necessary for DDP (bill duties to sender) shipments.'
1156
+ properties:
1157
+ value:
1158
+ type: number
1159
+ description: The amount of this value.
1160
+ currency:
1161
+ type: string
1162
+ description: The currency that the value represents.
1163
+ required:
1164
+ - value
1165
+ - currency
1166
+ required:
1167
+ - customs_items
1168
+ DeliveryConfirmation:
1169
+ type: string
1170
+ title: DeliveryConfirmation
1171
+ description: This is the list of valid values for delivery confirmation types.
1172
+ enum:
1173
+ - None
1174
+ - Delivery
1175
+ - Signature
1176
+ - AdultSignature
1177
+ - DirectSignature
1178
+ DimensionDetails:
1179
+ title: Dimension Details
1180
+ type: object
1181
+ description: 'This model represents the dimensions for a package represented in its original unit, inches, and centimeters.'
1182
+ properties:
1183
+ dimensions_in_centimeters:
1184
+ $ref: '#/components/schemas/PackageDimension'
1185
+ dimension_in_inches:
1186
+ $ref: '#/components/schemas/PackageDimension'
1187
+ source_dimensions:
1188
+ $ref: '#/components/schemas/PackageDimension'
1189
+ source_dimensions_units:
1190
+ type: string
1191
+ description: The unit of the source dimensions. Either centimeters or inches.
1192
+ required:
1193
+ - dimensions_in_centimeters
1194
+ - dimension_in_inches
1195
+ - source_dimensions
1196
+ - source_dimensions_units
1197
+ Dimensions:
1198
+ title: Dimensions
1199
+ type: object
1200
+ description: The definition of dimensions for an item or package
1201
+ properties:
1202
+ height:
1203
+ type: number
1204
+ description: The height of the item in dimension units
1205
+ length:
1206
+ type: number
1207
+ description: The length of the item in dimension units
1208
+ unit:
1209
+ type: string
1210
+ description: The unit associated with these dimensions
1211
+ enum:
1212
+ - Centimeter
1213
+ - Inch
1214
+ width:
1215
+ type: number
1216
+ description: The width of the item in dimension units
1217
+ required:
1218
+ - height
1219
+ - length
1220
+ - unit
1221
+ - width
1222
+ Document:
1223
+ title: Document
1224
+ type: object
1225
+ properties:
1226
+ data:
1227
+ type: string
1228
+ description: Base64 encoded string of the document in the specified format
1229
+ format:
1230
+ type: string
1231
+ description: The format the document is in
1232
+ enum:
1233
+ - PDF
1234
+ - PNG
1235
+ - ZPL
1236
+ type:
1237
+ type: array
1238
+ description: 'Usually there will only be 1 type present, but sometimes multiple documents can be combined'
1239
+ items:
1240
+ type: string
1241
+ enum:
1242
+ - commercial_invoice
1243
+ - customs_form
1244
+ - label
1245
+ required:
1246
+ - format
1247
+ FulfillmentPlanDetails:
1248
+ title: Fulfillment Plan Details
1249
+ type: object
1250
+ description: An fulfillment plan details object representing a fulfilment plan.
1251
+ properties:
1252
+ external_sales_order_identifiers:
1253
+ type: array
1254
+ description: A list of identifiers for the sales order.
1255
+ items:
1256
+ $ref: '#/components/schemas/Identifier'
1257
+ items:
1258
+ type: array
1259
+ items:
1260
+ $ref: '#/components/schemas/FulfillmentPlanDetails'
1261
+ raw_external_source:
1262
+ type: object
1263
+ required:
1264
+ - marketplace_code
1265
+ description: This model represents a raw external source of information.
1266
+ properties:
1267
+ marketplace_code:
1268
+ type: string
1269
+ description: Canonical representation of the fulfillment plan's and/or sales order's original source.
1270
+ required:
1271
+ - raw_external_source
1272
+ FulfillmentPlanItem:
1273
+ title: Fulfillment Plan Item
1274
+ type: object
1275
+ properties:
1276
+ external_sales_order_identifiers:
1277
+ type: array
1278
+ description: A list of identifiers for the sales order item.
1279
+ items:
1280
+ $ref: '#/components/schemas/Identifier'
1281
+ external_product_identifiers:
1282
+ type: array
1283
+ description: A list of identifiers specific to the selling channel.
1284
+ items:
1285
+ $ref: '#/components/schemas/Identifier'
1286
+ name:
1287
+ type: string
1288
+ description: The name of the item.
1289
+ quantity:
1290
+ type: number
1291
+ description: The number of items.
1292
+ description: An fulfillment plan item object representing a single item on a fulfilment plan.
1293
+ Identifier:
1294
+ title: Identifier
1295
+ type: object
1296
+ description: An identifier object is used to describe any identifier used through out Connect.
1297
+ properties:
1298
+ type:
1299
+ type: string
1300
+ description: They key associated with the identifier. Examples include tracking_number or carrier_transaction_id.
1301
+ value:
1302
+ type: string
1303
+ description: The value of the identifier.
1304
+ required:
1305
+ - type
1306
+ - value
1307
+ GetRatesRequest:
1308
+ title: Get Rates Request
1309
+ type: object
1310
+ description: An object containing information about the shipment to get rates for. The more information provided the more accurate rates (usually).
1311
+ properties:
1312
+ service_code:
1313
+ type: string
1314
+ description: Code used to map to what the carrier uses to identify the service.
1315
+ ship_datetime:
1316
+ type: string
1317
+ description: 'When the package is expected to ship. Not guaranteed to be in the future. Formatted per the https://tools.ietf.org/html/rfc3339 spec. Will always be in UTC.'
1318
+ confirmation:
1319
+ $ref: '#/components/schemas/DeliveryConfirmation'
1320
+ advanced_options:
1321
+ type: object
1322
+ description: 'This is a schemaless object. It is for open ended customizations unique to particular carriers. If the field is absent it should be interpreted as the default value for any applicable options, e.g. false for booleans.'
1323
+ insurance_provider:
1324
+ type: string
1325
+ description: 'The insurance provider for the insured value of the label, carrier indicates that the user is requesting insurance from the carrier directly, anything else is extra information that should not result in a transaction.'
1326
+ enum:
1327
+ - None
1328
+ - Shipstation
1329
+ - Carrier
1330
+ - External
1331
+ is_return_label:
1332
+ type: boolean
1333
+ description: Indicates whether the label is a return.
1334
+ is_residential:
1335
+ type: boolean
1336
+ description: Indicates whether the label is to a residential address.
1337
+ packages:
1338
+ type: string
1339
+ description: All the packages that make up this shipment. There will always be at least one package defined.
1340
+ customs:
1341
+ $ref: '#/components/schemas/Customs'
1342
+ ship_to:
1343
+ $ref: '#/components/schemas/ShippingAddress'
1344
+ ship_from:
1345
+ $ref: '#/components/schemas/ShippingAddress'
1346
+ pickup_location:
1347
+ $ref: '#/components/schemas/PickupLocationDetails'
1348
+ ship_from_display:
1349
+ $ref: '#/components/schemas/ShippingAddress'
1350
+ next_day:
1351
+ type: boolean
1352
+ description: Indicates whether this shipment is expected to use a next day service class. If the field is absent it should be interpreted as false
1353
+ international:
1354
+ type: boolean
1355
+ description: Indicates Whether the shipment is international.
1356
+ fulfillment_plan_details:
1357
+ $ref: '#/components/schemas/FulfillmentPlanDetails'
1358
+ required:
1359
+ - ship_datetime
1360
+ GetRatesResponse:
1361
+ title: Get Rates Response
1362
+ type: object
1363
+ description: This object model represents the response from a successful get rates request.
1364
+ properties:
1365
+ rates:
1366
+ type: array
1367
+ description: A list of rates for shipping services. If you use service codes there may be exactly one rate returned for the requested service. If you use service codes there may be more than one rate to provide additional options. If you don't use service codes there may be one or more rates. If you don't provide real time rates you should return a single hard coded zero value rate.
1368
+ items:
1369
+ type: object
1370
+ properties:
1371
+ billing_line_items:
1372
+ description: Individual Billing Line items for the rate.
1373
+ type: array
1374
+ items:
1375
+ $ref: '#/components/schemas/BillingLineItem'
1376
+ error_messages:
1377
+ type: array
1378
+ description: Any error messages that resulted while trying to get the rate.
1379
+ items:
1380
+ type: string
1381
+ estimated_delivery_datetime:
1382
+ type: string
1383
+ description: 'When the package(s) in this shipment are expected to arrive at their destination. Formatted per the https://tools.ietf.org/html/rfc3339 spec. Must be in UTC.'
1384
+ negotiated_rate:
1385
+ type: boolean
1386
+ description: Indicates whether this is a pre-negotiated rate.
1387
+ service_code:
1388
+ type: string
1389
+ description: 'The service code uniquely identifies a shipping service that you offer. Which service codes can be passed to you will be configured in ShipEngine. If this field is missing, the rate will be discarded.'
1390
+ ship_datetime:
1391
+ type: string
1392
+ description: 'When the package should ship for this rate to be valid. Formatted per the https://tools.ietf.org/html/rfc3339 spec. Must be in UTC.'
1393
+ warning_messages:
1394
+ type: array
1395
+ description: Any warning messages that resulted while trying to get the rate.
1396
+ items:
1397
+ type: string
1398
+ required:
1399
+ - rates
1400
+ LineItemQuantityStatus:
1401
+ title: LineItemQuantityStatus
1402
+ type: object
1403
+ properties:
1404
+ line_item_id:
1405
+ type: string
1406
+ sku:
1407
+ type: string
1408
+ quantity:
1409
+ type: number
1410
+ shipped_quantity:
1411
+ type: number
1412
+ cancelled_quantity:
1413
+ $ref: '#/components/schemas/QuantityWithReason'
1414
+ rejected_quantity:
1415
+ $ref: '#/components/schemas/QuantityWithReason'
1416
+ unknown_quantity:
1417
+ $ref: '#/components/schemas/QuantityWithReason'
1418
+ required:
1419
+ - line_item_id
1420
+ - sku
1421
+ - quantity
1422
+ description: Sales order line item quantity fulfillment statuses
1423
+ Note:
1424
+ title: Note
1425
+ type: object
1426
+ description: 'This represents a note to the buyer, seller, or recipient'
1427
+ properties:
1428
+ text:
1429
+ type: string
1430
+ description: The contents of the note
1431
+ type:
1432
+ $ref: '#/components/schemas/NoteType'
1433
+ required:
1434
+ - text
1435
+ - type
1436
+ NoteType:
1437
+ type: string
1438
+ title: NoteType
1439
+ description: The standardized type associated with a note
1440
+ enum:
1441
+ - BackOrderMessage
1442
+ - ConditionNote
1443
+ - FeedbackMessage
1444
+ - GiftMessage
1445
+ - InStockMessage
1446
+ - InternalNotes
1447
+ - MPN
1448
+ - NotesFromBuyer
1449
+ - NotesToBuyer
1450
+ - Other
1451
+ - OutOfStockMessage
1452
+ - Reason
1453
+ - SpecialInstructions
1454
+ - WarningLabel
1455
+ OriginalOrderSource:
1456
+ title: OriginalOrderSource
1457
+ type: object
1458
+ description: Represents information from the source marketplace. (This is common with reselling goods)
1459
+ properties:
1460
+ marketplace_code:
1461
+ type: string
1462
+ description: The code for the type of marketplace
1463
+ order_id:
1464
+ type: string
1465
+ description: The unique identifier for the order at the source marketplace
1466
+ source_id:
1467
+ type: string
1468
+ description: A unique identifier for the source marketplace
1469
+ PackingSlip:
1470
+ title: PackingSlip
1471
+ type: object
1472
+ description: Packing slip details for a fulfillment brand
1473
+ properties:
1474
+ url:
1475
+ type: string
1476
+ description: The url from which the packing slip can be downloaded
1477
+ required:
1478
+ - url
1479
+ Package:
1480
+ title: Package
1481
+ type: object
1482
+ description: The new package object describes the package information needed when creating a new label.
1483
+ properties:
1484
+ package_code:
1485
+ type: string
1486
+ description: Optional code used to map to what the carrier uses to identify the packaging.
1487
+ dimension_details:
1488
+ $ref: '#/components/schemas/DimensionDetails'
1489
+ weight_details:
1490
+ $ref: '#/components/schemas/WeightDetails'
1491
+ insured_value:
1492
+ type: object
1493
+ description: The insured value of this shipment.
1494
+ required:
1495
+ - amount
1496
+ - currency
1497
+ properties:
1498
+ amount:
1499
+ type: number
1500
+ description: The value of the insured amount.
1501
+ currency:
1502
+ type: string
1503
+ description: The currency that the value represents.
1504
+ label_messages:
1505
+ type: object
1506
+ description: User defined messages for the label.
1507
+ properties:
1508
+ reference1:
1509
+ type: string
1510
+ description: The first custom message text.
1511
+ reference2:
1512
+ type: string
1513
+ description: The second custom message text.
1514
+ reference3:
1515
+ type: string
1516
+ description: The third custom message text.
1517
+ customs:
1518
+ $ref: '#/components/schemas/Customs'
1519
+ required:
1520
+ - insured_value
1521
+ - customs
1522
+ PackageDimension:
1523
+ title: Package Dimension
1524
+ type: object
1525
+ description: This model represents the measurements for dimensions.
1526
+ properties:
1527
+ length:
1528
+ type: number
1529
+ description: The length of the package.
1530
+ width:
1531
+ type: number
1532
+ description: The width of the package.
1533
+ height:
1534
+ type: number
1535
+ description: The height of the package.
1536
+ required:
1537
+ - length
1538
+ - width
1539
+ - height
1540
+ Payment:
1541
+ title: Payment
1542
+ type: object
1543
+ properties:
1544
+ adjustments:
1545
+ type: array
1546
+ description: 'A list of adjustments applied that influence the order total. For example, promotions/discounts/coupons. The amount should always be a quantity of currency, not a percentage.'
1547
+ items:
1548
+ $ref: '#/components/schemas/Charge'
1549
+ amount_paid:
1550
+ type: string
1551
+ description: The amount of the currency
1552
+ coupon_code:
1553
+ type: string
1554
+ description: Coupon code applied to obtain a discount. The discount amounts should be included as one of the adjustments.
1555
+ label_voucher:
1556
+ type: string
1557
+ payment_id:
1558
+ type: string
1559
+ description: An ID for this payment in the vendor API
1560
+ payment_method:
1561
+ type: string
1562
+ description: The payment method
1563
+ payment_status:
1564
+ type: string
1565
+ description: The status of whether or not an order has been paid for
1566
+ enum:
1567
+ - AwaitingPayment
1568
+ - Other
1569
+ - Paid
1570
+ - PaymentCancelled
1571
+ - PaymentFailed
1572
+ - PaymentInProcess
1573
+ shipping_charges:
1574
+ type: array
1575
+ description: A list of shipping charges.
1576
+ items:
1577
+ $ref: '#/components/schemas/Charge'
1578
+ taxes:
1579
+ type: array
1580
+ description: A list of tax charges. The description can convey the jurisdiction
1581
+ items:
1582
+ $ref: '#/components/schemas/Charge'
1583
+ PickupLocation:
1584
+ title: PickupLocation
1585
+ type: object
1586
+ description: Describes information about a drop off / pickup location
1587
+ properties:
1588
+ carrier_id:
1589
+ type: string
1590
+ description: An id specific to the carrier about this drop off / pickup location
1591
+ relay_id:
1592
+ type: string
1593
+ description: The id of a relay point used for the drop off / pickup location
1594
+ PickupLocationDetails:
1595
+ title: PickupLocationDetails
1596
+ type: object
1597
+ properties:
1598
+ pickup_address:
1599
+ $ref: '#/components/schemas/ShippingAddress'
1600
+ location_notes:
1601
+ type: string
1602
+ description: Human readable location information for the driver to find the location.
1603
+ pickup_options:
1604
+ type: object
1605
+ description: Custom options that are used by the carrier to determine pickup locations.
1606
+ description: Pickup/Dropoff location address used by carriers.
1607
+ Product:
1608
+ title: Product
1609
+ type: object
1610
+ description: This represents a product
1611
+ properties:
1612
+ description:
1613
+ type: string
1614
+ description: The product description
1615
+ details:
1616
+ type: array
1617
+ description: A list of details associated with this product
1618
+ items:
1619
+ $ref: '#/components/schemas/ProductDetail'
1620
+ dimensions:
1621
+ $ref: '#/components/schemas/Dimensions'
1622
+ identifiers:
1623
+ $ref: '#/components/schemas/ProductIdentifiers'
1624
+ location:
1625
+ type: string
1626
+ description: The location the product can be found in a warehouse
1627
+ name:
1628
+ type: string
1629
+ description: The product name
1630
+ product_id:
1631
+ type: string
1632
+ description: This ID of this product in the vendor API
1633
+ unit_code:
1634
+ type: number
1635
+ description: The cost of a single product
1636
+ urls:
1637
+ $ref: '#/components/schemas/ProductUrls'
1638
+ weight:
1639
+ $ref: '#/components/schemas/Weight'
1640
+ required:
1641
+ - name
1642
+ - product_id
1643
+ ProductDetail:
1644
+ title: ProductDetail
1645
+ type: object
1646
+ description: Details about a product
1647
+ examples:
1648
+ - name: Color
1649
+ value: Red
1650
+ properties:
1651
+ name:
1652
+ type: string
1653
+ description: The type of the product detail. Example (non-exhaustive)
1654
+ enum:
1655
+ - Color
1656
+ - CountryOfManufacture
1657
+ - Shape
1658
+ - Size
1659
+ - Style
1660
+ value:
1661
+ type: string
1662
+ description: The value of the product detail
1663
+ ProductIdentifiers:
1664
+ title: ProductIdentifiers
1665
+ type: object
1666
+ description: A set of identifiers for a product
1667
+ properties:
1668
+ asin:
1669
+ type: string
1670
+ description: An Amazon standard identification number associated with a product
1671
+ fulfillment_sku:
1672
+ type: string
1673
+ description: A stock-keeping unit associated with the fulfillment of an order
1674
+ inventory_id:
1675
+ type: string
1676
+ description: The identifier needed to set and retrieve inventory levels
1677
+ isbn:
1678
+ type: string
1679
+ description: An international standard book number associated with a product
1680
+ sku:
1681
+ type: string
1682
+ description: A stock-keeping unit associated with a product by the order source
1683
+ upc:
1684
+ type: string
1685
+ description: A universal product code associated with a product
1686
+ ProductUrls:
1687
+ title: ProductUrls
1688
+ type: object
1689
+ description: The urls associated with a product
1690
+ properties:
1691
+ image_url:
1692
+ type: string
1693
+ description: A link to the image for a product if available
1694
+ product_url:
1695
+ type: string
1696
+ description: A link to the product page if available
1697
+ thumbnail_url:
1698
+ type: string
1699
+ description: A link to the image for use in platform thumbnails
1700
+ QuantityWithReason:
1701
+ title: QuantityWithReason
1702
+ type: object
1703
+ properties:
1704
+ quantity:
1705
+ type: number
1706
+ reason:
1707
+ type: string
1708
+ RequestedFulfillmentExtensions:
1709
+ title: RequestedFulfillmentExtensions
1710
+ type: object
1711
+ properties:
1712
+ custom_field_1:
1713
+ type: string
1714
+ description: Custom field 1
1715
+ custom_field_2:
1716
+ type: string
1717
+ description: Custom field 2
1718
+ custom_field_3:
1719
+ type: string
1720
+ description: Custom field 3
1721
+ description: Additional information necessary for a requested fulfillment
1722
+ RequestedFulfillment:
1723
+ title: RequestedFulfillment
1724
+ type: object
1725
+ description: The fulfillment requested by the marketplace or the buyer
1726
+ properties:
1727
+ branding:
1728
+ $ref: '#/components/schemas/Branding'
1729
+ extensions:
1730
+ $ref: '#/components/schemas/RequestedFulfillmentExtensions'
1731
+ items:
1732
+ type: array
1733
+ description: The items that should be shipped
1734
+ items:
1735
+ $ref: '#/components/schemas/SalesOrderItem'
1736
+ requested_fulfillment_id:
1737
+ type: string
1738
+ description: Identifier for the requested fulfillment from the order source
1739
+ ship_to:
1740
+ $ref: '#/components/schemas/Address'
1741
+ shipping_preferences:
1742
+ $ref: '#/components/schemas/ShippingPreferences'
1743
+ required:
1744
+ - items
1745
+ - ship_to
1746
+ SalesOrderItem:
1747
+ title: SalesOrderItem
1748
+ type: object
1749
+ description: An individual item in a sales order
1750
+ properties:
1751
+ adjustments:
1752
+ type: array
1753
+ description: 'A list of adjustments applied that influence the order total. For example, promotions/discounts/coupons. The amount should always be a quantify of currency, not a percentage.'
1754
+ items:
1755
+ $ref: '#/components/schemas/Charge'
1756
+ description:
1757
+ type: string
1758
+ description: A description of the sales order item - which may differ from the product description
1759
+ item_url:
1760
+ type: string
1761
+ description: The url for the item being purchased
1762
+ line_item_id:
1763
+ type: string
1764
+ description: An ID for the line item for the vendor API
1765
+ modified_date_time:
1766
+ type: string
1767
+ description: The (ISO 8601) datetime (UTC) associated with when this item was last modified
1768
+ example: '2021-03-31T18:21:14.858Z'
1769
+ product:
1770
+ $ref: '#/components/schemas/Product'
1771
+ quantity:
1772
+ type: number
1773
+ description: The item quantity for this sales order item
1774
+ shipping_charges:
1775
+ type: array
1776
+ description: A list of shipping charges
1777
+ items:
1778
+ $ref: '#/components/schemas/Charge'
1779
+ taxes:
1780
+ type: array
1781
+ description: A list of tax charges. The description can convey the jurisdiction.
1782
+ items:
1783
+ $ref: '#/components/schemas/Charge'
1784
+ unit_price:
1785
+ type: number
1786
+ required:
1787
+ - description
1788
+ - quantity
1789
+ SalesOrderStatus:
1790
+ type: string
1791
+ title: SalesOrderStatus
1792
+ enum:
1793
+ - Processing
1794
+ - Cancelled
1795
+ - Rejected
1796
+ - Unknown
1797
+ - PartiallyShipped
1798
+ - Shipped
1799
+ SalesOrderStatusChange:
1800
+ title: SalesOrderStatusChange
1801
+ type: object
1802
+ description: Represents a status change update for a sales order
1803
+ properties:
1804
+ order_id:
1805
+ type: string
1806
+ status:
1807
+ $ref: '#/components/schemas/SalesOrderStatus'
1808
+ items:
1809
+ $ref: '#/components/schemas/LineItemQuantityStatus'
1810
+ shipments:
1811
+ type: array
1812
+ items:
1813
+ $ref: '#/components/schemas/ShipmentNotification'
1814
+ ShipmentNotification:
1815
+ title: ShipmentNotification
1816
+ type: object
1817
+ properties:
1818
+ carrier_code:
1819
+ type: string
1820
+ description: The carrier code the order was shipped through
1821
+ carrier_service_code:
1822
+ type: string
1823
+ description: The shipping service used to ship this order
1824
+ currency:
1825
+ type: string
1826
+ description: The (ISO 4217) code describing the currency used for all amounts on this payload.
1827
+ example: 'USD,EUR,NZD'
1828
+ ext_location_id:
1829
+ type: string
1830
+ description: The order source's identifier for the location that items were shipped from
1831
+ fulfillment_cost:
1832
+ type: number
1833
+ description: The amount of money it cost to fulfill this shipment
1834
+ insurance_cost:
1835
+ type: number
1836
+ description: The total amount of insurance purchased
1837
+ integration_context:
1838
+ type: object
1839
+ description: The integration context specified on the ExportSalesOrders response
1840
+ items:
1841
+ type: array
1842
+ description: The items shipped in this shipment
1843
+ items:
1844
+ $ref: '#/components/schemas/ShipmentNotificationItem'
1845
+ notes:
1846
+ type: array
1847
+ description: Additional notes associated with this notification or its sales order
1848
+ items:
1849
+ $ref: '#/components/schemas/Note'
1850
+ notification_id:
1851
+ type: string
1852
+ description: A unique identifier to correlate this shipment notification with its result in the response
1853
+ notify_buyer:
1854
+ type: boolean
1855
+ description: Indicates whether or not the buyer should be notified that this item has been shipped
1856
+ order_id:
1857
+ type: string
1858
+ description: The unique identifier of the sales order from the order source
1859
+ order_number:
1860
+ type: string
1861
+ description: The customer facing identifier of the sales order
1862
+ return_address:
1863
+ $ref: '#/components/schemas/Address'
1864
+ ship_date:
1865
+ type: string
1866
+ description: The (ISO 8601) datetime (UTC) associated with when this item was last modified
1867
+ example: '2021-03-31T18:21:14.858Z'
1868
+ ship_from:
1869
+ $ref: '#/components/schemas/Address'
1870
+ ship_to:
1871
+ $ref: '#/components/schemas/Address'
1872
+ tracking_number:
1873
+ type: string
1874
+ description: The identifier provided by the fulfiller for tracking the delivery progress
1875
+ tracking_url:
1876
+ type: string
1877
+ description: The url where the shipment can be tracked
1878
+ required:
1879
+ - items
1880
+ - notification_id
1881
+ - order_id
1882
+ description: An individual notification that an order has been shipped
1883
+ ShipmentNotificationItem:
1884
+ title: ShipmentNotificationItem
1885
+ type: object
1886
+ properties:
1887
+ description:
1888
+ type: string
1889
+ description: A description of the sales order item - which may differ from the product description
1890
+ line_item_id:
1891
+ type: string
1892
+ description: The order source's unique identifier for the line item
1893
+ product_id:
1894
+ type: string
1895
+ description: This ID of this product in the vendor API
1896
+ quantity:
1897
+ type: number
1898
+ description: The number of items of this SKU that were shipped
1899
+ sku:
1900
+ type: string
1901
+ description: The unique identifier for the item that was shipped
1902
+ required:
1903
+ - description
1904
+ - quantity
1905
+ ShippingAddress:
1906
+ title: ShippingAddress
1907
+ type: object
1908
+ description: An address object representing address information.
1909
+ properties:
1910
+ name:
1911
+ type: string
1912
+ description: Name of the contact.
1913
+ first_name:
1914
+ type: string
1915
+ description: First or given name of the contact.
1916
+ last_name:
1917
+ type: string
1918
+ description: Last or family name of the contact.
1919
+ email:
1920
+ type: string
1921
+ description: Email of the contact.
1922
+ phone_number:
1923
+ type: string
1924
+ description: Phone number of the contact. Cannot include newline chars.
1925
+ company_name:
1926
+ type: string
1927
+ description: 'Company name, if applicable. Cannot include newline chars.'
1928
+ address_lines:
1929
+ type: array
1930
+ description: Address fields separated by line. Up to 100 chars per line. Cannot include newline chars.
1931
+ items:
1932
+ type: string
1933
+ city_locality:
1934
+ type: string
1935
+ description: City or locality. Cannot contain newline chars.
1936
+ state_province:
1937
+ type: string
1938
+ description: State or province. Cannot contain newline chars.
1939
+ postal_code:
1940
+ type: string
1941
+ description: Zip or postal code. Cannot include newline chars.
1942
+ country_code:
1943
+ $ref: '#/components/schemas/CountryCode'
1944
+ address_residential_indicator:
1945
+ type: string
1946
+ description: Indicates whether the address is residential or commercial.
1947
+ enum:
1948
+ - unknown
1949
+ - 'yes'
1950
+ - 'no'
1951
+ is_eu:
1952
+ type: boolean
1953
+ description: Indicates whether the country of the shipment address is a member of the EU.
1954
+ address_metadata:
1955
+ type: object
1956
+ description: Schemaless object representing the metadata related to this address.
1957
+ tax_identifiers:
1958
+ type: object
1959
+ properties:
1960
+ id:
1961
+ type: string
1962
+ description: Identification number.
1963
+ type:
1964
+ type: string
1965
+ enum:
1966
+ - tin
1967
+ - ein
1968
+ - ssn
1969
+ - vat
1970
+ - eori
1971
+ - ioss
1972
+ - pan
1973
+ - voec
1974
+ description: The Tax ID type.
1975
+ registration_county:
1976
+ type: string
1977
+ description: The country where the Tax ID is registered with.
1978
+ description:
1979
+ type: string
1980
+ description: Description of the tax ID that may give the customs agent more context.
1981
+ required:
1982
+ - id
1983
+ - type
1984
+ required:
1985
+ - postal_code
1986
+ - country_code
1987
+ ShippingPreferences:
1988
+ title: ShippingPreferences
1989
+ type: object
1990
+ description: This represents the shipping preferences specified for an order
1991
+ properties:
1992
+ additional_handling:
1993
+ type: boolean
1994
+ description: Indicates whether or not this shipment will require additional handling
1995
+ bill_duties_to_sender:
1996
+ type: boolean
1997
+ description: Indicates whether duties should be billed to the sender of the package
1998
+ deliver_by_date:
1999
+ type: string
2000
+ description: The (ISO 8601) datetime (UTC) associated with when the order needs to be delivered by
2001
+ example: '2021-03-31T18:21:14.858Z'
2002
+ digital_fulfillment:
2003
+ type: boolean
2004
+ description: Indicates whether or not the item being delivered is a digital good or not
2005
+ do_not_prepay_postage:
2006
+ type: boolean
2007
+ description: 'Indicates whether you must pay for postage at drop off, for carriers that usually require prepaid postage'
2008
+ documents:
2009
+ type: array
2010
+ description: Any documents relevant to shipping that the order source provides
2011
+ items:
2012
+ $ref: '#/components/schemas/Document'
2013
+ gift:
2014
+ type: boolean
2015
+ description: Indicates whether or not this order is a gift
2016
+ has_alcohol:
2017
+ type: boolean
2018
+ description: Indicates whether or not this order contains alcohol
2019
+ hold_until_date:
2020
+ type: string
2021
+ description: The (ISO 8601) datetime (UTC) associated with how long to hold the order
2022
+ example: '2021-03-31T18:21:14.858Z'
2023
+ insurance_requested:
2024
+ type: boolean
2025
+ description: Indicates whether or not insurance has been requested for shipping this order
2026
+ insured_value:
2027
+ type: number
2028
+ description: The amount of money being request for insurance on this shipment
2029
+ is_premium_program:
2030
+ type: boolean
2031
+ description: 'true if the order was placed under the terms of the order source''s premium program (Amazon Prime, Walmart+, etc)'
2032
+ non_machinable:
2033
+ type: boolean
2034
+ description: 'Indicates whether or not this order is nonmachinable (must be sorted outside of the standard, automated mail process)'
2035
+ package_type:
2036
+ type: string
2037
+ description: The requested package type for this fulfillment
2038
+ premium_program_name:
2039
+ type: string
2040
+ description: 'The name of the premium program, if any. This is for informational purposes. Consumers should base all logic on is_premium_program flag.'
2041
+ preplanned_fulfillment_id:
2042
+ type: string
2043
+ description: The identifer assigned by a fulfillment planning system at checkout (Delivery Options).
2044
+ ready_to_ship_date:
2045
+ type: string
2046
+ description: The (ISO 8601) datetime (UTC) associated with when the order is ready to ship
2047
+ example: '2021-03-31T18:21:14.858Z'
2048
+ requested_warehouse:
2049
+ type: string
2050
+ description: The warehouse name associated with the requested warehouse
2051
+ saturday_delivery:
2052
+ description: Indicates whether or not this order should be delivered on a saturday
2053
+ type: boolean
2054
+ ship_by_date:
2055
+ type: string
2056
+ description: The (ISO 8601) datetime (UTC) associated with when the order needs to be shipped by
2057
+ example: '2021-03-31T18:21:14.858Z'
2058
+ shipping_service:
2059
+ type: string
2060
+ description: The requested shipping service for this fulfillment
2061
+ show_postage:
2062
+ description: Indicates whether or not to allow display of postage paid on the shipping label
2063
+ type: boolean
2064
+ suppress_email_notify:
2065
+ type: boolean
2066
+ description: Indicates whether or not to supress email notifications to the buyer
2067
+ suppress_marketplace_notify:
2068
+ type: boolean
2069
+ description: Indicates whether or not to supress email notifications to the seller
2070
+ Weight:
2071
+ title: Weight
2072
+ type: object
2073
+ description: A measurement of weight
2074
+ properties:
2075
+ unit:
2076
+ type: string
2077
+ description: The unit this weight was measured in
2078
+ enum:
2079
+ - Gram
2080
+ - Kilogram
2081
+ - Ounce
2082
+ - Pound
2083
+ value:
2084
+ type: string
2085
+ description: The value of the weight in weight units
2086
+ required:
2087
+ - unit
2088
+ - value
2089
+ WeightDetails:
2090
+ title: Weight Details
2091
+ type: object
2092
+ description: 'This model represents the weight of a package represented in its original unit, ounces, and grams.'
2093
+ properties:
2094
+ weight_in_ounces:
2095
+ type: number
2096
+ description: The weight in ounces rounded to the fourth decimal place.
2097
+ weight_in_grams:
2098
+ type: number
2099
+ description: The weight in grams rounded to the fourth decimal place.
2100
+ source_weight:
2101
+ type: number
2102
+ description: The weight in the original dimensions rounded to the fourth decimal place.
2103
+ source_weight_unit:
2104
+ type: string
2105
+ description: The unit of the source dimensions. Either ounces or grams.
2106
+ required:
2107
+ - weight_in_ounces
2108
+ - weight_in_grams
2109
+ - source_weight
2110
+ - source_weight_unit
2111
+ requestBodies: {}