Skip to main content

How to fix request body?

  • Jun 10, 2021 12:29 PM UTC
  • 1 reply
  • 0 views

How to fix API error (products/productId)?

{
    "Message": "The request is invalid.",
    "ModelState": {
        "id": [
            "The value 'productId' is not valid for Int32."
        ]
    }
}


Body
{
    "aliases": null,
    "productId": 1310726,
    "sku": "19",
    "name": "fffffff",
    "price": 1,
    "defaultCost": 1,
    "length": 1,
    "width": 1,
    "height": 1,
    "weightOz": 1,
    "internalNotes": "dwa",
    "fulfillmentSku": "dwa",
    "active": true,
    "productCategory": null,
    "productType": null,
    "warehouseLocation": null,
    "defaultCarrierCode": null,
    "defaultServiceCode": null,
    "defaultPackageCode": null,
    "defaultIntlCarrierCode": null,
    "defaultIntlServiceCode": null,
    "defaultIntlPackageCode": null,
    "defaultConfirmation": null,
    "defaultIntlConfirmation": null,
    "customsDescription": "dwa",
    "customsValue": null,
    "customsTariffNo": "dwa",
    "customsCountryCode": "dwa",
    "noCustoms": null,
    "tags": null
}    
productId value from API products list





1 reply

Moderator-Davis

Hello @PartnerTradeLLC, 

 

Thank you so much for posting here in the community today! Your participation is greatly appreciated. 

 

When it comes to direct API questions like this, I want to get you in touch directly with our experts! Please take the opportunity to reach out to apisupport@shipstation.com so that our API team can assist you directly on this matter. 

 

I am very confident that my API team will be able to assist!