ebay-api 8.5.1 → 8.6.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 (318) hide show
  1. package/README.md +2 -2
  2. package/dist/api/apiFactory.d.ts +0 -3
  3. package/dist/api/apiFactory.js +0 -4
  4. package/dist/api/base.d.ts +0 -3
  5. package/dist/api/base.js +0 -3
  6. package/dist/api/digitalSignature.d.ts +0 -33
  7. package/dist/api/digitalSignature.js +1 -41
  8. package/dist/api/index.d.ts +0 -3
  9. package/dist/api/index.js +0 -3
  10. package/dist/api/restful/buy/browse/index.d.ts +0 -66
  11. package/dist/api/restful/buy/browse/index.js +0 -73
  12. package/dist/api/restful/buy/deal/index.d.ts +0 -32
  13. package/dist/api/restful/buy/deal/index.js +0 -32
  14. package/dist/api/restful/buy/feed/index.d.ts +0 -33
  15. package/dist/api/restful/buy/feed/index.js +0 -33
  16. package/dist/api/restful/buy/marketing/index.d.ts +0 -18
  17. package/dist/api/restful/buy/marketing/index.js +0 -22
  18. package/dist/api/restful/buy/marketplaceInsights/index.d.ts +0 -21
  19. package/dist/api/restful/buy/marketplaceInsights/index.js +0 -21
  20. package/dist/api/restful/buy/offer/index.d.ts +0 -15
  21. package/dist/api/restful/buy/offer/index.js +0 -15
  22. package/dist/api/restful/buy/order/index.d.ts +0 -227
  23. package/dist/api/restful/buy/order/index.js +0 -227
  24. package/dist/api/restful/commerce/catalog/index.d.ts +0 -54
  25. package/dist/api/restful/commerce/catalog/index.js +0 -54
  26. package/dist/api/restful/commerce/charity/index.d.ts +0 -21
  27. package/dist/api/restful/commerce/charity/index.js +0 -21
  28. package/dist/api/restful/commerce/identity/index.d.ts +0 -7
  29. package/dist/api/restful/commerce/identity/index.js +0 -7
  30. package/dist/api/restful/commerce/notification/index.d.ts +0 -93
  31. package/dist/api/restful/commerce/notification/index.js +0 -93
  32. package/dist/api/restful/commerce/taxonomy/index.d.ts +0 -64
  33. package/dist/api/restful/commerce/taxonomy/index.js +0 -64
  34. package/dist/api/restful/commerce/translation/index.d.ts +0 -8
  35. package/dist/api/restful/commerce/translation/index.js +0 -8
  36. package/dist/api/restful/developer/analytics/index.d.ts +0 -15
  37. package/dist/api/restful/developer/analytics/index.js +0 -15
  38. package/dist/api/restful/developer/keyManagement/index.d.ts +0 -15
  39. package/dist/api/restful/developer/keyManagement/index.js +0 -15
  40. package/dist/api/restful/index.d.ts +0 -16
  41. package/dist/api/restful/index.js +1 -23
  42. package/dist/api/restful/postOrder/cancellation/index.d.ts +0 -43
  43. package/dist/api/restful/postOrder/cancellation/index.js +0 -43
  44. package/dist/api/restful/postOrder/case/index.d.ts +0 -46
  45. package/dist/api/restful/postOrder/case/index.js +0 -46
  46. package/dist/api/restful/postOrder/inquiry/index.d.ts +0 -64
  47. package/dist/api/restful/postOrder/inquiry/index.js +0 -64
  48. package/dist/api/restful/postOrder/return/index.d.ts +0 -190
  49. package/dist/api/restful/postOrder/return/index.js +0 -190
  50. package/dist/api/restful/sell/account/index.d.ts +0 -241
  51. package/dist/api/restful/sell/account/index.js +0 -241
  52. package/dist/api/restful/sell/analytics/index.d.ts +0 -26
  53. package/dist/api/restful/sell/analytics/index.js +0 -26
  54. package/dist/api/restful/sell/compliance/index.d.ts +0 -23
  55. package/dist/api/restful/sell/compliance/index.js +0 -23
  56. package/dist/api/restful/sell/feed/index.d.ts +0 -135
  57. package/dist/api/restful/sell/feed/index.js +0 -135
  58. package/dist/api/restful/sell/finances/index.d.ts +0 -51
  59. package/dist/api/restful/sell/finances/index.js +0 -51
  60. package/dist/api/restful/sell/fulfillment/index.d.ts +0 -108
  61. package/dist/api/restful/sell/fulfillment/index.js +0 -108
  62. package/dist/api/restful/sell/inventory/index.d.ts +0 -197
  63. package/dist/api/restful/sell/inventory/index.js +0 -197
  64. package/dist/api/restful/sell/listing/index.d.ts +0 -8
  65. package/dist/api/restful/sell/listing/index.js +0 -8
  66. package/dist/api/restful/sell/logistics/index.d.ts +0 -33
  67. package/dist/api/restful/sell/logistics/index.js +0 -33
  68. package/dist/api/restful/sell/marketing/index.d.ts +16 -495
  69. package/dist/api/restful/sell/marketing/index.js +48 -494
  70. package/dist/api/restful/sell/metadata/index.d.ts +0 -65
  71. package/dist/api/restful/sell/metadata/index.js +0 -65
  72. package/dist/api/restful/sell/negotiation/index.d.ts +0 -14
  73. package/dist/api/restful/sell/negotiation/index.js +0 -14
  74. package/dist/api/restful/sell/recommendation/index.d.ts +0 -15
  75. package/dist/api/restful/sell/recommendation/index.js +0 -15
  76. package/dist/api/traditional/XMLRequest.d.ts +0 -44
  77. package/dist/api/traditional/XMLRequest.js +0 -46
  78. package/dist/api/traditional/clientAlerts/index.js +0 -1
  79. package/dist/api/traditional/index.d.ts +0 -3
  80. package/dist/api/traditional/index.js +0 -5
  81. package/dist/api/traditional/shopping/index.js +0 -1
  82. package/dist/auth/authNAuth.d.ts +0 -5
  83. package/dist/auth/authNAuth.js +0 -5
  84. package/dist/auth/index.d.ts +0 -3
  85. package/dist/auth/index.js +0 -3
  86. package/dist/auth/oAuth2.d.ts +0 -52
  87. package/dist/auth/oAuth2.js +0 -53
  88. package/dist/eBayApi.d.ts +0 -11
  89. package/dist/eBayApi.js +0 -14
  90. package/dist/ebay-api.min.mjs +1 -1
  91. package/dist/enums/restfulEnums.d.ts +0 -5
  92. package/dist/enums/restfulEnums.js +0 -5
  93. package/dist/errors/index.d.ts +0 -19
  94. package/dist/errors/index.js +1 -21
  95. package/dist/types/restful/specs/buy_browse_v1_oas3.d.ts +0 -697
  96. package/dist/types/restful/specs/buy_browse_v1_oas3.js +0 -4
  97. package/dist/types/restful/specs/buy_deal_v1_oas3.d.ts +0 -189
  98. package/dist/types/restful/specs/buy_deal_v1_oas3.js +0 -4
  99. package/dist/types/restful/specs/buy_feed_v1_beta_oas3.d.ts +0 -229
  100. package/dist/types/restful/specs/buy_feed_v1_beta_oas3.js +0 -4
  101. package/dist/types/restful/specs/buy_marketing_v1_beta_oas3.d.ts +0 -101
  102. package/dist/types/restful/specs/buy_marketing_v1_beta_oas3.js +0 -4
  103. package/dist/types/restful/specs/buy_marketplace_insights_v1_beta_oas3.d.ts +0 -150
  104. package/dist/types/restful/specs/buy_marketplace_insights_v1_beta_oas3.js +0 -4
  105. package/dist/types/restful/specs/buy_offer_v1_beta_oas3.d.ts +0 -62
  106. package/dist/types/restful/specs/buy_offer_v1_beta_oas3.js +0 -4
  107. package/dist/types/restful/specs/buy_order_v1_beta_oas3.d.ts +0 -600
  108. package/dist/types/restful/specs/buy_order_v1_beta_oas3.js +0 -4
  109. package/dist/types/restful/specs/cancellation_oas3.d.ts +0 -29
  110. package/dist/types/restful/specs/cancellation_oas3.js +0 -4
  111. package/dist/types/restful/specs/case_oas3.d.ts +0 -31
  112. package/dist/types/restful/specs/case_oas3.js +0 -4
  113. package/dist/types/restful/specs/commerce_catalog_v1_beta_oas3.d.ts +0 -331
  114. package/dist/types/restful/specs/commerce_catalog_v1_beta_oas3.js +0 -4
  115. package/dist/types/restful/specs/commerce_charity_v1_oas3.d.ts +0 -85
  116. package/dist/types/restful/specs/commerce_charity_v1_oas3.js +0 -4
  117. package/dist/types/restful/specs/commerce_identity_v1_oas3.d.ts +0 -63
  118. package/dist/types/restful/specs/commerce_identity_v1_oas3.js +0 -4
  119. package/dist/types/restful/specs/commerce_notification_v1_oas3.d.ts +0 -236
  120. package/dist/types/restful/specs/commerce_notification_v1_oas3.js +0 -4
  121. package/dist/types/restful/specs/commerce_taxonomy_v1_oas3.d.ts +0 -219
  122. package/dist/types/restful/specs/commerce_taxonomy_v1_oas3.js +0 -4
  123. package/dist/types/restful/specs/commerce_translation_v1_beta_oas3.d.ts +0 -36
  124. package/dist/types/restful/specs/commerce_translation_v1_beta_oas3.js +0 -4
  125. package/dist/types/restful/specs/developer_analytics_v1_beta_oas3.d.ts +0 -57
  126. package/dist/types/restful/specs/developer_analytics_v1_beta_oas3.js +0 -4
  127. package/dist/types/restful/specs/developer_key_management_v1_oas3.d.ts +0 -60
  128. package/dist/types/restful/specs/developer_key_management_v1_oas3.js +0 -4
  129. package/dist/types/restful/specs/inquiry_oas3.d.ts +0 -45
  130. package/dist/types/restful/specs/inquiry_oas3.js +0 -4
  131. package/dist/types/restful/specs/return_oas3.d.ts +0 -130
  132. package/dist/types/restful/specs/return_oas3.js +0 -4
  133. package/dist/types/restful/specs/sell_account_v1_oas3.d.ts +0 -751
  134. package/dist/types/restful/specs/sell_account_v1_oas3.js +0 -4
  135. package/dist/types/restful/specs/sell_analytics_v1_oas3.d.ts +0 -130
  136. package/dist/types/restful/specs/sell_analytics_v1_oas3.js +0 -4
  137. package/dist/types/restful/specs/sell_compliance_v1_oas3.d.ts +0 -102
  138. package/dist/types/restful/specs/sell_compliance_v1_oas3.js +0 -4
  139. package/dist/types/restful/specs/sell_feed_v1_oas3.d.ts +0 -461
  140. package/dist/types/restful/specs/sell_feed_v1_oas3.js +0 -4
  141. package/dist/types/restful/specs/sell_finances_v1_oas3.d.ts +0 -255
  142. package/dist/types/restful/specs/sell_finances_v1_oas3.js +0 -4
  143. package/dist/types/restful/specs/sell_fulfillment_v1_oas3.d.ts +0 -595
  144. package/dist/types/restful/specs/sell_fulfillment_v1_oas3.js +0 -4
  145. package/dist/types/restful/specs/sell_inventory_v1_oas3.d.ts +0 -844
  146. package/dist/types/restful/specs/sell_inventory_v1_oas3.js +0 -4
  147. package/dist/types/restful/specs/sell_listing_v1_beta_oas3.d.ts +0 -57
  148. package/dist/types/restful/specs/sell_listing_v1_beta_oas3.js +0 -4
  149. package/dist/types/restful/specs/sell_logistics_v1_oas3.d.ts +0 -173
  150. package/dist/types/restful/specs/sell_logistics_v1_oas3.js +0 -4
  151. package/dist/types/restful/specs/sell_marketing_v1_oas3.d.ts +454 -1411
  152. package/dist/types/restful/specs/sell_marketing_v1_oas3.js +0 -4
  153. package/dist/types/restful/specs/sell_metadata_v1_oas3.d.ts +0 -147
  154. package/dist/types/restful/specs/sell_metadata_v1_oas3.js +0 -4
  155. package/dist/types/restful/specs/sell_negotiation_v1_oas3.d.ts +0 -94
  156. package/dist/types/restful/specs/sell_negotiation_v1_oas3.js +0 -4
  157. package/dist/types/restful/specs/sell_recommendation_v1_oas3.d.ts +0 -60
  158. package/dist/types/restful/specs/sell_recommendation_v1_oas3.js +0 -4
  159. package/dist/types/restfulTypes.d.ts +3 -0
  160. package/lib/api/apiFactory.d.ts +0 -3
  161. package/lib/api/apiFactory.js +0 -4
  162. package/lib/api/base.d.ts +0 -3
  163. package/lib/api/base.js +0 -3
  164. package/lib/api/digitalSignature.d.ts +0 -33
  165. package/lib/api/digitalSignature.js +1 -41
  166. package/lib/api/index.d.ts +0 -3
  167. package/lib/api/index.js +0 -3
  168. package/lib/api/restful/buy/browse/index.d.ts +0 -66
  169. package/lib/api/restful/buy/browse/index.js +0 -73
  170. package/lib/api/restful/buy/deal/index.d.ts +0 -32
  171. package/lib/api/restful/buy/deal/index.js +0 -32
  172. package/lib/api/restful/buy/feed/index.d.ts +0 -33
  173. package/lib/api/restful/buy/feed/index.js +0 -33
  174. package/lib/api/restful/buy/marketing/index.d.ts +0 -18
  175. package/lib/api/restful/buy/marketing/index.js +0 -22
  176. package/lib/api/restful/buy/marketplaceInsights/index.d.ts +0 -21
  177. package/lib/api/restful/buy/marketplaceInsights/index.js +0 -21
  178. package/lib/api/restful/buy/offer/index.d.ts +0 -15
  179. package/lib/api/restful/buy/offer/index.js +0 -15
  180. package/lib/api/restful/buy/order/index.d.ts +0 -227
  181. package/lib/api/restful/buy/order/index.js +0 -227
  182. package/lib/api/restful/commerce/catalog/index.d.ts +0 -54
  183. package/lib/api/restful/commerce/catalog/index.js +0 -54
  184. package/lib/api/restful/commerce/charity/index.d.ts +0 -21
  185. package/lib/api/restful/commerce/charity/index.js +0 -21
  186. package/lib/api/restful/commerce/identity/index.d.ts +0 -7
  187. package/lib/api/restful/commerce/identity/index.js +0 -7
  188. package/lib/api/restful/commerce/notification/index.d.ts +0 -93
  189. package/lib/api/restful/commerce/notification/index.js +0 -93
  190. package/lib/api/restful/commerce/taxonomy/index.d.ts +0 -64
  191. package/lib/api/restful/commerce/taxonomy/index.js +0 -64
  192. package/lib/api/restful/commerce/translation/index.d.ts +0 -8
  193. package/lib/api/restful/commerce/translation/index.js +0 -8
  194. package/lib/api/restful/developer/analytics/index.d.ts +0 -15
  195. package/lib/api/restful/developer/analytics/index.js +0 -15
  196. package/lib/api/restful/developer/keyManagement/index.d.ts +0 -15
  197. package/lib/api/restful/developer/keyManagement/index.js +0 -15
  198. package/lib/api/restful/index.d.ts +0 -16
  199. package/lib/api/restful/index.js +1 -23
  200. package/lib/api/restful/postOrder/cancellation/index.d.ts +0 -43
  201. package/lib/api/restful/postOrder/cancellation/index.js +0 -43
  202. package/lib/api/restful/postOrder/case/index.d.ts +0 -46
  203. package/lib/api/restful/postOrder/case/index.js +0 -46
  204. package/lib/api/restful/postOrder/inquiry/index.d.ts +0 -64
  205. package/lib/api/restful/postOrder/inquiry/index.js +0 -64
  206. package/lib/api/restful/postOrder/return/index.d.ts +0 -190
  207. package/lib/api/restful/postOrder/return/index.js +0 -190
  208. package/lib/api/restful/sell/account/index.d.ts +0 -241
  209. package/lib/api/restful/sell/account/index.js +0 -241
  210. package/lib/api/restful/sell/analytics/index.d.ts +0 -26
  211. package/lib/api/restful/sell/analytics/index.js +0 -26
  212. package/lib/api/restful/sell/compliance/index.d.ts +0 -23
  213. package/lib/api/restful/sell/compliance/index.js +0 -23
  214. package/lib/api/restful/sell/feed/index.d.ts +0 -135
  215. package/lib/api/restful/sell/feed/index.js +0 -135
  216. package/lib/api/restful/sell/finances/index.d.ts +0 -51
  217. package/lib/api/restful/sell/finances/index.js +0 -51
  218. package/lib/api/restful/sell/fulfillment/index.d.ts +0 -108
  219. package/lib/api/restful/sell/fulfillment/index.js +0 -108
  220. package/lib/api/restful/sell/inventory/index.d.ts +0 -197
  221. package/lib/api/restful/sell/inventory/index.js +0 -197
  222. package/lib/api/restful/sell/listing/index.d.ts +0 -8
  223. package/lib/api/restful/sell/listing/index.js +0 -8
  224. package/lib/api/restful/sell/logistics/index.d.ts +0 -33
  225. package/lib/api/restful/sell/logistics/index.js +0 -33
  226. package/lib/api/restful/sell/marketing/index.d.ts +16 -495
  227. package/lib/api/restful/sell/marketing/index.js +48 -494
  228. package/lib/api/restful/sell/metadata/index.d.ts +0 -65
  229. package/lib/api/restful/sell/metadata/index.js +0 -65
  230. package/lib/api/restful/sell/negotiation/index.d.ts +0 -14
  231. package/lib/api/restful/sell/negotiation/index.js +0 -14
  232. package/lib/api/restful/sell/recommendation/index.d.ts +0 -15
  233. package/lib/api/restful/sell/recommendation/index.js +0 -15
  234. package/lib/api/traditional/XMLRequest.d.ts +0 -44
  235. package/lib/api/traditional/XMLRequest.js +0 -46
  236. package/lib/api/traditional/clientAlerts/index.js +0 -1
  237. package/lib/api/traditional/index.d.ts +0 -3
  238. package/lib/api/traditional/index.js +0 -5
  239. package/lib/api/traditional/shopping/index.js +0 -1
  240. package/lib/auth/authNAuth.d.ts +0 -5
  241. package/lib/auth/authNAuth.js +0 -5
  242. package/lib/auth/index.d.ts +0 -3
  243. package/lib/auth/index.js +0 -3
  244. package/lib/auth/oAuth2.d.ts +0 -52
  245. package/lib/auth/oAuth2.js +0 -53
  246. package/lib/eBayApi.d.ts +0 -11
  247. package/lib/eBayApi.js +0 -14
  248. package/lib/ebay-api.min.js +1 -1
  249. package/lib/enums/restfulEnums.d.ts +0 -5
  250. package/lib/enums/restfulEnums.js +0 -5
  251. package/lib/errors/index.d.ts +0 -19
  252. package/lib/errors/index.js +1 -21
  253. package/lib/types/restful/specs/buy_browse_v1_oas3.d.ts +0 -697
  254. package/lib/types/restful/specs/buy_browse_v1_oas3.js +0 -4
  255. package/lib/types/restful/specs/buy_deal_v1_oas3.d.ts +0 -189
  256. package/lib/types/restful/specs/buy_deal_v1_oas3.js +0 -4
  257. package/lib/types/restful/specs/buy_feed_v1_beta_oas3.d.ts +0 -229
  258. package/lib/types/restful/specs/buy_feed_v1_beta_oas3.js +0 -4
  259. package/lib/types/restful/specs/buy_marketing_v1_beta_oas3.d.ts +0 -101
  260. package/lib/types/restful/specs/buy_marketing_v1_beta_oas3.js +0 -4
  261. package/lib/types/restful/specs/buy_marketplace_insights_v1_beta_oas3.d.ts +0 -150
  262. package/lib/types/restful/specs/buy_marketplace_insights_v1_beta_oas3.js +0 -4
  263. package/lib/types/restful/specs/buy_offer_v1_beta_oas3.d.ts +0 -62
  264. package/lib/types/restful/specs/buy_offer_v1_beta_oas3.js +0 -4
  265. package/lib/types/restful/specs/buy_order_v1_beta_oas3.d.ts +0 -600
  266. package/lib/types/restful/specs/buy_order_v1_beta_oas3.js +0 -4
  267. package/lib/types/restful/specs/cancellation_oas3.d.ts +0 -29
  268. package/lib/types/restful/specs/cancellation_oas3.js +0 -4
  269. package/lib/types/restful/specs/case_oas3.d.ts +0 -31
  270. package/lib/types/restful/specs/case_oas3.js +0 -4
  271. package/lib/types/restful/specs/commerce_catalog_v1_beta_oas3.d.ts +0 -331
  272. package/lib/types/restful/specs/commerce_catalog_v1_beta_oas3.js +0 -4
  273. package/lib/types/restful/specs/commerce_charity_v1_oas3.d.ts +0 -85
  274. package/lib/types/restful/specs/commerce_charity_v1_oas3.js +0 -4
  275. package/lib/types/restful/specs/commerce_identity_v1_oas3.d.ts +0 -63
  276. package/lib/types/restful/specs/commerce_identity_v1_oas3.js +0 -4
  277. package/lib/types/restful/specs/commerce_notification_v1_oas3.d.ts +0 -236
  278. package/lib/types/restful/specs/commerce_notification_v1_oas3.js +0 -4
  279. package/lib/types/restful/specs/commerce_taxonomy_v1_oas3.d.ts +0 -219
  280. package/lib/types/restful/specs/commerce_taxonomy_v1_oas3.js +0 -4
  281. package/lib/types/restful/specs/commerce_translation_v1_beta_oas3.d.ts +0 -36
  282. package/lib/types/restful/specs/commerce_translation_v1_beta_oas3.js +0 -4
  283. package/lib/types/restful/specs/developer_analytics_v1_beta_oas3.d.ts +0 -57
  284. package/lib/types/restful/specs/developer_analytics_v1_beta_oas3.js +0 -4
  285. package/lib/types/restful/specs/developer_key_management_v1_oas3.d.ts +0 -60
  286. package/lib/types/restful/specs/developer_key_management_v1_oas3.js +0 -4
  287. package/lib/types/restful/specs/inquiry_oas3.d.ts +0 -45
  288. package/lib/types/restful/specs/inquiry_oas3.js +0 -4
  289. package/lib/types/restful/specs/return_oas3.d.ts +0 -130
  290. package/lib/types/restful/specs/return_oas3.js +0 -4
  291. package/lib/types/restful/specs/sell_account_v1_oas3.d.ts +0 -751
  292. package/lib/types/restful/specs/sell_account_v1_oas3.js +0 -4
  293. package/lib/types/restful/specs/sell_analytics_v1_oas3.d.ts +0 -130
  294. package/lib/types/restful/specs/sell_analytics_v1_oas3.js +0 -4
  295. package/lib/types/restful/specs/sell_compliance_v1_oas3.d.ts +0 -102
  296. package/lib/types/restful/specs/sell_compliance_v1_oas3.js +0 -4
  297. package/lib/types/restful/specs/sell_feed_v1_oas3.d.ts +0 -461
  298. package/lib/types/restful/specs/sell_feed_v1_oas3.js +0 -4
  299. package/lib/types/restful/specs/sell_finances_v1_oas3.d.ts +0 -255
  300. package/lib/types/restful/specs/sell_finances_v1_oas3.js +0 -4
  301. package/lib/types/restful/specs/sell_fulfillment_v1_oas3.d.ts +0 -595
  302. package/lib/types/restful/specs/sell_fulfillment_v1_oas3.js +0 -4
  303. package/lib/types/restful/specs/sell_inventory_v1_oas3.d.ts +0 -844
  304. package/lib/types/restful/specs/sell_inventory_v1_oas3.js +0 -4
  305. package/lib/types/restful/specs/sell_listing_v1_beta_oas3.d.ts +0 -57
  306. package/lib/types/restful/specs/sell_listing_v1_beta_oas3.js +0 -4
  307. package/lib/types/restful/specs/sell_logistics_v1_oas3.d.ts +0 -173
  308. package/lib/types/restful/specs/sell_logistics_v1_oas3.js +0 -4
  309. package/lib/types/restful/specs/sell_marketing_v1_oas3.d.ts +454 -1411
  310. package/lib/types/restful/specs/sell_marketing_v1_oas3.js +0 -4
  311. package/lib/types/restful/specs/sell_metadata_v1_oas3.d.ts +0 -147
  312. package/lib/types/restful/specs/sell_metadata_v1_oas3.js +0 -4
  313. package/lib/types/restful/specs/sell_negotiation_v1_oas3.d.ts +0 -94
  314. package/lib/types/restful/specs/sell_negotiation_v1_oas3.js +0 -4
  315. package/lib/types/restful/specs/sell_recommendation_v1_oas3.d.ts +0 -60
  316. package/lib/types/restful/specs/sell_recommendation_v1_oas3.js +0 -4
  317. package/lib/types/restfulTypes.d.ts +3 -0
  318. package/package.json +2 -2
@@ -1,1016 +1,539 @@
1
- /**
2
- * This file was auto-generated by openapi-typescript.
3
- * Do not make direct changes to the file.
4
- */
5
1
  export interface paths {
6
2
  "/custom_policy/": {
7
- /** @description This method retrieves the list of custom policies specified by the <b>policy_types</b> query parameter for the selected eBay marketplace.<br/> <br/> <span class="tablenote"><strong>Note:</strong> The following eBay marketplaces support Custom Policies: <ul><li>Germany (EBAY_DE)</li> <li>Canada (EBAY_CA)</li> <li>Australia (EBAY_AU)</li> <li>United States (EBAY_US)</li> <li>France (EBAY_FR)</li></ul></span><br/><br/>For details on header values, see <a href="/api-docs/static/rest-request-components.html#HTTP" target="_blank">HTTP request headers</a>. */
8
3
  get: operations["getCustomPolicies"];
9
- /** @description This method creates a new custom policy in which a seller specifies their terms for complying with local governmental regulations. <br/><br/>Two Custom Policy types are supported: <ul><li>Product Compliance (PRODUCT_COMPLIANCE)</li> <li>Takeback (TAKE_BACK)</li></ul>Each Custom Policy targets a <b>policyType</b> and <b>eBay marketplace</b> combination. Multiple policies may be created as follows: <ul><li><b>Product Compliance</b>: a maximum of 10 policies per eBay marketplace may be created</li> <li><b>Takeback</b>: a maximum of 3 policies per eBay marketplace may be created</li></ul>A successful create policy call returns an HTTP status code of <b>201 Created</b> with the system-generated policy ID included in the <b>Location</b> response header.<br/><br/><b>Product Compliance Policy</b><br/><br/>Product Compliance policies disclose product information as required for regulatory compliance.<br/><br/><span class="tablenote"><strong>Note:</strong> A maximum of 10 Product Compliance policies per eBay marketplace may be created.</span> <br/><br/> <b>Takeback Policy</b><br/><br/>Takeback policies describe the seller's legal obligation to take back a previously purchased item when the buyer purchases a new one.<br/><br/><span class="tablenote"><strong>Note:</strong> A maximum of 3 Takeback policies per eBay marketplace may be created.</span> */
10
4
  post: operations["createCustomPolicy"];
11
5
  };
12
6
  "/custom_policy/{custom_policy_id}": {
13
- /** @description This method retrieves the custom policy specified by the <b>custom_policy_id</b> path parameter for the selected eBay marketplace.<br/> <br/> <span class="tablenote"><strong>Note:</strong> The following eBay marketplaces support Custom Policies: <ul><li>Germany (EBAY_DE)</li> <li>Canada (EBAY_CA)</li> <li>Australia (EBAY_AU)</li> <li>United States (EBAY_US)</li> <li>France (EBAY_FR)</li></ul></span><br/><br/>For details on header values, see <a href="/api-docs/static/rest-request-components.html#HTTP" target="_blank">HTTP request headers</a>. */
14
7
  get: operations["getCustomPolicy"];
15
- /** @description This method updates an existing custom policy specified by the <b>custom_policy_id</b> path parameter for the selected marketplace. This method overwrites the policy's <b>Name</b>, <b>Label</b>, and <b>Description</b> fields. Therefore, the complete, current text of all three policy fields must be included in the request payload even when one or two of these fields will not actually be updated.<br/> <br/>For example, the value for the <b>Label</b> field is to be updated, but the <b>Name</b> and <b>Description</b> values will remain unchanged. The existing <b>Name</b> and <b>Description</b> values, as they are defined in the current policy, must also be passed in. <br/><br/>A successful policy update call returns an HTTP status code of <b>204 No Content</b>.<br/><br/><span class="tablenote"><strong>Note:</strong> The following eBay marketplaces support Custom Policies: <ul><li>Germany (EBAY_DE)</li> <li>Canada (EBAY_CA)</li> <li>Australia (EBAY_AU)</li> <li>United States (EBAY_US)</li> <li>France (EBAY_FR)</li></ul></span><br/><br/>For details on header values, see <a href="/api-docs/static/rest-request-components.html#HTTP">HTTP request headers</a>. */
16
8
  put: operations["updateCustomPolicy"];
17
9
  };
18
10
  "/fulfillment_policy/": {
19
- /** @description This method creates a new fulfillment policy where the policy encapsulates seller's terms for fulfilling item purchases. Fulfillment policies include the shipment options that the seller offers to buyers. <br/><br/>Each policy targets a specific eBay marketplace and a category group type, and you can create multiple policies for each combination. <br/><br/>A successful request returns the <b>getFulfillmentPolicy</b> URI to the new policy in the <b>Location</b> response header and the ID for the new policy is returned in the response payload. <p class="tablenote"><b>Tip:</b> For details on creating and using the business policies supported by the Account API, see <a href="/api-docs/sell/static/seller-accounts/business-policies.html">eBay business policies</a>.</p> <p><b>Using the eBay standard envelope service (eSE)</b></p> <p>The eBay standard envelope service (eSE) is a domestic envelope service with tracking through eBay. This service applies to specific Trading Cards categories (not all categories are supported), and to Coins & Paper Money, Postcards, and Stamps. See <a href="/api-docs/sell/static/seller-accounts/using-the-ebay-standard-envelope-service.html" target="_blank">Using the eBay standard envelope (eSE) service</a>.</p> */
20
11
  post: operations["createFulfillmentPolicy"];
21
12
  };
22
13
  "/fulfillment_policy/{fulfillmentPolicyId}": {
23
- /** @description This method retrieves the complete details of a fulfillment policy. Supply the ID of the policy you want to retrieve using the <b>fulfillmentPolicyId</b> path parameter. */
24
14
  get: operations["getFulfillmentPolicy"];
25
- /** @description This method updates an existing fulfillment policy. Specify the policy you want to update using the <b>fulfillment_policy_id</b> path parameter. Supply a complete policy payload with the updates you want to make; this call overwrites the existing policy with the new details specified in the payload. */
26
15
  put: operations["updateFulfillmentPolicy"];
27
- /** @description This method deletes a fulfillment policy. Supply the ID of the policy you want to delete in the <b>fulfillmentPolicyId</b> path parameter. */
28
16
  delete: operations["deleteFulfillmentPolicy"];
29
17
  };
30
18
  "/fulfillment_policy": {
31
- /** @description This method retrieves all the fulfillment policies configured for the marketplace you specify using the <code>marketplace_id</code> query parameter. <br/><br/><b>Marketplaces and locales</b> <br/><br/>Get the correct policies for a marketplace that supports multiple locales using the <code>Content-Language</code> request header. For example, get the policies for the French locale of the Canadian marketplace by specifying <code>fr-CA</code> for the <code>Content-Language</code> header. Likewise, target the Dutch locale of the Belgium marketplace by setting <code>Content-Language: nl-BE</code>. For details on header values, see <a href="/api-docs/static/rest-request-components.html#HTTP" target="_blank">HTTP request headers</a>. */
32
19
  get: operations["getFulfillmentPolicies"];
33
20
  };
34
21
  "/fulfillment_policy/get_by_policy_name": {
35
- /** @description This method retrieves the details for a specific fulfillment policy. In the request, supply both the policy <code>name</code> and its associated <code>marketplace_id</code> as query parameters. <br/><br/><b>Marketplaces and locales</b> <br/><br/>Get the correct policy for a marketplace that supports multiple locales using the <code>Content-Language</code> request header. For example, get a policy for the French locale of the Canadian marketplace by specifying <code>fr-CA</code> for the <code>Content-Language</code> header. Likewise, target the Dutch locale of the Belgium marketplace by setting <code>Content-Language: nl-BE</code>. For details on header values, see <a href="/api-docs/static/rest-request-components.html#HTTP">HTTP request headers</a>. */
36
22
  get: operations["getFulfillmentPolicyByName"];
37
23
  };
38
24
  "/payment_policy": {
39
- /** @description This method retrieves all the payment policies configured for the marketplace you specify using the <code>marketplace_id</code> query parameter. <br/><br/><b>Marketplaces and locales</b> <br/><br/>Get the correct policies for a marketplace that supports multiple locales using the <code>Content-Language</code> request header. For example, get the policies for the French locale of the Canadian marketplace by specifying <code>fr-CA</code> for the <code>Content-Language</code> header. Likewise, target the Dutch locale of the Belgium marketplace by setting <code>Content-Language: nl-BE</code>. For details on header values, see <a href="/api-docs/static/rest-request-components.html#HTTP" target="_blank">HTTP request headers</a>. */
40
25
  get: operations["getPaymentPolicies"];
41
- /** @description This method creates a new payment policy where the policy encapsulates seller's terms for order payments. <br/><br/>Each policy targets a specific eBay marketplace and category group, and you can create multiple policies for each combination. <br/><br/>A successful request returns the <b>getPaymentPolicy</b> URI to the new policy in the <b>Location</b> response header and the ID for the new policy is returned in the response payload. <p class="tablenote"><b>Tip:</b> For details on creating and using the business policies supported by the Account API, see <a href="/api-docs/sell/static/seller-accounts/business-policies.html">eBay business policies</a>.</p> */
42
26
  post: operations["createPaymentPolicy"];
43
27
  };
44
28
  "/payment_policy/{payment_policy_id}": {
45
- /** @description This method retrieves the complete details of a payment policy. Supply the ID of the policy you want to retrieve using the <b>paymentPolicyId</b> path parameter. */
46
29
  get: operations["getPaymentPolicy"];
47
- /** @description This method updates an existing payment policy. Specify the policy you want to update using the <b>payment_policy_id</b> path parameter. Supply a complete policy payload with the updates you want to make; this call overwrites the existing policy with the new details specified in the payload. */
48
30
  put: operations["updatePaymentPolicy"];
49
- /** @description This method deletes a payment policy. Supply the ID of the policy you want to delete in the <b>paymentPolicyId</b> path parameter. */
50
31
  delete: operations["deletePaymentPolicy"];
51
32
  };
52
33
  "/payment_policy/get_by_policy_name": {
53
- /** @description This method retrieves the details of a specific payment policy. Supply both the policy <code>name</code> and its associated <code>marketplace_id</code> in the request query parameters. <br/><br/><b>Marketplaces and locales</b> <br/><br/>Get the correct policy for a marketplace that supports multiple locales using the <code>Content-Language</code> request header. For example, get a policy for the French locale of the Canadian marketplace by specifying <code>fr-CA</code> for the <code>Content-Language</code> header. Likewise, target the Dutch locale of the Belgium marketplace by setting <code>Content-Language: nl-BE</code>. For details on header values, see <a href="/api-docs/static/rest-request-components.html#HTTP">HTTP request headers</a>. */
54
34
  get: operations["getPaymentPolicyByName"];
55
35
  };
56
36
  "/payments_program/{marketplace_id}/{payments_program_type}": {
57
- /** @description <span class="tablenote"><b>Note:</b> This method is no longer applicable, as all seller accounts globally have been enabled for the new eBay payment and checkout flow.</span><br/><br/>This method returns whether or not the user is opted-in to the specified payments program. Sellers opt-in to payments programs by marketplace and you use the <b>marketplace_id</b> path parameter to specify the marketplace of the status flag you want returned. */
58
37
  get: operations["getPaymentsProgram"];
59
38
  };
60
39
  "/payments_program/{marketplace_id}/{payments_program_type}/onboarding": {
61
- /** @description <span class="tablenote"><b>Note:</b> This method is no longer applicable, as all seller accounts globally have been enabled for the new eBay payment and checkout flow.</span><br/><br/>This method retrieves a seller's onboarding status for a payments program for a specified marketplace. The overall onboarding status of the seller and the status of each onboarding step is returned. */
62
40
  get: operations["getPaymentsProgramOnboarding"];
63
41
  };
64
42
  "/privilege": {
65
- /** @description This method retrieves the seller's current set of privileges, including whether or not the seller's eBay registration has been completed, as well as the details of their site-wide <b>sellingLimt</b> (the amount and quantity they can sell on a given day). */
66
43
  get: operations["getPrivileges"];
67
44
  };
68
45
  "/program/get_opted_in_programs": {
69
- /** @description This method gets a list of the seller programs that the seller has opted-in to. */
70
46
  get: operations["getOptedInPrograms"];
71
47
  };
72
48
  "/program/opt_in": {
73
- /** @description This method opts the seller in to an eBay seller program. Refer to the <a href="/api-docs/sell/account/overview.html#opt-in" target="_blank">Account API overview</a> for information about available eBay seller programs.<br /><br /><span class="tablenote"><b>Note:</b> It can take up to 24-hours for eBay to process your request to opt-in to a Seller Program. Use the <a href="/api-docs/sell/account/resources/program/methods/getOptedInPrograms" target="_blank">getOptedInPrograms</a> call to check the status of your request after the processing period has passed.</span> */
74
49
  post: operations["optInToProgram"];
75
50
  };
76
51
  "/program/opt_out": {
77
- /** @description This method opts the seller out of a seller program to which you have previously opted-in to. Get a list of the seller programs you have opted-in to using the <b>getOptedInPrograms</b> call. */
78
52
  post: operations["optOutOfProgram"];
79
53
  };
80
54
  "/rate_table": {
81
- /** @description This method retrieves a seller's <i>shipping rate tables</i> for the country specified in the <b>country_code</b> query parameter. If you call this method without specifying a country code, the call returns all of the seller's shipping rate tables. <br/><br/>The method's response includes a <b>rateTableId</b> for each table defined by the seller. This <b>rateTableId</b> value is used in add/revise item call or in create/update fulfillment business policy call to specify the shipping rate table to use for that policy's domestic or international shipping options. <br/><br/>This call currently supports getting rate tables related to the following marketplaces:<ul><li><code>EBAY_AU</code></li> <li><code>EBAY_CA</code></li> <li><code>EBAY_DE</code></li> <li><code>EBAY_ES</code></li> <li><code>EBAY_FR</code></li> <li><code>EBAY_GB</code></li> <li><code>EBAY_IT</code></li> <li><code>EBAY_US</code></li></ul> <span class="tablenote"><b>Note:</b> Rate tables created with the Trading API might not have been assigned a <b>rateTableId</b> at the time of their creation. This method can assign and return <b>rateTableId</b> values for rate tables with missing IDs if you make a request using the <b>country_code</b> where the seller has defined rate tables.</span> <br/><br/>Sellers can define up to 40 shipping rate tables for their account, which lets them set up different rate tables for each of the marketplaces they sell into. Go to <a href="https://www.ebay.com/ship/rt ">Shipping rate tables</a> in <b>My eBay</b> to create and update rate tables. */
82
55
  get: operations["getRateTables"];
83
56
  };
84
57
  "/return_policy": {
85
- /** @description This method retrieves all the return policies configured for the marketplace you specify using the <code>marketplace_id</code> query parameter. <br/><br/><b>Marketplaces and locales</b> <br/><br/>Get the correct policies for a marketplace that supports multiple locales using the <code>Content-Language</code> request header. For example, get the policies for the French locale of the Canadian marketplace by specifying <code>fr-CA</code> for the <code>Content-Language</code> header. Likewise, target the Dutch locale of the Belgium marketplace by setting <code>Content-Language: nl-BE</code>. For details on header values, see <a href="/api-docs/static/rest-request-components.html#HTTP" target="_blank">HTTP request headers</a>. */
86
58
  get: operations["getReturnPolicies"];
87
- /** @description This method creates a new return policy where the policy encapsulates seller's terms for returning items. <br/><br/>Each policy targets a specific marketplace, and you can create multiple policies for each marketplace. Return policies are not applicable to motor-vehicle listings.<br/><br/>A successful request returns the <b>getReturnPolicy</b> URI to the new policy in the <b>Location</b> response header and the ID for the new policy is returned in the response payload. <p class="tablenote"><b>Tip:</b> For details on creating and using the business policies supported by the Account API, see <a href="/api-docs/sell/static/seller-accounts/business-policies.html">eBay business policies</a>.</p> */
88
59
  post: operations["createReturnPolicy"];
89
60
  };
90
61
  "/return_policy/{return_policy_id}": {
91
- /** @description This method retrieves the complete details of the return policy specified by the <b>returnPolicyId</b> path parameter. */
92
62
  get: operations["getReturnPolicy"];
93
- /** @description This method updates an existing return policy. Specify the policy you want to update using the <b>return_policy_id</b> path parameter. Supply a complete policy payload with the updates you want to make; this call overwrites the existing policy with the new details specified in the payload. */
94
63
  put: operations["updateReturnPolicy"];
95
- /** @description This method deletes a return policy. Supply the ID of the policy you want to delete in the <b>returnPolicyId</b> path parameter. */
96
64
  delete: operations["deleteReturnPolicy"];
97
65
  };
98
66
  "/return_policy/get_by_policy_name": {
99
- /** @description This method retrieves the details of a specific return policy. Supply both the policy <code>name</code> and its associated <code>marketplace_id</code> in the request query parameters. <br/><br/><b>Marketplaces and locales</b> <br/><br/>Get the correct policy for a marketplace that supports multiple locales using the <code>Content-Language</code> request header. For example, get a policy for the French locale of the Canadian marketplace by specifying <code>fr-CA</code> for the <code>Content-Language</code> header. Likewise, target the Dutch locale of the Belgium marketplace by setting <code>Content-Language: nl-BE</code>. For details on header values, see <a href="/api-docs/static/rest-request-components.html#HTTP">HTTP request headers</a>. */
100
67
  get: operations["getReturnPolicyByName"];
101
68
  };
102
69
  "/sales_tax/{countryCode}/{jurisdictionId}": {
103
- /** @description This call gets the current sales tax table entry for a specific tax jurisdiction. Specify the jurisdiction to retrieve using the <b>countryCode</b> and <b>jurisdictionId</b> path parameters. All four response fields will be returned if a sales tax entry exists for the tax jurisdiction. Otherwise, the response will be returned as empty.<br/><br/><span class="tablenote"><b>Important!</b> In most US states and territories, eBay now 'collects and remits' sales tax, so sellers can no longer configure sales tax rates for these states/territories.</span> */
104
70
  get: operations["getSalesTax"];
105
- /** @description This method creates or updates a sales tax table entry for a jurisdiction. Specify the tax table entry you want to configure using the two path parameters: <b>countryCode</b> and <b>jurisdictionId</b>. <br/><br/>A tax table entry for a jurisdiction is comprised of two fields: one for the jurisdiction's sales-tax rate and another that's a boolean value indicating whether or not shipping and handling are taxed in the jurisdiction. <br/><br/>You can set up <i>tax tables</i> for countries that support different <i>tax jurisdictions</i>. Currently, only Canada, India, and the US support separate tax jurisdictions. If you sell into any of these countries, you can set up tax tables for any of the country's jurisdictions. Retrieve valid jurisdiction IDs using <b>getSalesTaxJurisdictions</b> in the Metadata API. <br/><br/>For details on using this call, see <a href="/api-docs/sell/static/seller-accounts/tax-tables.html">Establishing sales-tax tables</a>. <br/><br/><span class="tablenote"><b>Important!</b> In the US, eBay now 'collects and remits' sales tax for every US state except for Missouri (and a few US territories), so sellers can no longer configure sales tax rates for any states except Missouri. With eBay 'collect and remit', eBay calculates the sales tax, collects the sales tax from the buyer, and remits the sales tax to the tax authorities at the buyer's location.</span> */
106
71
  put: operations["createOrReplaceSalesTax"];
107
- /** @description This call deletes a sales tax table entry for a jurisdiction. Specify the jurisdiction to delete using the <b>countryCode</b> and <b>jurisdictionId</b> path parameters. */
108
72
  delete: operations["deleteSalesTax"];
109
73
  };
110
74
  "/sales_tax": {
111
- /** @description Use this call to retrieve all sales tax table entries that the seller has defined for a specific country. All four response fields will be returned for each tax jurisdiction that matches the search criteria. <br/><br/><span class="tablenote"><b>Important!</b> In most US states and territories, eBay now 'collects and remits' sales tax, so sellers can no longer configure sales tax rates for these states/territories.</span> */
112
75
  get: operations["getSalesTaxes"];
113
76
  };
114
77
  "/subscription": {
115
- /** @description This method retrieves a list of subscriptions associated with the seller account. */
116
78
  get: operations["getSubscription"];
117
79
  };
118
80
  "/kyc": {
119
- /** @description <span class="tablenote"><b>Note:</b>This method was originally created to see which onboarding requirements were still pending for sellers being onboarded for eBay managed payments, but now that all seller accounts are onboarded globally, this method should now just returne an empty payload with a <code>204 No Content</code> HTTP status code. </span> */
120
81
  get: operations["getKYC"];
121
82
  };
122
83
  "/advertising_eligibility": {
123
- /** @description This method allows developers to check the seller eligibility status for eBay advertising programs. */
124
84
  get: operations["getAdvertisingEligibility"];
125
85
  };
126
86
  "/location/{merchantLocationKey}": {
127
- /** @description This call retrieves all defined details of the inventory location that is specified by the <b>merchantLocationKey</b> path parameter. <p>The <code>authorization</code> HTTP header is the only required request header for this call. </p><p>A successful call will return an HTTP status value of <i>200 OK</i>.</p> */
128
87
  get: operations["getInventoryLocation"];
129
- /** @description <p>Use this call to create a new inventory location. In order to create and publish an offer (and create an eBay listing), a seller must have at least one inventory location, as every offer must be associated with a location.</p><p>Upon first creating an inventory location, only a seller-defined location identifier and a physical location is required, and once set, these values can not be changed. The unique identifier value (<i>merchantLocationKey</i>) is passed in at the end of the call URI. This <i>merchantLocationKey</i> value will be used in other Inventory Location calls to identify the inventory location to perform an action against.</p><p>At this time, location types are either warehouse or store. Warehouse locations are used for traditional shipping, and store locations are generally used by US merchants selling products through the In-Store Pickup program, or used by UK, Australian, and German merchants selling products through the Click and Collect program. A full address is required for store inventory locations. However, for warehouse inventory locations, a full street address is not needed, but the city, state/province, and country of the location must be provided. </p><p>Note that all inventory locations are "enabled" by default when they are created, and you must specifically disable them (by passing in a value of <code>DISABLED</code> in the <strong>merchantLocationStatus</strong> field) if you want them to be set to the disabled state. The seller's inventory cannot be loaded to inventory locations in the disabled state.</p> <p>In addition to the <code>authorization</code> header, which is required for all eBay REST API calls, the following table includes another request header that is mandatory for the <strong>createInventoryLocation</strong> call, and two other request headers that are optional:</p><br/> <table> <tr> <th>Header</th> <th>Description</th> <th>Required?</th> <th>Applicable Values</th> </tr> <tr> <td><code>Accept</code></td> <td>Describes the response encoding, as required by the caller. Currently, the interfaces require payloads formatted in JSON, and JSON is the default.</td> <td>No</td> <td><code>application/json</code></td> </tr> <tr> <td><code>Content-Language</code></td> <td>Use this header to control the language that is used for any returned errors or warnings in the call response.</td> <td>No</td> <td><code>en-US</code></td> </tr> <tr> <td><code>Content-Type</code></td> <td>The MIME type of the body of the request. Must be JSON.</td> <td>Yes</td> <td><code>application/json</code></td> </tr> </table></p><br/><p>Unless one or more errors and/or warnings occur with the call, there is no response payload for this call. A successful call will return an HTTP status value of <i>204 No Content</i>.</p> */
130
88
  post: operations["createInventoryLocation"];
131
- /** @description <p>This call deletes the inventory location that is specified in the <code>merchantLocationKey</code> path parameter. Note that deleting a location will not affect any active eBay listings associated with the deleted location, but the seller will not be able modify the offers associated with the inventory location once it is deleted.</p><p>The <code>authorization</code> HTTP header is the only required request header for this call. </p><p>Unless one or more errors and/or warnings occur with the call, there is no response payload for this call. A successful call will return an HTTP status value of <i>200 OK</i>.</p> */
132
89
  delete: operations["deleteInventoryLocation"];
133
90
  };
134
91
  "/location/{merchantLocationKey}/disable": {
135
- /** @description <p>This call disables the inventory location that is specified in the <code>merchantLocationKey</code> path parameter. Sellers can not load/modify inventory to disabled inventory locations. Note that disabling an inventory location will not affect any active eBay listings associated with the disabled location, but the seller will not be able modify the offers associated with a disabled inventory location.</p><p>The <code>authorization</code> HTTP header is the only required request header for this call.</p><p>A successful call will return an HTTP status value of <i>200 OK</i>.</p> */
136
92
  post: operations["disableInventoryLocation"];
137
93
  };
138
94
  "/location/{merchantLocationKey}/enable": {
139
- /** @description <p>This call enables a disabled inventory location that is specified in the <code>merchantLocationKey</code> path parameter. Once a disabled inventory location is enabled, sellers can start loading/modifying inventory to that inventory location. </p><p>The <code>authorization</code> HTTP header is the only required request header for this call.</p><p>A successful call will return an HTTP status value of <i>200 OK</i>.</p> */
140
95
  post: operations["enableInventoryLocation"];
141
96
  };
142
97
  "/location": {
143
- /** @description This call retrieves all defined details for every inventory location associated with the seller's account. There are no required parameters for this call and no request payload. However, there are two optional query parameters, <strong>limit</strong> and <strong>offset</strong>. The <strong>limit</strong> query parameter sets the maximum number of inventory locations returned on one page of data, and the <strong>offset</strong> query parameter specifies the page of data to return. These query parameters are discussed more in the <strong>URI parameters</strong> table below. <p>The <code>authorization</code> HTTP header is the only required request header for this call. </p><p>A successful call will return an HTTP status value of <i>200 OK</i>.</p> */
144
98
  get: operations["getInventoryLocations"];
145
99
  };
146
100
  "/location/{merchantLocationKey}/update_location_details": {
147
- /** @description <p>Use this call to update non-physical location details for an existing inventory location. Specify the inventory location you want to update using the <b>merchantLocationKey</b> path parameter. <br/><br/>You can update the following text-based fields: <strong>name</strong>, <strong>phone</strong>, <strong>locationWebUrl</strong>, <strong>locationInstructions</strong> and <strong>locationAdditionalInformation</strong>. Whatever text is passed in for these fields in an <strong>updateInventoryLocation</strong> call will replace the current text strings defined for these fields. For store inventory locations, the operating hours and/or the special hours can also be updated. <br/><br/> The merchant location key, the physical location of the store, and its geo-location coordinates can not be updated with an <strong>updateInventoryLocation</strong> call </p><p>In addition to the <code>authorization</code> header, which is required for all eBay REST API calls, the following table includes another request header that is mandatory for the <strong>updateInventoryLocation</strong> call, and two other request headers that are optional:</p><br/> <table> <tr> <th>Header</th> <th>Description</th> <th>Required?</th> <th>Applicable Values</th> </tr> <tr> <td><code>Accept</code></td> <td>Describes the response encoding, as required by the caller. Currently, the interfaces require payloads formatted in JSON, and JSON is the default.</td> <td>No</td> <td><code>application/json</code></td> </tr> <tr> <td><code>Content-Language</code></td> <td>Use this header to control the language that is used for any returned errors or warnings in the call response.</td> <td>No</td> <td><code>en-US</code></td> </tr> <tr> <td><code>Content-Type</code></td> <td>The MIME type of the body of the request. Must be JSON.</td> <td>Yes</td> <td><code>application/json</code></td> </tr> </table><br/><p>Unless one or more errors and/or warnings occurs with the call, there is no response payload for this call. A successful call will return an HTTP status value of <i>204 No Content</i>.</p> */
148
101
  post: operations["updateInventoryLocation"];
149
102
  };
150
103
  "/country/{countryCode}/sales_tax_jurisdiction": {
151
- /** @description This method retrieves all the sales tax jurisdictions for the country that you specify in the <b>countryCode</b> path parameter. Countries with valid sales tax jurisdictions are Canada and the US. <br/><br/>The response from this call tells you the jurisdictions for which a seller can configure tax tables. Although setting up tax tables is optional, you can use the <b>createOrReplaceSalesTax</b> in the <b>Account API</b> call to configure the tax tables for the jurisdictions you sell to. */
152
104
  get: operations["getSalesTaxJurisdictions"];
153
105
  };
154
106
  }
155
107
  export type webhooks = Record<string, never>;
156
108
  export interface components {
157
109
  schemas: {
158
- /** @description This type is used to define the physical address of an inventory location. */
159
110
  Address: {
160
- /** @description The first line of a street address. This field is required for store inventory locations that will be holding In-Store Pickup inventory. A street address is not required if the inventory location is not holding In-Store Pickup Inventory. This field will be returned if defined for an inventory location. <br/><br/><b>Max length</b>: 128 */
161
111
  addressLine1?: string;
162
- /** @description The second line of a street address. This field can be used for additional address information, such as a suite or apartment number. A street address is not required if the inventory location is not holding In-Store Pickup Inventory. This field will be returned if defined for an inventory location. <br/><br/><b>Max length</b>: 128 */
163
112
  addressLine2?: string;
164
- /** @description The city in which the inventory location resides. This field is required for store inventory locations that will be holding In-Store Pickup inventory. For warehouse locations, this field is technically optional, as a <strong>postalCode</strong> can be used instead of <strong>city</strong>/<strong>stateOrProvince</strong> pair, and then the city is just derived from this postal/zip code. This field is returned if defined for an inventory location. <br/><br/><b>Max length</b>: 128 */
165
113
  city?: string;
166
- /** @description The country in which the address resides, represented as two-letter <a href="https://www.iso.org/iso-3166-country-codes.html " title="https://www.iso.org " target="_blank">ISO 3166</a> country code. For example, <code>US</code> represents the United States, and <code>DE</code> represents Germany. <br/><br/><b>Max length</b>: 2 For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/account/types/CountryCodeEnum"'>eBay API documentation</a> */
167
114
  country?: string;
168
- /** @description The county in which the address resides. This field is returned if defined for an inventory location. */
169
115
  county?: string;
170
- /** @description The postal/zip code of the address. eBay uses postal codes to surface In-Store Pickup items within the vicinity of a buyer's location, and it also user postal codes (origin and destination) to estimate shipping costs when the seller uses calculated shipping. A <strong>city</strong>/<strong>stateOrProvince</strong> pair can be used instead of a <strong>postalCode</strong> value, and then the postal code is just derived from the city and state/province. This field is returned if defined for an inventory location. <br/><br/><b>Max length</b>: 16 */
171
116
  postalCode?: string;
172
- /** @description The state/province in which the inventory location resides. This field is required for store inventory locations that will be holding In-Store Pickup inventory. For warehouse locations, this field is technically optional, as a <strong>postalCode</strong> can be used instead of <strong>city</strong>/<strong>stateOrProvince</strong> pair, and then the state or province is just derived from this postal/zip code. <br/><br/><b>Max length</b>: 128 */
173
117
  stateOrProvince?: string;
174
118
  };
175
- /** @description A complex type that describes the value of a monetary amount as represented by a global currency. When passing in an amount in a request payload, both <b>currency</b> and <b>value</b> fields are required, and both fields are also always returned for an amount in a response field. */
176
119
  Amount: {
177
- /** @description The base currency applied to the <b>value</b> field to establish a monetary amount. <br/><br/>The currency is represented as a 3-letter <a href="https://www.iso.org/iso-4217-currency-codes.html " title="https://www.iso.org " target="_blank">ISO 4217</a> currency code. For example, the code for the Canadian Dollar is <code>CAD</code>.<br/><br/><b>Default:</b> The default currency of the eBay marketplace that hosts the listing. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/account/types/ba:CurrencyCodeEnum'>eBay API documentation</a> */
178
120
  currency?: string;
179
- /** @description The monetary amount in the specified <b>currency</b>. */
180
121
  value?: string;
181
122
  };
182
- /** @description The category type discerns whether the policy applies to motor vehicle listings, or to any other items except motor vehicle listings. <br/><br/>Each business policy can be associated with either or both categories ('MOTORS_VEHICLES' and 'ALL_EXCLUDING_MOTORS_VEHICLES'); however, return business policies are not applicable for motor vehicle listings. */
183
123
  CategoryType: {
184
- /** @description <span class="tablenote"><strong>Note:</strong> This field has been deprecated and is no longer used.<ul><li>Do not include this field in any <b>create</b> or <b>update</b> method.</li><li>This field may be returned within the payload of a <b>get</b> method, but it can be ignored.</li></ul></span> */
185
124
  default?: boolean;
186
- /** @description The category type to which the policy applies (motor vehicles or non-motor vehicles). <br /><br />The <code>MOTORS_VEHICLES</code> category type is not valid for return policies. eBay flows do not support the return of motor vehicles. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/account/types/api:CategoryTypeEnum'>eBay API documentation</a> */
187
125
  name?: string;
188
126
  };
189
- /** @description The response payload for requests that return a list of custom policies. */
190
127
  CompactCustomPolicyResponse: {
191
- /** @description The unique custom policy identifier for the policy being returned.<br/><br/><span class="tablenote"><strong>Note:</strong> This value is automatically assigned by the system when the policy is created.</span> */
192
128
  customPolicyId?: string;
193
- /** @description Customer-facing label shown on View Item pages for items to which the policy applies. This seller-defined string is displayed as a system-generated hyperlink pointing to detailed policy information.<br/><br/><b>Max length:</b> 65 */
194
129
  label?: string;
195
- /** @description The seller-defined name for the custom policy. Names must be unique for policies assigned to the same seller, policy type, and eBay marketplace.<br /><span class="tablenote"><strong>Note:</strong> This field is visible only to the seller. </span><br /><br /><b>Max length:</b> 65 */
196
130
  name?: string;
197
- /** @description Specifies the type of Custom Policy being returned. <br/><br/>Two Custom Policy types are supported: <ul><li>Product Compliance (PRODUCT_COMPLIANCE)</li> <li>Takeback (TAKE_BACK)</li></ul> For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/account/types/api:CustomPolicyTypeEnum'>eBay API documentation</a> */
198
131
  policyType?: string;
199
132
  };
200
- /** @description This container defines a seller's custom policy identified by policy ID for the selected eBay marketplace. A successful call returns the requested policy information. */
201
133
  CustomPolicy: {
202
- /** @description The unique custom policy identifier for a policy.<br/><br/><span class="tablenote"><strong>Note:</strong> This value is automatically assigned by the system when the policy is created.</span> */
203
134
  customPolicyId?: string;
204
- /** @description Details of the seller's specific policy and terms associated with the policy. Buyers access this information from the View Item page for items to which the policy has been applied.<br/><br/><b>Max length:</b> 15,000 */
205
135
  description?: string;
206
- /** @description Customer-facing label shown on View Item pages for items to which the policy applies. This seller-defined string is displayed as a system-generated hyperlink pointing to detailed policy information.<br/><br/><b>Max length:</b> 65 */
207
136
  label?: string;
208
- /** @description The seller-defined name for the custom policy. Names must be unique for policies assigned to the same seller, policy type, and eBay marketplace.<br /><span class="tablenote"><strong>Note:</strong> This field is visible only to the seller. </span><br/><br/><b>Max length:</b> 65 */
209
137
  name?: string;
210
- /** @description Specifies the type of Custom Policy. <br/><br/>Two Custom Policy types are supported: <ul><li>Product Compliance (PRODUCT_COMPLIANCE)</li> <li>Takeback (TAKE_BACK)</li></ul> For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/account/types/api:CustomPolicyTypeEnum'>eBay API documentation</a> */
211
138
  policyType?: string;
212
139
  };
213
- /** @description This type is used by the request payload of the createCustomPolicy method to define a new custom policy for a specific marketplace. */
214
140
  CustomPolicyCreateRequest: {
215
- /** @description Details of the seller's specific policy and terms for this policy.<br/><br/><b>Max length:</b> 15,000 */
216
141
  description?: string;
217
- /** @description Customer-facing label shown on View Item pages for items to which the policy applies. This seller-defined string is displayed as a system-generated hyperlink pointing to detailed policy information.<br/><br/><b>Max length:</b> 65 */
218
142
  label?: string;
219
- /** @description The seller-defined name for the custom policy. Names must be unique for policies assigned to the same seller, policy type, and eBay marketplace.<br /><span class="tablenote"><strong>Note:</strong> This field is visible only to the seller. </span><br/><br/><b>Max length:</b> 65 */
220
143
  name?: string;
221
- /** @description Specifies the type of custom policy being created. <br/><br/>Two Custom Policy types are supported: <ul><li>Product Compliance (PRODUCT_COMPLIANCE)</li> <li>Takeback (TAKE_BACK)</li></ul> For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/account/types/api:CustomPolicyTypeEnum'>eBay API documentation</a> */
222
144
  policyType?: string;
223
145
  };
224
146
  CustomPolicyRequest: {
225
- /** @description Details of the seller's specific policy and terms for this policy.<br/><br/><b>Max length:</b> 15,000 */
226
147
  description?: string;
227
- /** @description Customer-facing label shown on View Item pages for items to which the policy applies. This seller-defined string is displayed as a system-generated hyperlink pointing to detailed policy information.<br/><br/><b>Max length:</b> 65 */
228
148
  label?: string;
229
- /** @description The seller-defined name for the custom policy. Names must be unique for policies assigned to the same seller, policy type, and eBay marketplace.<br /><span class="tablenote"><strong>Note:</strong> This field is visible only to the seller. </span><br/><br/><b>Max length:</b> 65 */
230
149
  name?: string;
231
150
  };
232
151
  CustomPolicyResponse: {
233
- /** @description This array contains the custom policies that match the input criteria. */
234
152
  customPolicies?: (components["schemas"]["CompactCustomPolicyResponse"])[];
235
- /** @description <i>This field is for future use.</i> */
236
153
  href?: string;
237
- /**
238
- * Format: int32
239
- * @description <i>This field is for future use.</i>
240
- */
241
154
  limit?: number;
242
- /** @description <i>This field is for future use.</i> */
243
155
  next?: string;
244
- /**
245
- * Format: int32
246
- * @description <i>This field is for future use.</i>
247
- */
248
156
  offset?: number;
249
- /** @description <i>This field is for future use.</i> */
250
157
  prev?: string;
251
- /**
252
- * Format: int32
253
- * @description <i>This field is for future use.</i>
254
- */
255
158
  total?: number;
256
159
  };
257
- /** @description This type is used to specify/indicate that an initial deposit is required for a motor vehicle listing. */
258
160
  Deposit: {
259
- /** @description This value indicates the initial deposit amount required from the buyer in order to purchase a motor vehicle. This value can be as high as $2,000.00 if immediate payment is not required, and up to $500.00 if immediate payment is required.<br/><br/><b>Max</b>: <code>2000.0</code> */
260
161
  amount?: components["schemas"]["Amount"];
261
- /** @description This value indicates the number of hours that the buyer has (after they commit to buy) to pay the initial deposit on a motor vehicle. Valid <b>dueIn</b> times are 24, 48, and 72 hours. <code>HOUR</code> is set as the <b>unit</b> value, and <code>24</code>, <code>48</code> or <code>72</code> are set in the <b>value</b> field.<br /><br /><span class="tablenote"><b>Note</b>: The <b>dueIn</b> value is overridden if the seller has set the motor vehicle listing to require immediate payment. If the listing requires immediate payment, the buyer must pay the deposit immediately in order to be eligible to purchase the motor vehicle.</span><br/><br/><b>Min</b>=24 (hours)<b>Max</b>=72 (hours), <b>Default</b>=48 (hours) */
262
162
  dueIn?: components["schemas"]["TimeDuration"];
263
- /** @description This array is no longer applicable and should not be used since eBay now manages the electronic payment options available to buyers to pay the deposit. */
264
163
  paymentMethods?: (components["schemas"]["PaymentMethod"])[];
265
164
  };
266
- /** @description A container that defines the elements of error and warning messages. */
267
165
  Error: {
268
- /** @description The category type for this error or warning. It is a string that can have one of three values:<ul><li><code>Application</code>: Indicates an exception or error occurred in the application code or at runtime. Examples include catching an exception in a service's business logic, system failures, or request errors from a dependency.</li><li><code>Business</code>: Used when your service or a dependent service refused to continue processing on the resource because of a business rule violation such as "Seller does not ship item to Antarctica" or "Buyer ineligible to purchase an alcoholic item". Business errors are not syntactical input errors.</li><li><code>Request</code>: Used when there is anything wrong with the request, such as authentication, syntactical errors, rate limiting or missing headers, bad HTTP header values, and so on.</li></ul> */
269
166
  category?: string;
270
- /** @description Name of the domain ,or primary system, of the service or application where the error occurred. */
271
167
  domain?: string;
272
- /**
273
- * Format: int32
274
- * @description A positive integer that uniquely identifies the specific error condition that occurred. Your application can use error codes as identifiers in your customized error-handling algorithms.
275
- */
276
168
  errorId?: number;
277
- /** @description Identifies specific request elements associated with the error, if any. inputRefId's response is format specific. For JSON, use <i>JSONPath</i> notation. */
278
169
  inputRefIds?: (string)[];
279
- /** @description A more detailed explanation of the error than given in the <code>message</code> error field. */
280
170
  longMessage?: string;
281
- /** @description Information on how to correct the problem, in the end user's terms and language where applicable. Its value is at most 50 characters long. If applicable, the value is localized in the end user's requested locale. */
282
171
  message?: string;
283
- /** @description Identifies specific response elements associated with the error, if any. Path format is the same as <code>inputRefId</code>. */
284
172
  outputRefIds?: (string)[];
285
- /** @description This optional list of name/value pairs that contain context-specific <code>ErrorParameter</code> objects, with each item in the list being a parameter (or input field name) that caused an error condition. Each <code>ErrorParameter</code> object consists of two fields, a <code>name</code> and a <code>value</code>. */
286
173
  parameters?: (components["schemas"]["ErrorParameter"])[];
287
- /** @description If present, indicates the subsystem in which the error occurred. */
288
174
  subdomain?: string;
289
175
  };
290
- /** @description A complex type that indicates a parameter that caused an error and the value of the parameter which caused the error. */
291
176
  ErrorParameter: {
292
- /** @description Name of the parameter that caused the error. */
293
177
  name?: string;
294
- /** @description The value of the parameter that caused the error. */
295
178
  value?: string;
296
179
  };
297
- /** @description This type is used by the <b>fulfillmentPolicy</b> response container, a container which defines a seller's fulfillment policy for a specific marketplace. */
298
180
  FulfillmentPolicy: {
299
- /** @description This container indicates whether the fulfillment policy applies to motor vehicle listings, or if it applies to non-motor vehicle listings. */
300
181
  categoryTypes?: (components["schemas"]["CategoryType"])[];
301
- /** @description A seller-defined description of the fulfillment policy. This description is only for the seller's use, and is not exposed on any eBay pages. This field is returned if set for the policy. <br/><br/><b>Max length</b>: 250 */
302
182
  description?: string;
303
- /** @description If returned as <code>true</code>, the seller offers freight shipping. Freight shipping can be used for large items over 150 lbs. */
304
183
  freightShipping?: boolean;
305
- /** @description A unique eBay-assigned ID for the fulfillment policy. This ID is generated when the policy is created. */
306
184
  fulfillmentPolicyId?: string;
307
- /** @description If returned as <code>true</code>, eBay's Global Shipping Program will be used by the seller to ship items to international locations.<br /><br /><span class="tablenote"><b>Note</b>: On the US marketplace, the <em><b>Global Shipping Program</b></em> is scheduled to be replaced by a new intermediated international shipping program called <em><b>eBay International Shipping</b></em>. US sellers who are opted in to the Global Shipping Program will be automatically opted in to eBay International Shipping when it becomes available to them. All US sellers will be migrated by March 31, 2023. <br /><br />eBay International Shipping is an account level setting, and no field needs to be set in a Fulfillment business policy to enable it. As long as the US seller's account is opted in to eBay International Shipping, this shipping option will be enabled automatically for all listings where international shipping is available. <br /><br />A US seller who is opted in to eBay International Shipping can also specify individual international shipping service options for a Fulfillment business policy.</span> */
308
185
  globalShipping?: boolean;
309
- /** @description Specifies the maximum number of business days the seller commits to for preparing and shipping an order after receiving a cleared payment for the order. This time does not include the transit time it takes the shipping carrier to deliver the order. <p>If only local pickup or freight shipping is available for the item, this container may not get returned.</p> */
310
186
  handlingTime?: components["schemas"]["TimeDuration"];
311
- /** @description If returned as <code>true</code>, local pickup is available for this policy. */
312
187
  localPickup?: boolean;
313
- /** @description The ID of the eBay marketplace to which this fulfillment policy applies. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/account/types/ba:MarketplaceIdEnum'>eBay API documentation</a> */
314
188
  marketplaceId?: string;
315
- /** @description A seller-defined name for this fulfillment policy. Names must be unique for policies assigned to the same marketplace. <br/><br/><b>Max length</b>: 64 */
316
189
  name?: string;
317
- /** @description If returned as <code>true</code>, the seller offers the "Click and Collect" option. <br/><br/>Currently, "Click and Collect" is available only to large retail merchants the eBay AU and UK marketplaces. */
318
190
  pickupDropOff?: boolean;
319
- /** @description This array is used to provide detailed information on the domestic and international shipping options available for the policy. A separate <b>ShippingOption</b> object covers domestic shipping service options and international shipping service options (if the seller ships to international locations). <br /><br />The <b>optionType</b> field indicates whether the <b>ShippingOption</b> object applies to domestic or international shipping, and the <b>costType</b> field indicates whether flat-rate shipping or calculated shipping will be used. <p>A separate <b>ShippingServices</b> object is used to specify cost and other details for every available domestic and international shipping service option. </p> */
320
191
  shippingOptions?: (components["schemas"]["ShippingOption"])[];
321
- /** @description This container consists of the <b>regionIncluded</b> and <b>regionExcluded</b> containers, which define the geographical regions/countries/states or provinces/domestic regions where the seller does and doesn't ship to with this fulfillment policy. */
322
192
  shipToLocations?: components["schemas"]["RegionSet"];
323
193
  };
324
- /** @description This root container defines a seller's fulfillment policy for a specific marketplace and category group. This type is used when creating or updating a fulfillment business policy. */
325
194
  FulfillmentPolicyRequest: {
326
- /** @description This container is used to specify whether the fulfillment business policy applies to motor vehicle listings, or if it applies to non-motor vehicle listings. */
327
195
  categoryTypes?: (components["schemas"]["CategoryType"])[];
328
- /** @description A seller-defined description of the fulfillment policy. This description is only for the seller's use, and is not exposed on any eBay pages. <br/><br/><b>Max length</b>: 250 */
329
196
  description?: string;
330
- /** @description This field is included and set to <code>true</code> if freight shipping is available for the item. Freight shipping can be used for large items over 150 lbs.<br/><br/><b>Default</b>: false */
331
197
  freightShipping?: boolean;
332
- /** @description This field is included and set to <code>true</code> if the seller wants to use the Global Shipping Program for international shipments. See the <a href="https://pages.ebay.com/help/sell/shipping-globally.html ">Global Shipping Program</a> help topic for more details and requirements on the Global Shipping Program.<br/><br/>It is possible for a seller to use a combination of the Global Shipping Program and other international shipping services. <br/><br/>If this value is set to <code>false</code> or if the field is omitted, the seller is responsible for manually specifying individual international shipping services (if the seller ships internationally)., as described in <a href="https://developer.ebay.com/api-docs/sell/static/seller-accounts/ht_shipping-worldwide.html ">Setting up worldwide shipping</a>. <br/><br/>Sellers can opt in or out of the Global Shipping Program through the Shipping preferences in My eBay.<br /><br /><span class="tablenote"><b>Note</b>: On the US marketplace, the <em><b>Global Shipping Program</b></em> is scheduled to be replaced by a new intermediated international shipping program called <em><b>eBay International Shipping</b></em>. US sellers who are opted in to the Global Shipping Program will be automatically opted in to eBay International Shipping when it becomes available to them. All US sellers will be migrated by March 31, 2023. <br /><br />eBay International Shipping is an account level setting, and no field needs to be set in a Fulfillment business policy to enable it. As long as the US seller's account is opted in to eBay International Shipping, this shipping option will be enabled automatically for all listings where international shipping is available. <br /><br />A US seller who is opted in to eBay International Shipping can also specify individual international shipping service options for a Fulfillment business policy.</span><p><b>Default</b>: false</p> */
333
198
  globalShipping?: boolean;
334
- /** @description This container is used to specify the maximum number of business days the seller commits to for preparing and shipping an order after receiving a cleared payment for the order. This time does not include the transit time it takes the shipping carrier to deliver the order.<br /><br />Valid values can vary by site and by category. To obtain the supported values for a site, call <b>GeteBayDetails</b> in the Trading API with <b>DetailName</b> set to <code>DispatchTimeMaxDetails</code>, then inspect the <b>DispatchTimeMaxDetails</b> container in the response for the time values supported by the site (typical handling times are <code>0</code>, <code>1</code>, <code>2</code>, <code>3</code>, <code>4</code>, <code>5</code>, <code>10</code>, <code>15</code>, and <code>20</code>, but these can vary by site and may change over time.) <p>This field is conditionally required when the seller is offering one or more domestic or international shipping options, but it is not applicable when the item is only available through local pickup (<code>"localPickup": "true"</code>), or if it will be shipped through a freight shipping service (<code>"freightShipping": "true"</code>). </p> <span class="tablenote"><b>Note: </b> Top-Rated sellers must offer same-day or one-day handling for a listing in order for that listing to receive a Top Rated Plus seal on the View Item or Search Results pages. To offer zero-day or one-day handling, set field to '0' or '1', respectively.</span> */
335
199
  handlingTime?: components["schemas"]["TimeDuration"];
336
- /** @description This field should be included and set to <code>true</code> if local pickup is one of the fulfillment options available to the buyer. It is possible for the seller to make local pickup and some shipping service options available to the buyer.<br/><br/>With local pickup, the buyer and seller make arrangements for pickup time and location.<br/><br/><b>Default</b>: <code>false</code> */
337
200
  localPickup?: boolean;
338
- /** @description The ID of the eBay marketplace to which this fulfillment policy applies. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/account/types/ba:MarketplaceIdEnum'>eBay API documentation</a> */
339
201
  marketplaceId?: string;
340
- /** @description A seller-defined name for this fulfillment policy. Names must be unique for policies assigned to the same marketplace. <br/><br/><b>Max length</b>: 64 */
341
202
  name?: string;
342
- /** @description This field should be included and set to <code>true</code> if the seller offers the "Click and Collect" feature for an item. <p>To enable "Click and Collect" on a listing, a seller must be eligible for Click and Collect. Currently, Click and Collect is available to only large retail merchants selling in the eBay AU and UK marketplaces.</p> <p>In addition to setting this field to <code>true</code>, the merchant must also do the following to enable the "Click and Collect" option on a listing: <ul><li>Have inventory for the product at one or more physical stores tied to the merchant's account. <p>Sellers can use the <b>createInventoryLocaion</b> method in the Inventory API to associate physical stores to their account and they can then can add inventory to specific store locations.</p></li><li>Set an immediate payment requirement on the item. The immediate payment feature requires the seller to: <ul><li>Set the <b>immediatePay</b> flag in the payment policy to 'true'.</li><li>Have a valid store location with a complete street address.</li></ul></li></ul><p>When a merchant successfully lists an item with Click and Collect, prospective buyers within a reasonable distance from one of the merchant's stores (that has stock available) will see the "Available for Click and Collect" option on the listing, along with information on the closest store that has the item.</p><b>Default</b>: false */
343
203
  pickupDropOff?: boolean;
344
- /** @description This array is used to provide detailed information on the domestic and international shipping options available for the policy. <br /><br />A separate <b>ShippingOption</b> object is required for domestic shipping service options and for international shipping service options (if the seller ships to international locations). <ul><li>The <b>optionType</b> field is used to indicate whether the <b>ShippingOption</b> object applies to domestic or international shipping, and the <b>costType</b> field is used to indicate whether flat-rate shipping or calculated shipping will be used.</li> <li>The <b>rateTableId</b> field can be used to associate a defined shipping rate table to the policy, and the <b>packageHandlingCost</b> container can be used to set a handling charge for the policy.</li></ul> <p>A separate <b>ShippingServices</b> object will be used to specify cost and other details for every available domestic and international shipping service option. </p> */
345
204
  shippingOptions?: (components["schemas"]["ShippingOption"])[];
346
- /** @description This container consists of the <b>regionIncluded</b> and <b>regionExcluded</b> arrays, which are used to define the geographical regions/countries/states or provinces/domestic regions that a seller does and does not ship to for the associated fulfillment policy. Note that this container can be considered the master list of where the seller ships and does not ship, but there is also a <b>shipToLocations</b> container that can be set at the shipping service option level. <br/><br/>To retrieve the valid geographical shipping region values, two-digit country values, or special domestic regions for an eBay marketplace, call <b>GeteBayDetails</b> with <b>DetailName</b> value set to <code>ExcludeShippingLocationDetails</code>, then review the <b>ExcludeShippingLocationDetails</b> containers in the response for the strings you use in both the <b>regionIncluded.regionName</b> and in the <b>regionExcluded.regionName</b> fields. <br /><br />For valid geographical region names, look for the <code>ExcludeShippingLocationDetails</code> containers in the <b>GeteBayDetails</b> response where the <b>Region</b> value is <code>Worldwide</code>, and the valid values will be shown in the corresponding <b>Location</b> fields. <br /><br />For valid two-digit country codes, look for <code>ExcludeShippingLocationDetails</code> in the <b>GeteBayDetails</b> response where the <b>Region</b> value is one of the defined geographical regions, and the valid values will be shown in the corresponding <b>Location</b> fields. Alternatively, you can find the two-digit country code values in the <a href="/api-docs/sell/account/types/ba:CountryCodeEnum">CountryCodeEnum</a> type definition. For valid domestic region values, look for <code>ExcludeShippingLocationDetails</code> in the <b>GeteBayDetails</b> response where the <b>Region</b> value is either <code>Domestic Location</code> or <code>Additional Locations</code>, and the valid values will be shown in the corresponding <b>Location</b> fields. <br /><br />The <code>STATE_OR_PROVINCE</code> region type is only applicable to the US and Canada, and valid values for US states are the same <a href="https://about.usps.com/who-we-are/postal-history/state-abbreviations.htm ">two-digit abbreviations</a> used by the United States Postal Service, and valid values for Canadian provinces and territories are the same <a href="https://www.canadapost-postescanada.ca/cpc/en/support/articles/addressing-guidelines/symbols-and-abbreviations.page ">two-digit abbreviations</a> used by the Canada Post. */
347
205
  shipToLocations?: components["schemas"]["RegionSet"];
348
206
  };
349
- /** @description The response payload for the <b>getFulfillmentPolicies</b> method.<br /><br /><span class="tablenote"><b>Note</b>: Pagination has not yet been enabled for <b>getFulfillmentPolicies</b>, so all of the pagination-related fields are for future use.</span> */
350
207
  FulfillmentPolicyResponse: {
351
- /** @description A list of all of the seller's fulfillment policies defined for the specified marketplace. This array will be returned as empty if no fulfillment policies are defined for the specified marketplace. */
352
208
  fulfillmentPolicies?: (components["schemas"]["FulfillmentPolicy"])[];
353
- /** @description This field is for future use. */
354
209
  href?: string;
355
- /**
356
- * Format: int32
357
- * @description This field is for future use.
358
- */
359
210
  limit?: number;
360
- /** @description This field is for future use. */
361
211
  next?: string;
362
- /**
363
- * Format: int32
364
- * @description This field is for future use.
365
- */
366
212
  offset?: number;
367
- /** @description This field is for future use. */
368
213
  prev?: string;
369
- /**
370
- * Format: int32
371
- * @description The total number of fulfillment policies retrieved in the result set. <br/><br/>If no fulfillment policies are defined for the specified marketplace, this field is returned with a value of <code>0</code>.
372
- */
373
214
  total?: number;
374
215
  };
375
- /** @description This type is used to express the Global Positioning System (GPS) latitude and longitude coordinates of an inventory location. */
376
216
  GeoCoordinates: {
377
- /** @description The latitude (North-South) component of the geographic coordinate. This field is required if a <strong>geoCoordinates</strong> container is used. <br/><br/>This field is returned if geographical coordinates are set for the inventory location. */
378
217
  latitude?: number;
379
- /** @description The longitude (East-West) component of the geographic coordinate. This field is required if a <strong>geoCoordinates</strong> container is used. <br/><br/>This field is returned if geographical coordinates are set for the inventory location. */
380
218
  longitude?: number;
381
219
  };
382
- /** @description This type defines the fields for a seller's international return policy. Sellers have the ability to set separate domestic and international return policies, but if an international return policy is not set, the same return policy settings specified for the domestic return policy are also used for returns for international buyers. */
383
220
  InternationalReturnOverrideType: {
384
- /** @description This field sets/indicates if the seller offers replacement items to the buyer in the case of an international return. The buyer must be willing to accept a replacement item; otherwise, the seller will need to issue a refund for a return. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/account/types/api:ReturnMethodEnum'>eBay API documentation</a> */
385
221
  returnMethod?: string;
386
- /** @description This container indicates the number of calendar days that the buyer has to return an item. The return period begins when the item is marked "delivered" at the buyer's specified ship-to location. <br/><br/>You must set the value to one that's accepted by the marketplace and category where the item is listed. Most categories support 30-day and 60-day return periods. For a definitive list of return periods for one or more categories, call <a href="/api-docs/sell/metadata/resources/marketplace/methods/getReturnPolicies">getReturnPolicies</a> method of the <b>Metadata API</b>. <br/><br/>The <b>TimeDuration</b> type is used to set/indicate the return period, and you set the <b>unit</b> value to <code>DAY</code> and the <b>value</b> field to either <code>30</code> or <code>60</code> (or other value, as appropriate). <br/><br/>Note that this value cannot be modified if the listing has bids or sales, or if the listing ends within 12 hours. <br/><br/>This field is conditionally required if the <b>internationalOverride.returnsAccepted</b> field is set to <code>true</code>. */
387
222
  returnPeriod?: components["schemas"]["TimeDuration"];
388
- /** @description If set to <code>true</code>, the seller accepts international returns. If set to <code>false</code>, the seller does not accept international returns. <br/><br/>This field is conditionally required if the seller chooses to have a separate international return policy. */
389
223
  returnsAccepted?: boolean;
390
- /** @description This field indicates who is responsible for paying for the shipping charges for returned items. The field can be set to either <code>BUYER</code> or <code>SELLER</code>. <br/><br/>Depending on the return policy and specifics of the return, either the buyer or the seller can be responsible for the return shipping costs. Note that the seller is always responsible for return shipping costs for 'significantly not as described' (SNAD) issues. <br/><br/>This field is conditionally required if the <b>internationalOverride.returnsAccepted</b> field is set to <code>true</code>. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/account/types/api:ReturnShippingCostPayerEnum'>eBay API documentation</a> */
391
224
  returnShippingCostPayer?: string;
392
225
  };
393
- /** @description This type is used by the <strong>intervals</strong> container to define the opening and closing times of a store's working day. Local time (in Military format) is used, with the following format: <code>hh:mm:ss</code>. */
394
226
  Interval: {
395
- /** @description The <strong>close</strong> value is actually the time that the store closes. Local time (in Military format) is used. So, if a store closed at 8 PM local time, the <strong>close</strong> time would look like the following: <code>20:00:00</code>. This field is conditionally required if the <strong>intervals</strong> container is used to specify working hours or special hours for a store. <br/><br/>This field is returned if set for the store location. */
396
227
  close?: string;
397
- /** @description The <strong>open</strong> value is actually the time that the store opens. Local time (in Military format) is used. So, if a store opens at 9 AM local time, the <strong>close</strong> time would look like the following: <code>09:00:00</code>. This field is conditionally required if the <strong>intervals</strong> container is used to specify working hours or special hours for a store. <br/><br/>This field is returned if set for the store location. */
398
228
  open?: string;
399
229
  };
400
- /** @description This type is used by the <strong>updateInventoryLocation</strong> call to update operating hours, special hours, phone number, and other minor details of an inventory location. */
401
230
  InventoryLocation: {
402
- /** @description This text field is used by the merchant to provide/update additional information about an inventory location. Whatever text is passed in this field will replace the current text string defined for this field. If the text will not change, the same text should be passed in once again. <br/><br/><b>Max length</b>: 256 */
403
231
  locationAdditionalInformation?: string;
404
- /** @description This text field is generally used by the merchant to provide/update special pickup instructions for a store inventory location. Although this field is optional, it is recommended that merchants provide this field to create a pleasant and easy pickup experience for In-Store Pickup and Click and Collect orders. If this field is not included in the call request payload, eBay will use the default pickup instructions contained in the merchant's profile (if available). Whatever text is passed in this field will replace the current text string defined for this field. If the text will not change, the same text should be passed in once again. <br/><br/><b>Max length</b>: 1000 */
405
232
  locationInstructions?: string;
406
- /** @description This text field is used by the merchant to provide/update the Website address (URL) associated with the inventory location. The URL that is passed in this field will replace any other URL that may be defined for this field. <br/><br/><b>Max length</b>: 512 */
407
233
  locationWebUrl?: string;
408
- /** @description This text field is used by the merchant to update the name of the inventory location. This name should be a human-friendly name as it will be in In-Store Pickup and Click and Collect listings. A name is not required for warehouse inventory locations. For store inventory locations, this field is not immediately required, but will be required before an offer enabled with the In-Store Pickup or Click and Collect capability can be published. So, if the seller omitted this field in the <strong>createInventoryLocation</strong> call, it is required for an <strong>updateInventoryLocation</strong> call. The name that is passed in this field will replace any other name that may be defined for this field. */
409
234
  name?: string;
410
- /** @description This container is used to provide/update the regular operating hours for a store location during the days of the week. A <strong>dayOfWeekEnum</strong> field and an <strong>intervals</strong> container will be needed for each day of the week that the store location is open. Note that if operating hours are already set for an inventory location for a specific day of the week, whatever is set through an <strong>updateInventoryLocation</strong> call will override those existing hours. */
411
235
  operatingHours?: (components["schemas"]["OperatingHours"])[];
412
- /** @description This text field is used by the merchant to provide/update the phone number for the inventory location. The phone number that is passed in this field will replace any other phone number that may be defined for this field. <br/><br/><b>Max length</b>: 36 */
413
236
  phone?: string;
414
- /** @description This container is used to provide/update the special operating hours for a store location on a specific date, such as a holiday. The special hours specified for the specific date will override the normal operating hours for that particular day of the week. If special hours have already been set up for an inventory location, specifying special hours through an <strong>updateInventoryLocation</strong> call will only add to the list, unless the date(s) used are the same special date(s) already set up, in which case, the special hours set up through the <strong>updateInventoryLocation</strong> call will override the existing special hours. */
415
237
  specialHours?: (components["schemas"]["SpecialHours"])[];
416
238
  };
417
- /** @description This type is used by the <strong>createInventoryLocation</strong> call to provide details on the inventory location, including the location's name, physical address, operating hours, special hours, phone number and other details of an inventory location. */
418
239
  InventoryLocationFull: {
419
- /** @description This required container is used to set the physical address and geographical coordinates (optional) of a warehouse or store inventory location. A warehouse inventory location only requires the city, province/state, and country, and does not require a full street address. However, the seller may still supply a full street address for a warehouse location. The physical location/address for an inventory location cannot be modified once set with a <strong>createInventoryLocation</strong> call. All other details of an inventory location (e.g. phone or operating hours) can be changed with an <strong>updateInventoryLocation</strong> call. */
420
240
  location?: components["schemas"]["LocationDetails"];
421
- /** @description This text field is used by the merchant to provide additional information about an inventory location. <br/><br/><b>Max length</b>: 256 */
422
241
  locationAdditionalInformation?: string;
423
- /** @description This text field is generally used by the merchant to provide special pickup instructions for a store inventory location. Although this field is optional, it is recommended that merchants provide this field to create a pleasant and easy pickup experience for In-Store Pickup and Click and Collect orders. If this field is not included in the call request payload, eBay will use the default pickup instructions contained in the merchant's profile (if available). <br/><br/> */
424
242
  locationInstructions?: string;
425
- /** @description This container is used to define the function of the inventory location. Typically, an inventory location will serve as a store or a warehouse, but in some cases, an inventory location may be both. <br/><br/> If this container is omitted, the location type of the inventory location will default to <code>WAREHOUSE</code>. See <a href="/api-docs/sell/inventory/types/api:StoreTypeEnum">StoreTypeEnum</a> for the supported values.<br/><br/><b>Default</b>: WAREHOUSE */
426
243
  locationTypes?: (string)[];
427
- /** @description This text field is used by the merchant to provide the Website address (URL) associated with the inventory location. <br/><br/><b>Max length</b>: 512 */
428
244
  locationWebUrl?: string;
429
- /** @description This field is used to indicate whether the inventory location will be enabled (inventory can be loaded to location) or disabled (inventory can not be loaded to location). If this field is omitted, a successful <strong>createInventoryLocation</strong> call will automatically enable the inventory location. A merchant may want to create a new inventory location but leave it as disabled if the inventory location is not yet ready for active inventory. Once the inventory location is ready, the merchant can use the <strong>enableInventoryLocation</strong> call to enable an inventory location that is in a disabled state. See <a href="/api-docs/sell/inventory/types/api:StatusEnum">StatusEnum</a> for the supported values. <br/><br/><b>Default</b>: ENABLED For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/account/types/api:StatusEnum'>eBay API documentation</a> */
430
245
  merchantLocationStatus?: string;
431
- /** @description The name of the inventory location. This name should be a human-friendly name as it will be displayed in In-Store Pickup and Click and Collect listings. A name is not required for warehouse inventory locations. For store inventory locations, this field is not immediately required, but will be required before an offer enabled with the In-Store Pickup or Click and Collect capability can be published. So, if the seller omits this field in a <strong>createInventoryLocation</strong> call, it becomes required for an <strong>updateInventoryLocation</strong> call.<br/><br/><b>Max length</b>: 1000 */
432
246
  name?: string;
433
- /** @description Although not technically required, this container is highly recommended to be used to specify operating hours for a store inventory location. This container is used to express the regular operating hours for a store location during each day of the week. A <strong>dayOfWeekEnum</strong> field and an <strong>intervals</strong> container will be needed for each day of the week that the store location is open. */
434
247
  operatingHours?: (components["schemas"]["OperatingHours"])[];
435
- /** @description Although not technically required, this field is highly recommended to be used to specify the phone number for a store inventory location. <br/><br/><b>Max length</b>: 36 */
436
248
  phone?: string;
437
- /** @description This container is used to express the special operating hours for a store inventory location on a specific date, such as a holiday. The special hours specified for the specific date will override the normal operating hours for that particular day of the week. */
438
249
  specialHours?: (components["schemas"]["SpecialHours"])[];
439
250
  };
440
- /** @description This type is used by the base response of the <strong>getInventoryLocation</strong> and <strong>getInventoryLocations</strong> calls. These responses provide details about inventory location(s) defined for the merchant's account. */
441
251
  InventoryLocationResponse: {
442
- /** @description This container provides location details of an inventory location. The <strong>address</strong> container will always be returned, but it will not always have a complete street address. Except in the case of an inventory location that supports In-Store Pickup inventory, a full address is not a requirement when setting up an inventory location. The <strong>geoCoordinates</strong> container will only be returned if the merchant provided geographical coordinates. The <strong>locationId</strong> field is always returned, but this value is only used internally by eBay. */
443
252
  location?: components["schemas"]["Location"];
444
- /** @description This text field provides additional information about an inventory location. This field is returned if it is set for the inventory location. <br/><br/><b>Max length</b>: 256 */
445
253
  locationAdditionalInformation?: string;
446
- /** @description This text field is used by the merchant to provide special pickup instructions for the store location. This field can help create a pleasant and easy pickup experience for In-Store Pickup and Click and Collect orders. If this field was not set up through a <strong>createInventoryLocation</strong> or a <strong>updateInventoryLocation</strong> call, eBay will use the default pickup instructions contained in the merchant's profile.<br/><br/><b>Max length</b>: 1000 */
447
254
  locationInstructions?: string;
448
- /** @description This container defines the function of the inventory location. Typically, an inventory location will serve as a store or a warehouse, but in some cases, an inventory location may be both. <br/><br/>The location type of an inventory location defaults to <code>WAREHOUSE</code> if a location type is not specified when a merchant creates an inventory location. */
449
255
  locationTypes?: (string)[];
450
- /** @description This text field shows the Website address (URL) associated with the inventory location. This field is returned if defined for the inventory location. <br/><br/><b>Max length</b>: 512 */
451
256
  locationWebUrl?: string;
452
- /** @description The unique identifier of the inventory location. This identifier is set up by the merchant when the inventory location is first created with the <strong>createInventoryLocation</strong> call. Once this value is set for an inventory location, it cannot be modified. <br/><br/><b>Max length</b>: 36 */
453
257
  merchantLocationKey?: string;
454
- /** @description This field indicates whether the inventory location is enabled (inventory can be loaded to location) or disabled (inventory can not be loaded to location). The merchant can use the <strong>enableInventoryLocation</strong> call to enable an inventory location in disabled status, or the <strong>disableInventoryLocation</strong> call to disable an inventory location in enabled status. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/account/types/api:StatusEnum'>eBay API documentation</a> */
455
258
  merchantLocationStatus?: string;
456
- /** @description The name of the inventory location. This name should be a human-friendly name as it will be displayed in In-Store Pickup and Click and Collect listings. For store inventory locations, this field is not required for the <strong>createInventoryLocation</strong> call, but a store inventory location must have a defined <strong>name</strong> value before an In-Store Pickup and Click and Collect enabled offer is published. So, if the seller omits this field in the <strong>createInventoryLocation</strong> call, it will have to be added later through a <strong>updateInventoryLocation</strong> call. <br/><br/><b>Max length</b>: 1000 */
457
259
  name?: string;
458
- /** @description This container shows the regular operating hours for a store location during the days of the week. A <strong>dayOfWeekEnum</strong> field and an <strong>intervals</strong> container is shown for each day of the week that the store location is open. */
459
260
  operatingHours?: (components["schemas"]["OperatingHours"])[];
460
- /** @description The phone number for an inventory location. This field will typically only be set and returned for store locations. <br/><br/><b>Max length</b>: 36 */
461
261
  phone?: string;
462
- /** @description This container shows the special operating hours for a store location on a specific date or dates. */
463
262
  specialHours?: (components["schemas"]["SpecialHours"])[];
464
263
  };
465
- /** @description This type is used to provide details about any KYC check that is applicable to the managed payments seller. */
466
264
  KycCheck: {
467
- /** @description The enumeration value returned in this field categorizes the type of details needed for the KYC check. More information about the check is shown in the <b>detailMessage</b> and other applicable, corresponding fields. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/account/types/kyc:DetailsType'>eBay API documentation</a> */
468
265
  dataRequired?: string;
469
- /** @description The timestamp in this field indicates the date by which the seller should resolve the KYC requirement.<br><br>The timestamp in this field uses the UTC date and time format described in the <a href="https://www.iso.org/iso-8601-date-and-time-format.html" target="_blank">ISO 8601 Standard</a>. See below for this format and an example: <br><br><i>MM-DD-YYYY HH:MM:SS</i><br/><code>06-05-2020 10:34:18</code> */
470
266
  dueDate?: string;
471
- /** @description If applicable and available, a URL will be returned in this field, and the link will take the seller to an eBay page where they can provide the requested information. */
472
267
  remedyUrl?: string;
473
- /** @description This field gives a short summary of what is required from the seller. An example might be, '<code>Upload bank document now.</code>'. The <b>detailMessage</b> field will often provide more details on what is required of the seller. */
474
268
  alert?: string;
475
- /** @description This field gives a detailed message about what is required from the seller. An example might be, '<code>Please upload a bank document by 2020-08-01 to get your account back in good standing.</code>'. */
476
269
  detailMessage?: string;
477
270
  };
478
- /** @description This is the base response type of the <b>getKYC</b> method. */
479
271
  KycResponse: {
480
- /** @description This array contains one or more KYC checks required from a managed payments seller. The seller may need to provide more documentation and/or information about themselves, their company, or the bank account they are using for seller payouts.<br/><br/>If no KYC checks are currently required from the seller, this array is not returned, and the seller only receives a <code>204 No Content</code> HTTP status code. */
481
272
  kycChecks?: (components["schemas"]["KycCheck"])[];
482
273
  };
483
- /** @description A complex type that is used to provide the physical address of a location, and it geo-coordinates. */
484
274
  Location: {
485
- /** @description The <strong>address</strong> container is always returned in <strong>getInventoryLocation</strong>/<strong>getInventoryLocations</strong> calls. Except in the case of an inventory location that supports In-Store Pickup inventory, a full address is not a requirement when setting up an inventory location. */
486
275
  address?: components["schemas"]["Address"];
487
- /** @description This container displays the Global Positioning System (GPS) latitude and longitude coordinates for the inventory location. This container is only returned if the geo-coordinates are set for an inventory location. */
488
276
  geoCoordinates?: components["schemas"]["GeoCoordinates"];
489
- /** @description A unique eBay-assigned ID for the location. <br/><br/> <span class="tablenote"> <strong>Note:</strong> This field should not be confused with the seller-defined <b>merchantLocationKey</b> value. It is the <b>merchantLocationKey</b> value which is used to identify an inventory location when working with inventory location API calls. The <strong>locationId</strong> value is only used internally by eBay.</span> */
490
277
  locationId?: string;
491
278
  };
492
- /** @description This type is used by the <b>createInventoryLocation</b> call to provide an full or partial address of an inventory location. */
493
279
  LocationDetails: {
494
- /** @description The <b>address</b> container is required for a <b>createInventoryLocation</b> call. Except in the case of an inventory location that supports In-Store Pickup inventory, a full address is not a requirement when setting up an inventory location. */
495
280
  address?: components["schemas"]["Address"];
496
- /** @description This container is used to set the Global Positioning System (GPS) latitude and longitude coordinates for the inventory location. */
497
281
  geoCoordinates?: components["schemas"]["GeoCoordinates"];
498
282
  };
499
- /** @description This type is used by the base response payload for the <strong>getInventoryLocations</strong> call. */
500
283
  LocationResponse: {
501
- /** @description The URI of the current page of results from the result set. */
502
284
  href?: string;
503
- /**
504
- * Format: int32
505
- * @description The number of items returned on a single page from the result set.
506
- */
507
285
  limit?: number;
508
- /** @description The URI for the following page of results. This value is returned only if there is an additional page of results to display from the result set. <br/><br/><b>Max length</b>: 2048 */
509
286
  next?: string;
510
- /**
511
- * Format: int32
512
- * @description The number of results skipped in the result set before listing the first returned result. This value is set in the request with the <b>offset</b> query parameter. <p class="tablenote"><strong>Note: </strong>The items in a paginated result set use a zero-based list where the first item in the list has an offset of <code>0</code>.</p>
513
- */
514
287
  offset?: number;
515
- /** @description The URI for the preceding page of results. This value is returned only if there is a previous page of results to display from the result set. <br/><br/><b>Max length</b>: 2048 */
516
288
  prev?: string;
517
- /**
518
- * Format: int32
519
- * @description The total number of items retrieved in the result set. <br/><br/>If no items are found, this field is returned with a value of <code>0</code>.
520
- */
521
289
  total?: number;
522
- /** @description An array of one or more of the merchant's inventory locations. */
523
290
  locations?: (components["schemas"]["InventoryLocationResponse"])[];
524
291
  };
525
- /** @description This type is used to express the regular operating hours of a merchant's store during the days of the week. */
526
292
  OperatingHours: {
527
- /** @description A <strong>dayOfWeekEnum</strong> value is required for each day of the week that the store location has regular operating hours. <br/><br/>This field is returned if operating hours are defined for the store location. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/account/types/api:DayOfWeekEnum'>eBay API documentation</a> */
528
293
  dayOfWeekEnum?: string;
529
- /** @description This container is used to define the opening and closing times of a store's working day (defined in the <strong>dayOfWeekEnum</strong> field). An <strong>intervals</strong> container is needed for each day of the week that the store location is open. If a store location closes for lunch (or any other period during the day) and then reopens, multiple <strong>open</strong> and <strong>close</strong> pairs are needed <br/><br/>This container is returned if operating hours are defined for the store location. */
530
294
  intervals?: (components["schemas"]["Interval"])[];
531
295
  };
532
- /** @description This type is used by the <b>paymentMethods</b> container, which is used by the seller to specify one or more offline payment methods. <br /><br /> <span class="tablenote"><b>Note</b>: eBay now controls all electronic payment methods available for a marketplace, so a seller will no longer use this type to specify any electronic payment methods.</span> */
533
296
  PaymentMethod: {
534
- /** @description <span class="tablenote"><b>Note</b>: This array is no longer applicable and should not be used. eBay now controls all electronic payment methods available for a marketplace, and a seller never has to specify any electronic payment methods, including any credit card brands accepted. </span> */
535
297
  brands?: (string)[];
536
- /** @description eBay now controls all electronic payment methods available for a marketplace, so only offline payment method enum values may be used in this field, and offline payment methods will only be applicable to listings that require or support offline payments. See the <b>PaymentMethodTypeEnum</b> type for supported offline payment method enum values. </p> For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/account/types/api:PaymentMethodTypeEnum'>eBay API documentation</a> */
537
298
  paymentMethodType?: string;
538
- /** @description <span class="tablenote"><b>Note</b>: This container is no longer applicable and should not be used. eBay now controls all electronic payment methods available for a marketplace, and a seller never has to specify any electronic payment methods, including PayPal. </span> */
539
299
  recipientAccountReference?: components["schemas"]["RecipientAccountReference"];
540
300
  };
541
- /** @description This type is used by the <b>paymentPolicy</b> response container, a container which defines a seller's payment business policy for a specific marketplace. */
542
301
  PaymentPolicy: {
543
- /** @description This container indicates whether the fulfillment policy applies to motor vehicle listings, or if it applies to non-motor vehicle listings. */
544
302
  categoryTypes?: (components["schemas"]["CategoryType"])[];
545
- /** @description This container is applicable only if the <b>categoryTypes.name</b> field is set to <code>MOTORS_VEHICLES</code>, and is only returned if the seller requires an initial deposit on motor vehicles.<br /><br />The container shows the amount due for the deposit and when it is due (within 1-3 days after commitment to purchase, unless the listing requires immediate payment). <p class="tablenote"><b>Note:</b> The due date that is specified in the <b>deposit</b> container will be overridden if the payment business policy requires immediate payment (in this case, for the deposit), and the buyer commits to purchasing the motor vehicle through a fixed-price listing or through the 'Buy it Now' option of an auction listing. </p> */
546
303
  deposit?: components["schemas"]["Deposit"];
547
- /** @description A seller-defined description of the payment policy. This description is only for the seller's use, and is not exposed on any eBay pages. <br/><br/><b>Max length</b>: 250 */
548
304
  description?: string;
549
- /** @description This container applies to motor vehicles listings only and indicates when a final payment for the vehicle is due. This value is always returned if <b>categoryTypes</b> is set to <code>MOTORS_VEHICLES</code>. <br><br>This container indicates the number of days that a buyer has to make their full payment to the seller and close the remaining balance on a motor vehicle transaction. The period starts when the buyer commits to buy. The valid values, as specified with <b>TimeDuration</b>, are:<ul><li>3 DAYS</li><li>7 DAYS (the default)</li><li>10 DAYS</li><li>14 DAYS</li></ul>A <code>MOTORS_VEHICLES</code>) payment business policy must specify at least one of the following <b>paymentMethods</b> values for the final payment: <ul> <li>CASH_ON_PICKUP<br /><br /><span class="tablenote"><b>Note:</b> This payment method is only available to sellers outside the US.</span></li> <li>CASHIER_CHECK</li> <li>MONEY_ORDER</li><li>PERSONAL_CHECK</li></ul> */
550
305
  fullPaymentDueIn?: components["schemas"]["TimeDuration"];
551
- /** @description If this field is returned as <code>true</code>, immediate payment is required from the buyer for: <ul><li>A fixed-price item</li><li>An auction item where the buyer uses the 'Buy it Now' option</li><li>A deposit for a motor vehicle listing</li></ul><br />It is possible for the seller to set this field as <code>true</code> in the payment business policy, but it will not apply in some scenarios. For example, immediate payment is not applicable for auction listings that have a winning bidder, for buyer purchases that involve the Best Offer feature, or for transactions that happen offline between the buyer and seller. */
552
306
  immediatePay?: boolean;
553
- /** @description The ID of the eBay marketplace to which the payment business policy applies. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/account/types/ba:MarketplaceIdEnum'>eBay API documentation</a> */
554
307
  marketplaceId?: string;
555
- /** @description A seller-defined name for this fulfillment policy. Names must be unique for policies assigned to the same marketplace. <br/><br/><b>Max length</b>: 64 */
556
308
  name?: string;
557
- /** @description Although this field may be returned for some older payment business policies, payment instructions are no longer supported by payment business policies. If this field is returned, it can be ignored and these payment instructions will not appear in any listings that use the corresponding business policy. <br/><br/><b>Max length</b>: 1000 */
558
309
  paymentInstructions?: string;
559
- /** @description This container is returned to show the payment methods that are accepted for the payment business policy. <br><br>Sellers do not have to specify any electronic payment methods for listings, so this array will often be returned empty unless the payment business policy is intended for motor vehicle listings or other items in categories where offline payments are required or supported. */
560
310
  paymentMethods?: (components["schemas"]["PaymentMethod"])[];
561
- /** @description A unique eBay-assigned ID for a payment business policy. This ID is generated when the policy is created. */
562
311
  paymentPolicyId?: string;
563
312
  };
564
- /** @description This root container defines a seller's payment business policy for a specific marketplace and category group. This type is used when creating or updating a payment business policy. */
565
313
  PaymentPolicyRequest: {
566
- /** @description This container is used to specify whether the payment business policy applies to motor vehicle listings, or if it applies to non-motor vehicle listings. */
567
314
  categoryTypes?: (components["schemas"]["CategoryType"])[];
568
- /** @description This container is used if the seller wants to require an initial deposit on a motor vehicle listing. In this container, the seller sets the deposit amount and the due date for the deposit.<br /><br />Because eBay controls all electronic payment methods, sellers do not need to specify a payment method and the <b>deposit.paymentMethods</b> array is not needed.<p class="tablenote"><b>Note: </b>The 'due date' specified in the <b>deposit</b> container will be overridden if the payment business policy requires immediate payment (in this case, for the deposit), and the buyer commits to purchase the motor vehicle through a fixed-price listing or through the 'Buy it Now' option of an auction listing.</p> */
569
315
  deposit?: components["schemas"]["Deposit"];
570
- /** @description A seller-defined description of the payment business policy. This description is only for the seller's use, and is not exposed on any eBay pages. <br/><br/><b>Max length</b>: 250 */
571
316
  description?: string;
572
- /** @description This container is used to specify the number of days that a buyer has to make their full payment to the seller and close the remaining balance on a motor vehicle transaction. This container must be specified for motor vehicles listings. <br/><br/>The period starts when the buyer commits to buy. The valid values, as specified with <b>TimeDuration</b>, are:<ul><li><code>3 DAYS</code></li><li><code>7 DAYS</code> (the default)</li><li><code>10 DAYS</code></li><li><code>14 DAYS</code></li></ul>In order for a buyer to make a full payment on a motor vehicle, at least one of the following <b>paymentMethods</b> values must be specified for the corresponding payment business policy: <ul> <li><code>CASH_ON_PICKUP</code></li> <li><code>CASHIER_CHECK</code></li> <li><code>MONEY_ORDER</code></li> <li><code>PERSONAL_CHECK</code></li></ul><b>Default:</b> <code>7 DAYS</code> */
573
317
  fullPaymentDueIn?: components["schemas"]["TimeDuration"];
574
- /** @description This field should be included and set to <code>true</code> if the seller wants to require immediate payment from the buyer for: <ul><li>A fixed-price item</li><li>An auction item where the buyer is using the 'Buy it Now' option</li><li>A deposit for a motor vehicle listing</li></ul><br /><b>Default:</b> False */
575
318
  immediatePay?: boolean;
576
- /** @description The ID of the eBay marketplace to which this payment business policy applies. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/account/types/ba:MarketplaceIdEnum'>eBay API documentation</a> */
577
319
  marketplaceId?: string;
578
- /** @description A seller-defined name for this payment business policy. Names must be unique for policies assigned to the same marketplace.<br /><br /><b>Max length:</b> 64 */
579
320
  name?: string;
580
- /** @description <p class="tablenote"><b>Note:</b> DO NOT USE THIS FIELD. Payment instructions are no longer supported by payment business policies.</p>A free-form string field that allows sellers to add detailed payment instructions to their listings. */
581
321
  paymentInstructions?: string;
582
- /** @description <p class="tablenote"><b>Note:</b> This field applies only when the seller needs to specify one or more offline payment methods. eBay now manages the electronic payment options available to buyers to pay for the item.</p>This array is used to specify one or more offline payment methods that will be accepted for payment that occurs off of eBay's platform. */
583
322
  paymentMethods?: (components["schemas"]["PaymentMethod"])[];
584
323
  };
585
- /** @description The response payload for the <b>getPaymentPolicies</b> method. <br /><br /><span class="tablenote"><b>Note</b>: Pagination has not yet been enabled for <b>getPaymentPolicies</b>, so all of the pagination-related fields are for future use.</span> */
586
324
  PaymentPolicyResponse: {
587
- /** @description This field is for future use. */
588
325
  href?: string;
589
- /**
590
- * Format: int32
591
- * @description This field is for future use.
592
- */
593
326
  limit?: number;
594
- /** @description This field is for future use. */
595
327
  next?: string;
596
- /**
597
- * Format: int32
598
- * @description This field is for future use.
599
- */
600
328
  offset?: number;
601
- /** @description A list of all of the seller's payment business policies defined for the specified marketplace. This array will be returned as empty if no payment business policies are defined for the specified marketplace. */
602
329
  paymentPolicies?: (components["schemas"]["PaymentPolicy"])[];
603
- /** @description This field is for future use. */
604
330
  prev?: string;
605
- /**
606
- * Format: int32
607
- * @description The total number of payment business policies retrieved in the result set. <br/><br/>If no payment business policies are defined for the specified marketplace, this field is returned with a value of <code>0</code>.
608
- */
609
331
  total?: number;
610
332
  };
611
- /** @description Type used by the payments program onboarding response */
612
333
  PaymentsProgramOnboardingResponse: {
613
- /** @description This enumeration value indicates the eligibility of payment onboarding for the registered site. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/account/types/api:PaymentsProgramOnboardingStatus'>eBay API documentation</a> */
614
334
  onboardingStatus?: string;
615
- /** @description An array of the active process steps for payment onboarding and the status of each step. This array includes the step <strong>name</strong>, step <strong>status</strong>, and a <strong>webUrl</strong> to the <code>IN_PROGRESS</code> step. The step names are returned in sequential order. */
616
335
  steps?: (components["schemas"]["PaymentsProgramOnboardingSteps"])[];
617
336
  };
618
- /** @description The payments program onboarding steps, status, and link. */
619
337
  PaymentsProgramOnboardingSteps: {
620
- /** @description The name of the step in the steps array. Over time, these names are subject to change as processes change. The output sample contains example step names. Review an actual call response for updated step names. */
621
338
  name?: string;
622
- /** @description This enumeration value indicates the status of the associated step. <p> <span class="tablenote"><strong>Note:</strong> Only one step can be <code>IN_PROGRESS</code> at a time.</span></p> For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/account/types/api:PaymentsProgramOnboardingStepStatus'>eBay API documentation</a> */
623
339
  status?: string;
624
- /** @description This URL provides access to the <code>IN_PROGRESS</code> step. */
625
340
  webUrl?: string;
626
341
  };
627
- /** @description The response object containing the sellers status with regards to the specified payment program. */
628
342
  PaymentsProgramResponse: {
629
- /** @description The ID of the eBay marketplace to which the payment program applies. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/account/types/ba:MarketplaceIdEnum'>eBay API documentation</a> */
630
343
  marketplaceId?: string;
631
- /** @description This parameter specifies the payment program whose status is returned by the call. <br><br>Currently the only supported payments program is <code>EBAY_PAYMENTS</code>. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/account/types/api:PaymentsProgramType'>eBay API documentation</a> */
632
344
  paymentsProgramType?: string;
633
- /** @description The enumeration value returned in this field indicates whether or not the seller's account is enabled for the payments program. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/account/types/api:PaymentsProgramStatus'>eBay API documentation</a> */
634
345
  status?: string;
635
- /** @description If returned as <code>true</code>, the seller was at one point opted-in to the associated payment program, but they later opted out of the program. A value of <code>false</code> indicates the seller never opted-in to the program or if they did opt-in to the program, they never opted-out of it. <br><br>It's important to note that the setting of this field does not indicate the seller's current status regarding the payment program. It is possible for this field to return <code>true</code> while the <b>status</b> field returns <code>OPTED_IN</code>. */
636
346
  wasPreviouslyOptedIn?: boolean;
637
347
  };
638
- /** @description A seller program in to which a seller can opt-in. */
639
348
  Program: {
640
- /** @description A seller program in to which a seller can opt-in. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/account/types/api:ProgramTypeEnum'>eBay API documentation</a> */
641
349
  programType?: string;
642
350
  };
643
- /** @description The base response type of the <b>getOptedInPrograms</b> method. */
644
351
  Programs: {
645
- /** @description An array of seller programs that the seller's account is opted in to. */
646
352
  programs?: (components["schemas"]["Program"])[];
647
353
  };
648
- /** @description This type is used to provide details about each shipping rate table that is returned in the <b>getRateTables</b> response. */
649
354
  RateTable: {
650
- /** @description A two-letter <a href="https://www.iso.org/iso-3166-country-codes.html " title="https://www.iso.org " target="_blank">ISO 3166</a> country code representing the eBay marketplace where the shipping rate table is defined. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/account/types/ba:CountryCodeEnum'>eBay API documentation</a> */
651
355
  countryCode?: string;
652
- /** @description This enumeration value returned here indicates whether the shipping rate table is a domestic or international shipping rate table. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/account/types/api:ShippingOptionTypeEnum'>eBay API documentation</a> */
653
356
  locality?: string;
654
- /** @description The seller-defined name for the shipping rate table. */
655
357
  name?: string;
656
- /** @description A unique eBay-assigned ID for a seller's shipping rate table. These <b>rateTableId</b> values are used to associate shipping rate tables to fulfillment business policies or directly to listings through an add/revise/relist call in the Trading API. */
657
358
  rateTableId?: string;
658
359
  };
659
- /** @description This type is the base response of the <b>getRateTables</b> method. */
660
360
  RateTableResponse: {
661
- /** @description An array of all shipping rate tables defined for a marketplace (or all marketplaces if no <b>country_code</b> query parameter is used). This array will be returned as empty if the seller has no defined shipping rate tables for the specified marketplace. */
662
361
  rateTables?: (components["schemas"]["RateTable"])[];
663
362
  };
664
- /** @description <span class="tablenote"><b>Note</b>: This type is no longer applicable. eBay now controls all electronic payment methods available for a marketplace, and a seller never has to specify any electronic payment methods.</span> */
665
363
  RecipientAccountReference: {
666
- /** @description <span class="tablenote"><b>Note</b>: DO NOT USE THIS FIELD. eBay now controls all electronic payment methods available for a marketplace, and a seller never has to specify any electronic payment methods.</span> */
667
364
  referenceId?: string;
668
- /** @description <span class="tablenote"><b>Note</b>: DO NOT USE THIS FIELD. eBay now controls all electronic payment methods available for a marketplace, and a seller never has to specify any electronic payment methods.</span> For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/account/types/api:RecipientAccountReferenceTypeEnum'>eBay API documentation</a> */
669
365
  referenceType?: string;
670
366
  };
671
- /** @description This type is used to define specific shipping regions. There are four 'levels' of shipping regions, including large geographical regions (like 'Asia', 'Europe', or 'Middle East'), individual countries, US states or Canadian provinces, and special locations/domestic regions within a country (like 'Alaska/Hawaii' or 'PO Box'). */
672
367
  Region: {
673
- /** @description A string that indicates the name of a region, as defined by eBay. A "region" can be either a 'world region' (e.g., the "Middle East" or "Southeast Asia"), a country (represented with a two-letter country code), a state or province (represented with a two-letter code), or a special domestic region within a country. <br /><br />The <b>GeteBayDetails</b> call in the Trading API can be used to retrieve the world regions and special domestic regions within a specific country. To get these enumeration values, call <b>GeteBayDetails</b> with the <b>DetailName</b> value set to <b>ExcludeShippingLocationDetails</b>. */
674
368
  regionName?: string;
675
- /** @description Reserved for future use. <!--The region's type, which can be one of the following: 'COUNTRY', 'COUNTRY_REGION', 'STATE_OR_PROVINCE', 'WORLD_REGION', or 'WORLDWIDE'.--> For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/account/types/ba:RegionTypeEnum'>eBay API documentation</a> */
676
369
  regionType?: string;
677
370
  };
678
- /** @description This type consists of the <b>regionIncluded</b> and <b>regionExcluded</b> arrays, which indicate the areas to where the seller does and doesn't ship. */
679
371
  RegionSet: {
680
- /** @description An array of one or more <b>regionName</b> values that specify the areas to where a seller does not ship. A <b>regionExcluded</b> list should only be set in the top-level <b>shipToLocations</b> container and not within the <b>shippingServices.shipToLocations</b> container used to specify which shipping regions are serviced by each available shipping service option. <p>Many sellers are willing to ship to many international locations, but they may want to exclude some world regions or some countries as places they are willing to ship to.<br/><br/>This array will be returned as empty if no shipping regions are excluded with the fulfillment business policy.<br /> <br /><span class="tablenote"><b>Note: </b> The <b>regionExcluded</b> array is not applicable for motor vehicle business policies on the US, CA, or UK marketplaces. If this array is used in a <b>createFulfillmentPolicy</b> or <b>updateFulfillmentPolicy</b> request, it will be ignored.</span> */
681
372
  regionExcluded?: (components["schemas"]["Region"])[];
682
- /** @description An array of one or more <b>regionName</b> fields that specify the areas to where a seller ships. <br />Each eBay marketplace supports its own set of allowable shipping locations.<br /> <br /><span class="tablenote"><b>Note: </b> The <b>regionIncluded</b> array is not applicable for motor vehicle business policies on the US, CA, or UK marketplaces. If this array is used in a <b>createFulfillmentPolicy</b> or <b>updateFulfillmentPolicy</b> request, it will be ignored.</span> */
683
373
  regionIncluded?: (components["schemas"]["Region"])[];
684
374
  };
685
- /** @description This type is used by the <b>returnPolicy</b> response container, a container which defines a seller's return business policy for a specific marketplace. */
686
375
  ReturnPolicy: {
687
- /** @description This container indicates which category group that the return policy applies to.<br/><br/><span class="tablenote"><b>Note</b>: Return business policies are not applicable to motor vehicle listings, so the <b>categoryTypes.name</b> value will always be <code>ALL_EXCLUDING_MOTORS_VEHICLES</code> for return business policies.</span> */
688
376
  categoryTypes?: (components["schemas"]["CategoryType"])[];
689
- /** @description A seller-defined description of the return business policy. This description is only for the seller's use, and is not exposed on any eBay pages. <br/><br/><b>Max length</b>: 250 */
690
377
  description?: string;
691
- /** @description <p class="tablenote"><span style="color: #dd1e31;"><b>Important!</b></span> This field is deprecated, since eBay no longer supports extended holiday returns. Any value supplied in this field is neither read nor returned.</p> */
692
378
  extendedHolidayReturnsOffered?: boolean;
693
- /** @description This container shows the seller's international return policy settings. This container is only returned if the seller has set a separate international return policy for the business policies. Interational return policies are optional, even if the seller ships to international locations. If a separate international return policy is not set, all of the domestic return policy settings also apply to international orders. */
694
379
  internationalOverride?: components["schemas"]["InternationalReturnOverrideType"];
695
- /** @description The ID of the eBay marketplace to which this return business policy applies. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/account/types/ba:MarketplaceIdEnum'>eBay API documentation</a> */
696
380
  marketplaceId?: string;
697
- /** @description A seller-defined name for this payment business policy. Names must be unique for policies assigned to the same marketplace.<br /><br /><b>Max length:</b> 64 */
698
381
  name?: string;
699
- /** @description If a seller indicates that they will accept buyer returns, this value will be set to <code>MONEY_BACK</code>. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/account/types/api:RefundMethodEnum'>eBay API documentation</a> */
700
382
  refundMethod?: string;
701
- /** @description <p class="tablenote"><span style="color: #dd1e31;"><b>Important!</b></span> This field is deprecated, since eBay no longer allows sellers to charge a restocking fee for buyer remorse returns. If this field is included, it is ignored and it is no longer returned.</p> */
702
383
  restockingFeePercentage?: string;
703
- /** @description This text-based field provides more details on seller-specified return instructions. This field is only returned if set for the return business policy. <p class="tablenote"><span style="color: #dd1e31;"><b>Important!</b></span> This field is no longer supported on many eBay marketplaces. To see if a marketplace and eBay category does support this field, call <a href="/api-docs/sell/metadata/resources/marketplace/methods/getReturnPolicies">getReturnPolicies</a> method of the <b>Metadata API</b>. Then you will look for the <b>policyDescriptionEnabled</b> field with a value of <code>true</code> for the eBay category.</span></p><br/><b>Max length</b>: 5000 (8000 for DE) */
704
384
  returnInstructions?: string;
705
- /** @description This field is only returned if the seller is willing to offer a replacement item as an alternative to 'Money Back'. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/account/types/api:ReturnMethodEnum'>eBay API documentation</a> */
706
385
  returnMethod?: string;
707
- /** @description This container indicates the number of calendar days that the buyer has to return an item. The return period begins when the item is marked "delivered" at the buyer's specified ship-to location. <br/><br/>Most categories support 30-day and 60-day return periods.<br/><br/><span class="tablenote"><b>Note</b>: Unless the seller has set a separate international return policy through the <b>internationalOverride</b> container, this return period will be valid for domestic and international returns (if the seller ships internationally).</span> */
708
386
  returnPeriod?: components["schemas"]["TimeDuration"];
709
- /** @description A unique eBay-assigned ID for a return business policy. This ID is generated when the policy is created. */
710
387
  returnPolicyId?: string;
711
- /** @description If this field is returned as <code>true</code>, the seller accepts returns. <br/><br/><span class="tablenote"><strong>Note:</strong>Top-Rated sellers must accept item returns and the <b>handlingTime</b> should be set to zero days or one day for a listing to receive a Top-Rated Plus badge on the View Item or search result pages. For more information on eBay's Top-Rated seller program, see <a href="https://pages.ebay.com/help/sell/top-rated.html ">Becoming a Top Rated Seller and qualifying for Top Rated Plus benefits</a>.</span> */
712
388
  returnsAccepted?: boolean;
713
- /** @description This field indicates who is responsible for paying for the shipping charges for returned items. The field can be set to either <code>BUYER</code> or <code>SELLER</code>. <br/><br/>Depending on the return policy and specifics of the return, either the buyer or the seller can be responsible for the return shipping costs. Note that the seller is always responsible for return shipping costs for SNAD-related issues. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/account/types/api:ReturnShippingCostPayerEnum'>eBay API documentation</a> */
714
389
  returnShippingCostPayer?: string;
715
390
  };
716
- /** @description This root container defines a seller's return business policy for a specific marketplace and category group. This type is used when creating or updating a return business policy. */
717
391
  ReturnPolicyRequest: {
718
- /** @description This container indicates which category group that the return policy applies to.<br/><br/><span class="tablenote"><b>Note</b>: Return business policies are not applicable to motor vehicle listings, so the <b>categoryTypes.name</b> value must be set to <code>ALL_EXCLUDING_MOTORS_VEHICLES</code> for return business policies.</span> */
719
392
  categoryTypes?: (components["schemas"]["CategoryType"])[];
720
- /** @description A seller-defined description of the return business policy. This description is only for the seller's use, and is not exposed on any eBay pages. <br/><br/><b>Max length</b>: 250 */
721
393
  description?: string;
722
- /** @description <p class="tablenote"><span style="color: #dd1e31;"><b>Important!</b></span> This field is deprecated, since eBay no longer supports extended holiday returns. Any value supplied in this field is neither read nor returned.</p> */
723
394
  extendedHolidayReturnsOffered?: boolean;
724
- /** @description This container is used by the seller to specify a separate international return policy. If a separate international return policy is not defined by a seller, all of the domestic return policy settings will also apply to international orders. */
725
395
  internationalOverride?: components["schemas"]["InternationalReturnOverrideType"];
726
- /** @description The ID of the eBay marketplace to which this return business policy applies. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/account/types/ba:MarketplaceIdEnum'>eBay API documentation</a> */
727
396
  marketplaceId?: string;
728
- /** @description A seller-defined name for this return business policy. Names must be unique for policies assigned to the same marketplace. <br/><br/><b>Max length</b>: 64 */
729
397
  name?: string;
730
- /** @description This value indicates the refund method that will be used by the seller for buyer returns.<p class="tablenote"><span style="color: #dd1e31;"><b>Important!</b></span> If this field is not included in a return business policy, it will default to MONEY_BACK.</p> For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/account/types/api:RefundMethodEnum'>eBay API documentation</a> */
731
398
  refundMethod?: string;
732
- /** @description <p class="tablenote"><span style="color: #dd1e31;"><b>Important!</b></span> This field is deprecated, since eBay no longer allows sellers to charge a restocking fee for buyer remorse returns. If this field is included, it is ignored.</p> */
733
399
  restockingFeePercentage?: string;
734
- /** @description This text-based field provides more details on seller-specified return instructions. <p class="tablenote"><span style="color: #dd1e31;"><b>Important!</b></span> This field is no longer supported on many eBay marketplaces. To see if a marketplace and eBay category does support this field, call <a href="/api-docs/sell/metadata/resources/marketplace/methods/getReturnPolicies">getReturnPolicies</a> method of the <b>Metadata API</b>. Then you will look for the <b>policyDescriptionEnabled</b> field with a value of <code>true</code> for the eBay category.</span></p><br/><b>Max length</b>: 5000 (8000 for DE) */
735
400
  returnInstructions?: string;
736
- /** @description This field can be used if the seller is willing and able to offer a replacement item as an alternative to 'Money Back'. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/account/types/api:ReturnMethodEnum'>eBay API documentation</a> */
737
401
  returnMethod?: string;
738
- /** @description This container is used to specify the number of days that the buyer has to return an item. The return period begins when the item is marked "delivered" at the buyer's specified ship-to location. <br/><br/>You must set the value to one that's accepted by the marketplace and category where the item is listed. Most categories support 30-day and 60-day return periods. <br/><br/>For a definitive list of return periods for one or more categories, call <a href="/api-docs/sell/metadata/resources/marketplace/methods/getReturnPolicies">getReturnPolicies</a> method of the <b>Metadata API</b>.<br/><br/>The return period is set using the <b>TimeDuration</b> type, where you set <b>unit</b> to <code>DAY</code> and <b>value</b> to either <code>30</code> or <code>60</code> (or other value, as appropriate). <br/><br/>Note that this value cannot be modified if the listing has bids or sales, or if the listing ends within 12 hours. <br/><br/><i>Required if </i> <b>returnsAccepted</b> is set to <code>true</code>. */
739
402
  returnPeriod?: components["schemas"]["TimeDuration"];
740
- /** @description If set to <code>true</code>, the seller accepts returns. <p><span class="tablenote"><strong>Note:</strong>Top-Rated sellers must accept item returns and the <b>handlingTime</b> should be set to zero days or one day for a listing to receive a Top-Rated Plus badge on the View Item or search result pages. For more information on eBay's Top-Rated seller program, see <a href="http://pages.ebay.com/help/sell/top-rated.html ">Becoming a Top Rated Seller and qualifying for Top Rated Plus benefits</a>.</span></p> */
741
403
  returnsAccepted?: boolean;
742
- /** @description This field indicates who is responsible for paying for the shipping charges for returned items. The field can be set to either <code>BUYER</code> or <code>SELLER</code>. <br/><br/>Depending on the return policy and specifics of the return, either the buyer or the seller can be responsible for the return shipping costs. Note that the seller is always responsible for return shipping costs for SNAD-related issues. <br/><br/>This field is conditionally required if <b>returnsAccepted</b> is set to <code>true</code>. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/account/types/api:ReturnShippingCostPayerEnum'>eBay API documentation</a> */
743
404
  returnShippingCostPayer?: string;
744
405
  };
745
- /** @description The response payload for the <b>getReturnPolicies</b> method. <br /><br /><span class="tablenote"><b>Note</b>: Pagination has not yet been enabled for <b>getReturnPolicies</b>, so all of the pagination-related fields are for future use.</span> */
746
406
  ReturnPolicyResponse: {
747
- /** @description This field is for future use. */
748
407
  href?: string;
749
- /**
750
- * Format: int32
751
- * @description This field is for future use.
752
- */
753
408
  limit?: number;
754
- /** @description This field is for future use. */
755
409
  next?: string;
756
- /**
757
- * Format: int32
758
- * @description This field is for future use.
759
- */
760
410
  offset?: number;
761
- /** @description This field is for future use. */
762
411
  prev?: string;
763
- /** @description A list of all of the seller's return business policies defined for the specified marketplace. This array will be returned as empty if no return business policies are defined for the specified marketplace. */
764
412
  returnPolicies?: (components["schemas"]["ReturnPolicy"])[];
765
- /**
766
- * Format: int32
767
- * @description The total number of return business policies retrieved in the result set. <br/><br/>If no return business policies are defined for the specified marketplace, this field is returned with a value of <code>0</code>.
768
- */
769
413
  total?: number;
770
414
  };
771
- /** @description This type is used to provide sales tax settings for a specific tax jurisdiction. */
772
415
  SalesTax: {
773
- /** @description The country code enumeration value identifies the country to which this sales tax rate applies. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/account/types/ba:CountryCodeEnum'>eBay API documentation</a> */
774
416
  countryCode?: string;
775
- /** @description A unique ID that identifies the sales tax jurisdiction to which the salest tax rate applies (for example, a state within the United States). */
776
417
  salesTaxJurisdictionId?: string;
777
- /** @description The sales tax rate that will be applied to sales price. The <b>shippingAndHandlingTaxed</b> value will indicate whether or not sales tax is also applied to shipping and handling charges<br><br>Although it is a string, a percentage value is returned here, such as <code>7.75</code> */
778
418
  salesTaxPercentage?: string;
779
- /** @description If returned as <code>true</code>, sales tax is also applied to shipping and handling charges, and not just the total sales price of the order. */
780
419
  shippingAndHandlingTaxed?: boolean;
781
420
  };
782
- /** @description This type is used by the base request of the <b>createOrReplaceSalesTax</b>. */
783
421
  SalesTaxBase: {
784
- /** @description This field is used to set the sales tax rate for the tax jurisdiction set in the call URI. When applicable to an order, this sales tax rate will be applied to sales price. The <b>shippingAndHandlingTaxed</b> value will indicate whether or not sales tax is also applied to shipping and handling charges<br><br>Although it is a string, a percentage value is set here, such as <code>7.75</code>. */
785
422
  salesTaxPercentage?: string;
786
- /** @description This field is set to <code>true</code> if the seller wishes to apply sales tax to shipping and handling charges, and not just the total sales price of the order. Otherwise, this field's value should be set to <code>false</code>. */
787
423
  shippingAndHandlingTaxed?: boolean;
788
424
  };
789
- /** @description A unique ID for a sales tax jurisdiction. */
790
425
  SalesTaxJurisdiction: {
791
- /** @description The unique ID for a sales tax jurisdiction. */
792
426
  salesTaxJurisdictionId?: string;
793
427
  };
794
- /** @description This complex type contains a list of sales tax jurisdictions. */
795
428
  SalesTaxJurisdictions: {
796
- /** @description A list of sales tax jurisdictions. */
797
429
  salesTaxJurisdictions?: (components["schemas"]["SalesTaxJurisdiction"])[];
798
430
  };
799
- /** @description This type is used by the root response of the <b>getSalesTaxes</b> method. */
800
431
  SalesTaxes: {
801
- /** @description An array of one or more sales tax rate entries for a specific marketplace (or all applicable marketplaces if the <b>country_code</b> query parameter is not used.<br><br>If no sales tax rate entries are set up, no response payload is returned, but only an HTTP status code of <code>204 No Content</code>. */
802
432
  salesTaxes?: (components["schemas"]["SalesTax"])[];
803
433
  };
804
- /** @description The base response of the <b>getAdvertisingEligibility</b> method that contains the seller eligibility information for one or more advertising programs. */
805
434
  SellerEligibilityMultiProgramResponse: {
806
- /** @description An array of response fields that define the seller eligibility for eBay adverstising programs. */
807
435
  advertisingEligibility?: (components["schemas"]["SellerEligibilityResponse"])[];
808
436
  };
809
- /** @description A type that is used to provide the seller's eligibility status for an eBay advertising program. */
810
437
  SellerEligibilityResponse: {
811
- /** @description The eBay advertising program for which a seller may be eligible. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/account/types/plser:AdvertisingProgramEnum'>eBay API documentation</a> */
812
438
  programType?: string;
813
- /** @description The reason why a seller is ineligible for the specified eBay advertising program.<br /><br />This field is only returned if the seller is ineligible for the eBay advertising program. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/account/types/plser:SellerIneligibleReasonEnum'>eBay API documentation</a> */
814
439
  reason?: string;
815
- /** @description The seller elibibilty status for the specified eBay advertising program. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/account/types/cmlib:SellerEligibilityEnum'>eBay API documentation</a> */
816
440
  status?: string;
817
441
  };
818
- /** @description Type used by the <b>sellingLimit</b> container, a container that lists the monthly cap for the quantity of items sold and total sales amount allowed for the seller's account. */
819
442
  SellingLimit: {
820
- /** @description This container shows the monthly cap for total sales amount allowed for the seller's account. This container may not be returned if a seller does not have a monthly cap for total sales amount. */
821
443
  amount?: components["schemas"]["Amount"];
822
- /**
823
- * Format: int32
824
- * @description This field shows the monthly cap for total quantity sold allowed for the seller's account. This container may not be returned if a seller does not have a monthly cap for total quantity sold.
825
- */
826
444
  quantity?: number;
827
445
  };
828
- /** @description This type is used by the base response of the <b>getPrivileges</b> method. */
829
446
  SellingPrivileges: {
830
- /** @description If this field is returned as <code>true</code>, the seller's registration is completed. If this field is returned as <code>false</code>, the registration process is not complete. */
831
447
  sellerRegistrationCompleted?: boolean;
832
- /** @description This container lists the monthly cap for the quantity of items sold and total sales amount allowed for the seller's account. This container may not be returned if a seller does not have a monthly cap for total quantity sold and total sales amount. */
833
448
  sellingLimit?: components["schemas"]["SellingLimit"];
834
449
  };
835
- /** @description Complex type that that gets populated with a response containing a fulfillment policy. */
836
450
  SetFulfillmentPolicyResponse: {
837
- /** @description This container indicates whether the fulfillment business policy applies to motor vehicle listings, or if it applies to non-motor vehicle listings. */
838
451
  categoryTypes?: (components["schemas"]["CategoryType"])[];
839
- /** @description A seller-defined description of the fulfillment policy. This description is only for the seller's use, and is not exposed on any eBay pages. This field is returned if set for the policy. <br/><br/><b>Max length</b>: 250 */
840
452
  description?: string;
841
- /** @description If returned as <code>true</code>, the seller offers freight shipping. Freight shipping can be used for large items over 150 lbs. */
842
453
  freightShipping?: boolean;
843
- /** @description A unique eBay-assigned ID for a fulfillment business policy. This ID is generated when the policy is created. */
844
454
  fulfillmentPolicyId?: string;
845
- /** @description If returned as <code>true</code>, the eBay Global Shipping Program will be used by the seller to ship items to international locations.<br /><br /><span class="tablenote"><b>Note</b>: On the US marketplace, the <em><b>Global Shipping Program</b></em> is scheduled to be replaced by a new intermediated international shipping program called <em><b>eBay International Shipping</b></em>. US sellers who are opted in to the Global Shipping Program will be automatically opted in to eBay International Shipping when it becomes available to them. All US sellers will be migrated by March 31, 2023. <br /><br />eBay International Shipping is an account level setting, and no field needs to be set in a Fulfillment business policy to enable it. As long as the US seller's account is opted in to eBay International Shipping, this shipping option will be enabled automatically for all listings where international shipping is available. <br /><br />A US seller who is opted in to eBay International Shipping can also specify individual international shipping service options for a Fulfillment business policy.</span> */
846
455
  globalShipping?: boolean;
847
- /** @description Specifies the maximum number of business days the seller commits to for preparing and shipping an order after receiving a cleared payment for the order. This time does not include the transit time it takes the shipping carrier to deliver the order. <p>If only local pickup or freight shipping is available for the item, this container may not get returned.</p> */
848
456
  handlingTime?: components["schemas"]["TimeDuration"];
849
- /** @description If returned as <code>true</code>, local pickup is available for this policy. */
850
457
  localPickup?: boolean;
851
- /** @description The ID of the eBay marketplace to which this fulfillment business policy applies. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/account/types/ba:MarketplaceIdEnum'>eBay API documentation</a> */
852
458
  marketplaceId?: string;
853
- /** @description A seller-defined name for this fulfillment business policy. Names must be unique for policies assigned to the same marketplace. <br/><br/><b>Max length</b>: 64 */
854
459
  name?: string;
855
- /** @description If returned as <code>true</code>, the seller offers the "Click and Collect" option. <br/><br/>Currently, "Click and Collect" is available only to large retail merchants the eBay AU and UK marketplaces. */
856
460
  pickupDropOff?: boolean;
857
- /** @description This array is used to provide detailed information on the domestic and international shipping options available for the policy. A separate <b>ShippingOption</b> object covers domestic shipping service options and international shipping service options (if the seller ships to international locations). <br /><br />The <b>optionType</b> field indicates whether the <b>ShippingOption</b> object applies to domestic or international shipping, and the <b>costType</b> field indicates whether flat-rate shipping or calculated shipping will be used. <p>A separate <b>ShippingServices</b> object is used to specify cost and other details for every available domestic and international shipping service option. </p> */
858
461
  shippingOptions?: (components["schemas"]["ShippingOption"])[];
859
- /** @description This container consists of the <b>regionIncluded</b> and <b>regionExcluded</b> containers, which define the geographical regions/countries/states or provinces/domestic regions where the seller does and doesn't ship to with this fulfillment policy. */
860
462
  shipToLocations?: components["schemas"]["RegionSet"];
861
- /** @description An array of one or more errors or warnings that were generated during the processing of the request. If there were no issues with the request, this array will return empty. */
862
463
  warnings?: (components["schemas"]["Error"])[];
863
464
  };
864
- /** @description Complex type that that gets populated with a response containing a payment policy. */
865
465
  SetPaymentPolicyResponse: {
866
- /** @description This container indicates whether the payment business policy applies to motor vehicle listings, or if it applies to non-motor vehicle listings. */
867
466
  categoryTypes?: (components["schemas"]["CategoryType"])[];
868
- /** @description This container is only returned if the seller just created or updated a motor vehicles payment business policy and requires buyers to pay an initial deposit after they commit to buying a motor vehicle. */
869
467
  deposit?: components["schemas"]["Deposit"];
870
- /** @description A seller-defined description of the payment business policy. This description is only for the seller's use, and is not exposed on any eBay pages. This field is returned if set for the policy. <br/><br/><b>Max length</b>: 250 */
871
468
  description?: string;
872
- /** @description The number of days (after the buyer commits to buy) that a buyer has to pay the remaining balance of a motor vehicle transaction. Sellers can set this value to 3, 7, 10, or 14 days.<p class="tablenote"><b>Note:</b> This value is always returned if <b>categoryTypes</b> is set to <code>MOTORS_VEHICLES</code>.</p> */
873
469
  fullPaymentDueIn?: components["schemas"]["TimeDuration"];
874
- /** @description The value returned in this field will reflect the value set by the seller in the <b>immediatePay</b> request field. A value of <code>true</code> indicates that immediate payment is required from the buyer for: <ul><li>A fixed-price item</li><li>An auction item where the buyer is using the 'Buy it Now' option</li><li>A deposit for a motor vehicle listing</li></ul><br />It is possible for the seller to set this field as <code>true</code> in the payment business policy, but it will not apply in some scenarios. For example, immediate payment is not applicable for auction listings that have a winning bidder, for buyer purchases that involve the Best Offer feature, or for transactions that happen offline between the buyer and seller. */
875
470
  immediatePay?: boolean;
876
- /** @description The ID of the eBay marketplace to which this payment business policy applies. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/account/types/ba:MarketplaceIdEnum'>eBay API documentation</a> */
877
471
  marketplaceId?: string;
878
- /** @description A seller-defined name for this payment business policy. Names must be unique for policies assigned to the same marketplace.<br /><br /><b>Max length:</b> 64 */
879
472
  name?: string;
880
- /** @description <p class="tablenote"><b>Note:</b> NO LONGER SUPPORTED. Although this field may be returned for some older payment business policies, payment instructions are no longer supported by payment business policies. If this field is returned, it can be ignored and these payment instructions will not appear in any listings that use the corresponding business policy.</p>A free-form string field that allows sellers to add detailed payment instructions to their listings. */
881
473
  paymentInstructions?: string;
882
- /** @description This array shows the available payment methods that the seller has set for the payment business policy.<br /><br />Sellers do not have to specify any electronic payment methods for listings, so this array will often be returned empty unless the payment business policy is intended for motor vehicle listings or other items in categories where offline payments are required or supported. */
883
474
  paymentMethods?: (components["schemas"]["PaymentMethod"])[];
884
- /** @description A unique eBay-assigned ID for a payment business policy. This ID is generated when the policy is created. */
885
475
  paymentPolicyId?: string;
886
- /** @description An array of one or more errors or warnings that were generated during the processing of the request. If there were no issues with the request, this array will return empty. */
887
476
  warnings?: (components["schemas"]["Error"])[];
888
477
  };
889
- /** @description Complex type that that gets populated with a response containing a return policy. */
890
478
  SetReturnPolicyResponse: {
891
- /** @description This field always returns <code>ALL_EXCLUDING_MOTORS_VEHICLES</code> for return business policies, since return business policies are not applicable to motor vehicle listings. */
892
479
  categoryTypes?: (components["schemas"]["CategoryType"])[];
893
- /** @description A seller-defined description of the return business policy. This description is only for the seller's use, and is not exposed on any eBay pages. This field is returned if set for the policy. <br/><br/><b>Max length</b>: 250 */
894
480
  description?: string;
895
- /** @description <p class="tablenote"><span style="color: #dd1e31;"><b>Important!</b></span> This field is deprecated, since eBay no longer supports extended holiday returns. This field should no longer be returned.</p> */
896
481
  extendedHolidayReturnsOffered?: boolean;
897
- /** @description This container is used by the seller to specify a separate international return policy, and will only be returned if the seller has set a separate return policy for international orders. If a separate international return policy is not defined by a seller, all of the domestic return policy settings will also apply to international orders. */
898
482
  internationalOverride?: components["schemas"]["InternationalReturnOverrideType"];
899
- /** @description The ID of the eBay marketplace to which this return business policy applies. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/account/types/ba:MarketplaceIdEnum'>eBay API documentation</a> */
900
483
  marketplaceId?: string;
901
- /** @description A seller-defined name for this return business policy. Names must be unique for policies assigned to the same marketplace.<br /><br /><b>Max length:</b> 64 */
902
484
  name?: string;
903
- /** @description If a seller indicates that they will accept buyer returns, this value will be <code>MONEY_BACK</code>. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/account/types/api:RefundMethodEnum'>eBay API documentation</a> */
904
485
  refundMethod?: string;
905
- /** @description <p class="tablenote"><span style="color: #dd1e31;"><b>Important!</b></span> This field is deprecated, since eBay no longer allows sellers to charge a restocking fee for buyer remorse returns.</p> */
906
486
  restockingFeePercentage?: string;
907
- /** @description This text-based field provides more details on seller-specified return instructions. <p class="tablenote"><span style="color: #dd1e31;"><b>Important!</b></span> This field is no longer supported on many eBay marketplaces. To see if a marketplace and eBay category does support this field, call <a href="/api-docs/sell/metadata/resources/marketplace/methods/getReturnPolicies">getReturnPolicies</a> method of the <b>Metadata API</b>. Then you will look for the <b>policyDescriptionEnabled</b> field with a value of <code>true</code> for the eBay category.</span></p><br/><b>Max length</b>: 5000 (8000 for DE) */
908
487
  returnInstructions?: string;
909
- /** @description This field will be returned if the seller is willing and able to offer a replacement item as an alternative to 'Money Back'. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/account/types/api:ReturnMethodEnum'>eBay API documentation</a> */
910
488
  returnMethod?: string;
911
- /** @description This container specifies the amount of days that the buyer has to return the item after receiving it. The return period begins when the item is marked "delivered" at the buyer's specified ship-to location. This container will be returned unless the business policy states that the seller does not accept returns. */
912
489
  returnPeriod?: components["schemas"]["TimeDuration"];
913
- /** @description A unique eBay-assigned ID for a return business policy. This ID is generated when the policy is created. */
914
490
  returnPolicyId?: string;
915
- /** @description If set to <code>true</code>, the seller accepts returns. If set to <code>false</code>, this field indicates that the seller does not accept returns. */
916
491
  returnsAccepted?: boolean;
917
- /** @description This field indicates who is responsible for paying for the shipping charges for returned items. The field can be set to either <code>BUYER</code> or <code>SELLER</code>. <br/><br/>Note that the seller is always responsible for return shipping costs for SNAD-related issues. <br/><br/>This container will be returned unless the business policy states that the seller does not accept returns. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/account/types/api:ReturnShippingCostPayerEnum'>eBay API documentation</a> */
918
492
  returnShippingCostPayer?: string;
919
- /** @description An array of one or more errors or warnings that were generated during the processing of the request. If there were no issues with the request, this array will return empty. */
920
493
  warnings?: (components["schemas"]["Error"])[];
921
494
  };
922
- /** @description This type is used by the <b>shippingOptions</b> array, which is used to provide detailed information on the domestic and international shipping options available for the policy. A separate <b>ShippingOption</b> object covers domestic shipping service options and international shipping service options (if the seller ships to international locations). */
923
495
  ShippingOption: {
924
- /** @description This field defines whether the shipping cost model is <code>FLAT_RATE</code> (the same rate for all buyers, or buyers within a region if shipping rate tables are used) or <code>CALCULATED</code> (the shipping rate varies by the ship-to location and size and weight of the package). <br/><br/>This field is conditionally required if any shipping service options are specified (domestic and/or international). For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/account/types/api:ShippingCostTypeEnum'>eBay API documentation</a> */
925
496
  costType?: string;
926
- /** @description This field has been deprecated. <br/><br/>Shipping insurance is offered only via a shipping carrier's shipping services and is no longer available via eBay shipping policies. */
927
497
  insuranceFee?: components["schemas"]["Amount"];
928
- /** @description This field has been deprecated. <br/><br/>Shipping insurance is offered only via a shipping carrier's shipping services and is no longer available via eBay shipping policies. */
929
498
  insuranceOffered?: boolean;
930
- /** @description This field is used to indicate if the corresponding shipping service options (under <b>shippingServices</b> array) are domestic or international shipping service options. This field is conditionally required if any shipping service options are specified (domestic and/or international). For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/account/types/api:ShippingOptionTypeEnum'>eBay API documentation</a> */
931
499
  optionType?: string;
932
- /** @description This container is used if the seller adds handling charges to domestic and/or international shipments. <br/><br/>Sellers can not specify any domestic handling charges if they offered 'free shipping' in the policy.<br/><br/>This container will only be returned if set for the policy. */
933
500
  packageHandlingCost?: components["schemas"]["Amount"];
934
- /** @description This field is used if the seller wants to associate a domestic or international shipping rate table to the fulfillment business policy. The <a href="/api-docs/sell/account/resources/rate_table/methods/getRateTables">getRateTables</a> method can be used to retrieve shipping rate table IDs.<br/><br/>With domestic and international shipping rate tables, the seller can set different shipping costs based on shipping regions and shipping speed/level of service (one-day, expedited, standard, economy). There are also options to additional per-weight and handling charges.<br/><br/>Sellers need to be careful that shipping rate tables match the corresponding shipping service options. In other words, a domestic shipping rate table must not be specified in the same container where international shipping service options are being specified, and vice versa, and the shipping speed/level of service of the provided shipping service options should match the shipping speed/level of service options that are defined in the shipping rate tables. <br /><br />For example, if the corresponding shipping rate table defines costs for one-day shipping services, there should be at least one one-day shipping service option specified under the <b>shippingServices</b> array.<br/><br/>This field is returned if set. */
935
501
  rateTableId?: string;
936
- /** @description This array consists of the domestic or international shipping services options that are defined for the policy. The shipping service options defined under this array should match what is set in the corresponding <b>shippingOptions.optionType</b> field (which controls whether domestic or international shipping service options are being defined). If a shipping rate table is being used, the specified shipping service options should also match the shipping rate table settings (domestic or international, shipping speed/level of service, etc.) <br/><br/>Sellers can specify up to four domestic shipping services and up to five international shipping service options by using separate <b>shippingService</b> containers for each. If the seller is using the Global Shipping Program as an international option, only a total of four international shipping service options (including GSP) can be offered. <br/><br/> See <a href="/api-docs/sell/static/seller-accounts/ht_shipping-setting-shipping-carrier-and-service-values.html" target="_blank">How to set up shipping carrier and shipping service values</a>. <br /><br />To use the eBay standard envelope service (eSE), see <a href="/api-docs/sell/static/seller-accounts/using-the-ebay-standard-envelope-service.html" target="_blank">Using eBay standard envelope (eSE) service</a>.<br /><br />This array is conditionally required if the seller is offering one or more domestic and/or international shipping service options. */
937
502
  shippingServices?: (components["schemas"]["ShippingService"])[];
938
503
  };
939
- /** @description This type is used by the <b>shippingServices</b> array, an array that provides details about every domestic and international shipping service option that is defined for the policy. */
940
504
  ShippingService: {
941
- /** @description This container is used by the seller to cover the use case when a single buyer purchases multiple quantities of the same line item. This cost cannot exceed the corresponding <b>shippingCost</b> value. A seller will generally set this field when he/she wants to pass on a shipping discount to the buyer if that buyer purchases multiple quantities of a line item. <br /><br />The seller can ship multiple quantities of the line item in the same package and pass on the shipping savings to the buyer.<br/><br/>If this field is not set, and a buyer purchases multiple quantities of an item, the seller can technically charge the same cost set in the <b>shippingCost</b> container for each individual item, but in general, it behooves both the seller and the buyer (and saves both parties money) if they discuss combined shipping.<br/><br/>This field is not applicable to auction listings or single-quantity, fixed-price listings.<br/><br/>This container is returned if set. */
942
505
  additionalShippingCost?: components["schemas"]["Amount"];
943
- /** @description This field should be included and set to <code>true</code> for a motor vehicle listing if it will be the buyer's responsibility to pick up the purchased motor vehicle after full payment is made. <br /><br />This field is only applicable to motor vehicle listings. In the majority of motor vehicle listings, the seller does make the buyer responsible for pickup or shipment of the vehicle. <br/><br/>This field is returned if set.<br/><br/><b>Default</b>: false */
944
506
  buyerResponsibleForPickup?: boolean;
945
- /** @description This field should be included and set to <code>true</code> for a motor vehicle listing if it will be the buyer's responsibility to arrange for shipment of a purchased motor vehicle after full payment is made. <br /><br />This field is only applicable to motor vehicle listings. In the majority of motor vehicle listings, the seller does make the buyer responsible for pickup or shipment of the vehicle. <br/><br/>This field is returned if set.<br/><br/><b>Default</b>: false */
946
507
  buyerResponsibleForShipping?: boolean;
947
- /** @description This container is used if the seller charges a Cash on Delivery (COD) fee. <ul><li>This fee will only be applicable in the case of a 'local pickup', and if one of the specified offline payment methods is a 'cash on pickup' or 'cash on delivery' option. </li><li>This fee is added to the total cost of the item, and the total cost is due from the buyer upon the delivery of the item.</li></ul>This container is returned if set. */
948
508
  cashOnDeliveryFee?: components["schemas"]["Amount"];
949
- /** @description This field is included and set to <code>true</code> if the seller offers a free shipping option to the buyer. <br /><br />This field can only be included and set to <code>true</code> for the first domestic shipping service option specified in the <b>shippingServices</b> container (it is ignored if set for subsequent shipping services or for any international shipping service option). <br /><br />The first specified shipping service option has a <b>sortOrder</b> value of <code>1</code> or if the <b>sortOrderId</b> field is not used, it is the shipping service option that's specified first in the <b>shippingServices</b> container.<br/><br/>This container is returned if set. */
950
509
  freeShipping?: boolean;
951
- /** @description This field sets/indicates the shipping carrier, such as <code>USPS</code>, <code>FedEx</code>, or <code>UPS</code>. Although this field uses the <b>string</b> type, the seller must pass in a pre-defined enumeration value here. <br /><br />For a full list of shipping carrier enum values for a specified eBay marketplace, the <b>GeteBayDetails</b> call of the <b>Trading API</b> can be used, and the <b>DetailName</b> field's value should be set to <code>ShippingCarrierDetails</code>. The enum values for each shipping carriers can be found in each <b>ShippingCarrierDetails.ShippingCarrier</b> field in the response payload.<br/><br/> This field is actually optional, as the shipping carrier is also tied into the <b>shippingServiceCode</b> enum value, and that field is required for every specified shipping service option.<br/><br/>This field is returned if set. */
952
510
  shippingCarrierCode?: string;
953
- /** @description This container is used to set the shipping cost to ship one item using the corresponding shipping service option. This container is conditionally required if the seller is using flat-rate shipping and is not using a domestic or international shipping rate table. <br /><br />This container is not necessary for calculated shipping, since eBay will calculate the shipping cost and display it in the View Item page based off of the potential buyer's ship-to location.<br/><br/>This value is automatically set to <code>0.0</code> for the first specified domestic shipping service option and if the corresponding <b>freeShipping</b> field is set to <code>true</code>. <br/><br/>This container is returned if set for the policy. */
954
511
  shippingCost?: components["schemas"]["Amount"];
955
- /** @description This field sets/indicates the domestic or international shipping service option, such as <code>USPSPriority</code>, <code>FedEx2Day</code>, or <code>UPS3rdDay</code>. Although this field uses the <b>string</b> type, the seller must pass in a pre-defined enumeration value here. <br /><br />For a full list of shipping service option enum values for a specified eBay marketplace, the <b>GeteBayDetails</b> call of the <b>Trading API</b> can be used, and the <b>DetailName</b> field's value should be set to <code>ShippingServiceDetails</code>. <br /><br />The enum values for each shipping service option can be found in each <b>ShippingServiceDetails.ShippingService</b> field in the response payload. The seller must make sure that the shipping service option is still valid, which is indicated by a <code>true</code> value in the corresponding <b>ValidForSellingFlow</b> boolean field. International shipping service options are typically returned at the top of the response payload, and are indicated by an <b>InternationalService</b> boolean field that reads <code>true</code>. <br /><br />The <b>InternationalService</b> boolean field is not returned at all for domestic shipping service options. <br/><br/> This field is required for every specified shipping service option.<br/><br/>This field is returned if set. */
956
512
  shippingServiceCode?: string;
957
- /** @description This container is used to set the ship-to locations applicable to the corresponding shipping service option. Although the <b>regionExcluded</b> container is defined for <b>RegionSet</b> type and could technically be used here, it is recommened that only the <b>regionIncluded</b> container be used at the shipping service level. The excluded shipping regions (if any) can instead be set up in the top-level <b>regionExcluded</b> container. <br /><br />The <b>regionIncluded</b> and <b>regionExcluded</b> containers define the geographical regions/countries/states or provinces/domestic regions where the seller does and doesn't ship to with this fulfillment policy.<br/><br/>To retrieve the valid geographical shipping region values, two-digit country values, or special domestic regions for an eBay marketplace, call <b>GeteBayDetails</b> with <b>DetailName</b> value set to <code>ExcludeShippingLocationDetails</code>, then review the <b>ExcludeShippingLocationDetails</b> containers in the response for the strings you use in the <b>regionIncluded.regionName</b> field. <ul><li>For valid geographical region names, look for the <code>ExcludeShippingLocationDetails</code> containers in the <b>GeteBayDetails</b> response where the <b>Region</b> value is <code>Worldwide</code>, and the valid values will be shown in the corresponding <b>Location</b> fields.</li> <li>For valid two-digit country codes, look for <code>ExcludeShippingLocationDetails</code> in the <b>GeteBayDetails</b> response where the <b>Region</b> value is one of the defined geographical regions, and the valid values will be shown in the corresponding <b>Location</b> fields. Alternatively, you can find the two-digit country code values in the <a href="/api-docs/sell/account/types/ba:CountryCodeEnum">CountryCodeEnum</a> type definition.</li> <li>For valid domestic region values, look for <code>ExcludeShippingLocationDetails</code> in the <b>GeteBayDetails</b> response where the <b>Region</b> value is either <code>Domestic Location</code> or <code>Additional Locations</code>, and the valid values will be shown in the corresponding <b>Location</b> fields.</li></ul> The <code>STATE_OR_PROVINCE</code> region type is only applicable to the US and Canada, and valid values for US states are the same <a href="https://about.usps.com/who-we-are/postal-history/state-abbreviations.htm ">two-digit abbreviations</a> used by the United States Postal Service, and valid values for Canadian provinces and territories are the same <a href="https://www.canadapost-postescanada.ca/cpc/en/support/articles/addressing-guidelines/symbols-and-abbreviations.page ">two-digit abbreviations</a> used by the Canada Post. */
958
513
  shipToLocations?: components["schemas"]["RegionSet"];
959
- /**
960
- * Format: int32
961
- * @description The integer value set in this field controls the order of the corresponding domestic or international shipping service option in the View Item and Checkout pages. <br/><br/>Sellers can specify up to four domestic shipping services (in four separate <b>shippingService</b> containers), so valid values are 1, 2, 3, and 4. A shipping service option with a <b>sortOrder</b> value of <code>1</code> appears at the top of View Item and Checkout pages. Conversely, a shipping service option with a <b>sortOrder</b> value of <code>1</code> appears at the bottom of the list. <br/><br/>Sellers can specify up to five international shipping services (in five separate <b>shippingService</b> containers), so valid values for international shipping services are 1, 2, 3, 4, and 5. Similarly to domestic shipping service options, the <b>sortOrder</b> value of a international shipping service option controls the placement of that shipping service option in the View Item and Checkout pages. <br/><br/>If the <b>sortOrder</b> field is not supplied, the order of domestic and international shipping service options is determined by the order in which they are listed in the API call. <br/><br/><b>Min</b>: 1. <b>Max</b>: 4 (for domestic shipping service) or 5 (for international shipping service).
962
- */
963
514
  sortOrder?: number;
964
- /** @description <span class="tablenote"> <strong>Note:</strong> DO NOT USE THIS FIELD. Shipping surcharges for domestic shipping service options can no longer be set with fulfillment business policies, except through shipping rate tables. <br /><br />To do this, a seller would set up a surcharge-based shipping rate table and specify the surcharge in that table. Then, the seller would need to associate this shipping rate table to the fulfillment business policy by specifying the unique ID of the shipping rate table through the <b>shippingOptions.rateTableId</b> field. </span>Shipping surcharges cannot be applied at all to international shipping service options. */
965
515
  surcharge?: components["schemas"]["Amount"];
966
516
  };
967
- /** @description This type is used to express the special operating hours of a store location on a specific date. A <strong>specialHours</strong> container is needed when the store's opening hours on a specific date are different than the normal operating hours on that particular day of the week. */
968
517
  SpecialHours: {
969
- /** @description A <strong>date</strong> value is required for each specific date that the store location has special operating hours. <br/><br/>The timestamp is formatted as an <a href="https://www.iso.org/iso-8601-date-and-time-format.html " title="https://www.iso.org " target="_blank">ISO 8601</a> string, which is based on the 24-hour Coordinated Universal Time (UTC) clock. <br/><br/><b>Format:</b> <code>[YYYY]-[MM]-[DD]T[hh]:[mm]:[ss].[sss]Z</code> <br/><b>Example:</b> <code>2018-08-04T07:09:00.000Z</code> <br/><br/>This field is returned if set for the store location. */
970
518
  date?: string;
971
- /** @description This container is used to define the opening and closing times of a store on a specific date (defined in the <strong>date</strong> field). An <strong>intervals</strong> container is needed for each specific date that the store has special operating hours. These special operating hours on the specific date override the normal operating hours for the specific day of the week. If a store location closes for lunch (or any other period during the day) and then reopens, multiple <strong>open</strong> and <strong>close</strong> pairs are needed. <br/><br/>This container is returned if set for the store location. */
972
519
  intervals?: (components["schemas"]["Interval"])[];
973
520
  };
974
- /** @description This type is used by the <strong>getSubscription</strong> response container, which defines the subscription types and levels for the seller account. */
975
521
  Subscription: {
976
- /** @description The marketplace with which the subscription is associated. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/account/types/ba:MarketplaceIdEnum'>eBay API documentation</a> */
977
522
  marketplaceId?: string;
978
- /** @description The subscription ID. */
979
523
  subscriptionId?: string;
980
- /** @description The subscription level. For example, subscription levels for an eBay store include Starter, Basic, Featured, Anchor, and Enterprise levels. */
981
524
  subscriptionLevel?: string;
982
- /** @description The kind of entity with which the subscription is associated, such as an eBay store. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/account/types/api:SubscriptionTypeEnum'>eBay API documentation</a> */
983
525
  subscriptionType?: string;
984
- /** @description The term of the subscription plan (typically in months). */
985
526
  term?: components["schemas"]["TimeDuration"];
986
527
  };
987
- /** @description This type is used by the response payload for the <b>getSubscription</b> method.<br /><br /><span class="tablenote"><b>Note</b>: Pagination has not yet been enabled for <b>getSubscription</b>, so all of the pagination-related fields are for future use.</span> */
988
528
  SubscriptionResponse: {
989
- /** @description This field is for future use. */
990
529
  href?: string;
991
- /**
992
- * Format: int32
993
- * @description This field is for future use.
994
- */
995
530
  limit?: number;
996
- /** @description This field is for future use. */
997
531
  next?: string;
998
- /** @description An array of subscriptions associated with the seller account. */
999
532
  subscriptions?: (components["schemas"]["Subscription"])[];
1000
- /**
1001
- * Format: int32
1002
- * @description The total number of subscriptions displayed on the current page of results.
1003
- */
1004
533
  total?: number;
1005
534
  };
1006
- /** @description A type used to specify a period of time using a specified time-measurement unit. Payment, return, and fulfillment business policies all use this type to specify time windows.<br/><br/>Whenever a container that uses this type is used in a request, both of these fields are required. Similarly, whenever a container that uses this type is returned in a response, both of these fields are always returned. */
1007
535
  TimeDuration: {
1008
- /** @description These enum values represent the time measurement unit, such as <code>DAY</code>. A span of time is defined when you apply the value specified in the <b>value</b> field to the value specified for <b>unit</b>. <br/><br/>See <b>TimeDurationUnitEnum</b> for a complete list of possible time-measurement units. For implementation help, refer to <a href='https://developer.ebay.com/api-docs/sell/account/types/ba:TimeDurationUnitEnum'>eBay API documentation</a> */
1009
536
  unit?: string;
1010
- /**
1011
- * Format: int32
1012
- * @description An integer that represents an amount of time, as measured by the time-measurement unit specified in the <b>unit</b> field.
1013
- */
1014
537
  value?: number;
1015
538
  };
1016
539
  };
@@ -1022,47 +545,37 @@ export interface components {
1022
545
  }
1023
546
  export type external = Record<string, never>;
1024
547
  export interface operations {
1025
- /** @description This method retrieves the list of custom policies specified by the <b>policy_types</b> query parameter for the selected eBay marketplace.<br/> <br/> <span class="tablenote"><strong>Note:</strong> The following eBay marketplaces support Custom Policies: <ul><li>Germany (EBAY_DE)</li> <li>Canada (EBAY_CA)</li> <li>Australia (EBAY_AU)</li> <li>United States (EBAY_US)</li> <li>France (EBAY_FR)</li></ul></span><br/><br/>For details on header values, see <a href="/api-docs/static/rest-request-components.html#HTTP" target="_blank">HTTP request headers</a>. */
1026
548
  getCustomPolicies: {
1027
549
  parameters: {
1028
550
  query?: {
1029
- /** @description This query parameter specifies the type of custom policies to be returned.<br /><br />Multiple policy types may be requested in a single call by providing a comma-delimited set of all policy types to be returned.<br/><br/><span class="tablenote"><strong>Note:</strong> Omitting this query parameter from a request will also return policies of all policy types.</span><br/><br/>Two Custom Policy types are supported: <ul><li>Product Compliance (PRODUCT_COMPLIANCE)</li> <li>Takeback (TAKE_BACK)</li></ul> */
1030
551
  policy_types?: string;
1031
552
  };
1032
553
  header: {
1033
- /** @description This header parameter specifies the eBay markeplace for the custom policy that is being created. Supported values for this header can be found in the <a href="/api-docs/sell/account/types/ba:MarketplaceIdEnum" target="_blank">MarketplaceIdEnum</a> type definition.<br/> <br/> <span class="tablenote"><strong>Note:</strong> The following eBay marketplaces support Custom Policies: <ul><li>Germany (EBAY_DE)</li> <li>Canada (EBAY_CA)</li> <li>Australia (EBAY_AU)</li> <li>United States (EBAY_US)</li> <li>France (EBAY_FR)</li></ul></span> */
1034
554
  "X-EBAY-C-MARKETPLACE-ID": string;
1035
555
  };
1036
556
  };
1037
557
  responses: {
1038
- /** @description Success */
1039
558
  200: {
1040
559
  content: {
1041
560
  "application/json": components["schemas"]["CustomPolicyResponse"];
1042
561
  };
1043
562
  };
1044
- /** @description Bad Request */
1045
563
  400: never;
1046
- /** @description Internal Server Error */
1047
564
  500: never;
1048
565
  };
1049
566
  };
1050
- /** @description This method creates a new custom policy in which a seller specifies their terms for complying with local governmental regulations. <br/><br/>Two Custom Policy types are supported: <ul><li>Product Compliance (PRODUCT_COMPLIANCE)</li> <li>Takeback (TAKE_BACK)</li></ul>Each Custom Policy targets a <b>policyType</b> and <b>eBay marketplace</b> combination. Multiple policies may be created as follows: <ul><li><b>Product Compliance</b>: a maximum of 10 policies per eBay marketplace may be created</li> <li><b>Takeback</b>: a maximum of 3 policies per eBay marketplace may be created</li></ul>A successful create policy call returns an HTTP status code of <b>201 Created</b> with the system-generated policy ID included in the <b>Location</b> response header.<br/><br/><b>Product Compliance Policy</b><br/><br/>Product Compliance policies disclose product information as required for regulatory compliance.<br/><br/><span class="tablenote"><strong>Note:</strong> A maximum of 10 Product Compliance policies per eBay marketplace may be created.</span> <br/><br/> <b>Takeback Policy</b><br/><br/>Takeback policies describe the seller's legal obligation to take back a previously purchased item when the buyer purchases a new one.<br/><br/><span class="tablenote"><strong>Note:</strong> A maximum of 3 Takeback policies per eBay marketplace may be created.</span> */
1051
567
  createCustomPolicy: {
1052
568
  parameters: {
1053
569
  header: {
1054
- /** @description This header parameter specifies the eBay markeplace for the custom policy that is being created. Supported values for this header can be found in the <a href="/api-docs/sell/account/types/ba:MarketplaceIdEnum" target="_blank">MarketplaceIdEnum</a> type definition.<br/> <br/> <span class="tablenote"><strong>Note:</strong> The following eBay marketplaces support Custom Policies: <ul><li>Germany (EBAY_DE)</li> <li>Canada (EBAY_CA)</li> <li>Australia (EBAY_AU)</li> <li>United States (EBAY_US)</li> <li>France (EBAY_FR)</li></ul></span> */
1055
570
  "X-EBAY-C-MARKETPLACE-ID": string;
1056
571
  };
1057
572
  };
1058
- /** @description Request to create a new Custom Policy. */
1059
573
  requestBody: {
1060
574
  content: {
1061
575
  "application/json": components["schemas"]["CustomPolicyCreateRequest"];
1062
576
  };
1063
577
  };
1064
578
  responses: {
1065
- /** @description Created */
1066
579
  201: {
1067
580
  headers: {
1068
581
  Location?: string;
@@ -1071,82 +584,60 @@ export interface operations {
1071
584
  "application/json": Record<string, never>;
1072
585
  };
1073
586
  };
1074
- /** @description Bad Request */
1075
587
  400: never;
1076
- /** @description Policy Name already used/ Maximum no of policies per site reached */
1077
588
  409: never;
1078
- /** @description Internal Server Error */
1079
589
  500: never;
1080
590
  };
1081
591
  };
1082
- /** @description This method retrieves the custom policy specified by the <b>custom_policy_id</b> path parameter for the selected eBay marketplace.<br/> <br/> <span class="tablenote"><strong>Note:</strong> The following eBay marketplaces support Custom Policies: <ul><li>Germany (EBAY_DE)</li> <li>Canada (EBAY_CA)</li> <li>Australia (EBAY_AU)</li> <li>United States (EBAY_US)</li> <li>France (EBAY_FR)</li></ul></span><br/><br/>For details on header values, see <a href="/api-docs/static/rest-request-components.html#HTTP" target="_blank">HTTP request headers</a>. */
1083
592
  getCustomPolicy: {
1084
593
  parameters: {
1085
594
  header: {
1086
- /** @description This header parameter specifies the eBay markeplace for the custom policy that is being created. Supported values for this header can be found in the <a href="/api-docs/sell/account/types/ba:MarketplaceIdEnum" target="_blank">MarketplaceIdEnum</a> type definition.<br/> <br/> <span class="tablenote"><strong>Note:</strong> The following eBay marketplaces support Custom Policies: <ul><li>Germany (EBAY_DE)</li> <li>Canada (EBAY_CA)</li> <li>Australia (EBAY_AU)</li> <li>United States (EBAY_US)</li> <li>France (EBAY_FR)</li></ul></span> */
1087
595
  "X-EBAY-C-MARKETPLACE-ID": string;
1088
596
  };
1089
597
  path: {
1090
- /** @description This path parameter is the unique custom policy identifier for the policy to be returned.<br/><br/><span class="tablenote"><strong>Note:</strong> This value is automatically assigned by the system when the policy is created.</span> */
1091
598
  custom_policy_id: string;
1092
599
  };
1093
600
  };
1094
601
  responses: {
1095
- /** @description Success */
1096
602
  200: {
1097
603
  content: {
1098
604
  "application/json": components["schemas"]["CustomPolicy"];
1099
605
  };
1100
606
  };
1101
- /** @description Bad Request */
1102
607
  400: never;
1103
- /** @description Not Found */
1104
608
  404: never;
1105
- /** @description Internal Server Error */
1106
609
  500: never;
1107
610
  };
1108
611
  };
1109
- /** @description This method updates an existing custom policy specified by the <b>custom_policy_id</b> path parameter for the selected marketplace. This method overwrites the policy's <b>Name</b>, <b>Label</b>, and <b>Description</b> fields. Therefore, the complete, current text of all three policy fields must be included in the request payload even when one or two of these fields will not actually be updated.<br/> <br/>For example, the value for the <b>Label</b> field is to be updated, but the <b>Name</b> and <b>Description</b> values will remain unchanged. The existing <b>Name</b> and <b>Description</b> values, as they are defined in the current policy, must also be passed in. <br/><br/>A successful policy update call returns an HTTP status code of <b>204 No Content</b>.<br/><br/><span class="tablenote"><strong>Note:</strong> The following eBay marketplaces support Custom Policies: <ul><li>Germany (EBAY_DE)</li> <li>Canada (EBAY_CA)</li> <li>Australia (EBAY_AU)</li> <li>United States (EBAY_US)</li> <li>France (EBAY_FR)</li></ul></span><br/><br/>For details on header values, see <a href="/api-docs/static/rest-request-components.html#HTTP">HTTP request headers</a>. */
1110
612
  updateCustomPolicy: {
1111
613
  parameters: {
1112
614
  header: {
1113
- /** @description This header parameter specifies the eBay markeplace for the custom policy that is being created. Supported values for this header can be found in the <a href="/api-docs/sell/account/types/ba:MarketplaceIdEnum" target="_blank">MarketplaceIdEnum</a> type definition.<br/> <br/> <span class="tablenote"><strong>Note:</strong> The following eBay marketplaces support Custom Policies: <ul><li>Germany (EBAY_DE)</li> <li>Canada (EBAY_CA)</li> <li>Australia (EBAY_AU)</li> <li>United States (EBAY_US)</li> <li>France (EBAY_FR)</li></ul></span> */
1114
615
  "X-EBAY-C-MARKETPLACE-ID": string;
1115
616
  };
1116
617
  path: {
1117
- /** @description This path parameter is the unique custom policy identifier for the policy to be returned.<br/><br/><span class="tablenote"><strong>Note:</strong> This value is automatically assigned by the system when the policy is created.</span> */
1118
618
  custom_policy_id: string;
1119
619
  };
1120
620
  };
1121
- /** @description Request to update a current custom policy. */
1122
621
  requestBody: {
1123
622
  content: {
1124
623
  "application/json": components["schemas"]["CustomPolicyRequest"];
1125
624
  };
1126
625
  };
1127
626
  responses: {
1128
- /** @description No Content */
1129
627
  204: never;
1130
- /** @description Bad Request */
1131
628
  400: never;
1132
- /** @description Not Found */
1133
629
  404: never;
1134
- /** @description Policy Name already used/ Maximum no of policies per site reached */
1135
630
  409: never;
1136
- /** @description Internal Server Error */
1137
631
  500: never;
1138
632
  };
1139
633
  };
1140
- /** @description This method creates a new fulfillment policy where the policy encapsulates seller's terms for fulfilling item purchases. Fulfillment policies include the shipment options that the seller offers to buyers. <br/><br/>Each policy targets a specific eBay marketplace and a category group type, and you can create multiple policies for each combination. <br/><br/>A successful request returns the <b>getFulfillmentPolicy</b> URI to the new policy in the <b>Location</b> response header and the ID for the new policy is returned in the response payload. <p class="tablenote"><b>Tip:</b> For details on creating and using the business policies supported by the Account API, see <a href="/api-docs/sell/static/seller-accounts/business-policies.html">eBay business policies</a>.</p> <p><b>Using the eBay standard envelope service (eSE)</b></p> <p>The eBay standard envelope service (eSE) is a domestic envelope service with tracking through eBay. This service applies to specific Trading Cards categories (not all categories are supported), and to Coins & Paper Money, Postcards, and Stamps. See <a href="/api-docs/sell/static/seller-accounts/using-the-ebay-standard-envelope-service.html" target="_blank">Using the eBay standard envelope (eSE) service</a>.</p> */
1141
634
  createFulfillmentPolicy: {
1142
- /** @description Request to create a seller account fulfillment policy. */
1143
635
  requestBody: {
1144
636
  content: {
1145
637
  "application/json": components["schemas"]["FulfillmentPolicyRequest"];
1146
638
  };
1147
639
  };
1148
640
  responses: {
1149
- /** @description Created */
1150
641
  201: {
1151
642
  headers: {
1152
643
  Location?: string;
@@ -1155,160 +646,119 @@ export interface operations {
1155
646
  "application/json": components["schemas"]["SetFulfillmentPolicyResponse"];
1156
647
  };
1157
648
  };
1158
- /** @description Bad Request */
1159
649
  400: never;
1160
- /** @description Internal Server Error */
1161
650
  500: never;
1162
651
  };
1163
652
  };
1164
- /** @description This method retrieves the complete details of a fulfillment policy. Supply the ID of the policy you want to retrieve using the <b>fulfillmentPolicyId</b> path parameter. */
1165
653
  getFulfillmentPolicy: {
1166
654
  parameters: {
1167
655
  path: {
1168
- /** @description This path parameter specifies the ID of the fulfillment policy you want to retrieve. */
1169
656
  fulfillmentPolicyId: string;
1170
657
  };
1171
658
  };
1172
659
  responses: {
1173
- /** @description Success */
1174
660
  200: {
1175
661
  content: {
1176
662
  "application/json": components["schemas"]["FulfillmentPolicy"];
1177
663
  };
1178
664
  };
1179
- /** @description Bad Request */
1180
665
  400: never;
1181
- /** @description Not Found */
1182
666
  404: never;
1183
- /** @description Internal Server Error */
1184
667
  500: never;
1185
668
  };
1186
669
  };
1187
- /** @description This method updates an existing fulfillment policy. Specify the policy you want to update using the <b>fulfillment_policy_id</b> path parameter. Supply a complete policy payload with the updates you want to make; this call overwrites the existing policy with the new details specified in the payload. */
1188
670
  updateFulfillmentPolicy: {
1189
671
  parameters: {
1190
672
  path: {
1191
- /** @description This path parameter specifies the ID of the fulfillment policy you want to update. */
1192
673
  fulfillmentPolicyId: string;
1193
674
  };
1194
675
  };
1195
- /** @description Fulfillment policy request */
1196
676
  requestBody: {
1197
677
  content: {
1198
678
  "application/json": components["schemas"]["FulfillmentPolicyRequest"];
1199
679
  };
1200
680
  };
1201
681
  responses: {
1202
- /** @description OK */
1203
682
  200: {
1204
683
  content: {
1205
684
  "application/json": components["schemas"]["SetFulfillmentPolicyResponse"];
1206
685
  };
1207
686
  };
1208
- /** @description Bad Request */
1209
687
  400: never;
1210
- /** @description Not Found */
1211
688
  404: never;
1212
- /** @description Internal Server Error */
1213
689
  500: never;
1214
690
  };
1215
691
  };
1216
- /** @description This method deletes a fulfillment policy. Supply the ID of the policy you want to delete in the <b>fulfillmentPolicyId</b> path parameter. */
1217
692
  deleteFulfillmentPolicy: {
1218
693
  parameters: {
1219
694
  path: {
1220
- /** @description This path parameter specifies the ID of the fulfillment policy to delete. */
1221
695
  fulfillmentPolicyId: string;
1222
696
  };
1223
697
  };
1224
698
  responses: {
1225
- /** @description No Content */
1226
699
  204: never;
1227
- /** @description Bad Request */
1228
700
  400: never;
1229
- /** @description Not Found */
1230
701
  404: never;
1231
- /** @description Conflict */
1232
702
  409: never;
1233
- /** @description Internal Server Error */
1234
703
  500: never;
1235
704
  };
1236
705
  };
1237
- /** @description This method retrieves all the fulfillment policies configured for the marketplace you specify using the <code>marketplace_id</code> query parameter. <br/><br/><b>Marketplaces and locales</b> <br/><br/>Get the correct policies for a marketplace that supports multiple locales using the <code>Content-Language</code> request header. For example, get the policies for the French locale of the Canadian marketplace by specifying <code>fr-CA</code> for the <code>Content-Language</code> header. Likewise, target the Dutch locale of the Belgium marketplace by setting <code>Content-Language: nl-BE</code>. For details on header values, see <a href="/api-docs/static/rest-request-components.html#HTTP" target="_blank">HTTP request headers</a>. */
1238
706
  getFulfillmentPolicies: {
1239
707
  parameters: {
1240
708
  query: {
1241
- /** @description This query parameter specifies the eBay marketplace of the policies you want to retrieve. For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/sell/account/types/ba:MarketplaceIdEnum */
1242
709
  marketplace_id: string;
1243
710
  };
1244
711
  };
1245
712
  responses: {
1246
- /** @description Success */
1247
713
  200: {
1248
714
  content: {
1249
715
  "application/json": components["schemas"]["FulfillmentPolicyResponse"];
1250
716
  };
1251
717
  };
1252
- /** @description Bad Request */
1253
718
  400: never;
1254
- /** @description Internal Server Error */
1255
719
  500: never;
1256
720
  };
1257
721
  };
1258
- /** @description This method retrieves the details for a specific fulfillment policy. In the request, supply both the policy <code>name</code> and its associated <code>marketplace_id</code> as query parameters. <br/><br/><b>Marketplaces and locales</b> <br/><br/>Get the correct policy for a marketplace that supports multiple locales using the <code>Content-Language</code> request header. For example, get a policy for the French locale of the Canadian marketplace by specifying <code>fr-CA</code> for the <code>Content-Language</code> header. Likewise, target the Dutch locale of the Belgium marketplace by setting <code>Content-Language: nl-BE</code>. For details on header values, see <a href="/api-docs/static/rest-request-components.html#HTTP">HTTP request headers</a>. */
1259
722
  getFulfillmentPolicyByName: {
1260
723
  parameters: {
1261
724
  query: {
1262
- /** @description This query parameter specifies the eBay marketplace of the policy you want to retrieve. For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/sell/account/types/ba:MarketplaceIdEnum */
1263
725
  marketplace_id: string;
1264
- /** @description This query parameter specifies the seller-defined name of the fulfillment policy you want to retrieve. */
1265
726
  name: string;
1266
727
  };
1267
728
  };
1268
729
  responses: {
1269
- /** @description Success */
1270
730
  200: {
1271
731
  content: {
1272
732
  "application/json": components["schemas"]["FulfillmentPolicy"];
1273
733
  };
1274
734
  };
1275
- /** @description Bad Request */
1276
735
  400: never;
1277
- /** @description Internal Server Error */
1278
736
  500: never;
1279
737
  };
1280
738
  };
1281
- /** @description This method retrieves all the payment policies configured for the marketplace you specify using the <code>marketplace_id</code> query parameter. <br/><br/><b>Marketplaces and locales</b> <br/><br/>Get the correct policies for a marketplace that supports multiple locales using the <code>Content-Language</code> request header. For example, get the policies for the French locale of the Canadian marketplace by specifying <code>fr-CA</code> for the <code>Content-Language</code> header. Likewise, target the Dutch locale of the Belgium marketplace by setting <code>Content-Language: nl-BE</code>. For details on header values, see <a href="/api-docs/static/rest-request-components.html#HTTP" target="_blank">HTTP request headers</a>. */
1282
739
  getPaymentPolicies: {
1283
740
  parameters: {
1284
741
  query: {
1285
- /** @description This query parameter specifies the eBay marketplace of the policies you want to retrieve. For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/sell/account/types/ba:MarketplaceIdEnum */
1286
742
  marketplace_id: string;
1287
743
  };
1288
744
  };
1289
745
  responses: {
1290
- /** @description Success */
1291
746
  200: {
1292
747
  content: {
1293
748
  "application/json": components["schemas"]["PaymentPolicyResponse"];
1294
749
  };
1295
750
  };
1296
- /** @description Bad Request */
1297
751
  400: never;
1298
- /** @description Internal Server Error */
1299
752
  500: never;
1300
753
  };
1301
754
  };
1302
- /** @description This method creates a new payment policy where the policy encapsulates seller's terms for order payments. <br/><br/>Each policy targets a specific eBay marketplace and category group, and you can create multiple policies for each combination. <br/><br/>A successful request returns the <b>getPaymentPolicy</b> URI to the new policy in the <b>Location</b> response header and the ID for the new policy is returned in the response payload. <p class="tablenote"><b>Tip:</b> For details on creating and using the business policies supported by the Account API, see <a href="/api-docs/sell/static/seller-accounts/business-policies.html">eBay business policies</a>.</p> */
1303
755
  createPaymentPolicy: {
1304
- /** @description Payment policy request */
1305
756
  requestBody: {
1306
757
  content: {
1307
758
  "application/json": components["schemas"]["PaymentPolicyRequest"];
1308
759
  };
1309
760
  };
1310
761
  responses: {
1311
- /** @description Created */
1312
762
  201: {
1313
763
  headers: {
1314
764
  Location?: string;
@@ -1317,292 +767,214 @@ export interface operations {
1317
767
  "application/json": components["schemas"]["SetPaymentPolicyResponse"];
1318
768
  };
1319
769
  };
1320
- /** @description Bad Request */
1321
770
  400: never;
1322
- /** @description Internal Server Error */
1323
771
  500: never;
1324
772
  };
1325
773
  };
1326
- /** @description This method retrieves the complete details of a payment policy. Supply the ID of the policy you want to retrieve using the <b>paymentPolicyId</b> path parameter. */
1327
774
  getPaymentPolicy: {
1328
775
  parameters: {
1329
776
  path: {
1330
- /** @description This path parameter specifies the ID of the payment policy you want to retrieve. */
1331
777
  payment_policy_id: string;
1332
778
  };
1333
779
  };
1334
780
  responses: {
1335
- /** @description Success */
1336
781
  200: {
1337
782
  content: {
1338
783
  "application/json": components["schemas"]["PaymentPolicy"];
1339
784
  };
1340
785
  };
1341
- /** @description Bad Request */
1342
786
  400: never;
1343
- /** @description Not Found */
1344
787
  404: never;
1345
- /** @description Internal Server Error */
1346
788
  500: never;
1347
789
  };
1348
790
  };
1349
- /** @description This method updates an existing payment policy. Specify the policy you want to update using the <b>payment_policy_id</b> path parameter. Supply a complete policy payload with the updates you want to make; this call overwrites the existing policy with the new details specified in the payload. */
1350
791
  updatePaymentPolicy: {
1351
792
  parameters: {
1352
793
  path: {
1353
- /** @description This path parameter specifies the ID of the payment policy you want to update. */
1354
794
  payment_policy_id: string;
1355
795
  };
1356
796
  };
1357
- /** @description Payment policy request */
1358
797
  requestBody: {
1359
798
  content: {
1360
799
  "application/json": components["schemas"]["PaymentPolicyRequest"];
1361
800
  };
1362
801
  };
1363
802
  responses: {
1364
- /** @description OK */
1365
803
  200: {
1366
804
  content: {
1367
805
  "application/json": components["schemas"]["SetPaymentPolicyResponse"];
1368
806
  };
1369
807
  };
1370
- /** @description Bad Request */
1371
808
  400: never;
1372
- /** @description Not Found */
1373
809
  404: never;
1374
- /** @description Internal Server Error */
1375
810
  500: never;
1376
811
  };
1377
812
  };
1378
- /** @description This method deletes a payment policy. Supply the ID of the policy you want to delete in the <b>paymentPolicyId</b> path parameter. */
1379
813
  deletePaymentPolicy: {
1380
814
  parameters: {
1381
815
  path: {
1382
- /** @description This path parameter specifies the ID of the payment policy you want to delete. */
1383
816
  payment_policy_id: string;
1384
817
  };
1385
818
  };
1386
819
  responses: {
1387
- /** @description No Content */
1388
820
  204: never;
1389
- /** @description Bad Request */
1390
821
  400: never;
1391
- /** @description Not Found */
1392
822
  404: never;
1393
- /** @description Conflict */
1394
823
  409: never;
1395
- /** @description Internal Server Error */
1396
824
  500: never;
1397
825
  };
1398
826
  };
1399
- /** @description This method retrieves the details of a specific payment policy. Supply both the policy <code>name</code> and its associated <code>marketplace_id</code> in the request query parameters. <br/><br/><b>Marketplaces and locales</b> <br/><br/>Get the correct policy for a marketplace that supports multiple locales using the <code>Content-Language</code> request header. For example, get a policy for the French locale of the Canadian marketplace by specifying <code>fr-CA</code> for the <code>Content-Language</code> header. Likewise, target the Dutch locale of the Belgium marketplace by setting <code>Content-Language: nl-BE</code>. For details on header values, see <a href="/api-docs/static/rest-request-components.html#HTTP">HTTP request headers</a>. */
1400
827
  getPaymentPolicyByName: {
1401
828
  parameters: {
1402
829
  query: {
1403
- /** @description This query parameter specifies the eBay marketplace of the policy you want to retrieve. For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/sell/account/types/ba:MarketplaceIdEnum */
1404
830
  marketplace_id: string;
1405
- /** @description This query parameter specifies the seller-defined name of the payment policy you want to retrieve. */
1406
831
  name: string;
1407
832
  };
1408
833
  };
1409
834
  responses: {
1410
- /** @description Success */
1411
835
  200: {
1412
836
  content: {
1413
837
  "application/json": components["schemas"]["PaymentPolicy"];
1414
838
  };
1415
839
  };
1416
- /** @description Bad Request */
1417
840
  400: never;
1418
- /** @description Internal Server Error */
1419
841
  500: never;
1420
842
  };
1421
843
  };
1422
- /** @description <span class="tablenote"><b>Note:</b> This method is no longer applicable, as all seller accounts globally have been enabled for the new eBay payment and checkout flow.</span><br/><br/>This method returns whether or not the user is opted-in to the specified payments program. Sellers opt-in to payments programs by marketplace and you use the <b>marketplace_id</b> path parameter to specify the marketplace of the status flag you want returned. */
1423
844
  getPaymentsProgram: {
1424
845
  parameters: {
1425
846
  path: {
1426
- /** @description This path parameter specifies the eBay marketplace of the payments program for which you want to retrieve the seller's status. */
1427
847
  marketplace_id: string;
1428
- /** @description This path parameter specifies the payments program whose status is returned by the call. */
1429
848
  payments_program_type: string;
1430
849
  };
1431
850
  };
1432
851
  responses: {
1433
- /** @description Success */
1434
852
  200: {
1435
853
  content: {
1436
854
  "application/json": components["schemas"]["PaymentsProgramResponse"];
1437
855
  };
1438
856
  };
1439
- /** @description Bad Request */
1440
857
  400: never;
1441
- /** @description Not Found */
1442
858
  404: never;
1443
- /** @description Internal Server Error */
1444
859
  500: never;
1445
860
  };
1446
861
  };
1447
- /** @description <span class="tablenote"><b>Note:</b> This method is no longer applicable, as all seller accounts globally have been enabled for the new eBay payment and checkout flow.</span><br/><br/>This method retrieves a seller's onboarding status for a payments program for a specified marketplace. The overall onboarding status of the seller and the status of each onboarding step is returned. */
1448
862
  getPaymentsProgramOnboarding: {
1449
863
  parameters: {
1450
864
  path: {
1451
- /** @description The eBay marketplace ID associated with the onboarding status to retrieve. */
1452
865
  marketplace_id: string;
1453
- /** @description The type of payments program whose status is returned by the method. */
1454
866
  payments_program_type: string;
1455
867
  };
1456
868
  };
1457
869
  responses: {
1458
- /** @description Success */
1459
870
  200: {
1460
871
  content: {
1461
872
  "application/json": components["schemas"]["PaymentsProgramOnboardingResponse"];
1462
873
  };
1463
874
  };
1464
- /** @description Bad Request */
1465
875
  400: never;
1466
- /** @description Not Found */
1467
876
  404: never;
1468
- /** @description Internal Server Error */
1469
877
  500: never;
1470
878
  };
1471
879
  };
1472
- /** @description This method retrieves the seller's current set of privileges, including whether or not the seller's eBay registration has been completed, as well as the details of their site-wide <b>sellingLimt</b> (the amount and quantity they can sell on a given day). */
1473
880
  getPrivileges: {
1474
881
  responses: {
1475
- /** @description Success */
1476
882
  200: {
1477
883
  content: {
1478
884
  "application/json": components["schemas"]["SellingPrivileges"];
1479
885
  };
1480
886
  };
1481
- /** @description Bad Request */
1482
887
  400: never;
1483
- /** @description Internal Server Error */
1484
888
  500: never;
1485
889
  };
1486
890
  };
1487
- /** @description This method gets a list of the seller programs that the seller has opted-in to. */
1488
891
  getOptedInPrograms: {
1489
892
  responses: {
1490
- /** @description Success */
1491
893
  200: {
1492
894
  content: {
1493
895
  "application/json": components["schemas"]["Programs"];
1494
896
  };
1495
897
  };
1496
- /** @description Bad Request */
1497
898
  400: never;
1498
- /** @description Not Found */
1499
899
  404: never;
1500
- /** @description Internal Server Error */
1501
900
  500: never;
1502
901
  };
1503
902
  };
1504
- /** @description This method opts the seller in to an eBay seller program. Refer to the <a href="/api-docs/sell/account/overview.html#opt-in" target="_blank">Account API overview</a> for information about available eBay seller programs.<br /><br /><span class="tablenote"><b>Note:</b> It can take up to 24-hours for eBay to process your request to opt-in to a Seller Program. Use the <a href="/api-docs/sell/account/resources/program/methods/getOptedInPrograms" target="_blank">getOptedInPrograms</a> call to check the status of your request after the processing period has passed.</span> */
1505
903
  optInToProgram: {
1506
- /** @description Program being opted-in to. */
1507
904
  requestBody: {
1508
905
  content: {
1509
906
  "application/json": components["schemas"]["Program"];
1510
907
  };
1511
908
  };
1512
909
  responses: {
1513
- /** @description Success */
1514
910
  200: {
1515
911
  content: {
1516
912
  "application/json": Record<string, never>;
1517
913
  };
1518
914
  };
1519
- /** @description Bad Request */
1520
915
  400: never;
1521
- /** @description Not Found */
1522
916
  404: never;
1523
- /** @description Conflict */
1524
917
  409: never;
1525
- /** @description Internal Server Error */
1526
918
  500: never;
1527
919
  };
1528
920
  };
1529
- /** @description This method opts the seller out of a seller program to which you have previously opted-in to. Get a list of the seller programs you have opted-in to using the <b>getOptedInPrograms</b> call. */
1530
921
  optOutOfProgram: {
1531
- /** @description Program being opted-out of. */
1532
922
  requestBody: {
1533
923
  content: {
1534
924
  "application/json": components["schemas"]["Program"];
1535
925
  };
1536
926
  };
1537
927
  responses: {
1538
- /** @description Success */
1539
928
  200: {
1540
929
  content: {
1541
930
  "application/json": Record<string, never>;
1542
931
  };
1543
932
  };
1544
- /** @description Bad Request */
1545
933
  400: never;
1546
- /** @description Not Found */
1547
934
  404: never;
1548
- /** @description Conflict */
1549
935
  409: never;
1550
- /** @description Internal Server Error */
1551
936
  500: never;
1552
937
  };
1553
938
  };
1554
- /** @description This method retrieves a seller's <i>shipping rate tables</i> for the country specified in the <b>country_code</b> query parameter. If you call this method without specifying a country code, the call returns all of the seller's shipping rate tables. <br/><br/>The method's response includes a <b>rateTableId</b> for each table defined by the seller. This <b>rateTableId</b> value is used in add/revise item call or in create/update fulfillment business policy call to specify the shipping rate table to use for that policy's domestic or international shipping options. <br/><br/>This call currently supports getting rate tables related to the following marketplaces:<ul><li><code>EBAY_AU</code></li> <li><code>EBAY_CA</code></li> <li><code>EBAY_DE</code></li> <li><code>EBAY_ES</code></li> <li><code>EBAY_FR</code></li> <li><code>EBAY_GB</code></li> <li><code>EBAY_IT</code></li> <li><code>EBAY_US</code></li></ul> <span class="tablenote"><b>Note:</b> Rate tables created with the Trading API might not have been assigned a <b>rateTableId</b> at the time of their creation. This method can assign and return <b>rateTableId</b> values for rate tables with missing IDs if you make a request using the <b>country_code</b> where the seller has defined rate tables.</span> <br/><br/>Sellers can define up to 40 shipping rate tables for their account, which lets them set up different rate tables for each of the marketplaces they sell into. Go to <a href="https://www.ebay.com/ship/rt ">Shipping rate tables</a> in <b>My eBay</b> to create and update rate tables. */
1555
939
  getRateTables: {
1556
940
  parameters: {
1557
941
  query?: {
1558
- /** @description This query parameter specifies the two-letter <a href="https://www.iso.org/iso-3166-country-codes.html " title="https://www.iso.org " target="_blank">ISO 3166</a> code of country for which you want shipping rate table information. If you do not specify a country code, the request returns all of the seller's defined shipping rate tables for all eBay marketplaces. For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/sell/account/types/ba:CountryCodeEnum */
1559
942
  country_code?: string;
1560
943
  };
1561
944
  };
1562
945
  responses: {
1563
- /** @description Success */
1564
946
  200: {
1565
947
  content: {
1566
948
  "application/json": components["schemas"]["RateTableResponse"];
1567
949
  };
1568
950
  };
1569
- /** @description Bad Request */
1570
951
  400: never;
1571
- /** @description Internal Server Error */
1572
952
  500: never;
1573
953
  };
1574
954
  };
1575
- /** @description This method retrieves all the return policies configured for the marketplace you specify using the <code>marketplace_id</code> query parameter. <br/><br/><b>Marketplaces and locales</b> <br/><br/>Get the correct policies for a marketplace that supports multiple locales using the <code>Content-Language</code> request header. For example, get the policies for the French locale of the Canadian marketplace by specifying <code>fr-CA</code> for the <code>Content-Language</code> header. Likewise, target the Dutch locale of the Belgium marketplace by setting <code>Content-Language: nl-BE</code>. For details on header values, see <a href="/api-docs/static/rest-request-components.html#HTTP" target="_blank">HTTP request headers</a>. */
1576
955
  getReturnPolicies: {
1577
956
  parameters: {
1578
957
  query: {
1579
- /** @description This query parameter specifies the ID of the eBay marketplace of the policy you want to retrieve. For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/sell/account/types/ba:MarketplaceIdEnum */
1580
958
  marketplace_id: string;
1581
959
  };
1582
960
  };
1583
961
  responses: {
1584
- /** @description Success */
1585
962
  200: {
1586
963
  content: {
1587
964
  "application/json": components["schemas"]["ReturnPolicyResponse"];
1588
965
  };
1589
966
  };
1590
- /** @description Bad Request */
1591
967
  400: never;
1592
- /** @description Internal Server Error */
1593
968
  500: never;
1594
969
  };
1595
970
  };
1596
- /** @description This method creates a new return policy where the policy encapsulates seller's terms for returning items. <br/><br/>Each policy targets a specific marketplace, and you can create multiple policies for each marketplace. Return policies are not applicable to motor-vehicle listings.<br/><br/>A successful request returns the <b>getReturnPolicy</b> URI to the new policy in the <b>Location</b> response header and the ID for the new policy is returned in the response payload. <p class="tablenote"><b>Tip:</b> For details on creating and using the business policies supported by the Account API, see <a href="/api-docs/sell/static/seller-accounts/business-policies.html">eBay business policies</a>.</p> */
1597
971
  createReturnPolicy: {
1598
- /** @description Return policy request */
1599
972
  requestBody: {
1600
973
  content: {
1601
974
  "application/json": components["schemas"]["ReturnPolicyRequest"];
1602
975
  };
1603
976
  };
1604
977
  responses: {
1605
- /** @description Created */
1606
978
  201: {
1607
979
  headers: {
1608
980
  Location?: string;
@@ -1611,450 +983,327 @@ export interface operations {
1611
983
  "application/json": components["schemas"]["SetReturnPolicyResponse"];
1612
984
  };
1613
985
  };
1614
- /** @description Bad Request */
1615
986
  400: never;
1616
- /** @description Internal Server Error */
1617
987
  500: never;
1618
988
  };
1619
989
  };
1620
- /** @description This method retrieves the complete details of the return policy specified by the <b>returnPolicyId</b> path parameter. */
1621
990
  getReturnPolicy: {
1622
991
  parameters: {
1623
992
  path: {
1624
- /** @description This path parameter specifies the of the return policy you want to retrieve. */
1625
993
  return_policy_id: string;
1626
994
  };
1627
995
  };
1628
996
  responses: {
1629
- /** @description Success */
1630
997
  200: {
1631
998
  content: {
1632
999
  "application/json": components["schemas"]["ReturnPolicy"];
1633
1000
  };
1634
1001
  };
1635
- /** @description Bad Request */
1636
1002
  400: never;
1637
- /** @description Not Found */
1638
1003
  404: never;
1639
- /** @description Internal Server Error */
1640
1004
  500: never;
1641
1005
  };
1642
1006
  };
1643
- /** @description This method updates an existing return policy. Specify the policy you want to update using the <b>return_policy_id</b> path parameter. Supply a complete policy payload with the updates you want to make; this call overwrites the existing policy with the new details specified in the payload. */
1644
1007
  updateReturnPolicy: {
1645
1008
  parameters: {
1646
1009
  path: {
1647
- /** @description This path parameter specifies the ID of the return policy you want to update. */
1648
1010
  return_policy_id: string;
1649
1011
  };
1650
1012
  };
1651
- /** @description Container for a return policy request. */
1652
1013
  requestBody: {
1653
1014
  content: {
1654
1015
  "application/json": components["schemas"]["ReturnPolicyRequest"];
1655
1016
  };
1656
1017
  };
1657
1018
  responses: {
1658
- /** @description OK */
1659
1019
  200: {
1660
1020
  content: {
1661
1021
  "application/json": components["schemas"]["SetReturnPolicyResponse"];
1662
1022
  };
1663
1023
  };
1664
- /** @description Bad Request */
1665
1024
  400: never;
1666
- /** @description Not Found */
1667
1025
  404: never;
1668
- /** @description Internal Server Error */
1669
1026
  500: never;
1670
1027
  };
1671
1028
  };
1672
- /** @description This method deletes a return policy. Supply the ID of the policy you want to delete in the <b>returnPolicyId</b> path parameter. */
1673
1029
  deleteReturnPolicy: {
1674
1030
  parameters: {
1675
1031
  path: {
1676
- /** @description This path parameter specifies the ID of the return policy you want to delete. */
1677
1032
  return_policy_id: string;
1678
1033
  };
1679
1034
  };
1680
1035
  responses: {
1681
- /** @description No Content */
1682
1036
  204: never;
1683
- /** @description Bad Request */
1684
1037
  400: never;
1685
- /** @description Not Found */
1686
1038
  404: never;
1687
- /** @description Conflict */
1688
1039
  409: never;
1689
- /** @description Internal Server Error */
1690
1040
  500: never;
1691
1041
  };
1692
1042
  };
1693
- /** @description This method retrieves the details of a specific return policy. Supply both the policy <code>name</code> and its associated <code>marketplace_id</code> in the request query parameters. <br/><br/><b>Marketplaces and locales</b> <br/><br/>Get the correct policy for a marketplace that supports multiple locales using the <code>Content-Language</code> request header. For example, get a policy for the French locale of the Canadian marketplace by specifying <code>fr-CA</code> for the <code>Content-Language</code> header. Likewise, target the Dutch locale of the Belgium marketplace by setting <code>Content-Language: nl-BE</code>. For details on header values, see <a href="/api-docs/static/rest-request-components.html#HTTP">HTTP request headers</a>. */
1694
1043
  getReturnPolicyByName: {
1695
1044
  parameters: {
1696
1045
  query: {
1697
- /** @description This query parameter specifies the ID of the eBay marketplace of the policy you want to retrieve. For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/sell/account/types/ba:MarketplaceIdEnum */
1698
1046
  marketplace_id: string;
1699
- /** @description This query parameter specifies the seller-defined name of the return policy you want to retrieve. */
1700
1047
  name: string;
1701
1048
  };
1702
1049
  };
1703
1050
  responses: {
1704
- /** @description Success */
1705
1051
  200: {
1706
1052
  content: {
1707
1053
  "application/json": components["schemas"]["ReturnPolicy"];
1708
1054
  };
1709
1055
  };
1710
- /** @description Bad Request */
1711
1056
  400: never;
1712
- /** @description Internal Server Error */
1713
1057
  500: never;
1714
1058
  };
1715
1059
  };
1716
- /** @description This call gets the current sales tax table entry for a specific tax jurisdiction. Specify the jurisdiction to retrieve using the <b>countryCode</b> and <b>jurisdictionId</b> path parameters. All four response fields will be returned if a sales tax entry exists for the tax jurisdiction. Otherwise, the response will be returned as empty.<br/><br/><span class="tablenote"><b>Important!</b> In most US states and territories, eBay now 'collects and remits' sales tax, so sellers can no longer configure sales tax rates for these states/territories.</span> */
1717
1060
  getSalesTax: {
1718
1061
  parameters: {
1719
1062
  path: {
1720
- /** @description This path parameter specifies the two-letter <a href="https://www.iso.org/iso-3166-country-codes.html " title="https://www.iso.org " target="_blank">ISO 3166</a> code for the country whose sales tax table you want to retrieve. */
1721
1063
  countryCode: string;
1722
- /** @description This path parameter specifies the ID of the sales tax jurisdiction for the tax table entry you want to retrieve. Retrieve valid jurisdiction IDs using <b>getSalesTaxJurisdictions</b> in the Metadata API. */
1723
1064
  jurisdictionId: string;
1724
1065
  };
1725
1066
  };
1726
1067
  responses: {
1727
- /** @description Success */
1728
1068
  200: {
1729
1069
  content: {
1730
1070
  "application/json": components["schemas"]["SalesTax"];
1731
1071
  };
1732
1072
  };
1733
- /** @description No content */
1734
1073
  204: never;
1735
- /** @description Bad Request */
1736
1074
  400: never;
1737
- /** @description Not Found */
1738
1075
  404: never;
1739
- /** @description Internal Server Error */
1740
1076
  500: never;
1741
1077
  };
1742
1078
  };
1743
- /** @description This method creates or updates a sales tax table entry for a jurisdiction. Specify the tax table entry you want to configure using the two path parameters: <b>countryCode</b> and <b>jurisdictionId</b>. <br/><br/>A tax table entry for a jurisdiction is comprised of two fields: one for the jurisdiction's sales-tax rate and another that's a boolean value indicating whether or not shipping and handling are taxed in the jurisdiction. <br/><br/>You can set up <i>tax tables</i> for countries that support different <i>tax jurisdictions</i>. Currently, only Canada, India, and the US support separate tax jurisdictions. If you sell into any of these countries, you can set up tax tables for any of the country's jurisdictions. Retrieve valid jurisdiction IDs using <b>getSalesTaxJurisdictions</b> in the Metadata API. <br/><br/>For details on using this call, see <a href="/api-docs/sell/static/seller-accounts/tax-tables.html">Establishing sales-tax tables</a>. <br/><br/><span class="tablenote"><b>Important!</b> In the US, eBay now 'collects and remits' sales tax for every US state except for Missouri (and a few US territories), so sellers can no longer configure sales tax rates for any states except Missouri. With eBay 'collect and remit', eBay calculates the sales tax, collects the sales tax from the buyer, and remits the sales tax to the tax authorities at the buyer's location.</span> */
1744
1079
  createOrReplaceSalesTax: {
1745
1080
  parameters: {
1746
1081
  path: {
1747
- /** @description This path parameter specifies the two-letter <a href="https://www.iso.org/iso-3166-country-codes.html " title="https://www.iso.org " target="_blank">ISO 3166</a> code for the country for which you want to create a sales tax table entry. */
1748
1082
  countryCode: string;
1749
- /** @description This path parameter specifies the ID of the tax jurisdiction for the table entry you want to create. Retrieve valid jurisdiction IDs using <b>getSalesTaxJurisdictions</b> in the Metadata API. */
1750
1083
  jurisdictionId: string;
1751
1084
  };
1752
1085
  };
1753
- /** @description A container that describes the how the sales tax is calculated. */
1754
1086
  requestBody: {
1755
1087
  content: {
1756
1088
  "application/json": components["schemas"]["SalesTaxBase"];
1757
1089
  };
1758
1090
  };
1759
1091
  responses: {
1760
- /** @description No Content */
1761
1092
  204: never;
1762
- /** @description Bad Request */
1763
1093
  400: never;
1764
- /** @description Not Found */
1765
1094
  404: never;
1766
- /** @description Internal Server Error */
1767
1095
  500: never;
1768
1096
  };
1769
1097
  };
1770
- /** @description This call deletes a sales tax table entry for a jurisdiction. Specify the jurisdiction to delete using the <b>countryCode</b> and <b>jurisdictionId</b> path parameters. */
1771
1098
  deleteSalesTax: {
1772
1099
  parameters: {
1773
1100
  path: {
1774
- /** @description This path parameter specifies the two-letter <a href="https://www.iso.org/iso-3166-country-codes.html " title="https://www.iso.org " target="_blank">ISO 3166</a> code for the country whose sales tax table entry you want to delete. */
1775
1101
  countryCode: string;
1776
- /** @description This path parameter specifies the ID of the sales tax jurisdiction whose table entry you want to delete. Retrieve valid jurisdiction IDs using <b>getSalesTaxJurisdictions</b> in the Metadata API. */
1777
1102
  jurisdictionId: string;
1778
1103
  };
1779
1104
  };
1780
1105
  responses: {
1781
- /** @description Success */
1782
1106
  204: never;
1783
- /** @description Bad Request */
1784
1107
  400: never;
1785
- /** @description Not Found */
1786
1108
  404: never;
1787
- /** @description Internal Server Error */
1788
1109
  500: never;
1789
1110
  };
1790
1111
  };
1791
- /** @description Use this call to retrieve all sales tax table entries that the seller has defined for a specific country. All four response fields will be returned for each tax jurisdiction that matches the search criteria. <br/><br/><span class="tablenote"><b>Important!</b> In most US states and territories, eBay now 'collects and remits' sales tax, so sellers can no longer configure sales tax rates for these states/territories.</span> */
1792
1112
  getSalesTaxes: {
1793
1113
  parameters: {
1794
1114
  query: {
1795
- /** @description This path parameter specifies the two-letter <a href="https://www.iso.org/iso-3166-country-codes.html " title="https://www.iso.org " target="_blank">ISO 3166</a> code for the country whose tax table you want to retrieve. For implementation help, refer to eBay API documentation at https://developer.ebay.com/api-docs/sell/account/types/ba:CountryCodeEnum */
1796
1115
  country_code: string;
1797
1116
  };
1798
1117
  };
1799
1118
  responses: {
1800
- /** @description Success */
1801
1119
  200: {
1802
1120
  content: {
1803
1121
  "application/json": components["schemas"]["SalesTaxes"];
1804
1122
  };
1805
1123
  };
1806
- /** @description Bad Request */
1807
1124
  400: never;
1808
- /** @description Internal Server Error */
1809
1125
  500: never;
1810
1126
  };
1811
1127
  };
1812
- /** @description This method retrieves a list of subscriptions associated with the seller account. */
1813
1128
  getSubscription: {
1814
1129
  parameters: {
1815
1130
  query?: {
1816
- /** @description This field is for future use. */
1817
1131
  limit?: string;
1818
- /** @description This field is for future use. */
1819
1132
  continuation_token?: string;
1820
1133
  };
1821
1134
  };
1822
1135
  responses: {
1823
- /** @description Success */
1824
1136
  200: {
1825
1137
  content: {
1826
1138
  "application/json": components["schemas"]["SubscriptionResponse"];
1827
1139
  };
1828
1140
  };
1829
- /** @description Bad Request */
1830
1141
  400: never;
1831
- /** @description Internal Server Error */
1832
1142
  500: never;
1833
1143
  };
1834
1144
  };
1835
- /** @description <span class="tablenote"><b>Note:</b>This method was originally created to see which onboarding requirements were still pending for sellers being onboarded for eBay managed payments, but now that all seller accounts are onboarded globally, this method should now just returne an empty payload with a <code>204 No Content</code> HTTP status code. </span> */
1836
1145
  getKYC: {
1837
1146
  responses: {
1838
- /** @description OK */
1839
1147
  200: {
1840
1148
  content: {
1841
1149
  "application/json": components["schemas"]["KycResponse"];
1842
1150
  };
1843
1151
  };
1844
- /** @description No Content */
1845
1152
  204: never;
1846
- /** @description Bad Request */
1847
1153
  400: never;
1848
- /** @description Internal Server Error */
1849
1154
  500: never;
1850
1155
  };
1851
1156
  };
1852
- /** @description This method allows developers to check the seller eligibility status for eBay advertising programs. */
1853
1157
  getAdvertisingEligibility: {
1854
1158
  parameters: {
1855
1159
  query?: {
1856
- /** @description A comma-separated list of eBay advertising programs.<br /><br /><span class="tablenote"><b>Tip:</b> See the <a href="/api-docs/sell/account/types/plser:AdvertisingProgramEnum"> AdvertisingProgramEnum</a> type for possible values.</span><br /><br />If no programs are specified, the results will be returned for all programs. */
1857
1160
  program_types?: string;
1858
1161
  };
1859
1162
  header: {
1860
- /** @description The unique identifier of the eBay marketplace for which the seller eligibility status shall be checked.<br /><br /><span class="tablenote"><b>Note:</b> This value is case-sensitive.</span> */
1861
1163
  "X-EBAY-C-MARKETPLACE-ID": string;
1862
1164
  };
1863
1165
  };
1864
1166
  responses: {
1865
- /** @description Success */
1866
1167
  200: {
1867
1168
  content: {
1868
1169
  "application/json": components["schemas"]["SellerEligibilityMultiProgramResponse"];
1869
1170
  };
1870
1171
  };
1871
- /** @description Bad Request */
1872
1172
  400: never;
1873
- /** @description Internal Server Error */
1874
1173
  500: never;
1875
1174
  };
1876
1175
  };
1877
- /** @description This call retrieves all defined details of the inventory location that is specified by the <b>merchantLocationKey</b> path parameter. <p>The <code>authorization</code> HTTP header is the only required request header for this call. </p><p>A successful call will return an HTTP status value of <i>200 OK</i>.</p> */
1878
1176
  getInventoryLocation: {
1879
1177
  parameters: {
1880
1178
  path: {
1881
- /** @description A unique merchant-defined key (ID) for an inventory location. This value is passed in at the end of the call URI to specify the inventory location to retrieve. <br/><br/><b>Max length</b>: 36 */
1882
1179
  merchantLocationKey: string;
1883
1180
  };
1884
1181
  };
1885
1182
  responses: {
1886
- /** @description Success */
1887
1183
  200: {
1888
1184
  content: {
1889
1185
  "application/json": components["schemas"]["InventoryLocationResponse"];
1890
1186
  };
1891
1187
  };
1892
- /** @description Bad Request */
1893
1188
  400: never;
1894
- /** @description Not Found */
1895
1189
  404: never;
1896
- /** @description Internal Server Error */
1897
1190
  500: never;
1898
1191
  };
1899
1192
  };
1900
- /** @description <p>Use this call to create a new inventory location. In order to create and publish an offer (and create an eBay listing), a seller must have at least one inventory location, as every offer must be associated with a location.</p><p>Upon first creating an inventory location, only a seller-defined location identifier and a physical location is required, and once set, these values can not be changed. The unique identifier value (<i>merchantLocationKey</i>) is passed in at the end of the call URI. This <i>merchantLocationKey</i> value will be used in other Inventory Location calls to identify the inventory location to perform an action against.</p><p>At this time, location types are either warehouse or store. Warehouse locations are used for traditional shipping, and store locations are generally used by US merchants selling products through the In-Store Pickup program, or used by UK, Australian, and German merchants selling products through the Click and Collect program. A full address is required for store inventory locations. However, for warehouse inventory locations, a full street address is not needed, but the city, state/province, and country of the location must be provided. </p><p>Note that all inventory locations are "enabled" by default when they are created, and you must specifically disable them (by passing in a value of <code>DISABLED</code> in the <strong>merchantLocationStatus</strong> field) if you want them to be set to the disabled state. The seller's inventory cannot be loaded to inventory locations in the disabled state.</p> <p>In addition to the <code>authorization</code> header, which is required for all eBay REST API calls, the following table includes another request header that is mandatory for the <strong>createInventoryLocation</strong> call, and two other request headers that are optional:</p><br/> <table> <tr> <th>Header</th> <th>Description</th> <th>Required?</th> <th>Applicable Values</th> </tr> <tr> <td><code>Accept</code></td> <td>Describes the response encoding, as required by the caller. Currently, the interfaces require payloads formatted in JSON, and JSON is the default.</td> <td>No</td> <td><code>application/json</code></td> </tr> <tr> <td><code>Content-Language</code></td> <td>Use this header to control the language that is used for any returned errors or warnings in the call response.</td> <td>No</td> <td><code>en-US</code></td> </tr> <tr> <td><code>Content-Type</code></td> <td>The MIME type of the body of the request. Must be JSON.</td> <td>Yes</td> <td><code>application/json</code></td> </tr> </table></p><br/><p>Unless one or more errors and/or warnings occur with the call, there is no response payload for this call. A successful call will return an HTTP status value of <i>204 No Content</i>.</p> */
1901
1193
  createInventoryLocation: {
1902
1194
  parameters: {
1903
1195
  path: {
1904
- /** @description A unique, merchant-defined key (ID) for an inventory location. This unique identifier, or key, is used in other Inventory API calls to identify an inventory location. <br/><br/><b>Max length</b>: 36 */
1905
1196
  merchantLocationKey: string;
1906
1197
  };
1907
1198
  };
1908
- /** @description Inventory Location details */
1909
1199
  requestBody: {
1910
1200
  content: {
1911
1201
  "application/json": components["schemas"]["InventoryLocationFull"];
1912
1202
  };
1913
1203
  };
1914
1204
  responses: {
1915
- /** @description No Content */
1916
1205
  204: never;
1917
- /** @description Bad Request */
1918
1206
  400: never;
1919
- /** @description Location Already Exists */
1920
1207
  409: never;
1921
- /** @description Internal Server Error */
1922
1208
  500: never;
1923
1209
  };
1924
1210
  };
1925
- /** @description <p>This call deletes the inventory location that is specified in the <code>merchantLocationKey</code> path parameter. Note that deleting a location will not affect any active eBay listings associated with the deleted location, but the seller will not be able modify the offers associated with the inventory location once it is deleted.</p><p>The <code>authorization</code> HTTP header is the only required request header for this call. </p><p>Unless one or more errors and/or warnings occur with the call, there is no response payload for this call. A successful call will return an HTTP status value of <i>200 OK</i>.</p> */
1926
1211
  deleteInventoryLocation: {
1927
1212
  parameters: {
1928
1213
  path: {
1929
- /** @description A unique merchant-defined key (ID) for an inventory location. This value is passed in at the end of the call URI to indicate the inventory location to be deleted. <br/><br/><b>Max length</b>: 36 */
1930
1214
  merchantLocationKey: string;
1931
1215
  };
1932
1216
  };
1933
1217
  responses: {
1934
- /** @description Success */
1935
1218
  204: never;
1936
- /** @description Bad Request */
1937
1219
  400: never;
1938
- /** @description Not Found */
1939
1220
  404: never;
1940
- /** @description Internal Server Error */
1941
1221
  500: never;
1942
1222
  };
1943
1223
  };
1944
- /** @description <p>This call disables the inventory location that is specified in the <code>merchantLocationKey</code> path parameter. Sellers can not load/modify inventory to disabled inventory locations. Note that disabling an inventory location will not affect any active eBay listings associated with the disabled location, but the seller will not be able modify the offers associated with a disabled inventory location.</p><p>The <code>authorization</code> HTTP header is the only required request header for this call.</p><p>A successful call will return an HTTP status value of <i>200 OK</i>.</p> */
1945
1224
  disableInventoryLocation: {
1946
1225
  parameters: {
1947
1226
  path: {
1948
- /** @description A unique merchant-defined key (ID) for an inventory location. This value is passed in through the call URI to disable the specified inventory location. <br/><br/><b>Max length</b>: 36 */
1949
1227
  merchantLocationKey: string;
1950
1228
  };
1951
1229
  };
1952
1230
  responses: {
1953
- /** @description Success */
1954
1231
  200: {
1955
1232
  content: {
1956
1233
  "application/json": Record<string, never>;
1957
1234
  };
1958
1235
  };
1959
- /** @description Bad Request */
1960
1236
  400: never;
1961
- /** @description Not Found */
1962
1237
  404: never;
1963
- /** @description Internal Server Error */
1964
1238
  500: never;
1965
1239
  };
1966
1240
  };
1967
- /** @description <p>This call enables a disabled inventory location that is specified in the <code>merchantLocationKey</code> path parameter. Once a disabled inventory location is enabled, sellers can start loading/modifying inventory to that inventory location. </p><p>The <code>authorization</code> HTTP header is the only required request header for this call.</p><p>A successful call will return an HTTP status value of <i>200 OK</i>.</p> */
1968
1241
  enableInventoryLocation: {
1969
1242
  parameters: {
1970
1243
  path: {
1971
- /** @description A unique merchant-defined key (ID) for an inventory location. This value is passed in through the call URI to specify the disabled inventory location to enable. <br/><br/><b>Max length</b>: 36 */
1972
1244
  merchantLocationKey: string;
1973
1245
  };
1974
1246
  };
1975
1247
  responses: {
1976
- /** @description Success */
1977
1248
  200: {
1978
1249
  content: {
1979
1250
  "application/json": Record<string, never>;
1980
1251
  };
1981
1252
  };
1982
- /** @description Bad Request */
1983
1253
  400: never;
1984
- /** @description Not Found */
1985
1254
  404: never;
1986
- /** @description Internal Server Error */
1987
1255
  500: never;
1988
1256
  };
1989
1257
  };
1990
- /** @description This call retrieves all defined details for every inventory location associated with the seller's account. There are no required parameters for this call and no request payload. However, there are two optional query parameters, <strong>limit</strong> and <strong>offset</strong>. The <strong>limit</strong> query parameter sets the maximum number of inventory locations returned on one page of data, and the <strong>offset</strong> query parameter specifies the page of data to return. These query parameters are discussed more in the <strong>URI parameters</strong> table below. <p>The <code>authorization</code> HTTP header is the only required request header for this call. </p><p>A successful call will return an HTTP status value of <i>200 OK</i>.</p> */
1991
1258
  getInventoryLocations: {
1992
1259
  parameters: {
1993
1260
  query?: {
1994
- /** @description The value passed in this query parameter sets the maximum number of records to return per page of data. Although this field is a string, the value passed in this field should be a positive integer value. If this query parameter is not set, up to 100 records will be returned on each page of results. <br/><br/> <strong>Min</strong>: 1 */
1995
1261
  limit?: string;
1996
- /** @description Specifies the number of locations to skip in the result set before returning the first location in the paginated response. <p>Combine <b>offset</b> with the <b>limit</b> query parameter to control the items returned in the response. For example, if you supply an <b>offset</b> of <code>0</code> and a <b>limit</b> of <code>10</code>, the first page of the response contains the first 10 items from the complete list of items retrieved by the call. If <b>offset</b> is <code>10</code> and <b>limit</b> is <code>20</code>, the first page of the response contains items 11-30 from the complete result set.</p> <p><b>Default:</b> 0</p> */
1997
1262
  offset?: string;
1998
1263
  };
1999
1264
  };
2000
1265
  responses: {
2001
- /** @description Success */
2002
1266
  200: {
2003
1267
  content: {
2004
1268
  "application/json": components["schemas"]["LocationResponse"];
2005
1269
  };
2006
1270
  };
2007
- /** @description Bad Request */
2008
1271
  400: never;
2009
- /** @description Internal Server Error */
2010
1272
  500: never;
2011
1273
  };
2012
1274
  };
2013
- /** @description <p>Use this call to update non-physical location details for an existing inventory location. Specify the inventory location you want to update using the <b>merchantLocationKey</b> path parameter. <br/><br/>You can update the following text-based fields: <strong>name</strong>, <strong>phone</strong>, <strong>locationWebUrl</strong>, <strong>locationInstructions</strong> and <strong>locationAdditionalInformation</strong>. Whatever text is passed in for these fields in an <strong>updateInventoryLocation</strong> call will replace the current text strings defined for these fields. For store inventory locations, the operating hours and/or the special hours can also be updated. <br/><br/> The merchant location key, the physical location of the store, and its geo-location coordinates can not be updated with an <strong>updateInventoryLocation</strong> call </p><p>In addition to the <code>authorization</code> header, which is required for all eBay REST API calls, the following table includes another request header that is mandatory for the <strong>updateInventoryLocation</strong> call, and two other request headers that are optional:</p><br/> <table> <tr> <th>Header</th> <th>Description</th> <th>Required?</th> <th>Applicable Values</th> </tr> <tr> <td><code>Accept</code></td> <td>Describes the response encoding, as required by the caller. Currently, the interfaces require payloads formatted in JSON, and JSON is the default.</td> <td>No</td> <td><code>application/json</code></td> </tr> <tr> <td><code>Content-Language</code></td> <td>Use this header to control the language that is used for any returned errors or warnings in the call response.</td> <td>No</td> <td><code>en-US</code></td> </tr> <tr> <td><code>Content-Type</code></td> <td>The MIME type of the body of the request. Must be JSON.</td> <td>Yes</td> <td><code>application/json</code></td> </tr> </table><br/><p>Unless one or more errors and/or warnings occurs with the call, there is no response payload for this call. A successful call will return an HTTP status value of <i>204 No Content</i>.</p> */
2014
1275
  updateInventoryLocation: {
2015
1276
  parameters: {
2016
1277
  path: {
2017
- /** @description A unique merchant-defined key (ID) for an inventory location. This value is passed in the call URI to indicate the inventory location to be updated. <br/><br/><b>Max length</b>: 36 */
2018
1278
  merchantLocationKey: string;
2019
1279
  };
2020
1280
  };
2021
- /** @description The inventory location details to be updated (other than the address and geo co-ordinates). */
2022
1281
  requestBody: {
2023
1282
  content: {
2024
1283
  "application/json": components["schemas"]["InventoryLocation"];
2025
1284
  };
2026
1285
  };
2027
1286
  responses: {
2028
- /** @description Success */
2029
1287
  204: never;
2030
- /** @description Bad Request */
2031
1288
  400: never;
2032
- /** @description Not Found */
2033
1289
  404: never;
2034
- /** @description Internal Server Error */
2035
1290
  500: never;
2036
1291
  };
2037
1292
  };
2038
- /** @description This method retrieves all the sales tax jurisdictions for the country that you specify in the <b>countryCode</b> path parameter. Countries with valid sales tax jurisdictions are Canada and the US. <br/><br/>The response from this call tells you the jurisdictions for which a seller can configure tax tables. Although setting up tax tables is optional, you can use the <b>createOrReplaceSalesTax</b> in the <b>Account API</b> call to configure the tax tables for the jurisdictions you sell to. */
2039
1293
  getSalesTaxJurisdictions: {
2040
1294
  parameters: {
2041
1295
  path: {
2042
- /** @description This path parameter specifies the two-letter <a href="https://www.iso.org/iso-3166-country-codes.html " title="https://www.iso.org " target="_blank">ISO 3166</a> country code for the country whose jurisdictions you want to retrieve. eBay provides sales tax jurisdiction information for Canada and the United States.Valid values for this path parameter are <code>CA</code> and <code>US</code>. */
2043
1296
  countryCode: string;
2044
1297
  };
2045
1298
  };
2046
1299
  responses: {
2047
- /** @description Success */
2048
1300
  200: {
2049
1301
  content: {
2050
1302
  "application/json": components["schemas"]["SalesTaxJurisdictions"];
2051
1303
  };
2052
1304
  };
2053
- /** @description Bad Request */
2054
1305
  400: never;
2055
- /** @description Not Found */
2056
1306
  404: never;
2057
- /** @description Internal Server Error */
2058
1307
  500: never;
2059
1308
  };
2060
1309
  };