BillingPaymentsCrypto
BillingPaymentsCrypto
  • Introduction
    • 👋 Welcome
    • ▶️ What you need to operate
    • 🔑 Sandbox environment credentials
    • 🔧 Postman Collection
  • About us
    • 🌐 About us
    • ✨ Use cases
    • 🛡️ Security and data ownership
    • 💲 Pricing
  • Examples by country
  • API Reference
  • Webhooks
LogoLogo
API Reference📦products

PUT
https://api-billing.koywe.com/V1/products/:product_id
PUT
/V1/products/:product_id
1curl -X PUT https://api-billing.koywe.com/V1/products/product_id \
2 -H "Authorization: Bearer <token>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "name": "string"
6}'
Try it
200Updated
1{
2 "name": "string",
3 "status": 1,
4 "type": 1,
5 "product_id": "string",
6 "invoicing_details": "string",
7 "additional_details": "string",
8 "model": "string",
9 "brand": "string",
10 "sku": "string",
11 "barcode": "string",
12 "measure_unit": "string",
13 "embedded_quantity_barcode": true,
14 "embedded_quantity_barcode_decimals": 1,
15 "additional_data_1": "string",
16 "additional_data_2": "string",
17 "additional_data_3": "string",
18 "prices": [
19 {
20 "price_list_id": "string",
21 "currency_id": "string",
22 "unit_net": 1.1,
23 "unit_taxes": 1.1,
24 "unit_total": 1.1,
25 "sales_commission_percentage": 1.1,
26 "taxes": [
27 {
28 "tax_type_id": 1,
29 "tax_percentage": 1.1,
30 "tax_amount": 1.1
31 }
32 ]
33 }
34 ],
35 "inventories": {
36 "total_available": 1.1,
37 "total_reserved": 1.1,
38 "details": [
39 {
40 "product_location_id": "string",
41 "available_quantity": 1.1,
42 "reserved_quantity": 1.1
43 }
44 ]
45 }
46}
Was this page helpful?
Previous

Deletes a specific product

Next
Built with
Update product

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

product_idstringRequired

Request

This endpoint expects an object.
namestringRequired
skustringOptional

Response

Product updated successfully
namestring
Product name
statusinteger
0 = inactive, 1 = active
typeinteger
1 = physical product, 2 = service
product_idstring or null
Read only. Internal ID of the product
invoicing_detailsstring or null
Optional. Extra information to be included in the long_description of invoices
additional_detailsstring or null
Optional. Additional information to be used internally
modelstring or null
Optional. Product model
brandstring or null
Optional. Product brand
skustring or null
Internal code that identifies a product or service. If not entered, an automatic number will be assigned
barcodestring or null
Optional. Barcode that is printed on the product box, usually generated by the supplier
measure_unitstring or null
embedded_quantity_barcodeboolean or null
Optional. This field is used to identify when a product can be sold using embedded quantity barcodes. 0 = not a quantity barcode product. 1 = quantity barcode enabled. 0 by default
embedded_quantity_barcode_decimalsinteger or null
Optional. Decimals associated with the quantity barcode. 0 by default
additional_data_1string or null
Optional. Any additional information you need regarding the product
additional_data_2string or null
Optional. Any additional information you need regarding the product
additional_data_3string or null
Optional. Any additional information you need regarding the product
priceslist of objects or null
inventoriesobject or null

Errors

Product updated successfully

1 = physical product, 2 = service

Optional. Extra information to be included in the long_description of invoices

0 = inactive, 1 = active

Optional. This field is used to identify when a product can be sold using embedded quantity barcodes. 0 = not a quantity barcode product. 1 = quantity barcode enabled. 0 by default