POST api/document/Return
Add Return
Request Information
URI Parameters
None.
Body Parameters
Return
DI_Doc_Return| Name | Description | Type | Additional information |
|---|---|---|---|
| IsDraft |
האם לייצר מסמך טיוטא |
boolean |
None. |
| SeriesCode |
קוד סדרה - או להשאיר ריק ולשים שם סדרה |
integer |
None. |
| SeriesName |
שם הסדרה -או להשאיר ריק לפי קוד במידה וריק יכנס ברירת המחדל בסאפ |
string |
String length: inclusive between 0 and 16 |
| NumAtCard |
מספר אצל לקוח |
string |
String length: inclusive between 0 and 100 |
| SlpCode |
קוד איש מכירות |
integer |
None. |
| ProjectCode |
קוד פרוייקט |
string |
String length: inclusive between 0 and 8 |
| CardCode |
קוד לקוח/ספק |
string |
String length: inclusive between 0 and 15 |
| CardName |
שם לקוח /ספק |
string |
String length: inclusive between 0 and 100 |
| ContactPersonCode |
קוד איש קשר |
integer |
None. |
| ContactPersonName |
שם איש קשר |
string |
String length: inclusive between 0 and 100 |
| DocDate |
תאריך אסמכתא כאשר ריק יכנס תאריך של היום |
date |
None. |
| DocDueDate |
תאריך ערך |
date |
None. |
| TaxDate |
תאריך מס |
date |
None. |
| Address |
כתובת מלאה לחיוב |
string |
String length: inclusive between 0 and 100 |
| Address2 |
כתובת מלאה למשלוח ניתן להגדיר את הכתובת לפי חלקים שונים בכתובת והסאפ יסדר זאת בתבנית שמוגדרת אצלו - או לשים את הכתובת המלאה בשדה הזה |
string |
String length: inclusive between 0 and 100 |
| CityS |
עיר - למשלוח |
string |
String length: inclusive between 0 and 100 |
| StreetS |
רחוב - למשלוח |
string |
String length: inclusive between 0 and 150 |
| StreetNoS |
מספר ברחוב - למשלוח |
string |
String length: inclusive between 0 and 100 |
| BlockS |
כניסה - למשלוח |
string |
String length: inclusive between 0 and 254 |
| BuildingS |
דירה - למשלוח |
string |
String length: inclusive between 0 and 50 |
| Notes |
הערות |
string |
String length: inclusive between 0 and 255 |
| Currency |
קוד מטבע כאשר לא מוגדר יכנס המטבע המקומי של החברה בסאפ |
string |
String length: inclusive between 0 and 3 |
| Rate |
שער מטבע |
decimal number |
None. |
| DocTotal |
סה"כ מסמך |
decimal number |
None. |
| JrnlMemo |
הערה לתנועת יומן |
string |
String length: inclusive between 0 and 50 |
| DiscountPercent |
אחוז הנחה |
decimal number |
None. |
| VatPercent |
אחוז מע"מ |
decimal number |
None. |
| TradeLicenceNumber |
ח.פ |
string |
String length: inclusive between 0 and 32 |
| TransportCode |
קוד סוג המשלוח |
integer |
None. |
| Confirmed |
מסמך מאושר |
boolean |
None. |
| PymntGroupNum |
קוד תנאי תשלום |
integer |
None. |
| PymntGroupName |
תנאי תשלום |
string |
String length: inclusive between 0 and 100 |
| ExpnsCode |
קוד הוצאה |
integer |
None. |
| ExpnsSumTotal |
סה"כ הוצאה |
decimal number |
None. |
| Lines |
שורות המסמך - חייב להיות לפחות שורה אחת |
Collection of DocumentLine |
None. |
| DI_Orgin |
קביעת קוד מקור הנתונים כאשר יכנס לסאפ - ברירת המחדל (API- 999) מתוך רשימה שקיימת בסאפ |
integer |
Range: inclusive between 901 and 2147483647 |
| UDF |
שדות משתמש |
Collection of ColumnUDF |
None. |
Request Formats
application/json, text/json
{
"IsDraft": true,
"SeriesCode": 1,
"SeriesName": "sample string 2",
"NumAtCard": "sample string 3",
"SlpCode": 1,
"ProjectCode": "sample string 4",
"CardCode": "sample string 5",
"CardName": "sample string 6",
"ContactPersonCode": 1,
"ContactPersonName": "sample string 7",
"DocDate": "2026-11-26T10:36:00.4388342+02:00",
"DocDueDate": "2026-11-26T10:36:00.4388342+02:00",
"TaxDate": "2026-11-26T10:36:00.4388342+02:00",
"Address": "sample string 8",
"Address2": "sample string 9",
"CityS": "sample string 10",
"StreetS": "sample string 11",
"StreetNoS": "sample string 12",
"BlockS": "sample string 13",
"BuildingS": "sample string 14",
"Notes": "sample string 15",
"Currency": "sample string 16",
"Rate": 1.1,
"DocTotal": 1.1,
"JrnlMemo": "sample string 17",
"DiscountPercent": 1.1,
"VatPercent": 1.1,
"TradeLicenceNumber": "sample string 18",
"TransportCode": 1,
"Confirmed": true,
"PymntGroupNum": 1,
"PymntGroupName": "sample string 19",
"ExpnsCode": 1,
"ExpnsSumTotal": 1.1,
"Lines": [
{
"ItemCode": "sample string 1",
"ItemDesc": "sample string 2",
"Quantity": 1.1,
"Price": 1.1,
"PriceAfVat": 1.1,
"Currency": "sample string 3",
"DiscountPercent": 1.1,
"Rate": 1.1,
"WhsCode": "sample string 4",
"PrjCode": "sample string 5",
"OcrCode": "sample string 6",
"SlpCode": 1,
"BarCode": "sample string 7",
"VendorNum": "sample string 8",
"SerialNum": "sample string 9",
"DueDate": "2026-11-26T10:36:00.4388342+02:00",
"AcctCode": "sample string 10",
"FreeText": "sample string 11",
"Factor1": 1,
"Factor2": 1,
"Factor3": 1,
"Factor4": 1,
"BaseObjectType": 13,
"BaseEntry": 1,
"BaseLineID": 1,
"Weight1": 1.1,
"Weight1Unit": 1,
"Weight2": 1.1,
"Weight2Unit": 1,
"GrossBuyPrice": 1.1,
"UDF": [
{
"Name": "sample string 1",
"Value": "sample string 2",
"DataType": "Number"
},
{
"Name": "sample string 1",
"Value": "sample string 2",
"DataType": "Number"
}
]
},
{
"ItemCode": "sample string 1",
"ItemDesc": "sample string 2",
"Quantity": 1.1,
"Price": 1.1,
"PriceAfVat": 1.1,
"Currency": "sample string 3",
"DiscountPercent": 1.1,
"Rate": 1.1,
"WhsCode": "sample string 4",
"PrjCode": "sample string 5",
"OcrCode": "sample string 6",
"SlpCode": 1,
"BarCode": "sample string 7",
"VendorNum": "sample string 8",
"SerialNum": "sample string 9",
"DueDate": "2026-11-26T10:36:00.4388342+02:00",
"AcctCode": "sample string 10",
"FreeText": "sample string 11",
"Factor1": 1,
"Factor2": 1,
"Factor3": 1,
"Factor4": 1,
"BaseObjectType": 13,
"BaseEntry": 1,
"BaseLineID": 1,
"Weight1": 1.1,
"Weight1Unit": 1,
"Weight2": 1.1,
"Weight2Unit": 1,
"GrossBuyPrice": 1.1,
"UDF": [
{
"Name": "sample string 1",
"Value": "sample string 2",
"DataType": "Number"
},
{
"Name": "sample string 1",
"Value": "sample string 2",
"DataType": "Number"
}
]
}
],
"DI_Orgin": 1,
"UDF": [
{
"Name": "sample string 1",
"Value": "sample string 2",
"DataType": "Number"
},
{
"Name": "sample string 1",
"Value": "sample string 2",
"DataType": "Number"
}
]
}
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
The result with new opertion id
ResultDI| Name | Description | Type | Additional information |
|---|---|---|---|
| OpersionId |
קוד זיהוי |
integer |
None. |
| ObjectDI |
סוג אובייקט DI |
WebObjectEnum |
None. |
| Action |
סוג פעולת DI |
ActionEnum |
None. |
| Status |
סטאטוס DI |
StatusEnum |
None. |
| StatusDescription |
תאור סטאטוס |
string |
None. |
| ResultObjectNumber |
קוד התוצאה של האובייקט שנוצר בסאפ |
string |
None. |
| ResultDate |
תאריך ביצוע התוצאה בסאפ |
date |
None. |
Response Formats
application/json, text/json
{
"OpersionId": 1,
"ObjectDI": "None",
"Action": "Add",
"Status": "Waiting",
"StatusDescription": "sample string 2",
"ResultObjectNumber": "sample string 3",
"ResultDate": "2026-11-26T10:36:00.4543993+02:00"
}
application/xml, text/xml
<ResultDI xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IND_DI_WebApi._BL"> <Action>Add</Action> <ObjectDI>None</ObjectDI> <OpersionId>1</OpersionId> <ResultDate>2026-11-26T10:36:00.4543993+02:00</ResultDate> <ResultObjectNumber>sample string 3</ResultObjectNumber> <Status>Waiting</Status> <StatusDescription>sample string 2</StatusDescription> </ResultDI>
multipart/form-data
<ResultDI xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IND_DI_WebApi._BL"><Action>Add</Action><ObjectDI>None</ObjectDI><OpersionId>1</OpersionId><ResultDate>2026-11-26T10:36:00.4543993+02:00</ResultDate><ResultObjectNumber>sample string 3</ResultObjectNumber><Status>Waiting</Status><StatusDescription>sample string 2</StatusDescription></ResultDI>