Beispielanfrage
PATCH https://api.jupiter-erp.com/api/account/products/example-id
Code
curl -X PATCH 'https://api.jupiter-erp.com/api/account/products/example-id' \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
-H 'X-Account-Uuid: YOUR_ACCOUNT_UUID' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"sku": "string",
"name": "string",
"description": "string",
"type": "physical",
"unit_code": "C62",
"tax_rate": 0
}'Parameter
| Name | In | Pflicht | Beschreibung |
|---|---|---|---|
| id | path | ja | — |
Request Body
Optional
ModellUpdateProductRequest
| Feld | Typ | Beschreibung |
|---|---|---|
| description | string | — |
| has_stock | boolean | — |
| internal_note | string | — |
| name | string | — |
| price_net | integer | — |
| purchase_price_net | integer | — |
| sku | string | — |
| tax_rate | number | — |
| type | string | string
|
| unit_code | string | UN/CEFACT unit of measure code (Recommendation 20/21). Null allowed for optional positions.
Code meanings:
- C62: unit (piece)
- HUR: hour
- DAY: day
- KGM: kilogram
- GRM: gram
- LTR: litre
- CMT: centimetre
- MTR: metre
- MTK: square metre
- MTQ: cubic metre
- KMT: kilometre
- TNE: tonne (metric)
- PAC: package
- PR: pair
- BOX: box
- RO: roll
- SET: set
- PCE: page
- MIN: minute
- SEC: second
- MLT: millilitre
- MMT: millimetre
- P1: percent
- ZZ: lump sum (generic / no unit)
string
|
Beispiel Request
{
"sku": "string",
"name": "string",
"description": "string",
"type": "physical",
"unit_code": "C62",
"tax_rate": 0
}Antworten
200OK
ModellProduct
| Feld | Typ | Beschreibung |
|---|---|---|
| created_at | string (date-time) | Creation timestamp in ISO 8601 format. |
| description | string | — |
| has_stock | boolean | — |
| id* | integer | — |
| internal_note | string | — |
| name* | string | — |
| price_net | integer | — |
| purchase_price_net | integer | — |
| sku | string | — |
| tax_rate | number | — |
| type | string | string
|
| unit_code | string | UN/CEFACT unit of measure code (Recommendation 20/21). Null allowed for optional positions.
Code meanings:
- C62: unit (piece)
- HUR: hour
- DAY: day
- KGM: kilogram
- GRM: gram
- LTR: litre
- CMT: centimetre
- MTR: metre
- MTK: square metre
- MTQ: cubic metre
- KMT: kilometre
- TNE: tonne (metric)
- PAC: package
- PR: pair
- BOX: box
- RO: roll
- SET: set
- PCE: page
- MIN: minute
- SEC: second
- MLT: millilitre
- MMT: millimetre
- P1: percent
- ZZ: lump sum (generic / no unit)
string
|
| updated_at | string (date-time) | Last update timestamp in ISO 8601 format. |
Beispiel Response
{
"id": 0,
"sku": "string",
"name": "string",
"description": "string",
"type": "physical",
"unit_code": "C62"
}Products