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.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.x-api-key: ********************{
"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"
}
]
}
]
}
}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"
}
]
}
]
}
}'{
"data": {
"uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
"warns": [
"Fatura tipi SATIS olarak belirlendi!"
]
}
}