cancel
Showing results for 
Search instead for 
Did you mean: 

How to fix request body?

PartnerTradeLLC
First-timer

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 1

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! 

 

From Moderator Davis, May the force be with you!