Discussions

Ask a Question
Back to All

while posting product on sellbrite through api getting 500 in response

i'm trying to create product on sellbrite with the help of
PRODUCT POST API
header =
{
'Accept': 'application/json',
'Content-Type': 'application/json',
'Authorization': 'Basic account_token+secret_key'
}

AND HERE IS MY URL

'https://api.sellbrite.com/v1/products/FURN_6666'

AND HERE IS MY PAYLOAD
{
'name': 'Acoustic Bloc Screens', '
description': '',
'brand': '',
'category_name': 'Office Furniture',
'store_product_url': 'http://localhost:8069/shop/furn-6666-acoustic-bloc-screens-23',
'manufacturer': '',
'manufacturer_model_number': '',
'upc': '',
'package_unit_of_length': 'inches',
'package_unit_of_weight': 'pounds',
'asin': '',
'package_height': 0,
'package_width': 0,
'package_length': 0,
'package_weight': 0,
'image_list': ['https://i.ibb.co/b7Q6YtR/dfd19fa7d938.png'],
'price': 2950.0
}
response = requests.request("POST", url, json=payload, headers=headers)
in response.text getting
'{"status":500,"error":"Internal Server Error"}'
but when i used the post api from ur api reference https://developer.sellbrite.com/reference/products its giving the required result