curl --request POST \
--url https://integration.fatorly.com/v1/credit-notes \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"documentType": "Invoice",
"invoiceNumber": "<string>",
"issueDate": "2023-12-25",
"dueDate": "2023-12-25",
"currency": "<string>",
"seller": {
"name": "<string>",
"trn": "<string>",
"participantId": "<string>",
"address": {
"line1": "<string>",
"city": "<string>",
"countryCode": "<string>",
"line2": null,
"countrySubentity": null,
"postalCode": null
},
"contactPhone": null,
"contactEmail": null,
"contactName": null,
"legalRegistrationNumber": null,
"legalRegistrationType": null,
"authorityName": null
},
"buyer": {
"name": "<string>",
"trn": "<string>",
"participantId": "<string>",
"address": {
"line1": "<string>",
"city": "<string>",
"countryCode": "<string>",
"line2": null,
"countrySubentity": null,
"postalCode": null
},
"contactPhone": null,
"contactEmail": null,
"contactName": null,
"legalRegistrationNumber": null,
"legalRegistrationType": null,
"authorityName": null
},
"lines": [
{
"id": "<string>",
"description": "<string>",
"quantity": 123,
"unitCode": "<string>",
"unitPrice": 123,
"lineExtensionAmount": 123,
"vatCategory": "S",
"vatRate": 123,
"exemptionReasonCode": null,
"allowancesCharges": null,
"buyersItemId": null,
"sellersItemId": null,
"standardItemId": null,
"standardItemSchemeId": null,
"classifications": null,
"itemTypeCode": "G",
"serviceAccountingCode": null,
"goodsNatureCode": null
}
],
"references": {
"purchaseOrderId": "<string>",
"contractId": "<string>",
"salesOrderId": null,
"projectId": null,
"despatchId": null,
"receiptId": null,
"buyerReference": null,
"purchaseOrderSchemeId": null,
"contractSchemeId": null,
"salesOrderSchemeId": null,
"projectSchemeId": null,
"despatchSchemeId": null,
"receiptSchemeId": null
},
"notes": "<string>",
"precedingInvoiceNumber": "<string>",
"taxTotal": null,
"legalMonetaryTotal": null,
"allowancesCharges": null,
"additionalDocuments": null,
"delivery": null,
"transactionType": null,
"beneficiaryId": null,
"principalId": null,
"billingFrequencyCode": null,
"taxCurrencyCode": null,
"currencyExchangeRate": null,
"paymentMode": "30",
"paymentTerms": null,
"paymentBankAccount": null,
"vatPointDate": null,
"billingPeriodStart": null,
"billingPeriodEnd": null,
"precedingInvoiceIssueDate": null,
"prepaidAmount": null
}
'import requests
url = "https://integration.fatorly.com/v1/credit-notes"
payload = {
"documentType": "Invoice",
"invoiceNumber": "<string>",
"issueDate": "2023-12-25",
"dueDate": "2023-12-25",
"currency": "<string>",
"seller": {
"name": "<string>",
"trn": "<string>",
"participantId": "<string>",
"address": {
"line1": "<string>",
"city": "<string>",
"countryCode": "<string>",
"line2": None,
"countrySubentity": None,
"postalCode": None
},
"contactPhone": None,
"contactEmail": None,
"contactName": None,
"legalRegistrationNumber": None,
"legalRegistrationType": None,
"authorityName": None
},
"buyer": {
"name": "<string>",
"trn": "<string>",
"participantId": "<string>",
"address": {
"line1": "<string>",
"city": "<string>",
"countryCode": "<string>",
"line2": None,
"countrySubentity": None,
"postalCode": None
},
"contactPhone": None,
"contactEmail": None,
"contactName": None,
"legalRegistrationNumber": None,
"legalRegistrationType": None,
"authorityName": None
},
"lines": [
{
"id": "<string>",
"description": "<string>",
"quantity": 123,
"unitCode": "<string>",
"unitPrice": 123,
"lineExtensionAmount": 123,
"vatCategory": "S",
"vatRate": 123,
"exemptionReasonCode": None,
"allowancesCharges": None,
"buyersItemId": None,
"sellersItemId": None,
"standardItemId": None,
"standardItemSchemeId": None,
"classifications": None,
"itemTypeCode": "G",
"serviceAccountingCode": None,
"goodsNatureCode": None
}
],
"references": {
"purchaseOrderId": "<string>",
"contractId": "<string>",
"salesOrderId": None,
"projectId": None,
"despatchId": None,
"receiptId": None,
"buyerReference": None,
"purchaseOrderSchemeId": None,
"contractSchemeId": None,
"salesOrderSchemeId": None,
"projectSchemeId": None,
"despatchSchemeId": None,
"receiptSchemeId": None
},
"notes": "<string>",
"precedingInvoiceNumber": "<string>",
"taxTotal": None,
"legalMonetaryTotal": None,
"allowancesCharges": None,
"additionalDocuments": None,
"delivery": None,
"transactionType": None,
"beneficiaryId": None,
"principalId": None,
"billingFrequencyCode": None,
"taxCurrencyCode": None,
"currencyExchangeRate": None,
"paymentMode": "30",
"paymentTerms": None,
"paymentBankAccount": None,
"vatPointDate": None,
"billingPeriodStart": None,
"billingPeriodEnd": None,
"precedingInvoiceIssueDate": None,
"prepaidAmount": None
}
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
documentType: 'Invoice',
invoiceNumber: '<string>',
issueDate: '2023-12-25',
dueDate: '2023-12-25',
currency: '<string>',
seller: {
name: '<string>',
trn: '<string>',
participantId: '<string>',
address: {
line1: '<string>',
city: '<string>',
countryCode: '<string>',
line2: null,
countrySubentity: null,
postalCode: null
},
contactPhone: null,
contactEmail: null,
contactName: null,
legalRegistrationNumber: null,
legalRegistrationType: null,
authorityName: null
},
buyer: {
name: '<string>',
trn: '<string>',
participantId: '<string>',
address: {
line1: '<string>',
city: '<string>',
countryCode: '<string>',
line2: null,
countrySubentity: null,
postalCode: null
},
contactPhone: null,
contactEmail: null,
contactName: null,
legalRegistrationNumber: null,
legalRegistrationType: null,
authorityName: null
},
lines: [
{
id: '<string>',
description: '<string>',
quantity: 123,
unitCode: '<string>',
unitPrice: 123,
lineExtensionAmount: 123,
vatCategory: 'S',
vatRate: 123,
exemptionReasonCode: null,
allowancesCharges: null,
buyersItemId: null,
sellersItemId: null,
standardItemId: null,
standardItemSchemeId: null,
classifications: null,
itemTypeCode: 'G',
serviceAccountingCode: null,
goodsNatureCode: null
}
],
references: {
purchaseOrderId: '<string>',
contractId: '<string>',
salesOrderId: null,
projectId: null,
despatchId: null,
receiptId: null,
buyerReference: null,
purchaseOrderSchemeId: null,
contractSchemeId: null,
salesOrderSchemeId: null,
projectSchemeId: null,
despatchSchemeId: null,
receiptSchemeId: null
},
notes: '<string>',
precedingInvoiceNumber: '<string>',
taxTotal: null,
legalMonetaryTotal: null,
allowancesCharges: null,
additionalDocuments: null,
delivery: null,
transactionType: null,
beneficiaryId: null,
principalId: null,
billingFrequencyCode: null,
taxCurrencyCode: null,
currencyExchangeRate: null,
paymentMode: '30',
paymentTerms: null,
paymentBankAccount: null,
vatPointDate: null,
billingPeriodStart: null,
billingPeriodEnd: null,
precedingInvoiceIssueDate: null,
prepaidAmount: null
})
};
fetch('https://integration.fatorly.com/v1/credit-notes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://integration.fatorly.com/v1/credit-notes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'documentType' => 'Invoice',
'invoiceNumber' => '<string>',
'issueDate' => '2023-12-25',
'dueDate' => '2023-12-25',
'currency' => '<string>',
'seller' => [
'name' => '<string>',
'trn' => '<string>',
'participantId' => '<string>',
'address' => [
'line1' => '<string>',
'city' => '<string>',
'countryCode' => '<string>',
'line2' => null,
'countrySubentity' => null,
'postalCode' => null
],
'contactPhone' => null,
'contactEmail' => null,
'contactName' => null,
'legalRegistrationNumber' => null,
'legalRegistrationType' => null,
'authorityName' => null
],
'buyer' => [
'name' => '<string>',
'trn' => '<string>',
'participantId' => '<string>',
'address' => [
'line1' => '<string>',
'city' => '<string>',
'countryCode' => '<string>',
'line2' => null,
'countrySubentity' => null,
'postalCode' => null
],
'contactPhone' => null,
'contactEmail' => null,
'contactName' => null,
'legalRegistrationNumber' => null,
'legalRegistrationType' => null,
'authorityName' => null
],
'lines' => [
[
'id' => '<string>',
'description' => '<string>',
'quantity' => 123,
'unitCode' => '<string>',
'unitPrice' => 123,
'lineExtensionAmount' => 123,
'vatCategory' => 'S',
'vatRate' => 123,
'exemptionReasonCode' => null,
'allowancesCharges' => null,
'buyersItemId' => null,
'sellersItemId' => null,
'standardItemId' => null,
'standardItemSchemeId' => null,
'classifications' => null,
'itemTypeCode' => 'G',
'serviceAccountingCode' => null,
'goodsNatureCode' => null
]
],
'references' => [
'purchaseOrderId' => '<string>',
'contractId' => '<string>',
'salesOrderId' => null,
'projectId' => null,
'despatchId' => null,
'receiptId' => null,
'buyerReference' => null,
'purchaseOrderSchemeId' => null,
'contractSchemeId' => null,
'salesOrderSchemeId' => null,
'projectSchemeId' => null,
'despatchSchemeId' => null,
'receiptSchemeId' => null
],
'notes' => '<string>',
'precedingInvoiceNumber' => '<string>',
'taxTotal' => null,
'legalMonetaryTotal' => null,
'allowancesCharges' => null,
'additionalDocuments' => null,
'delivery' => null,
'transactionType' => null,
'beneficiaryId' => null,
'principalId' => null,
'billingFrequencyCode' => null,
'taxCurrencyCode' => null,
'currencyExchangeRate' => null,
'paymentMode' => '30',
'paymentTerms' => null,
'paymentBankAccount' => null,
'vatPointDate' => null,
'billingPeriodStart' => null,
'billingPeriodEnd' => null,
'precedingInvoiceIssueDate' => null,
'prepaidAmount' => null
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://integration.fatorly.com/v1/credit-notes"
payload := strings.NewReader("{\n \"documentType\": \"Invoice\",\n \"invoiceNumber\": \"<string>\",\n \"issueDate\": \"2023-12-25\",\n \"dueDate\": \"2023-12-25\",\n \"currency\": \"<string>\",\n \"seller\": {\n \"name\": \"<string>\",\n \"trn\": \"<string>\",\n \"participantId\": \"<string>\",\n \"address\": {\n \"line1\": \"<string>\",\n \"city\": \"<string>\",\n \"countryCode\": \"<string>\",\n \"line2\": null,\n \"countrySubentity\": null,\n \"postalCode\": null\n },\n \"contactPhone\": null,\n \"contactEmail\": null,\n \"contactName\": null,\n \"legalRegistrationNumber\": null,\n \"legalRegistrationType\": null,\n \"authorityName\": null\n },\n \"buyer\": {\n \"name\": \"<string>\",\n \"trn\": \"<string>\",\n \"participantId\": \"<string>\",\n \"address\": {\n \"line1\": \"<string>\",\n \"city\": \"<string>\",\n \"countryCode\": \"<string>\",\n \"line2\": null,\n \"countrySubentity\": null,\n \"postalCode\": null\n },\n \"contactPhone\": null,\n \"contactEmail\": null,\n \"contactName\": null,\n \"legalRegistrationNumber\": null,\n \"legalRegistrationType\": null,\n \"authorityName\": null\n },\n \"lines\": [\n {\n \"id\": \"<string>\",\n \"description\": \"<string>\",\n \"quantity\": 123,\n \"unitCode\": \"<string>\",\n \"unitPrice\": 123,\n \"lineExtensionAmount\": 123,\n \"vatCategory\": \"S\",\n \"vatRate\": 123,\n \"exemptionReasonCode\": null,\n \"allowancesCharges\": null,\n \"buyersItemId\": null,\n \"sellersItemId\": null,\n \"standardItemId\": null,\n \"standardItemSchemeId\": null,\n \"classifications\": null,\n \"itemTypeCode\": \"G\",\n \"serviceAccountingCode\": null,\n \"goodsNatureCode\": null\n }\n ],\n \"references\": {\n \"purchaseOrderId\": \"<string>\",\n \"contractId\": \"<string>\",\n \"salesOrderId\": null,\n \"projectId\": null,\n \"despatchId\": null,\n \"receiptId\": null,\n \"buyerReference\": null,\n \"purchaseOrderSchemeId\": null,\n \"contractSchemeId\": null,\n \"salesOrderSchemeId\": null,\n \"projectSchemeId\": null,\n \"despatchSchemeId\": null,\n \"receiptSchemeId\": null\n },\n \"notes\": \"<string>\",\n \"precedingInvoiceNumber\": \"<string>\",\n \"taxTotal\": null,\n \"legalMonetaryTotal\": null,\n \"allowancesCharges\": null,\n \"additionalDocuments\": null,\n \"delivery\": null,\n \"transactionType\": null,\n \"beneficiaryId\": null,\n \"principalId\": null,\n \"billingFrequencyCode\": null,\n \"taxCurrencyCode\": null,\n \"currencyExchangeRate\": null,\n \"paymentMode\": \"30\",\n \"paymentTerms\": null,\n \"paymentBankAccount\": null,\n \"vatPointDate\": null,\n \"billingPeriodStart\": null,\n \"billingPeriodEnd\": null,\n \"precedingInvoiceIssueDate\": null,\n \"prepaidAmount\": null\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Api-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://integration.fatorly.com/v1/credit-notes")
.header("X-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"documentType\": \"Invoice\",\n \"invoiceNumber\": \"<string>\",\n \"issueDate\": \"2023-12-25\",\n \"dueDate\": \"2023-12-25\",\n \"currency\": \"<string>\",\n \"seller\": {\n \"name\": \"<string>\",\n \"trn\": \"<string>\",\n \"participantId\": \"<string>\",\n \"address\": {\n \"line1\": \"<string>\",\n \"city\": \"<string>\",\n \"countryCode\": \"<string>\",\n \"line2\": null,\n \"countrySubentity\": null,\n \"postalCode\": null\n },\n \"contactPhone\": null,\n \"contactEmail\": null,\n \"contactName\": null,\n \"legalRegistrationNumber\": null,\n \"legalRegistrationType\": null,\n \"authorityName\": null\n },\n \"buyer\": {\n \"name\": \"<string>\",\n \"trn\": \"<string>\",\n \"participantId\": \"<string>\",\n \"address\": {\n \"line1\": \"<string>\",\n \"city\": \"<string>\",\n \"countryCode\": \"<string>\",\n \"line2\": null,\n \"countrySubentity\": null,\n \"postalCode\": null\n },\n \"contactPhone\": null,\n \"contactEmail\": null,\n \"contactName\": null,\n \"legalRegistrationNumber\": null,\n \"legalRegistrationType\": null,\n \"authorityName\": null\n },\n \"lines\": [\n {\n \"id\": \"<string>\",\n \"description\": \"<string>\",\n \"quantity\": 123,\n \"unitCode\": \"<string>\",\n \"unitPrice\": 123,\n \"lineExtensionAmount\": 123,\n \"vatCategory\": \"S\",\n \"vatRate\": 123,\n \"exemptionReasonCode\": null,\n \"allowancesCharges\": null,\n \"buyersItemId\": null,\n \"sellersItemId\": null,\n \"standardItemId\": null,\n \"standardItemSchemeId\": null,\n \"classifications\": null,\n \"itemTypeCode\": \"G\",\n \"serviceAccountingCode\": null,\n \"goodsNatureCode\": null\n }\n ],\n \"references\": {\n \"purchaseOrderId\": \"<string>\",\n \"contractId\": \"<string>\",\n \"salesOrderId\": null,\n \"projectId\": null,\n \"despatchId\": null,\n \"receiptId\": null,\n \"buyerReference\": null,\n \"purchaseOrderSchemeId\": null,\n \"contractSchemeId\": null,\n \"salesOrderSchemeId\": null,\n \"projectSchemeId\": null,\n \"despatchSchemeId\": null,\n \"receiptSchemeId\": null\n },\n \"notes\": \"<string>\",\n \"precedingInvoiceNumber\": \"<string>\",\n \"taxTotal\": null,\n \"legalMonetaryTotal\": null,\n \"allowancesCharges\": null,\n \"additionalDocuments\": null,\n \"delivery\": null,\n \"transactionType\": null,\n \"beneficiaryId\": null,\n \"principalId\": null,\n \"billingFrequencyCode\": null,\n \"taxCurrencyCode\": null,\n \"currencyExchangeRate\": null,\n \"paymentMode\": \"30\",\n \"paymentTerms\": null,\n \"paymentBankAccount\": null,\n \"vatPointDate\": null,\n \"billingPeriodStart\": null,\n \"billingPeriodEnd\": null,\n \"precedingInvoiceIssueDate\": null,\n \"prepaidAmount\": null\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://integration.fatorly.com/v1/credit-notes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"documentType\": \"Invoice\",\n \"invoiceNumber\": \"<string>\",\n \"issueDate\": \"2023-12-25\",\n \"dueDate\": \"2023-12-25\",\n \"currency\": \"<string>\",\n \"seller\": {\n \"name\": \"<string>\",\n \"trn\": \"<string>\",\n \"participantId\": \"<string>\",\n \"address\": {\n \"line1\": \"<string>\",\n \"city\": \"<string>\",\n \"countryCode\": \"<string>\",\n \"line2\": null,\n \"countrySubentity\": null,\n \"postalCode\": null\n },\n \"contactPhone\": null,\n \"contactEmail\": null,\n \"contactName\": null,\n \"legalRegistrationNumber\": null,\n \"legalRegistrationType\": null,\n \"authorityName\": null\n },\n \"buyer\": {\n \"name\": \"<string>\",\n \"trn\": \"<string>\",\n \"participantId\": \"<string>\",\n \"address\": {\n \"line1\": \"<string>\",\n \"city\": \"<string>\",\n \"countryCode\": \"<string>\",\n \"line2\": null,\n \"countrySubentity\": null,\n \"postalCode\": null\n },\n \"contactPhone\": null,\n \"contactEmail\": null,\n \"contactName\": null,\n \"legalRegistrationNumber\": null,\n \"legalRegistrationType\": null,\n \"authorityName\": null\n },\n \"lines\": [\n {\n \"id\": \"<string>\",\n \"description\": \"<string>\",\n \"quantity\": 123,\n \"unitCode\": \"<string>\",\n \"unitPrice\": 123,\n \"lineExtensionAmount\": 123,\n \"vatCategory\": \"S\",\n \"vatRate\": 123,\n \"exemptionReasonCode\": null,\n \"allowancesCharges\": null,\n \"buyersItemId\": null,\n \"sellersItemId\": null,\n \"standardItemId\": null,\n \"standardItemSchemeId\": null,\n \"classifications\": null,\n \"itemTypeCode\": \"G\",\n \"serviceAccountingCode\": null,\n \"goodsNatureCode\": null\n }\n ],\n \"references\": {\n \"purchaseOrderId\": \"<string>\",\n \"contractId\": \"<string>\",\n \"salesOrderId\": null,\n \"projectId\": null,\n \"despatchId\": null,\n \"receiptId\": null,\n \"buyerReference\": null,\n \"purchaseOrderSchemeId\": null,\n \"contractSchemeId\": null,\n \"salesOrderSchemeId\": null,\n \"projectSchemeId\": null,\n \"despatchSchemeId\": null,\n \"receiptSchemeId\": null\n },\n \"notes\": \"<string>\",\n \"precedingInvoiceNumber\": \"<string>\",\n \"taxTotal\": null,\n \"legalMonetaryTotal\": null,\n \"allowancesCharges\": null,\n \"additionalDocuments\": null,\n \"delivery\": null,\n \"transactionType\": null,\n \"beneficiaryId\": null,\n \"principalId\": null,\n \"billingFrequencyCode\": null,\n \"taxCurrencyCode\": null,\n \"currencyExchangeRate\": null,\n \"paymentMode\": \"30\",\n \"paymentTerms\": null,\n \"paymentBankAccount\": null,\n \"vatPointDate\": null,\n \"billingPeriodStart\": null,\n \"billingPeriodEnd\": null,\n \"precedingInvoiceIssueDate\": null,\n \"prepaidAmount\": null\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"invoiceNumber": "<string>",
"status": "Draft",
"participantDelivery": "NotApplicable",
"createdAt": "<string>",
"links": {
"self": "<string>"
},
"submissionError": null
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"traceId": "<string>",
"errors": "<array>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"traceId": "<string>",
"errors": "<array>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"traceId": "<string>",
"errors": "<array>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"traceId": "<string>",
"errors": "<array>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"traceId": "<string>",
"errors": "<array>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"traceId": "<string>",
"errors": "<array>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"traceId": "<string>",
"errors": "<array>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"traceId": "<string>",
"errors": "<array>"
}Post v1credit notes
curl --request POST \
--url https://integration.fatorly.com/v1/credit-notes \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"documentType": "Invoice",
"invoiceNumber": "<string>",
"issueDate": "2023-12-25",
"dueDate": "2023-12-25",
"currency": "<string>",
"seller": {
"name": "<string>",
"trn": "<string>",
"participantId": "<string>",
"address": {
"line1": "<string>",
"city": "<string>",
"countryCode": "<string>",
"line2": null,
"countrySubentity": null,
"postalCode": null
},
"contactPhone": null,
"contactEmail": null,
"contactName": null,
"legalRegistrationNumber": null,
"legalRegistrationType": null,
"authorityName": null
},
"buyer": {
"name": "<string>",
"trn": "<string>",
"participantId": "<string>",
"address": {
"line1": "<string>",
"city": "<string>",
"countryCode": "<string>",
"line2": null,
"countrySubentity": null,
"postalCode": null
},
"contactPhone": null,
"contactEmail": null,
"contactName": null,
"legalRegistrationNumber": null,
"legalRegistrationType": null,
"authorityName": null
},
"lines": [
{
"id": "<string>",
"description": "<string>",
"quantity": 123,
"unitCode": "<string>",
"unitPrice": 123,
"lineExtensionAmount": 123,
"vatCategory": "S",
"vatRate": 123,
"exemptionReasonCode": null,
"allowancesCharges": null,
"buyersItemId": null,
"sellersItemId": null,
"standardItemId": null,
"standardItemSchemeId": null,
"classifications": null,
"itemTypeCode": "G",
"serviceAccountingCode": null,
"goodsNatureCode": null
}
],
"references": {
"purchaseOrderId": "<string>",
"contractId": "<string>",
"salesOrderId": null,
"projectId": null,
"despatchId": null,
"receiptId": null,
"buyerReference": null,
"purchaseOrderSchemeId": null,
"contractSchemeId": null,
"salesOrderSchemeId": null,
"projectSchemeId": null,
"despatchSchemeId": null,
"receiptSchemeId": null
},
"notes": "<string>",
"precedingInvoiceNumber": "<string>",
"taxTotal": null,
"legalMonetaryTotal": null,
"allowancesCharges": null,
"additionalDocuments": null,
"delivery": null,
"transactionType": null,
"beneficiaryId": null,
"principalId": null,
"billingFrequencyCode": null,
"taxCurrencyCode": null,
"currencyExchangeRate": null,
"paymentMode": "30",
"paymentTerms": null,
"paymentBankAccount": null,
"vatPointDate": null,
"billingPeriodStart": null,
"billingPeriodEnd": null,
"precedingInvoiceIssueDate": null,
"prepaidAmount": null
}
'import requests
url = "https://integration.fatorly.com/v1/credit-notes"
payload = {
"documentType": "Invoice",
"invoiceNumber": "<string>",
"issueDate": "2023-12-25",
"dueDate": "2023-12-25",
"currency": "<string>",
"seller": {
"name": "<string>",
"trn": "<string>",
"participantId": "<string>",
"address": {
"line1": "<string>",
"city": "<string>",
"countryCode": "<string>",
"line2": None,
"countrySubentity": None,
"postalCode": None
},
"contactPhone": None,
"contactEmail": None,
"contactName": None,
"legalRegistrationNumber": None,
"legalRegistrationType": None,
"authorityName": None
},
"buyer": {
"name": "<string>",
"trn": "<string>",
"participantId": "<string>",
"address": {
"line1": "<string>",
"city": "<string>",
"countryCode": "<string>",
"line2": None,
"countrySubentity": None,
"postalCode": None
},
"contactPhone": None,
"contactEmail": None,
"contactName": None,
"legalRegistrationNumber": None,
"legalRegistrationType": None,
"authorityName": None
},
"lines": [
{
"id": "<string>",
"description": "<string>",
"quantity": 123,
"unitCode": "<string>",
"unitPrice": 123,
"lineExtensionAmount": 123,
"vatCategory": "S",
"vatRate": 123,
"exemptionReasonCode": None,
"allowancesCharges": None,
"buyersItemId": None,
"sellersItemId": None,
"standardItemId": None,
"standardItemSchemeId": None,
"classifications": None,
"itemTypeCode": "G",
"serviceAccountingCode": None,
"goodsNatureCode": None
}
],
"references": {
"purchaseOrderId": "<string>",
"contractId": "<string>",
"salesOrderId": None,
"projectId": None,
"despatchId": None,
"receiptId": None,
"buyerReference": None,
"purchaseOrderSchemeId": None,
"contractSchemeId": None,
"salesOrderSchemeId": None,
"projectSchemeId": None,
"despatchSchemeId": None,
"receiptSchemeId": None
},
"notes": "<string>",
"precedingInvoiceNumber": "<string>",
"taxTotal": None,
"legalMonetaryTotal": None,
"allowancesCharges": None,
"additionalDocuments": None,
"delivery": None,
"transactionType": None,
"beneficiaryId": None,
"principalId": None,
"billingFrequencyCode": None,
"taxCurrencyCode": None,
"currencyExchangeRate": None,
"paymentMode": "30",
"paymentTerms": None,
"paymentBankAccount": None,
"vatPointDate": None,
"billingPeriodStart": None,
"billingPeriodEnd": None,
"precedingInvoiceIssueDate": None,
"prepaidAmount": None
}
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
documentType: 'Invoice',
invoiceNumber: '<string>',
issueDate: '2023-12-25',
dueDate: '2023-12-25',
currency: '<string>',
seller: {
name: '<string>',
trn: '<string>',
participantId: '<string>',
address: {
line1: '<string>',
city: '<string>',
countryCode: '<string>',
line2: null,
countrySubentity: null,
postalCode: null
},
contactPhone: null,
contactEmail: null,
contactName: null,
legalRegistrationNumber: null,
legalRegistrationType: null,
authorityName: null
},
buyer: {
name: '<string>',
trn: '<string>',
participantId: '<string>',
address: {
line1: '<string>',
city: '<string>',
countryCode: '<string>',
line2: null,
countrySubentity: null,
postalCode: null
},
contactPhone: null,
contactEmail: null,
contactName: null,
legalRegistrationNumber: null,
legalRegistrationType: null,
authorityName: null
},
lines: [
{
id: '<string>',
description: '<string>',
quantity: 123,
unitCode: '<string>',
unitPrice: 123,
lineExtensionAmount: 123,
vatCategory: 'S',
vatRate: 123,
exemptionReasonCode: null,
allowancesCharges: null,
buyersItemId: null,
sellersItemId: null,
standardItemId: null,
standardItemSchemeId: null,
classifications: null,
itemTypeCode: 'G',
serviceAccountingCode: null,
goodsNatureCode: null
}
],
references: {
purchaseOrderId: '<string>',
contractId: '<string>',
salesOrderId: null,
projectId: null,
despatchId: null,
receiptId: null,
buyerReference: null,
purchaseOrderSchemeId: null,
contractSchemeId: null,
salesOrderSchemeId: null,
projectSchemeId: null,
despatchSchemeId: null,
receiptSchemeId: null
},
notes: '<string>',
precedingInvoiceNumber: '<string>',
taxTotal: null,
legalMonetaryTotal: null,
allowancesCharges: null,
additionalDocuments: null,
delivery: null,
transactionType: null,
beneficiaryId: null,
principalId: null,
billingFrequencyCode: null,
taxCurrencyCode: null,
currencyExchangeRate: null,
paymentMode: '30',
paymentTerms: null,
paymentBankAccount: null,
vatPointDate: null,
billingPeriodStart: null,
billingPeriodEnd: null,
precedingInvoiceIssueDate: null,
prepaidAmount: null
})
};
fetch('https://integration.fatorly.com/v1/credit-notes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://integration.fatorly.com/v1/credit-notes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'documentType' => 'Invoice',
'invoiceNumber' => '<string>',
'issueDate' => '2023-12-25',
'dueDate' => '2023-12-25',
'currency' => '<string>',
'seller' => [
'name' => '<string>',
'trn' => '<string>',
'participantId' => '<string>',
'address' => [
'line1' => '<string>',
'city' => '<string>',
'countryCode' => '<string>',
'line2' => null,
'countrySubentity' => null,
'postalCode' => null
],
'contactPhone' => null,
'contactEmail' => null,
'contactName' => null,
'legalRegistrationNumber' => null,
'legalRegistrationType' => null,
'authorityName' => null
],
'buyer' => [
'name' => '<string>',
'trn' => '<string>',
'participantId' => '<string>',
'address' => [
'line1' => '<string>',
'city' => '<string>',
'countryCode' => '<string>',
'line2' => null,
'countrySubentity' => null,
'postalCode' => null
],
'contactPhone' => null,
'contactEmail' => null,
'contactName' => null,
'legalRegistrationNumber' => null,
'legalRegistrationType' => null,
'authorityName' => null
],
'lines' => [
[
'id' => '<string>',
'description' => '<string>',
'quantity' => 123,
'unitCode' => '<string>',
'unitPrice' => 123,
'lineExtensionAmount' => 123,
'vatCategory' => 'S',
'vatRate' => 123,
'exemptionReasonCode' => null,
'allowancesCharges' => null,
'buyersItemId' => null,
'sellersItemId' => null,
'standardItemId' => null,
'standardItemSchemeId' => null,
'classifications' => null,
'itemTypeCode' => 'G',
'serviceAccountingCode' => null,
'goodsNatureCode' => null
]
],
'references' => [
'purchaseOrderId' => '<string>',
'contractId' => '<string>',
'salesOrderId' => null,
'projectId' => null,
'despatchId' => null,
'receiptId' => null,
'buyerReference' => null,
'purchaseOrderSchemeId' => null,
'contractSchemeId' => null,
'salesOrderSchemeId' => null,
'projectSchemeId' => null,
'despatchSchemeId' => null,
'receiptSchemeId' => null
],
'notes' => '<string>',
'precedingInvoiceNumber' => '<string>',
'taxTotal' => null,
'legalMonetaryTotal' => null,
'allowancesCharges' => null,
'additionalDocuments' => null,
'delivery' => null,
'transactionType' => null,
'beneficiaryId' => null,
'principalId' => null,
'billingFrequencyCode' => null,
'taxCurrencyCode' => null,
'currencyExchangeRate' => null,
'paymentMode' => '30',
'paymentTerms' => null,
'paymentBankAccount' => null,
'vatPointDate' => null,
'billingPeriodStart' => null,
'billingPeriodEnd' => null,
'precedingInvoiceIssueDate' => null,
'prepaidAmount' => null
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://integration.fatorly.com/v1/credit-notes"
payload := strings.NewReader("{\n \"documentType\": \"Invoice\",\n \"invoiceNumber\": \"<string>\",\n \"issueDate\": \"2023-12-25\",\n \"dueDate\": \"2023-12-25\",\n \"currency\": \"<string>\",\n \"seller\": {\n \"name\": \"<string>\",\n \"trn\": \"<string>\",\n \"participantId\": \"<string>\",\n \"address\": {\n \"line1\": \"<string>\",\n \"city\": \"<string>\",\n \"countryCode\": \"<string>\",\n \"line2\": null,\n \"countrySubentity\": null,\n \"postalCode\": null\n },\n \"contactPhone\": null,\n \"contactEmail\": null,\n \"contactName\": null,\n \"legalRegistrationNumber\": null,\n \"legalRegistrationType\": null,\n \"authorityName\": null\n },\n \"buyer\": {\n \"name\": \"<string>\",\n \"trn\": \"<string>\",\n \"participantId\": \"<string>\",\n \"address\": {\n \"line1\": \"<string>\",\n \"city\": \"<string>\",\n \"countryCode\": \"<string>\",\n \"line2\": null,\n \"countrySubentity\": null,\n \"postalCode\": null\n },\n \"contactPhone\": null,\n \"contactEmail\": null,\n \"contactName\": null,\n \"legalRegistrationNumber\": null,\n \"legalRegistrationType\": null,\n \"authorityName\": null\n },\n \"lines\": [\n {\n \"id\": \"<string>\",\n \"description\": \"<string>\",\n \"quantity\": 123,\n \"unitCode\": \"<string>\",\n \"unitPrice\": 123,\n \"lineExtensionAmount\": 123,\n \"vatCategory\": \"S\",\n \"vatRate\": 123,\n \"exemptionReasonCode\": null,\n \"allowancesCharges\": null,\n \"buyersItemId\": null,\n \"sellersItemId\": null,\n \"standardItemId\": null,\n \"standardItemSchemeId\": null,\n \"classifications\": null,\n \"itemTypeCode\": \"G\",\n \"serviceAccountingCode\": null,\n \"goodsNatureCode\": null\n }\n ],\n \"references\": {\n \"purchaseOrderId\": \"<string>\",\n \"contractId\": \"<string>\",\n \"salesOrderId\": null,\n \"projectId\": null,\n \"despatchId\": null,\n \"receiptId\": null,\n \"buyerReference\": null,\n \"purchaseOrderSchemeId\": null,\n \"contractSchemeId\": null,\n \"salesOrderSchemeId\": null,\n \"projectSchemeId\": null,\n \"despatchSchemeId\": null,\n \"receiptSchemeId\": null\n },\n \"notes\": \"<string>\",\n \"precedingInvoiceNumber\": \"<string>\",\n \"taxTotal\": null,\n \"legalMonetaryTotal\": null,\n \"allowancesCharges\": null,\n \"additionalDocuments\": null,\n \"delivery\": null,\n \"transactionType\": null,\n \"beneficiaryId\": null,\n \"principalId\": null,\n \"billingFrequencyCode\": null,\n \"taxCurrencyCode\": null,\n \"currencyExchangeRate\": null,\n \"paymentMode\": \"30\",\n \"paymentTerms\": null,\n \"paymentBankAccount\": null,\n \"vatPointDate\": null,\n \"billingPeriodStart\": null,\n \"billingPeriodEnd\": null,\n \"precedingInvoiceIssueDate\": null,\n \"prepaidAmount\": null\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Api-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://integration.fatorly.com/v1/credit-notes")
.header("X-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"documentType\": \"Invoice\",\n \"invoiceNumber\": \"<string>\",\n \"issueDate\": \"2023-12-25\",\n \"dueDate\": \"2023-12-25\",\n \"currency\": \"<string>\",\n \"seller\": {\n \"name\": \"<string>\",\n \"trn\": \"<string>\",\n \"participantId\": \"<string>\",\n \"address\": {\n \"line1\": \"<string>\",\n \"city\": \"<string>\",\n \"countryCode\": \"<string>\",\n \"line2\": null,\n \"countrySubentity\": null,\n \"postalCode\": null\n },\n \"contactPhone\": null,\n \"contactEmail\": null,\n \"contactName\": null,\n \"legalRegistrationNumber\": null,\n \"legalRegistrationType\": null,\n \"authorityName\": null\n },\n \"buyer\": {\n \"name\": \"<string>\",\n \"trn\": \"<string>\",\n \"participantId\": \"<string>\",\n \"address\": {\n \"line1\": \"<string>\",\n \"city\": \"<string>\",\n \"countryCode\": \"<string>\",\n \"line2\": null,\n \"countrySubentity\": null,\n \"postalCode\": null\n },\n \"contactPhone\": null,\n \"contactEmail\": null,\n \"contactName\": null,\n \"legalRegistrationNumber\": null,\n \"legalRegistrationType\": null,\n \"authorityName\": null\n },\n \"lines\": [\n {\n \"id\": \"<string>\",\n \"description\": \"<string>\",\n \"quantity\": 123,\n \"unitCode\": \"<string>\",\n \"unitPrice\": 123,\n \"lineExtensionAmount\": 123,\n \"vatCategory\": \"S\",\n \"vatRate\": 123,\n \"exemptionReasonCode\": null,\n \"allowancesCharges\": null,\n \"buyersItemId\": null,\n \"sellersItemId\": null,\n \"standardItemId\": null,\n \"standardItemSchemeId\": null,\n \"classifications\": null,\n \"itemTypeCode\": \"G\",\n \"serviceAccountingCode\": null,\n \"goodsNatureCode\": null\n }\n ],\n \"references\": {\n \"purchaseOrderId\": \"<string>\",\n \"contractId\": \"<string>\",\n \"salesOrderId\": null,\n \"projectId\": null,\n \"despatchId\": null,\n \"receiptId\": null,\n \"buyerReference\": null,\n \"purchaseOrderSchemeId\": null,\n \"contractSchemeId\": null,\n \"salesOrderSchemeId\": null,\n \"projectSchemeId\": null,\n \"despatchSchemeId\": null,\n \"receiptSchemeId\": null\n },\n \"notes\": \"<string>\",\n \"precedingInvoiceNumber\": \"<string>\",\n \"taxTotal\": null,\n \"legalMonetaryTotal\": null,\n \"allowancesCharges\": null,\n \"additionalDocuments\": null,\n \"delivery\": null,\n \"transactionType\": null,\n \"beneficiaryId\": null,\n \"principalId\": null,\n \"billingFrequencyCode\": null,\n \"taxCurrencyCode\": null,\n \"currencyExchangeRate\": null,\n \"paymentMode\": \"30\",\n \"paymentTerms\": null,\n \"paymentBankAccount\": null,\n \"vatPointDate\": null,\n \"billingPeriodStart\": null,\n \"billingPeriodEnd\": null,\n \"precedingInvoiceIssueDate\": null,\n \"prepaidAmount\": null\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://integration.fatorly.com/v1/credit-notes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"documentType\": \"Invoice\",\n \"invoiceNumber\": \"<string>\",\n \"issueDate\": \"2023-12-25\",\n \"dueDate\": \"2023-12-25\",\n \"currency\": \"<string>\",\n \"seller\": {\n \"name\": \"<string>\",\n \"trn\": \"<string>\",\n \"participantId\": \"<string>\",\n \"address\": {\n \"line1\": \"<string>\",\n \"city\": \"<string>\",\n \"countryCode\": \"<string>\",\n \"line2\": null,\n \"countrySubentity\": null,\n \"postalCode\": null\n },\n \"contactPhone\": null,\n \"contactEmail\": null,\n \"contactName\": null,\n \"legalRegistrationNumber\": null,\n \"legalRegistrationType\": null,\n \"authorityName\": null\n },\n \"buyer\": {\n \"name\": \"<string>\",\n \"trn\": \"<string>\",\n \"participantId\": \"<string>\",\n \"address\": {\n \"line1\": \"<string>\",\n \"city\": \"<string>\",\n \"countryCode\": \"<string>\",\n \"line2\": null,\n \"countrySubentity\": null,\n \"postalCode\": null\n },\n \"contactPhone\": null,\n \"contactEmail\": null,\n \"contactName\": null,\n \"legalRegistrationNumber\": null,\n \"legalRegistrationType\": null,\n \"authorityName\": null\n },\n \"lines\": [\n {\n \"id\": \"<string>\",\n \"description\": \"<string>\",\n \"quantity\": 123,\n \"unitCode\": \"<string>\",\n \"unitPrice\": 123,\n \"lineExtensionAmount\": 123,\n \"vatCategory\": \"S\",\n \"vatRate\": 123,\n \"exemptionReasonCode\": null,\n \"allowancesCharges\": null,\n \"buyersItemId\": null,\n \"sellersItemId\": null,\n \"standardItemId\": null,\n \"standardItemSchemeId\": null,\n \"classifications\": null,\n \"itemTypeCode\": \"G\",\n \"serviceAccountingCode\": null,\n \"goodsNatureCode\": null\n }\n ],\n \"references\": {\n \"purchaseOrderId\": \"<string>\",\n \"contractId\": \"<string>\",\n \"salesOrderId\": null,\n \"projectId\": null,\n \"despatchId\": null,\n \"receiptId\": null,\n \"buyerReference\": null,\n \"purchaseOrderSchemeId\": null,\n \"contractSchemeId\": null,\n \"salesOrderSchemeId\": null,\n \"projectSchemeId\": null,\n \"despatchSchemeId\": null,\n \"receiptSchemeId\": null\n },\n \"notes\": \"<string>\",\n \"precedingInvoiceNumber\": \"<string>\",\n \"taxTotal\": null,\n \"legalMonetaryTotal\": null,\n \"allowancesCharges\": null,\n \"additionalDocuments\": null,\n \"delivery\": null,\n \"transactionType\": null,\n \"beneficiaryId\": null,\n \"principalId\": null,\n \"billingFrequencyCode\": null,\n \"taxCurrencyCode\": null,\n \"currencyExchangeRate\": null,\n \"paymentMode\": \"30\",\n \"paymentTerms\": null,\n \"paymentBankAccount\": null,\n \"vatPointDate\": null,\n \"billingPeriodStart\": null,\n \"billingPeriodEnd\": null,\n \"precedingInvoiceIssueDate\": null,\n \"prepaidAmount\": null\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"invoiceNumber": "<string>",
"status": "Draft",
"participantDelivery": "NotApplicable",
"createdAt": "<string>",
"links": {
"self": "<string>"
},
"submissionError": null
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"traceId": "<string>",
"errors": "<array>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"traceId": "<string>",
"errors": "<array>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"traceId": "<string>",
"errors": "<array>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"traceId": "<string>",
"errors": "<array>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"traceId": "<string>",
"errors": "<array>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"traceId": "<string>",
"errors": "<array>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"traceId": "<string>",
"errors": "<array>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"traceId": "<string>",
"errors": "<array>"
}Authorizations
Your fat_… integration key. Create one in Settings → Integrations → API Keys.
Body
Document identity. Invoice and CreditNote are standard tax documents; the SelfBilling* variants are issued by the buyer on the supplier's behalf. On /v1/credit-notes endpoints, CreditNote is applied regardless of the value sent.
Invoice, CreditNote, SelfBillingInvoice, SelfBillingCreditNote "Invoice"
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Payment means: a UNCL4461 code (e.g. 10 = cash, 20 = cheque, 30 = credit transfer, 48 = bank card, 49 = direct debit) or one of the aliases "cash", "cheque", "card", "debit". Defaults to 30 (credit transfer); without a paymentBankAccount, 30 falls back to 1 (instrument not defined).
"30"
Response
Created
Document status: Draft (created, not submitted), Pending (queued or being delivered over Peppol), Sent (delivered), DeliveryFailed (submission failed — see submissionError), Received (inbound purchase document).
Draft, Pending, Sent, DeliveryFailed, Received "Draft"
Peppol delivery indicator: Pending (delivery in flight or awaiting confirmation), Failed (delivery failed), NotApplicable (not submitted, e.g. a Draft).
Pending, Failed, NotApplicable "NotApplicable"
Show child attributes
Show child attributes