amzn / selling-partner-api-models

This repository contains OpenAPI models for developers to use when developing software to call Selling Partner APIs.
Apache License 2.0
569 stars 730 forks source link

[finances v0 amount missing]RemovalShipmentAdjustmentEvent missing itemFees #363

Closed shawn1207 closed 4 months ago

shawn1207 commented 4 months ago

This is the api interface structure I access This is the settlement report downloaded by the operation: image This is the data I get by accessing the api: image The api seems to be missing the item fee amount(0.41)。What should I do to solve it?

shreeharsh-a commented 4 months ago

Hi!

Per the docs, the response schema for the portion of json in the screenshot is:

"RemovalShipmentItemAdjustmentList": {
          "type": "array",
          "description": "A comma-delimited list of Removal shipmentItemAdjustment details for FBA inventory.",
          "items": {
            "$ref": "#/definitions/RemovalShipmentItemAdjustment"
          }
        }
"RemovalShipmentItemAdjustment": {
      "type": "object",
      "properties": {
        "RemovalShipmentItemId": {
          "type": "string",
          "description": "An identifier for an item in a removal shipment."
        },
        "TaxCollectionModel": {
          "type": "string",
          "description": "The tax collection model applied to the item.\n\nPossible values:\n\n* MarketplaceFacilitator - Tax is withheld and remitted to the taxing authority by Amazon on behalf of the seller.\n\n* Standard - Tax is paid to the seller and not remitted to the taxing authority by Amazon."
        },
        "FulfillmentNetworkSKU": {
          "type": "string",
          "description": "The Amazon fulfillment network SKU for the item."
        },
        "AdjustedQuantity": {
          "type": "integer",
          "format": "int32",
          "description": "Adjusted quantity of removal shipmentItemAdjustment items."
        },
        "RevenueAdjustment": {
          "description": "The total amount adjusted for disputed items.",
          "$ref": "#/definitions/Currency"
        },
        "TaxAmountAdjustment": {
          "description": "Adjustment on the Tax collected amount on the adjusted revenue.",
          "$ref": "#/definitions/Currency"
        },
        "TaxWithheldAdjustment": {
          "description": "Adjustment the tax withheld and remitted to the taxing authority by Amazon on behalf of the seller. If TaxCollectionModel=MarketplaceFacilitator, then TaxWithheld=TaxAmount (except the TaxWithheld amount is a negative number). Otherwise TaxWithheld=0.",
          "$ref": "#/definitions/Currency"
        }
      },
      "description": "Item-level information for a removal shipment item adjustment."
    },

Thus the API response is correct. You can find the fee amount on other events though - please see if you can use those events that do contain this data.

Thanks!