Create Product

Updated 4 days ago ​by nussi

Overview

In order to create a new order from the API you can consume the endpoint presented in this article. In order to consume it, you must:

  • Be authenticated user

For information on how you can authenticate, see: Authentication

Endpoint

Example for such endpoint for TT server is:

https://tt.api.sellercloud.com/rest/api/Products/

For your server endpoint will be:

​https://{your_server_id}.api.sellercloud.com/rest/api/Products/

Request

  • Method Type: HttpPost
  • Authorization: Use Bearer Token + token received from token authentication
  • Header info: Content-Type: application/json
  • Parameters: properties of the new product

Parameter

Data Type

Description

Is Required

CompanyId

int

Information about the company.

Yes

ProductName

string

The name of the new product

Yes

ProductSKU

string

The SKU of the new product

Yes

ProductTypeName

string

The Type Name of the new product

Yes

PurchaserId

int

The ID of the new product's purchaser

Yes - Only if client setting 'Require SiteCost and Buyer/Purchaser while creating product' is enabled

SiteCost

decimal

The site cost of the new product

Yes - Only if client setting 'Require SiteCost and Buyer/Purchaser while creating product' is enabled

DefaultPrice

decimal

The default price of the new product

Yes - Only if client setting 'Require SiteCost and Buyer/Purchaser while creating product' and 'Require SiteCost and Buyer/Purchaser while creating product' are enabled

ManufacturerId

int

The Manufacturer ID of the new product

Yes - Only if client setting 'Require Manufacturer when creating Product' is enabled

AutoAssignUPC

bool

Whether the new product should have Auto Assign UPC

No

ProductNotes

string

Notes for the new product

No

Response

  • If user is authenticated and provides a valid ID of the new product, then response will be Status Code 200 => OK and order metadata in JSON format
  • If user is not authenticated, then response will be Status Code 401 => Not Valid Token
  • On server response => Status Code 500 => Internal Server Error


How did we do?