Skip to content

Align with Amazon SP-API 2025 deprecations#932

Merged
abuzuhri merged 1 commit into
mainfrom
fix/sp-api-2025-2026-deprecations
Apr 25, 2026
Merged

Align with Amazon SP-API 2025 deprecations#932
abuzuhri merged 1 commit into
mainfrom
fix/sp-api-2025-2026-deprecations

Conversation

@abuzuhri
Copy link
Copy Markdown
Owner

  • Mark Catalog Items v0 calls (ListCatalogItems, ListCatalogCategories, GetCatalogItemJson) as [Obsolete] with messages noting Amazon removed v0 on 2025-03-31; the underlying URLs return 404. Mirror the obsolete on the matching sample.
  • Drop the 'name is required' null-check from Orders v0 Address ctor since Amazon's 2025-10 release made Name optional on getOrderAddress.
  • README: replace stale GetOrderAddress notice with a heads-up block covering Catalog v0 removal, XML feeds shutoff (2025-07-31), Orders v0 sunset (2027-03-27) and the OrdersV20260101 path, and Address.Name now optional.

- Mark Catalog Items v0 calls (ListCatalogItems, ListCatalogCategories,
  GetCatalogItemJson) as [Obsolete] with messages noting Amazon removed
  v0 on 2025-03-31; the underlying URLs return 404. Mirror the obsolete
  on the matching sample.
- Drop the 'name is required' null-check from Orders v0 Address ctor
  since Amazon's 2025-10 release made Name optional on getOrderAddress.
- README: replace stale GetOrderAddress notice with a heads-up block
  covering Catalog v0 removal, XML feeds shutoff (2025-07-31), Orders v0
  sunset (2027-03-27) and the OrdersV20260101 path, and Address.Name
  now optional.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@abuzuhri abuzuhri requested a review from Copilot April 25, 2026 12:03
@abuzuhri abuzuhri merged commit 4e8e7b4 into main Apr 25, 2026
3 checks passed
@sonarqubecloud
Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
C Maintainability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the library’s public surface and documentation to reflect Amazon SP-API deprecations/removals (Catalog Items v0 removal, Orders v0 changes), helping consumers avoid dead endpoints and outdated assumptions.

Changes:

  • Mark Catalog Items API v0 methods as [Obsolete] (and hide from IntelliSense) with updated messages reflecting Amazon’s 2025-03-31 removal.
  • Make Orders v0 Address constructor accept Name as optional by removing the required-null check.
  • Refresh README guidance with a consolidated “Heads-up” block about SP-API lifecycle changes; mirror relevant obsoletes in sample code.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
Source/FikaAmazonAPI/Services/CatalogItemService.cs Adds/updates [Obsolete] metadata for Catalog Items v0 methods to reflect endpoint removal and steer users to 2022-04-01 APIs.
Source/FikaAmazonAPI/AmazonSpApiSDK/Models/Orders/Address.cs Removes the constructor’s name required check so Address.Name can be null per Amazon’s newer behavior.
Source/FikaAmazonAPI.SampleCode/CatalogItemsSample.cs Marks v0 sample calls obsolete with updated removal messaging to discourage usage.
README.md Replaces a stale note with a detailed “Heads-up” section describing Amazon-side deprecations and migration pointers.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

/// Initializes a new instance of the <see cref="Address" /> class.
/// </summary>
/// <param name="name">The name. (required).</param>
/// <param name="name">The name..</param>
Copy link

Copilot AI Apr 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

XML doc typo: the name parameter description has a double period (The name..). Update it to a single period and (optionally) clarify that the value is now optional/null-able to match the constructor behavior.

Suggested change
/// <param name="name">The name..</param>
/// <param name="name">The name. Optional; can be null.</param>

Copilot uses AI. Check for mistakes.
Comment thread README.md
> ### Heads-up: Amazon-side changes affecting this library
>
> - **Catalog Items API v0 was removed by Amazon on 2025-03-31.** `CatalogItem.ListCatalogItems`, `CatalogItem.ListCatalogCategories`, and `CatalogItem.GetCatalogItemJson` are now marked obsolete because the underlying endpoints no longer exist. Use the 2022-04-01 methods (`SearchCatalogItems202204`, `GetCatalogItem202204`) instead.
> - **XML feed types (e.g. the legacy inventory feed) were turned off on 2025-07-31.** If you previously submitted inventory updates with `_POST_INVENTORY_AVAILABILITY_DATA_` or similar XML feed types, migrate to `FeedType.JSON_LISTINGS_FEED` with a JSON-Patch payload (see `FeedsSample.cs`).
Copy link

Copilot AI Apr 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In Markdown, _POST_INVENTORY_AVAILABILITY_DATA_ will render as italic text rather than a literal feed type. Wrap the feed type(s) in backticks so users can copy/paste the exact value and the formatting stays consistent with the other inline code in this block.

Copilot uses AI. Check for mistakes.
@abuzuhri abuzuhri deleted the fix/sp-api-2025-2026-deprecations branch April 25, 2026 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants