Products & Services

All API Operations related with products & services

READ Scope

List all Products & Services

get

Retrieves all the products and services

Authorizations
Responses
200
OK
application/json
get
GET /v1/product-services HTTP/1.1
Host: api.nuvio.io
Authorization: YOUR_API_KEY
Accept: */*
200

OK

{
  "success": true,
  "errors": [
    "text"
  ],
  "data": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "code": "text",
      "name": "text",
      "taxes": [
        {
          "taxId": "123e4567-e89b-12d3-a456-426614174000",
          "taxName": "text"
        }
      ]
    }
  ]
}

Get a Product / Service by ID

get

Retrieves a single product or service by its unique ID or user-generated product code.

Authorizations
Path parameters
idstringRequired
Responses
200
OK
application/json
get
GET /v1/product-services/{id} HTTP/1.1
Host: api.nuvio.io
Authorization: YOUR_API_KEY
Accept: */*
200

OK

{
  "success": true,
  "errors": [
    "text"
  ],
  "data": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "code": "text",
    "name": "text",
    "taxes": [
      {
        "taxId": "123e4567-e89b-12d3-a456-426614174000",
        "taxName": "text"
      }
    ]
  }
}

WRITE Scope

Create a new Product or Service

post

Creates a new product or service

Authorizations
Body
all ofOptional
Responses
200
OK
application/json
post
POST /v1/product-services HTTP/1.1
Host: api.nuvio.io
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 85

{
  "name": "text",
  "productCode": "text",
  "taxes": [
    "123e4567-e89b-12d3-a456-426614174000"
  ]
}
200

OK

{
  "success": true,
  "errors": [
    "text"
  ],
  "data": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "code": "text",
    "name": "text",
    "taxes": [
      {
        "taxId": "123e4567-e89b-12d3-a456-426614174000",
        "taxName": "text"
      }
    ]
  }
}

UPDATE Scope

Update Product or Service

put

Updates an existing product or service

Authorizations
Path parameters
idstring · uuidRequired
Body
all ofOptional
Responses
200
OK
application/json
put
PUT /v1/product-services/{id} HTTP/1.1
Host: api.nuvio.io
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 85

{
  "name": "text",
  "productCode": "text",
  "taxes": [
    "123e4567-e89b-12d3-a456-426614174000"
  ]
}
200

OK

{
  "success": true,
  "errors": [
    "text"
  ],
  "data": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "code": "text",
    "name": "text",
    "taxes": [
      {
        "taxId": "123e4567-e89b-12d3-a456-426614174000",
        "taxName": "text"
      }
    ]
  }
}

Last updated