latestOpenAPI 3.0.32026-08-101200629.5 KB

2c51a28d0f48

Empresa
Produtos e Serviços
Serviços

Criar Serviço

Criar Serviço

post/api/services

Request body

Example request

{
  "data": [
    {
      "attributes": {
        "customs_cost": 0,
        "ean_barcode": "",
        "estimated_total_cost": 0,
        "financial_cost": 0,
        "item_code": "333333",
        "item_description": "Serviço NOR",
        "other_cost": 0,
        "purchase_price": 0,
        "sales_price": 10,
        "sales_price_2": 20,
        "sales_price_3": 30,
        "transport_cost": 0,
        "type": "Service"
      },
      "type": "services"
    }
  ]
}

Response

Sucesso

Example response

{
  "data": [
    {
      "attributes": {
        "accounting_number": null,
        "applied_tax_code": null,
        "applied_tax_exemption_reason_id": null,
        "customs_cost": 0,
        "ean_barcode": "",
        "estimated_total_cost": 0,
        "financial_cost": 0,
        "is_active": true,
        "is_merchandise": null,
        "item_code": "333333",
        "item_description": "Serviço NOR",
        "location_in_warehouse": null,
        "notes": null,
        "other_cost": 0,
        "product_inventory_type": null,
        "purchase_price": 0,
        "sales_price": 10,
        "sales_price_2": 20,
        "sales_price_2_vat_display": null,
        "sales_price_3": 30,
        "sales_price_3_vat_display": null,
        "sales_price_includes_vat": null,
        "sales_price_vat_display": null,
        "service_group": null,
        "tax_code": null,
        "transport_cost": 0
      },
      "id": "19",
      "relationships": {
        "applied_tax_exemption_reason": {
          "data": null
        },
        "company": {
          "data": {
            "id": "800000046",
            "type": "current_company"
          }
        },
        "item_families": {
          "data": null
        },
        "tax_exemption_reasons": {
          "data": null
        },
        "unit_of_measure": {
          "data": {
            "id": "2",
            "type": "units_of_measure"
          }
        }
      },
      "type": "services"
    }
  ],
  "meta": {
    "observed": {
      "scalar": 1
    }
  }
}