Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Removing Box via ContentUpdatePreviews #4617

Open
eshevchenko opened this issue Feb 17, 2025 · 3 comments
Open

Issue with Removing Box via ContentUpdatePreviews #4617

eshevchenko opened this issue Feb 17, 2025 · 3 comments
Assignees
Labels
FBA Inbound Issues related to FBA Inbound APIs Support Issue Issues that requires a Developer Support case

Comments

@eshevchenko
Copy link

eshevchenko commented Feb 17, 2025

When attempting to remove a box by omitting its packageId in the generateShipmentContentUpdatePreviews request, the API creates a new box with a new packageId instead of removing the box as documented.

This behavior does not align with the documented API description, which states:

`Any existing PackageIds not provided will be treated as to-be-removed.`

Steps to Reproduce

WorkflowId: wf9420ecad-665b-4d54-bfb7-25e422d464bd
ShipmentId: sh9c603ad5-af88-4cfb-bd64-ef657e49882d

Initial State: Retrieve Boxes

Boxes: [{"boxId":"FBA18TLR9DD3U000007","contentInformationSource":"BOX_CONTENT_PROVIDED","destinationRegion":null,"dimensions":{"height":5,"length":5,"unitOfMeasurement":"IN","width":5},"externalContainerIdentifier":"FBA18TLR9DD3U000007","externalContainerIdentifierType":"AMAZON","items":[{"asin":"B07NVYHYSX","expiration":"2026-03-31","fnsku":"X002IUC1EJ","labelOwner":"SELLER","manufacturingLotCode":null,"msku":"E1-E30Q-GSJO","prepInstructions":[{"fee":null,"prepOwner":"SELLER","prepType":"ITEM_LABELING"},{"fee":null,"prepOwner":"SELLER","prepType":"ITEM_NO_PREP"}],"quantity":3}],"packageId":"pk02ae252b-a044-4df7-943f-65739ba44b7f","quantity":1,"templateName":"FBA18TLR9DD3 - B4","weight":{"unit":"LB","value":1}},{"boxId":"FBA18TLR9DD3U000006","contentInformationSource":"BOX_CONTENT_PROVIDED","destinationRegion":null,"dimensions":{"height":5,"length":5,"unitOfMeasurement":"IN","width":5},"externalContainerIdentifier":"FBA18TLR9DD3U000006","externalContainerIdentifierType":"AMAZON","items":[{"asin":"B009074N2K","expiration":"2026-03-01","fnsku":"X002IUBZJ1","labelOwner":"SELLER","manufacturingLotCode":null,"msku":"XJ-832D-EGZP","prepInstructions":[{"fee":null,"prepOwner":"SELLER","prepType":"ITEM_LABELING"},{"fee":null,"prepOwner":"SELLER","prepType":"ITEM_NO_PREP"}],"quantity":1}],"packageId":"pk0dba489c-50ab-4698-a020-085d0fcb9442","quantity":1,"templateName":"FBA18TLR9DD3 - B3","weight":{"unit":"LB","value":1}},{"boxId":"FBA18TLR9DD3U000003","contentInformationSource":"BOX_CONTENT_PROVIDED","destinationRegion":null,"dimensions":{"height":5,"length":5,"unitOfMeasurement":"IN","width":5},"externalContainerIdentifier":"FBA18TLR9DD3U000003","externalContainerIdentifierType":"AMAZON","items":[{"asin":"B009074N2K","expiration":"2026-03-01","fnsku":"X002IUBZJ1","labelOwner":"SELLER","manufacturingLotCode":null,"msku":"XJ-832D-EGZP","prepInstructions":[{"fee":null,"prepOwner":"SELLER","prepType":"ITEM_LABELING"},{"fee":null,"prepOwner":"SELLER","prepType":"ITEM_NO_PREP"}],"quantity":4}],"packageId":"pk13598eca-dafa-4ef5-a042-eb6d98490f52","quantity":1,"templateName":"FBA18TLR9DD3 - B9","weight":{"unit":"LB","value":1}},{"boxId":"FBA18TLR9DD3U000002","contentInformationSource":"BOX_CONTENT_PROVIDED","destinationRegion":null,"dimensions":{"height":5,"length":5,"unitOfMeasurement":"IN","width":5},"externalContainerIdentifier":"FBA18TLR9DD3U000002","externalContainerIdentifierType":"AMAZON","items":[{"asin":"B009074N2K","expiration":"2026-03-01","fnsku":"X002IUBZJ1","labelOwner":"SELLER","manufacturingLotCode":null,"msku":"XJ-832D-EGZP","prepInstructions":[{"fee":null,"prepOwner":"SELLER","prepType":"ITEM_LABELING"},{"fee":null,"prepOwner":"SELLER","prepType":"ITEM_NO_PREP"}],"quantity":4}],"packageId":"pk15523693-2e7d-4919-b6f9-63e55fc7c8eb","quantity":1,"templateName":"FBA18TLR9DD3 - B8","weight":{"unit":"LB","value":1}},{"boxId":"FBA18TLR9DD3U000004","contentInformationSource":"BOX_CONTENT_PROVIDED","destinationRegion":null,"dimensions":{"height":5,"length":5,"unitOfMeasurement":"IN","width":5},"externalContainerIdentifier":"FBA18TLR9DD3U000004","externalContainerIdentifierType":"AMAZON","items":[{"asin":"B009074N2K","expiration":"2026-03-01","fnsku":"X002IUBZJ1","labelOwner":"SELLER","manufacturingLotCode":null,"msku":"XJ-832D-EGZP","prepInstructions":[{"fee":null,"prepOwner":"SELLER","prepType":"ITEM_LABELING"},{"fee":null,"prepOwner":"SELLER","prepType":"ITEM_NO_PREP"}],"quantity":4}],"packageId":"pk1b493f5b-69b7-4d1c-b09f-67f77ff503af","quantity":1,"templateName":"FBA18TLR9DD3 - B1","weight":{"unit":"LB","value":1}},{"boxId":"FBA18TLR9DD3U000009","contentInformationSource":"BOX_CONTENT_PROVIDED","destinationRegion":null,"dimensions":{"height":5,"length":5,"unitOfMeasurement":"IN","width":5},"externalContainerIdentifier":"FBA18TLR9DD3U000009","externalContainerIdentifierType":"AMAZON","items":[{"asin":"B07NVYHYSX","expiration":"2026-03-31","fnsku":"X002IUC1EJ","labelOwner":"SELLER","manufacturingLotCode":null,"msku":"E1-E30Q-GSJO","prepInstructions":[{"fee":null,"prepOwner":"SELLER","prepType":"ITEM_LABELING"},{"fee":null,"prepOwner":"SELLER","prepType":"ITEM_NO_PREP"}],"quantity":3}],"packageId":"pk3fe990a7-410c-4c7a-ab6e-18009b661921","quantity":1,"templateName":"FBA18TLR9DD3 - B6","weight":{"unit":"LB","value":1}},{"boxId":"FBA18TLR9DD3U000005","contentInformationSource":"BOX_CONTENT_PROVIDED","destinationRegion":null,"dimensions":{"height":5,"length":5,"unitOfMeasurement":"IN","width":5},"externalContainerIdentifier":"FBA18TLR9DD3U000005","externalContainerIdentifierType":"AMAZON","items":[{"asin":"B009074N2K","expiration":"2026-03-01","fnsku":"X002IUBZJ1","labelOwner":"SELLER","manufacturingLotCode":null,"msku":"XJ-832D-EGZP","prepInstructions":[{"fee":null,"prepOwner":"SELLER","prepType":"ITEM_LABELING"},{"fee":null,"prepOwner":"SELLER","prepType":"ITEM_NO_PREP"}],"quantity":4}],"packageId":"pk525c2d6c-6fa3-4315-9fa4-4d85a0e797d9","quantity":1,"templateName":"FBA18TLR9DD3 - B2","weight":{"unit":"LB","value":1}},{"boxId":"FBA18TLR9DD3U000008","contentInformationSource":"BOX_CONTENT_PROVIDED","destinationRegion":null,"dimensions":{"height":5,"length":5,"unitOfMeasurement":"IN","width":5},"externalContainerIdentifier":"FBA18TLR9DD3U000008","externalContainerIdentifierType":"AMAZON","items":[{"asin":"B07NVYHYSX","expiration":"2026-03-31","fnsku":"X002IUC1EJ","labelOwner":"SELLER","manufacturingLotCode":null,"msku":"E1-E30Q-GSJO","prepInstructions":[{"fee":null,"prepOwner":"SELLER","prepType":"ITEM_LABELING"},{"fee":null,"prepOwner":"SELLER","prepType":"ITEM_NO_PREP"}],"quantity":3}],"packageId":"pkdc146863-50cf-4b0a-b793-f99f6400938c","quantity":1,"templateName":"FBA18TLR9DD3 - B5","weight":{"unit":"LB","value":1}},{"boxId":"FBA18TLR9DD3U000001","contentInformationSource":"BOX_CONTENT_PROVIDED","destinationRegion":null,"dimensions":{"height":5,"length":5,"unitOfMeasurement":"IN","width":5},"externalContainerIdentifier":"FBA18TLR9DD3U000001","externalContainerIdentifierType":"AMAZON","items":[{"asin":"B009074N2K","expiration":"2026-03-01","fnsku":"X002IUBZJ1","labelOwner":"SELLER","manufacturingLotCode":null,"msku":"XJ-832D-EGZP","prepInstructions":[{"fee":null,"prepOwner":"SELLER","prepType":"ITEM_LABELING"},{"fee":null,"prepOwner":"SELLER","prepType":"ITEM_NO_PREP"}],"quantity":4}],"packageId":"pkf0b304bf-c7a9-4343-850e-cf0eec1276b7","quantity":1,"templateName":"FBA18TLR9DD3 - B7","weight":{"unit":"LB","value":1}}]

Ensure that "packageId": "pkf0b304bf-c7a9-4343-850e-cf0eec1276b7" is present

Attempt to Remove Box

`{
"boxes": [
{
"contentInformationSource": "BOX_CONTENT_PROVIDED",
"dimensions": {
"height": 5,
"length": 5,
"unitOfMeasurement": "IN",
"width": 5
},
"items": [
{
"asin": "B07NVYHYSX",
"expiration": "2026-03-31",
"fnsku": "X002IUC1EJ",
"labelOwner": "SELLER",
"manufacturingLotCode": null,
"msku": "E1-E30Q-GSJO",
"prepOwner": "SELLER",
"quantity": 3
}
],
"packageId": "pk02ae252b-a044-4df7-943f-65739ba44b7f",
"quantity": 1,
"templateName": "FBA18TLR9DD3 - B4",
"weight": {
"unit": "LB",
"value": 1
}
},
{
"contentInformationSource": "BOX_CONTENT_PROVIDED",
"dimensions": {
"height": 5,
"length": 5,
"unitOfMeasurement": "IN",
"width": 5
},
"items": [
{
"asin": "B009074N2K",
"expiration": "2026-03-01",
"fnsku": "X002IUBZJ1",
"labelOwner": "SELLER",
"manufacturingLotCode": null,
"msku": "XJ-832D-EGZP",
"prepOwner": "SELLER",
"quantity": 1
}
],
"packageId": "pk0dba489c-50ab-4698-a020-085d0fcb9442",
"quantity": 1,
"templateName": "FBA18TLR9DD3 - B3",
"weight": {
"unit": "LB",
"value": 1
}
},
{
"contentInformationSource": "BOX_CONTENT_PROVIDED",
"dimensions": {
"height": 5,
"length": 5,
"unitOfMeasurement": "IN",
"width": 5
},
"items": [
{
"asin": "B009074N2K",
"expiration": "2026-03-01",
"fnsku": "X002IUBZJ1",
"labelOwner": "SELLER",
"manufacturingLotCode": null,
"msku": "XJ-832D-EGZP",
"prepOwner": "SELLER",
"quantity": 4
}
],
"packageId": "pk13598eca-dafa-4ef5-a042-eb6d98490f52",
"quantity": 1,
"templateName": "FBA18TLR9DD3 - B9",
"weight": {
"unit": "LB",
"value": 1
}
},
{
"contentInformationSource": "BOX_CONTENT_PROVIDED",
"destinationRegion": null,
"dimensions": {
"height": 5,
"length": 5,
"unitOfMeasurement": "IN",
"width": 5
},
"items": [
{
"asin": "B009074N2K",
"expiration": "2026-03-01",
"fnsku": "X002IUBZJ1",
"labelOwner": "SELLER",
"manufacturingLotCode": null,
"msku": "XJ-832D-EGZP",
"prepOwner": "SELLER",
"quantity": 4
}
],
"packageId": "pk15523693-2e7d-4919-b6f9-63e55fc7c8eb",
"quantity": 1,
"templateName": "FBA18TLR9DD3 - B8",
"weight": {
"unit": "LB",
"value": 1
}
},
{
"contentInformationSource": "BOX_CONTENT_PROVIDED",
"dimensions": {
"height": 5,
"length": 5,
"unitOfMeasurement": "IN",
"width": 5
},
"items": [
{
"asin": "B009074N2K",
"expiration": "2026-03-01",
"fnsku": "X002IUBZJ1",
"labelOwner": "SELLER",
"manufacturingLotCode": null,
"msku": "XJ-832D-EGZP",
"prepOwner": "SELLER",
"quantity": 4
}
],
"packageId": "pk1b493f5b-69b7-4d1c-b09f-67f77ff503af",
"quantity": 1,
"weight": {
"unit": "LB",
"value": 1
}
},
{
"contentInformationSource": "BOX_CONTENT_PROVIDED",
"dimensions": {
"height": 5,
"length": 5,
"unitOfMeasurement": "IN",
"width": 5
},
"items": [
{
"asin": "B07NVYHYSX",
"expiration": "2026-03-31",
"fnsku": "X002IUC1EJ",
"labelOwner": "SELLER",
"manufacturingLotCode": null,
"msku": "E1-E30Q-GSJO",
"prepOwner": "SELLER",
"quantity": 3
}
],
"packageId": "pk3fe990a7-410c-4c7a-ab6e-18009b661921",
"quantity": 1,
"templateName": "FBA18TLR9DD3 - B6",
"weight": {
"unit": "LB",
"value": 1
}
},
{
"contentInformationSource": "BOX_CONTENT_PROVIDED",
"dimensions": {
"height": 5,
"length": 5,
"unitOfMeasurement": "IN",
"width": 5
},
"items": [
{
"asin": "B009074N2K",
"expiration": "2026-03-01",
"fnsku": "X002IUBZJ1",
"labelOwner": "SELLER",
"manufacturingLotCode": null,
"msku": "XJ-832D-EGZP",
"prepOwner": "SELLER",
"quantity": 4
}
],
"packageId": "pk525c2d6c-6fa3-4315-9fa4-4d85a0e797d9",
"quantity": 1,
"templateName": "FBA18TLR9DD3 - B2",
"weight": {
"unit": "LB",
"value": 1
}
},
{
"contentInformationSource": "BOX_CONTENT_PROVIDED",
"dimensions": {
"height": 5,
"length": 5,
"unitOfMeasurement": "IN",
"width": 5
},
"items": [
{
"asin": "B07NVYHYSX",
"expiration": "2026-03-31",
"fnsku": "X002IUC1EJ",
"labelOwner": "SELLER",
"manufacturingLotCode": null,
"msku": "E1-E30Q-GSJO",
"prepOwner": "SELLER",
"quantity": 3
}
],
"packageId": "pkdc146863-50cf-4b0a-b793-f99f6400938c",
"quantity": 1,
"templateName": "FBA18TLR9DD3 - B5",
"weight": {
"unit": "LB",
"value": 1
}
}
],

"items":
[
    {
        "expiration": "2026-03-01",
        "labelOwner": "SELLER",
        "msku": "XJ-832D-EGZP",
        "prepOwner": "SELLER",
        "quantity": 17
    },
    {
        "expiration": "2026-03-31",
        "labelOwner": "SELLER",
        "msku": "E1-E30Q-GSJO",
        "prepOwner": "SELLER",
        "quantity": 9
    }
]

}`
where section with "packageId": "pkf0b304bf-c7a9-4343-850e-cf0eec1276b7" is omitted
then execute getShipmentContentUpdatePreview and confirmShipmentContentUpdatePreview according to documentation, all 3 requests have 'SUCCESS' status, no warnings present

Final State: Retrieve Boxes

new Box with another BoxId and another PackageId is present
{ "quantity": 1, "externalContainerIdentifierType": "AMAZON", "templateName": "FBA18TLR9DD3 - B7", "packageId": "pk1ee25f11-daa7-4fd1-930a-c481693ab8fd", "weight": { "unit": "LB", "value": 1 }, "items": [ { "labelOwner": "SELLER", "msku": "XJ-832D-EGZP", "quantity": 4, "fnsku": "X002IUBZJ1", "asin": "B009074N2K", "expiration": "2026-03-01", "prepInstructions": [ { "prepType": "ITEM_LABELING", "prepOwner": "SELLER" }, { "prepType": "ITEM_NO_PREP", "prepOwner": "SELLER" } ] } ], "externalContainerIdentifier": "FBA18TLR9DD3U000010", "boxId": "FBA18TLR9DD3U000010", "dimensions": { "unitOfMeasurement": "IN", "length": 5, "width": 5, "height": 5 }, "contentInformationSource": "BOX_CONTENT_PROVIDED" }

Expected Behavior

When a packageId is omitted from the update request:
1. The corresponding box should be removed.
2. A new box should not be generated unless explicitly added in the request.

Actual Behavior
1. Omitting the packageId does not remove the box.
2. Instead, a new box with a new packageId is generated.

Request for Clarification
• Is this the intended behavior for the API? If so, please update the documentation to clarify this behavior and provide guidance on alternative approaches to remove a box while adhering to the 5%/6 units rule.
• If not, could you address this issue to ensure that omitting packageId results in the box being removed as expected?

@lucasrossell
Copy link

We have also had problems with this endpoint. It doesn't seem to work correctly at all from our perspective. #4582

@puppsupr puppsupr self-assigned this Feb 20, 2025
@puppsupr
Copy link

Hi @eshevchenko,
Have you opened a support case for this ?

@puppsupr puppsupr added Support Issue Issues that requires a Developer Support case FBA Inbound Issues related to FBA Inbound APIs labels Feb 21, 2025
@eshevchenko
Copy link
Author

Hi @puppsupr , no, we haven’t opened a support case. Instead, we reworked our flow differently. Dealing with such 'magic' endpoints can be frustrating when it’s unclear whether something is a bug or an intended feature

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FBA Inbound Issues related to FBA Inbound APIs Support Issue Issues that requires a Developer Support case
Projects
None yet
Development

No branches or pull requests

3 participants