PUT api/orders?orderid={orderid}

עדכון הזמנה

Request Information

URI Parameters

NameDescriptionTypeAdditional information
orderid

מזהה הזמנה

globally unique identifier

Required

Body Parameters

הזמנה ופרטי הזמנה

Order
NameDescriptionTypeAdditional information
StateCode

מצב הזמנה 0-פעיל 1-לא פעיל

integer

None.

ucc_bill_to_name

שם משלם

string

None.

ucc_adresstoicount

כתובת למשלוח קבלה

string

None.

ucc_membernum

מספר חבר

string

None.

ucc_ccpaymentstatus

סטטוס תשלום כ"א

string

None.

ucc_name

שם

string

None.

IdNumber

Contact Id

string

None.

ucc_Card_Number

מספר כרטיס אשראי

string

None.

CreditCardClearingResult

תוצאות סליקה כרטיס ארשאי

CreditCardClearingResult

None.

Items

Array of the order items

Collection of OrderItem

None.

ucc_sal_kniya_status_code

סטטוס ההזמנה

ucc_sal_kniya_status_code

None.

OrderClearingStage

לא בשימוש! ###סטטוס הסליקה של ההזמנה במקרה שאין צורך בסליקה יש להחזיר Done (1)##### לא בשימוש!

OrderClearingStage

None.

ucc_customer

איש קשר

Customer

None.

ucc_billto_city_id

עיר

ucc_city

None.

ucc_billto_street_id

רחוב

ucc_street

None.

ucc_billto_postalcode_id

מיקוד

ucc_postalcode

None.

ucc_billto_house_number

מספר בית

string

None.

ucc_shipto_city_id

עיר

ucc_city

None.

ucc_shipto_house_number

מספר בית

string

None.

ucc_shipto_postalcode_id

מיקוד

ucc_postalcode

None.

ucc_shipto_street_id

רחוב

ucc_street

None.

ucc_customeremail

כתובת אימייל לקוח

string

None.

ucc_customer_ID

מספר מזהה משלם

string

None.

ucc_cart

מזהה עבור סל ההזמנה באנובה

string

None.

ucc_for_payment

סה"ע הזמנה בפועל (כולל הנחות כולל הגל)

decimal number

None.

ucc_total_payment_for_products

סיכום תשלום מוצרים

decimal number

None.

ucc_Order_Type

סוג הזמנה

ucc_Order_Type

None.

ucc_link_to_receipt

שליפה של הזמנה עפ"י מזהה הזמנה

string

None.

ucc_clearing_date

תאריך סליקה

date

None.

ucc_card_type_id

סוג כרטיס אשראי

ucc_paymentmethodReference

None.

ucc_paymentmethod

אמצעי תשלום

ucc_paymentmethodReference

None.

ucc_token

Token

string

None.

ucc_Payments_Number

מספר תשלומים

integer

None.

ucc_comment

הערה

string

None.

ucc_mobile

טלפון נייד

string

None.

Id

Dynamics 365 primary key.

globally unique identifier

None.

CreatedOn

נוצר ב

date

None.

ModifiedOn

date

None.

Request Formats

application/json, text/json

Sample:
{
  "stateCode": null,
  "ucc_bill_to_name": "אילן ללום",
  "ucc_adresstoicount": "הגולן 6 נתניה",
  "ucc_membernum": "123456",
  "ucc_ccpaymentstatus": null,
  "ucc_name": "אילן ללום",
  "idNumber": "112233445",
  "ucc_Card_Number": null,
  "creditCardClearingResult": {
    "approvedBy": 1,
    "broadcastNo": "992b7b16-7bb5-40fb-b813-f8b6c9b1fb09",
    "statusCode": "000",
    "errorMessage": null,
    "shvaOutput": "0010100223000000123230034020340230402304023:---)))",
    "token": "11091b56-06d1-4c84-9a82-fcfaa7d23846",
    "pendingRecordId": "00000000-0000-0000-0000-000000000000",
    "debitApproveNumber": "520c53dc-9412-40a5-9ae4-33996e2a731d",
    "debitTotal": 4500,
    "pelecardTransactionId": "cd2ba461-4d5b-4000-881e-8630f102af3c",
    "creditCardNumber": "4580**********5564",
    "creditCardExpDate": "1020",
    "id": "00000000-0000-0000-0000-000000000000",
    "createdOn": null,
    "modifiedOn": null
  },
  "items": [
    {
      "productName": null,
      "serialNumber": "56757776",
      "product": null,
      "quantity": 2,
      "price": 100.0,
      "realPrice": null,
      "discountPercentage": null,
      "discountNIS": 10.0,
      "ucc_payment": 10000.0,
      "id": "1e7ea78f-39e8-4858-ad22-cd2549651e6d",
      "createdOn": null,
      "modifiedOn": null
    },
    {
      "productName": null,
      "serialNumber": "4536546",
      "product": null,
      "quantity": 1,
      "price": 100.0,
      "realPrice": null,
      "discountPercentage": 5.0,
      "discountNIS": null,
      "ucc_payment": 500.0,
      "id": "b4a06531-681c-41e3-ae08-23c06590d0d2",
      "createdOn": null,
      "modifiedOn": null
    }
  ],
  "ucc_sal_kniya_status_code": 801270000,
  "orderClearingStage": 0,
  "ucc_customer": {
    "logicalName": "Contact",
    "displayName": null,
    "id": "4bca50d1-b7d8-453d-bc32-53b0ea8631ee",
    "createdOn": null,
    "modifiedOn": null
  },
  "ucc_billto_city_id": {
    "displayName": null,
    "id": "02996cbb-56d3-4340-ae59-4b29e27dd3ac",
    "createdOn": null,
    "modifiedOn": null
  },
  "ucc_billto_street_id": {
    "displayName": null,
    "id": "c01e2361-4596-4847-b440-561b3bcfb539",
    "createdOn": null,
    "modifiedOn": null
  },
  "ucc_billto_postalcode_id": {
    "displayName": null,
    "id": "a6a58848-8853-4905-a93b-9b24389f4fc6",
    "createdOn": null,
    "modifiedOn": null
  },
  "ucc_billto_house_number": null,
  "ucc_shipto_city_id": {
    "displayName": null,
    "id": "23f14c1b-e0a5-42d2-b2ea-98ac1befd8e3",
    "createdOn": null,
    "modifiedOn": null
  },
  "ucc_shipto_house_number": null,
  "ucc_shipto_postalcode_id": {
    "displayName": null,
    "id": "592f8a49-34cf-4267-91e6-6932337d4098",
    "createdOn": null,
    "modifiedOn": null
  },
  "ucc_shipto_street_id": {
    "displayName": null,
    "id": "68381ba0-bbde-4f5c-82bf-f09e7048d032",
    "createdOn": null,
    "modifiedOn": null
  },
  "ucc_customeremail": "dummy@demo.com",
  "ucc_customer_ID": "123456789",
  "ucc_cart": null,
  "ucc_for_payment": 200.0,
  "ucc_total_payment_for_products": 200.0,
  "ucc_Order_Type": 1,
  "ucc_link_to_receipt": null,
  "ucc_clearing_date": "2026-06-01T22:17:35.2579698+00:00",
  "ucc_card_type_id": {
    "displayName": null,
    "id": "5ce3a0ed-a2de-4653-a42d-f7e9e498a524",
    "createdOn": null,
    "modifiedOn": null
  },
  "ucc_paymentmethod": {
    "displayName": null,
    "id": "fd86f67c-3234-4223-b114-c742fc924cd6",
    "createdOn": null,
    "modifiedOn": null
  },
  "ucc_token": null,
  "ucc_Payments_Number": null,
  "ucc_comment": null,
  "ucc_mobile": null,
  "id": "b586405e-881f-434d-bddb-1c71c7bdde56",
  "createdOn": null,
  "modifiedOn": null
}

application/xml, text/xml

Sample:
<Order xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Youcc.D365.ICPA.DataModel">
  <CreatedOn i:nil="true" />
  <Id>b586405e-881f-434d-bddb-1c71c7bdde56</Id>
  <ModifiedOn i:nil="true" />
  <CreditCardClearingResult>
    <CreatedOn i:nil="true" />
    <Id>00000000-0000-0000-0000-000000000000</Id>
    <ModifiedOn i:nil="true" />
    <ApprovedBy>ApprovedByShva</ApprovedBy>
    <BroadcastNo>992b7b16-7bb5-40fb-b813-f8b6c9b1fb09</BroadcastNo>
    <CreditCardExpDate>1020</CreditCardExpDate>
    <CreditCardNumber>4580**********5564</CreditCardNumber>
    <DebitApproveNumber>520c53dc-9412-40a5-9ae4-33996e2a731d</DebitApproveNumber>
    <DebitTotal>4500</DebitTotal>
    <ErrorMessage i:nil="true" />
    <PelecardTransactionId>cd2ba461-4d5b-4000-881e-8630f102af3c</PelecardTransactionId>
    <PendingRecordId>00000000-0000-0000-0000-000000000000</PendingRecordId>
    <ShvaOutput>0010100223000000123230034020340230402304023:---)))</ShvaOutput>
    <StatusCode>000</StatusCode>
    <Token>11091b56-06d1-4c84-9a82-fcfaa7d23846</Token>
  </CreditCardClearingResult>
  <IdNumber>112233445</IdNumber>
  <Items>
    <OrderItem>
      <CreatedOn i:nil="true" />
      <Id>1e7ea78f-39e8-4858-ad22-cd2549651e6d</Id>
      <ModifiedOn i:nil="true" />
      <DiscountNIS>10</DiscountNIS>
      <DiscountPercentage i:nil="true" />
      <Price>100</Price>
      <Product i:nil="true" />
      <ProductName i:nil="true" />
      <Quantity>2</Quantity>
      <RealPrice i:nil="true" />
      <SerialNumber>56757776</SerialNumber>
      <ucc_payment>10000</ucc_payment>
    </OrderItem>
    <OrderItem>
      <CreatedOn i:nil="true" />
      <Id>b4a06531-681c-41e3-ae08-23c06590d0d2</Id>
      <ModifiedOn i:nil="true" />
      <DiscountNIS i:nil="true" />
      <DiscountPercentage>5</DiscountPercentage>
      <Price>100</Price>
      <Product i:nil="true" />
      <ProductName i:nil="true" />
      <Quantity>1</Quantity>
      <RealPrice i:nil="true" />
      <SerialNumber>4536546</SerialNumber>
      <ucc_payment>500</ucc_payment>
    </OrderItem>
  </Items>
  <OrderClearingStage>New</OrderClearingStage>
  <StateCode i:nil="true" />
  <ucc_Card_Number i:nil="true" />
  <ucc_Order_Type>Opt1</ucc_Order_Type>
  <ucc_Payments_Number i:nil="true" />
  <ucc_adresstoicount>הגולן 6 נתניה</ucc_adresstoicount>
  <ucc_bill_to_name>אילן ללום</ucc_bill_to_name>
  <ucc_billto_city_id>
    <CreatedOn i:nil="true" />
    <Id>02996cbb-56d3-4340-ae59-4b29e27dd3ac</Id>
    <ModifiedOn i:nil="true" />
    <DisplayName i:nil="true" />
  </ucc_billto_city_id>
  <ucc_billto_house_number i:nil="true" />
  <ucc_billto_postalcode_id>
    <CreatedOn i:nil="true" />
    <Id>a6a58848-8853-4905-a93b-9b24389f4fc6</Id>
    <ModifiedOn i:nil="true" />
    <DisplayName i:nil="true" />
  </ucc_billto_postalcode_id>
  <ucc_billto_street_id>
    <CreatedOn i:nil="true" />
    <Id>c01e2361-4596-4847-b440-561b3bcfb539</Id>
    <ModifiedOn i:nil="true" />
    <DisplayName i:nil="true" />
  </ucc_billto_street_id>
  <ucc_card_type_id>
    <CreatedOn i:nil="true" />
    <Id>5ce3a0ed-a2de-4653-a42d-f7e9e498a524</Id>
    <ModifiedOn i:nil="true" />
    <DisplayName i:nil="true" />
  </ucc_card_type_id>
  <ucc_cart i:nil="true" />
  <ucc_ccpaymentstatus i:nil="true" />
  <ucc_clearing_date>2026-06-01T22:17:35.2579698+00:00</ucc_clearing_date>
  <ucc_comment i:nil="true" />
  <ucc_customer>
    <CreatedOn i:nil="true" />
    <Id>4bca50d1-b7d8-453d-bc32-53b0ea8631ee</Id>
    <ModifiedOn i:nil="true" />
    <DisplayName i:nil="true" />
    <LogicalName>Contact</LogicalName>
  </ucc_customer>
  <ucc_customer_ID>123456789</ucc_customer_ID>
  <ucc_customeremail>dummy@demo.com</ucc_customeremail>
  <ucc_for_payment>200</ucc_for_payment>
  <ucc_link_to_receipt i:nil="true" />
  <ucc_membernum>123456</ucc_membernum>
  <ucc_mobile i:nil="true" />
  <ucc_name>אילן ללום</ucc_name>
  <ucc_paymentmethod>
    <CreatedOn i:nil="true" />
    <Id>fd86f67c-3234-4223-b114-c742fc924cd6</Id>
    <ModifiedOn i:nil="true" />
    <DisplayName i:nil="true" />
  </ucc_paymentmethod>
  <ucc_sal_kniya_status_code>Paid</ucc_sal_kniya_status_code>
  <ucc_shipto_city_id>
    <CreatedOn i:nil="true" />
    <Id>23f14c1b-e0a5-42d2-b2ea-98ac1befd8e3</Id>
    <ModifiedOn i:nil="true" />
    <DisplayName i:nil="true" />
  </ucc_shipto_city_id>
  <ucc_shipto_house_number i:nil="true" />
  <ucc_shipto_postalcode_id>
    <CreatedOn i:nil="true" />
    <Id>592f8a49-34cf-4267-91e6-6932337d4098</Id>
    <ModifiedOn i:nil="true" />
    <DisplayName i:nil="true" />
  </ucc_shipto_postalcode_id>
  <ucc_shipto_street_id>
    <CreatedOn i:nil="true" />
    <Id>68381ba0-bbde-4f5c-82bf-f09e7048d032</Id>
    <ModifiedOn i:nil="true" />
    <DisplayName i:nil="true" />
  </ucc_shipto_street_id>
  <ucc_token i:nil="true" />
  <ucc_total_payment_for_products>200</ucc_total_payment_for_products>
</Order>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'Order'.

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.