Rahat Sistem
  1. Serbest Meslek Makbuzu
Rahat Sistem
  • Giriş
  • Listeler
  • Belge Entegrasyonu
    • Fatura
      • Fatura Oluşturma
      • Taslaktaki Faturayı Güncelleme
      • Taslaktaki Faturayı Gönderme
      • Taslaktaki Faturayı Silme
      • Fatura Dışa Aktarma
      • Fatura Listeleme
      • e-Arşiv Faturaları İptal Etme
      • e-Faturaları Yanıtlama
      • Faturayı Mail Olarak Gönderme
      • Fatura İşaretleme
    • İrsaliye
      • İrsaliye Oluşturma
      • Taslaktaki İrsaliyeyi Güncelleme
      • Taslaktaki İrsaliyeyi Silme
      • Taslaktaki İrsaliyeyi Gönderme
      • İrsaliye Dışa Aktarma
      • İrsaliye Listeleme
      • İrsaliye İşaretleme
    • Serbest Meslek Makbuzu
      • Makbuz Oluşturma
        POST
      • Taslaktaki Makbuzu Güncelleme
        POST
      • Taslaktaki Makbuzu Silme
        POST
      • Taslaktaki Makbuzu Gönderme
        POST
      • e-SMM Dışa Aktarma
        POST
      • e-SMM Listeleme
        POST
      • e-SMM İptal Etme
        POST
      • e-SMM Mail Olarak Gönderme
        POST
      • e-SMM İşaretleme
        POST
  1. Serbest Meslek Makbuzu

Taslaktaki Makbuzu Güncelleme

RahatSistem Demo
https://apidemo.rahatsistem.com.tr
RahatSistem Demo
https://apidemo.rahatsistem.com.tr
POST
/v2/documents/sevoucher.update

Önemli Bilgi#

Bu endpoint, taslak makbuzlar üzerinde güncelleme yapmak için kullanılır. Halihazırda taslaklara gönderilmiş olan makbuzunuzu
body.document.External.ID ve body.document.External.Type bilgisi üzerinden güncelleme sağlayabilirsiniz. Request body bilgisi makbuz oluşturma ucu ile aynıdır. Dolayısıyla body.document.External.ID ve body.document.External.Type taslaklardaki bir belge ile eşleşmesi durumunda makbuz güncellemesi yapılır.
DANGER
Resmi olarak gönderilmiş makbuzlar üzerinde güncelleme YAPILAMAZ
TIP
Eğer bu uca gönderilen belge, halihazırda taslaklarda bulunmuyor ise, uç oluşturma ucu gibi davranır ve ilgili bilgiler ile taslaklarda yeni bir belge oluşturur.
DANGER
Dolayısıyla içerideki bir belgeyi güncellerken, hatalı document.External.ID ve document.External.Type gönderim durumuna istenmeyen makbuzlar taslaklara kaydedilebilir. Hatta draft parametresinin falsegönderilme durumunda ise istenilmeyen makbuzlar doğrudan gönderilebilir. Bu duruma kesinlikle dikkat edilmelidir.

Request

Authorization
Add parameter in header
x-api-key
Example:
x-api-key: ********************
Body Params application/json

Example
{
    "draft": true,
    "document": {
        "External": {
            "ID": "string",
            "RefNo": "MEA11152",
            "Type": "Müthiş Entegre App"
        },
        "NumberOrSerie": "RS",
        "UUID": "f50af7e0-0dd5-4361-ab96-2e04f7bc7e30",
        "IssueDateTime": "string",
        "Notes": [
            "string"
        ],
        "CurrencyCode": "TRY",
        "ExchangeRate": 0,
        "TaxExemptions": {
            "KDV": 322
        },
        "Order": {
            "Date": "2023-10-19",
            "Value": "SIP0001"
        },
        "Customer": {
            "TaxNumber": "string",
            "TaxOffice": "string",
            "Name": "string",
            "Alias": "string",
            "Address": "string",
            "District": "string",
            "City": "string",
            "Country": "string",
            "PostalCode": "strin",
            "Phone": "string",
            "Fax": "string",
            "Mail": "string",
            "Website": "string"
        },
        "Lines": [
            {
                "Name": "Örnek mal hizmet adı",
                "Quantity": 19.1,
                "UnitCode": "ADET",
                "Price": 19.05,
                "KDV": {
                    "Percent": 0,
                    "Amount": 0
                },
                "Allowance": {
                    "Percent": 20,
                    "Price": 0
                },
                "WithholdingTax": {
                    "Code": 621
                },
                "AdditionalNames": {
                    "Description": "string",
                    "Brand": "string",
                    "Model": "string",
                    "BuyerCode": "string",
                    "SellerCode": "string",
                    "ManufacturerCode": "string",
                    "Origin": "string",
                    "Note": "string"
                },
                "Taxes": [
                    {
                        "Percent": 20,
                        "Code": "0053"
                    }
                ]
            }
        ]
    }
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://apidemo.rahatsistem.com.tr/v2/documents/sevoucher.update' \
--header 'Content-Type: application/json' \
--header 'x-api-key;' \
--data-raw '{
    "draft": true,
    "document": {
        "External": {
            "ID": "string",
            "RefNo": "MEA11152",
            "Type": "Müthiş Entegre App"
        },
        "NumberOrSerie": "RS",
        "UUID": "f50af7e0-0dd5-4361-ab96-2e04f7bc7e30",
        "IssueDateTime": "string",
        "Notes": [
            "string"
        ],
        "CurrencyCode": "TRY",
        "ExchangeRate": 0,
        "TaxExemptions": {
            "KDV": 322
        },
        "Order": {
            "Date": "2023-10-19",
            "Value": "SIP0001"
        },
        "Customer": {
            "TaxNumber": "string",
            "TaxOffice": "string",
            "Name": "string",
            "Alias": "string",
            "Address": "string",
            "District": "string",
            "City": "string",
            "Country": "string",
            "PostalCode": "strin",
            "Phone": "string",
            "Fax": "string",
            "Mail": "string",
            "Website": "string"
        },
        "Lines": [
            {
                "Name": "Örnek mal hizmet adı",
                "Quantity": 19.1,
                "UnitCode": "ADET",
                "Price": 19.05,
                "KDV": {
                    "Percent": 0,
                    "Amount": 0
                },
                "Allowance": {
                    "Percent": 20,
                    "Price": 0
                },
                "WithholdingTax": {
                    "Code": 621
                },
                "AdditionalNames": {
                    "Description": "string",
                    "Brand": "string",
                    "Model": "string",
                    "BuyerCode": "string",
                    "SellerCode": "string",
                    "ManufacturerCode": "string",
                    "Origin": "string",
                    "Note": "string"
                },
                "Taxes": [
                    {
                        "Percent": 20,
                        "Code": "0053"
                    }
                ]
            }
        ]
    }
}'

Responses

🟢200OK
application/json
Body

Example
{
    "data": {
        "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
        "warns": [
            "string"
        ]
    }
}
🟠400Bad Request
Modified at 2024-05-03 14:31:56
Previous
Makbuz Oluşturma
Next
Taslaktaki Makbuzu Silme
Built with