Product


Use the Product resource to record details about the products you sell in your store. Products may be physical or digital goods or services.

Products are identified by a unique SKU. Products hold various standard and custom attributes.

Create a Product

POST/products

curl -X POST https://api.pilon.io/products \
     -H "Authorization: Bearer ACCESS_TOKEN_GOES_HERE" \
     -H "Content-Type: application/json" \
     -d $'{
		  "environment": "string",
		  "sku": "string",
		  "name": "string",
		  "slug": "string",
		  "shortDesc": "string",
		  "longDesc": "string",
		  "image": "string",
		  "additionalImages": "string",
		  "weight": "string",
		  "requiresShipping": "string",
		  "prices": "string",
		  "attributes": "string",
		  "primaryPrice": "string"
		}'

Retrieve a Product

GET/products/{id}

curl -X GET https://api.pilon.io/products/{id} \
     -H "Authorization: Bearer ACCESS_TOKEN_GOES_HERE" \
     -H "Content-Type: application/json"

Update a Product

PUT/products/{id}

curl -X PUT https://api.pilon.io/products/{id} \
     -H "Authorization: Bearer ACCESS_TOKEN_GOES_HERE" \
     -H "Content-Type: application/json" \
     -d $'{
		  "sku": "string",
		  "name": "string",
		  "slug": "string",
		  "shortDesc": "string",
		  "longDesc": "string",
		  "image": "string",
		  "weight": "string",
		  "requiresShipping": "string",
		  "prices": "string",
		  "attributes": "string",
		  "primaryPrice": "string"
		}'

Delete a Product

DELETE/products/{id}

curl -X DELETE https://api.pilon.io/products/{id} \
     -H "Authorization: Bearer ACCESS_TOKEN_GOES_HERE" \
     -H "Content-Type: application/json"

List All Products

GET/products

curl -X GET https://api.pilon.io/products \
     -H "Authorization: Bearer ACCESS_TOKEN_GOES_HERE" \
     -H "Content-Type: application/json"