POST api/{DataId}/retino

Založí novú objednávku

Request Information

URI Parameters

NameDescriptionTypeAdditional information
DataId

Číslo dátového prostredia

string

Required

Body Parameters

Objekt dobropisu z Retina (treba použiť kódovanie UTF8)

Retino
NameDescriptionTypeAdditional information
created_at

date

None.

event_type

string

None.

credit_note

CreditNote

None.

Request Formats

application/json, text/json

Sample:
{
  "created_at": "2025-07-01T05:35:07.3003738+02:00",
  "event_type": "sample string 2",
  "credit_note": {
    "id": "sample string 1",
    "ticket_id": "sample string 2",
    "stock": true,
    "currency": "sample string 4",
    "language": "sample string 5",
    "order_id": "sample string 6",
    "variable_symbol": "sample string 7",
    "bank_account": {
      "type": "sample string 1",
      "czech_bank_account": "sample string 2"
    },
    "customer": {
      "city": "sample string 1",
      "name": "sample string 2",
      "street": "sample string 3",
      "country": "sample string 4",
      "postal_code": "sample string 5",
      "house_number": "sample string 6",
      "company_id": "sample string 7",
      "company_vat_number": "sample string 8"
    },
    "lines": [
      {
        "id": "sample string 1",
        "name": "sample string 2",
        "price": 3.0,
        "amount": 4.0,
        "variant": "sample string 5",
        "product_id": "sample string 6"
      },
      {
        "id": "sample string 1",
        "name": "sample string 2",
        "price": 3.0,
        "amount": 4.0,
        "variant": "sample string 5",
        "product_id": "sample string 6"
      }
    ]
  }
}

application/xml, text/xml

Sample:
<Retino xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <created_at>2025-07-01T05:35:07.3003738+02:00</created_at>
  <event_type>sample string 2</event_type>
  <credit_note>
    <id>sample string 1</id>
    <ticket_id>sample string 2</ticket_id>
    <stock>true</stock>
    <currency>sample string 4</currency>
    <language>sample string 5</language>
    <order_id>sample string 6</order_id>
    <variable_symbol>sample string 7</variable_symbol>
    <bank_account>
      <type>sample string 1</type>
      <czech_bank_account>sample string 2</czech_bank_account>
    </bank_account>
    <customer>
      <city>sample string 1</city>
      <name>sample string 2</name>
      <street>sample string 3</street>
      <country>sample string 4</country>
      <postal_code>sample string 5</postal_code>
      <house_number>sample string 6</house_number>
      <company_id>sample string 7</company_id>
      <company_vat_number>sample string 8</company_vat_number>
    </customer>
    <lines>
      <Line>
        <id>sample string 1</id>
        <name>sample string 2</name>
        <price>3</price>
        <amount>4</amount>
        <variant>sample string 5</variant>
        <product_id>sample string 6</product_id>
      </Line>
      <Line>
        <id>sample string 1</id>
        <name>sample string 2</name>
        <price>3</price>
        <amount>4</amount>
        <variant>sample string 5</variant>
        <product_id>sample string 6</product_id>
      </Line>
    </lines>
  </credit_note>
</Retino>

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 'Retino'.

Response Information

Resource Description

V prípade úspešného zápisu vrati 201 a objekt OrderWriteResult. V prípade chyby vráti 500 a objekt ErrorResult

OrderWriteResult
NameDescriptionTypeAdditional information
OasisOrderId

Id objednávky

globally unique identifier

None.

CustomerCreated

Zákazník bol vytvorený

boolean

None.

CustomerUpdated

Zákazník bol aktualizovaný

boolean

None.

TotalPriceDifference

Odchýlka celkovej ceny bez DPH

decimal number

None.

TotalPriceVatDifference

Odchýlka celkovej ceny s DPH

decimal number

None.

Response Formats

application/json, text/json

Sample:
{
  "OasisOrderId": "38a760e2-7f66-45a6-8906-62a61b7d58d5",
  "CustomerCreated": true,
  "CustomerUpdated": true,
  "TotalPriceDifference": 4.0,
  "TotalPriceVatDifference": 5.0
}

application/xml, text/xml

Sample:
<OrderWriteResult xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <OasisOrderId>38a760e2-7f66-45a6-8906-62a61b7d58d5</OasisOrderId>
  <CustomerCreated>true</CustomerCreated>
  <CustomerUpdated>true</CustomerUpdated>
  <TotalPriceDifference>4</TotalPriceDifference>
  <TotalPriceVatDifference>5</TotalPriceVatDifference>
</OrderWriteResult>