name | type | description |
---|---|---|
userid | query |
media type | data type |
---|---|
application/json | PostPurchaseInvoices (JSON) |
application/xml;charset=UTF-8 | object |
POST /api/v1/purchaseinvoice/mobilebatch
Content-Type: application/json
{
"invoices" : {
"entries" : [ {
"orderId" : 12345,
"price" : 12345.0,
"currency" : "...",
"paymentType" : "NOPAYMENT",
"description" : "...",
"image" : "...",
"imageType" : "...",
"timestampMs" : 12345
}, {
"orderId" : 12345,
"price" : 12345.0,
"currency" : "...",
"paymentType" : "CARD",
"description" : "...",
"image" : "...",
"imageType" : "...",
"timestampMs" : 12345
} ],
"rowCount" : 12345
}
}
HTTP/1.1 201 Created
Legt Dateien in die Dokumentenablage eines Eingangsrechnung ab.
Die maximale Upload-Größe ist derzeit auf 500KiB gestellt
name | type | description | constraints |
---|---|---|---|
purchaseInvoiceid | path | ist die Id der Eingangsrechnung | int |
grouping | query | ist die Gruppierung (optional) | |
keywords | query | sind die Schlagworte des Dokuments (optional) | |
securitylevel | query | ist die Sicherheitsstufe (optional) | long |
type | query | ist die Belegart (optional) | |
userid | query | ist der beim Logon ermittelte "Token" |
media type | data type | description |
---|---|---|
application/json | MultipartBody (JSON) | ist der multipart/form-data des Requests, der den/die Dokumente enthält |
application/xml | multipartBody (XML) |
POST /api/v1/purchaseinvoice/{purchaseInvoiceid}/document
Content-Type: application/json
{
"allAttachments" : [ {
"contentDisposition" : {
"type" : "...",
"parameters" : {
"property1" : "...",
"property2" : "..."
}
},
"object" : { },
"contentType" : {
"type" : "...",
"wildcardSubtype" : true,
"parameters" : {
"property1" : "...",
"property2" : "..."
},
"wildcardType" : true,
"subtype" : "..."
},
"contentId" : "...",
"dataHandler" : "...",
"headers" : {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
}
}, {
"contentDisposition" : {
"type" : "...",
"parameters" : {
"property1" : "...",
"property2" : "..."
}
},
"object" : { },
"contentType" : {
"type" : "...",
"wildcardSubtype" : true,
"parameters" : {
"property1" : "...",
"property2" : "..."
},
"wildcardType" : true,
"subtype" : "..."
},
"contentId" : "...",
"dataHandler" : "...",
"headers" : {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
}
} ],
"type" : {
"type" : "...",
"wildcardSubtype" : true,
"parameters" : {
"property1" : "...",
"property2" : "..."
},
"wildcardType" : true,
"subtype" : "..."
},
"rootAttachment" : {
"contentDisposition" : {
"type" : "...",
"parameters" : {
"property1" : "...",
"property2" : "..."
}
},
"object" : { },
"contentType" : {
"type" : "...",
"wildcardSubtype" : true,
"parameters" : {
"property1" : "...",
"property2" : "..."
},
"wildcardType" : true,
"subtype" : "..."
},
"contentId" : "...",
"dataHandler" : "...",
"headers" : {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
}
},
"childAttachments" : [ {
"contentDisposition" : {
"type" : "...",
"parameters" : {
"property1" : "...",
"property2" : "..."
}
},
"object" : { },
"contentType" : {
"type" : "...",
"wildcardSubtype" : true,
"parameters" : {
"property1" : "...",
"property2" : "..."
},
"wildcardType" : true,
"subtype" : "..."
},
"contentId" : "...",
"dataHandler" : "...",
"headers" : {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
}
}, {
"contentDisposition" : {
"type" : "...",
"parameters" : {
"property1" : "...",
"property2" : "..."
}
},
"object" : { },
"contentType" : {
"type" : "...",
"wildcardSubtype" : true,
"parameters" : {
"property1" : "...",
"property2" : "..."
},
"wildcardType" : true,
"subtype" : "..."
},
"contentId" : "...",
"dataHandler" : "...",
"headers" : {
"property1" : [ "...", "..." ],
"property2" : [ "...", "..." ]
}
} ]
}
HTTP/1.1 201 Created