> For the complete documentation index, see [llms.txt](https://developer.nilvera.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.nilvera.com/api/e-magaza-api/siparisler/siparis-guncellenir..md). Agents can also search and read this documentation through its [MCP server](https://developer.nilvera.com/~gitbook/mcp).

# Sipariş güncellenir.

## PUT /Orders

> Sipariş Güncellenir.

```json
{"openapi":"3.0.1","info":{"title":"Market Place API","version":"v1"},"servers":[{"url":"/marketplace"}],"security":[{"Bearer":[]}],"components":{"securitySchemes":{"Bearer":{"type":"http","description":"API Key Giriniz","scheme":"Bearer","bearerFormat":"JWT"}},"schemas":{"UpdateOrderCommand":{"type":"object","properties":{"UUID":{"type":"string","format":"uuid"},"InvoiceType":{"allOf":[{"$ref":"#/components/schemas/InvoiceType"}]},"Customer":{"allOf":[{"$ref":"#/components/schemas/CustomerDto"}],"nullable":true},"OrderLines":{"type":"array","items":{"$ref":"#/components/schemas/OrderLines"},"nullable":true}},"additionalProperties":false},"InvoiceType":{"enum":["SATIS","IADE","ISTISNA","TEVKIFAT","IHRACKAYITLI","IPTAL","OZELMATRAH","SGK","TEVKIFATIADE","KOMISYONCU","HKSSATIS","HKSKOMISYONCU","KONAKLAMAVERGISI","SARJ","SARJANLIK"],"type":"string"},"CustomerDto":{"type":"object","properties":{"City":{"type":"string","description":"Şehir","nullable":true},"District":{"type":"string","description":"İlçe","nullable":true},"Name":{"type":"string","description":"Müşteri adı","nullable":true},"TaxDepartment":{"type":"string","description":"Vergi dairesi","nullable":true},"Address":{"type":"string","description":"Adres","nullable":true},"Country":{"type":"string","description":"Ülke","nullable":true},"PostalCode":{"type":"string","description":"Posta kodu","nullable":true},"Phone":{"type":"string","description":"Telefon","nullable":true},"Email":{"type":"string","description":"E-posta","nullable":true}},"additionalProperties":false},"OrderLines":{"type":"object","properties":{"ID":{"type":"integer","description":"Sipariş satır ID","format":"int32"},"ProductName":{"type":"string","description":"Ürün adı","nullable":true},"Price":{"type":"number","description":"Birim fiyat","format":"double"},"TotalAmount":{"type":"number","description":"Satır toplamı","format":"double"},"Quantity":{"type":"integer","description":"Miktar","format":"int32"},"TaxPercent":{"type":"number","description":"KDV oranı","format":"double"},"OzelMatrahReason":{"type":"string","description":"Özel matrah sebebi","nullable":true},"OzelMatrahTotal":{"type":"number","description":"Özel matrah tutarı","format":"double","nullable":true},"IsLaborCost":{"type":"boolean","description":"İşçilik bedeli durumu"},"AllowanceTotal":{"type":"number","description":"İskonto tutarı","format":"double"}},"additionalProperties":false}}},"paths":{"/Orders":{"put":{"tags":["Orders"],"summary":"Sipariş Güncellenir.","requestBody":{"content":{"application/json-patch+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/UpdateOrderCommand"}]}},"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/UpdateOrderCommand"}]}},"text/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/UpdateOrderCommand"}]}},"application/*+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/UpdateOrderCommand"}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"boolean"}}}},"400":{"description":"Geçersiz İstek | Gönderdiğiniz istekte geçersiz veriler bulunduğu anlamında gelmektedir | Detaylar için <a target=\"_blank\" href=\"https://developer.nilvera.com/hata-kodlari#badrequest-400\">tıklayınız</a>"},"403":{"description":"Yetkisiz Erişim | Bu uca erişmek için gerekli yetkiye sahip olmadığınız durumda dönülür"},"404":{"description":"Parametrede belirtilen kayıt bulunamadığında dönülür | Detaylar için <a target=\"_blank\" href=\"https://developer.nilvera.com/hata-kodlari#notfound-404\">tıklayınız</a>"},"422":{"description":"Gönderdiğiniz istek geçerli fakat iş kuralları gereği geçersiz değerler içerdiğinde dönülür | Detaylar için <a target=\"_blank\" href=\"https://developer.nilvera.com/hata-kodlari#unprocessableentity-422\">tıklayınız</a>"}}}}}}
```

## The InvoiceType object

```json
{"openapi":"3.0.1","info":{"title":"Market Place API","version":"v1"},"components":{"schemas":{"InvoiceType":{"enum":["SATIS","IADE","ISTISNA","TEVKIFAT","IHRACKAYITLI","IPTAL","OZELMATRAH","SGK","TEVKIFATIADE","KOMISYONCU","HKSSATIS","HKSKOMISYONCU","KONAKLAMAVERGISI","SARJ","SARJANLIK"],"type":"string"}}}}
```

## The CustomerDto object

```json
{"openapi":"3.0.1","info":{"title":"Market Place API","version":"v1"},"components":{"schemas":{"CustomerDto":{"type":"object","properties":{"City":{"type":"string","description":"Şehir","nullable":true},"District":{"type":"string","description":"İlçe","nullable":true},"Name":{"type":"string","description":"Müşteri adı","nullable":true},"TaxDepartment":{"type":"string","description":"Vergi dairesi","nullable":true},"Address":{"type":"string","description":"Adres","nullable":true},"Country":{"type":"string","description":"Ülke","nullable":true},"PostalCode":{"type":"string","description":"Posta kodu","nullable":true},"Phone":{"type":"string","description":"Telefon","nullable":true},"Email":{"type":"string","description":"E-posta","nullable":true}},"additionalProperties":false}}}}
```

## The OrderLines object

```json
{"openapi":"3.0.1","info":{"title":"Market Place API","version":"v1"},"components":{"schemas":{"OrderLines":{"type":"object","properties":{"ID":{"type":"integer","description":"Sipariş satır ID","format":"int32"},"ProductName":{"type":"string","description":"Ürün adı","nullable":true},"Price":{"type":"number","description":"Birim fiyat","format":"double"},"TotalAmount":{"type":"number","description":"Satır toplamı","format":"double"},"Quantity":{"type":"integer","description":"Miktar","format":"int32"},"TaxPercent":{"type":"number","description":"KDV oranı","format":"double"},"OzelMatrahReason":{"type":"string","description":"Özel matrah sebebi","nullable":true},"OzelMatrahTotal":{"type":"number","description":"Özel matrah tutarı","format":"double","nullable":true},"IsLaborCost":{"type":"boolean","description":"İşçilik bedeli durumu"},"AllowanceTotal":{"type":"number","description":"İskonto tutarı","format":"double"}},"additionalProperties":false}}}}
```
