All API Operations related with products & services
Last updated 6 months ago
Retrieves all the products and services
/v1/product-services
curl -L \ --url 'https://api.nuvio.io/v1/product-services' \ --header 'Authorization: YOUR_API_KEY'
{ "success": true, "errors": [ "text" ], "data": [ { "id": "123e4567-e89b-12d3-a456-426614174000", "code": "text", "name": "text", "taxes": [ { "taxId": "123e4567-e89b-12d3-a456-426614174000", "taxName": "text" } ] } ] }
Retrieves a single product or service by its unique ID or user-generated product code.
/v1/product-services/{id}
curl -L \ --url 'https://api.nuvio.io/v1/product-services/{id}' \ --header 'Authorization: YOUR_API_KEY'
{ "success": true, "errors": [ "text" ], "data": { "id": "123e4567-e89b-12d3-a456-426614174000", "code": "text", "name": "text", "taxes": [ { "taxId": "123e4567-e89b-12d3-a456-426614174000", "taxName": "text" } ] } }
Creates a new product or service
curl -L \ --request POST \ --url 'https://api.nuvio.io/v1/product-services' \ --header 'Authorization: YOUR_API_KEY' \ --header 'Content-Type: application/json' \ --data '{ "name": "text", "productCode": "text", "taxes": [ "123e4567-e89b-12d3-a456-426614174000" ] }'
Updates an existing product or service
curl -L \ --request PUT \ --url 'https://api.nuvio.io/v1/product-services/{id}' \ --header 'Authorization: YOUR_API_KEY' \ --header 'Content-Type: application/json' \ --data '{ "name": "text", "productCode": "text", "taxes": [ "123e4567-e89b-12d3-a456-426614174000" ] }'