Rahat Sistem
  1. Fatura
Rahat Sistem
  • Giriş
  • Listeler
  • Belge Entegrasyonu
    • Fatura
      • Fatura Oluşturma
        POST
      • Taslaktaki Faturayı Güncelleme
        POST
      • Taslaktaki Faturayı Gönderme
        POST
      • Taslaktaki Faturayı Silme
        POST
      • Fatura Dışa Aktarma
        POST
      • Fatura Listeleme
        POST
      • e-Arşiv Faturaları İptal Etme
        POST
      • e-Faturaları Yanıtlama
        POST
      • Faturayı Mail Olarak Gönderme
        POST
      • Fatura İşaretleme
        POST
    • İ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
      • Taslaktaki Makbuzu Güncelleme
      • Taslaktaki Makbuzu Silme
      • Taslaktaki Makbuzu Gönderme
      • e-SMM Dışa Aktarma
      • e-SMM Listeleme
      • e-SMM İptal Etme
      • e-SMM Mail Olarak Gönderme
      • e-SMM İşaretleme
  1. Fatura

Taslaktaki Faturayı Güncelleme

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

Önemli Bilgi#

Bu endpoint, taslak faturalar üzerinde güncelleme yapmak için kullanılır. Halihazırda taslaklara gönderilmiş olan faturanızı
body.document.External.ID ve body.document.External.Type bilgisi üzerinden güncelleme sağlayabilirsiniz. Request body bilgisi fatura 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 fatura güncellemesi yapılır.
DANGER
Resmi olarak gönderilmiş faturalar ü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 faturalar taslaklara kaydedilebilir. Hatta draft parametresinin falsegönderilme durumunda ise istenilmeyen faturalar 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"
        },
        "Type": "SATIS",
        "Profile": "TEMELFATURA",
        "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"
        },
        "Despatches": [
            {
                "Date": "2023-10-19",
                "Value": "IRS0001"
            }
        ],
        "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"
        },
        "BuyerCustomer": {
            "TaxNumber": "string",
            "TaxOffice": "string",
            "Name": "string",
            "Address": "string",
            "District": "string",
            "City": "string",
            "Country": "string",
            "PostalCode": "strin",
            "Phone": "string",
            "Fax": "string",
            "Mail": "string",
            "Website": "string"
        },
        "PaymentMeans": {
            "DueDate": "string",
            "ChannelCode": "string",
            "AccountNumber": "string",
            "PaymentNote": "string",
            "MeansCode": "string"
        },
        "SGK": {
            "Type": "string",
            "CompCode": "string",
            "CompName": "string",
            "DocNo": "string",
            "StartDate": "string",
            "EndDate": "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/invoice.update' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "draft": true,
    "document": {
        "External": {
            "ID": "string",
            "RefNo": "MEA11152",
            "Type": "Müthiş Entegre App"
        },
        "Type": "SATIS",
        "Profile": "TEMELFATURA",
        "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"
        },
        "Despatches": [
            {
                "Date": "2023-10-19",
                "Value": "IRS0001"
            }
        ],
        "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"
        },
        "BuyerCustomer": {
            "TaxNumber": "string",
            "TaxOffice": "string",
            "Name": "string",
            "Address": "string",
            "District": "string",
            "City": "string",
            "Country": "string",
            "PostalCode": "strin",
            "Phone": "string",
            "Fax": "string",
            "Mail": "string",
            "Website": "string"
        },
        "PaymentMeans": {
            "DueDate": "string",
            "ChannelCode": "string",
            "AccountNumber": "string",
            "PaymentNote": "string",
            "MeansCode": "string"
        },
        "SGK": {
            "Type": "string",
            "CompCode": "string",
            "CompName": "string",
            "DocNo": "string",
            "StartDate": "string",
            "EndDate": "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": [
            "Fatura tipi SATIS olarak belirlendi!"
        ]
    }
}
🟠400Bad Request
Modified at 2024-05-02 09:08:23
Previous
Fatura Oluşturma
Next
Taslaktaki Faturayı Gönderme
Built with