Marketplaces / Big Commerce Technical Scope / Big Commerce Product Management / Big Commerce Delete Product

Big Commerce Delete Product

Summary of Changes: (The purpose of this table is to keep traceability and Product team to highlight the things that were changed into the scope, based on comments or discussions)

Date Version Name Applied changes
09/08/2023 1.0 Bogomil Pavlov First Publish

We want all triggers, validations and standardizations which are not explicitly mention here to be as per Product Listing general requirementsThe delete request is product per product which means if we have only one variant set for deletion we want to delete all other variants part of this variation group. We want to delete all products with:Product Account > End Listing = Yes Product Account > Product Status = Product Published Product Account > Channel Item Id != ““

After the deletion all variants in the variation group will be deleted so we want to updates all of them with the relevant statuses and flags.

API Call: DELETE https://api.bigcommerce.com/stores/{store_hash}/v3/catalog/productsDoc: https://developer.bigcommerce.com/docs/rest-catalog/products#delete-a-product

Sample Request: DELETE https://api.bigcommerce.com/stores/oduzegjfvn/v3/catalog/products?id:in=1,2,3 Parameter:Product Account > Channel Item IdPlease note we can specify up to 250 products at once.

Sample Response: Status 204 OK

Mapping: We want to push the Product Account > Channel Item Id as a parameter

Sample Error Response #1:

{
    "status": 422,
    "title": "The filter: sku1 is not a valid filter parameter.",
    "type": "https://developer.bigcommerce.com/api-docs/getting-started/api-status-codes"
}

We want to store the title as error in Product Account > End Listing Error Even if we try to delete a product with wrong ID we wont receive an error. If we specify 100 ids and only 20 of them exist we will delete the ones that exist.

After success we want to set: Product Account > End Listing = No Product Account > Product Status = Product Removed Product Account > Listing Status = Inactive Product Account > Channel Item Id = ““ Product Account Big Commerce > Variant Id = ““

Is this article helpful?
0 0 0