> For the complete documentation index, see [llms.txt](https://doklado-mnojd9vj.documentationai.com/llms.txt).
> Use it to discover all available pages before exploring further.

# Issue new invoice without pdf


<PlaygroundComponent />

<AuthParams schemes={["apiKey"]}>
<AuthType scheme="apiKey">
<ParamField header="api_key" param-type="string" required="true">
API Key for authentication. Provide your API key in the header.
</ParamField>
</AuthType>
</AuthParams>

<BodyParams contentTypes={["application/json"]} defaultType="application/json">
  <ContentType type="application/json">
<ParamField showLocation="false" body="data" param-type="object" required="false">

<Expandable title="Object Properties" default-open="false">

  <ParamField showLocation="false" body="organizationId" param-type="string" required="false">
  Ico of organization
  </ParamField>

  <ParamField showLocation="false" body="type" param-type="string" required="false" enum="issued_invoice,issued_credit,issued_debit,issued_advance,issued_tax_document">

  </ParamField>

  <ParamField showLocation="false" body="issueDate" param-type="string" required="false">
  Invoice issue date, today if omitted
  </ParamField>

  <ParamField showLocation="false" body="dueDate" param-type="string" required="false">
  Invoice due date, same as issue date if omitted
  </ParamField>

  <ParamField showLocation="false" body="deliveryDate" param-type="string" required="false">
  Invoice deliveryDate date, issue date + 14 if omitted
  </ParamField>

  <ParamField showLocation="false" body="taxPointDate" param-type="string" required="false">
  Invoice taxPointDate date
  </ParamField>

  <ParamField showLocation="false" body="number" param-type="string" required="false">
  Invoice number, taken from numeric code if omitted/validated against numeric code format
  </ParamField>

  <ParamField showLocation="false" body="originalNumber" param-type="string" required="false">
  Original invoice number
  </ParamField>

  <ParamField showLocation="false" body="telephoneNumber" param-type="string" required="false">

  </ParamField>

  <ParamField showLocation="false" body="email" param-type="string" required="false">
  Contact email on pdf
  </ParamField>

  <ParamField showLocation="false" body="website" param-type="string" required="false">

  </ParamField>

  <ParamField showLocation="false" body="reverseCharge" param-type="boolean" required="false">

  </ParamField>

  <ParamField showLocation="false" body="accountingSettings" param-type="object" required="false">

  <Expandable title="Object Properties" default-open="false">

    <ParamField showLocation="false" body="numericCodeId" param-type="string" required="false">
    Can be used to generate invoice number, can be omitted if invoice number is filled or organization has default numeric code for this invoice type!
    </ParamField>

    <ParamField showLocation="false" body="expenditureCenterId" param-type="string" required="false">

    </ParamField>

    <ParamField showLocation="false" body="accountingItemId" param-type="string" required="false">

    </ParamField>

    <ParamField showLocation="false" body="projectId" param-type="string" required="false">

    </ParamField>

    <ParamField showLocation="false" body="activityId" param-type="string" required="false">

    </ParamField>

    <ParamField showLocation="false" body="approvalProcessId" param-type="string" required="false">

    </ParamField>

    <ParamField showLocation="false" body="orderId" param-type="string" required="false">

    </ParamField>

    <ParamField showLocation="false" body="classificationVatId" param-type="string" required="false">

    </ParamField>

    <ParamField showLocation="false" body="classificationKvVatId" param-type="string" required="false">

    </ParamField>

    <ParamField showLocation="false" body="debitAccountingAccountId" param-type="string" required="false">

    </ParamField>

    <ParamField showLocation="false" body="accountingSoftwareAgendaId" param-type="string" required="false">

    </ParamField>

  </Expandable>
  </ParamField>

  <ParamField showLocation="false" body="items" param-type="array" required="false">

  <Expandable title="Array Items" default-open="false">

    <ParamField showLocation="false" body="name" param-type="string" required="false">

    </ParamField>

    <ParamField showLocation="false" body="unitPriceWithoutVat" param-type="number" required="false">

    </ParamField>

    <ParamField showLocation="false" body="vatRate" param-type="number" required="false">

    </ParamField>

    <ParamField showLocation="false" body="quantity" param-type="number" required="false">

    </ParamField>

    <ParamField showLocation="false" body="unit" param-type="string" required="false">

    </ParamField>

    <ParamField showLocation="false" body="note" param-type="string" required="false">

    </ParamField>

    <ParamField showLocation="false" body="debitAccountingAccountId" param-type="string" required="false">

    </ParamField>

    <ParamField showLocation="false" body="skuCode" param-type="string" required="false">

    </ParamField>

    <ParamField showLocation="false" body="ossServiceType" param-type="string" required="false" enum="BA,BB,GD,OS,OT,SA,SB,SD,SE,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TX">

    </ParamField>

    <ParamField showLocation="false" body="discount" param-type="object" required="false">

    <Expandable title="Object Properties" default-open="false">

      <ParamField showLocation="false" body="discountPercent" param-type="number" required="false" examples-b64="W3sibmFtZSI6ImV4YW1wbGUiLCJ2YWx1ZSI6MTB9XQ==">

      </ParamField>

    </Expandable>
    </ParamField>

    <ParamField showLocation="false" body="itemType" param-type="string" required="false" enum="advance_payment">
    advance\_payment - uhradená záloha
    </ParamField>

  </Expandable>
  </ParamField>

  <ParamField showLocation="false" body="customer" param-type="object" required="false">
  Criteria for searching for partner sorted by priority, only one is neccessary.

  <Expandable title="Object Properties" default-open="false">

    <ParamField showLocation="false" body="ico" param-type="string" required="false">

    </ParamField>

    <ParamField showLocation="false" body="icDph" param-type="string" required="false">

    </ParamField>

    <ParamField showLocation="false" body="name" param-type="string" required="false">

    </ParamField>

    <ParamField showLocation="false" body="dic" param-type="string" required="false">

    </ParamField>

    <ParamField showLocation="false" body="vatPayer" param-type="boolean" required="false">

    </ParamField>

    <ParamField showLocation="false" body="streetName" param-type="string" required="false">

    </ParamField>

    <ParamField showLocation="false" body="propertyRegistrationNumber" param-type="string" required="false">

    </ParamField>

    <ParamField showLocation="false" body="postalCode" param-type="string" required="false">

    </ParamField>

    <ParamField showLocation="false" body="buildingNumber" param-type="string" required="false">

    </ParamField>

    <ParamField showLocation="false" body="municipality" param-type="string" required="false">

    </ParamField>

    <ParamField showLocation="false" body="country" param-type="string" required="false">

    </ParamField>

    <ParamField showLocation="false" body="contactEmail" param-type="string" required="false">

    </ParamField>

    <ParamField showLocation="false" body="nonCorporateEntity" param-type="boolean" required="false">

    </ParamField>

    <ParamField showLocation="false" body="registerNumberText" param-type="string" required="false">

    </ParamField>

    <ParamField showLocation="false" body="vatRegistrationType" param-type="string" required="false" enum="§4,§4b,§5,§7,§7a">

    </ParamField>

    <ParamField showLocation="false" body="countryCode" param-type="string" required="false" enum="sk,cz,af,ax,al,dz,as,ad,ao,ai,aq,ag,ar,am,aw,au,at,az,bs,bh,bd,bb,by,be,bz,bj,bm,bt,bo,bq,ba,bw,bv,br,io,bn,bg,bf,bi,cv,kh,cm,ca,ky,cf,td,cl,cn,cx,cc,co,km,cg,cd,ck,cr,ci,hr,cu,cw,cy,dk,dj,dm,do,ec,eg,sv,gq,er,ee,sz,et,fk,fo,fj,fi,fr,gf,pf,tf,ga,gm,ge,de,gh,gi,gr,gl,gd,gp,gu,gt,gg,gn,gw,gy,ht,hm,va,hn,hk,hu,is,in,id,ir,iq,ie,im,il,it,jm,jp,je,jo,kz,ke,ki,kp,kr,kw,kg,la,lv,lb,ls,lr,ly,li,lt,lu,mo,mg,mw,my,mv,ml,mt,mh,mq,mr,mu,yt,mx,fm,md,mc,mn,me,ms,ma,mz,mm,na,nr,np,nl,nc,nz,ni,ne,ng,nu,nf,mk,mp,no,om,pk,pw,ps,pa,pg,py,pe,ph,pn,pl,pt,pr,qa,re,ro,ru,rw,bl,sh,kn,lc,mf,pm,vc,ws,sm,st,sa,sn,rs,sc,sl,sg,sx,si,sb,so,za,gs,ss,es,lk,sd,sr,sj,se,ch,sy,tw,tj,tz,th,tl,tg,tk,to,tt,tn,tr,tm,tc,tv,ug,ua,ae,gb,us,um,uy,uz,vu,ve,vn,vg,vi,wf,eh,ye,zm,zw,other">

    </ParamField>

    <ParamField showLocation="false" body="deliveryAddress" param-type="object" required="false">
    Delivery Address

    <Expandable title="Object Properties" default-open="false">

      <ParamField showLocation="false" body="name" param-type="string" required="false" examples-b64="W3sibmFtZSI6ImV4YW1wbGUiLCJ2YWx1ZSI6IkVpbnN0ZWlub3ZhIn1d">

      </ParamField>

      <ParamField showLocation="false" body="phoneNumber" param-type="string" required="false" examples-b64="W3sibmFtZSI6ImV4YW1wbGUiLCJ2YWx1ZSI6OTA1MzY5ODc0fV0=">

      </ParamField>

      <ParamField showLocation="false" body="address" param-type="string" required="false" examples-b64="W3sibmFtZSI6ImV4YW1wbGUiLCJ2YWx1ZSI6IkVpbnN0ZWlub3ZhIDMwIn1d">

      </ParamField>

      <ParamField showLocation="false" body="postalCode" param-type="string" required="false" examples-b64="W3sibmFtZSI6ImV4YW1wbGUiLCJ2YWx1ZSI6ODUxMDF9XQ==">

      </ParamField>

      <ParamField showLocation="false" body="municipality" param-type="string" required="false" examples-b64="W3sibmFtZSI6ImV4YW1wbGUiLCJ2YWx1ZSI6IkJyYXRpc2xhdmEgLSBtZXN0c2vDoSDEjWFzxaUgUGV0csW+YWxrYSJ9XQ==">

      </ParamField>

      <ParamField showLocation="false" body="countryCode" param-type="string" required="false" enum="sk,cz,af,ax,al,dz,as,ad,ao,ai,aq,ag,ar,am,aw,au,at,az,bs,bh,bd,bb,by,be,bz,bj,bm,bt,bo,bq,ba,bw,bv,br,io,bn,bg,bf,bi,cv,kh,cm,ca,ky,cf,td,cl,cn,cx,cc,co,km,cg,cd,ck,cr,ci,hr,cu,cw,cy,dk,dj,dm,do,ec,eg,sv,gq,er,ee,sz,et,fk,fo,fj,fi,fr,gf,pf,tf,ga,gm,ge,de,gh,gi,gr,gl,gd,gp,gu,gt,gg,gn,gw,gy,ht,hm,va,hn,hk,hu,is,in,id,ir,iq,ie,im,il,it,jm,jp,je,jo,kz,ke,ki,kp,kr,kw,kg,la,lv,lb,ls,lr,ly,li,lt,lu,mo,mg,mw,my,mv,ml,mt,mh,mq,mr,mu,yt,mx,fm,md,mc,mn,me,ms,ma,mz,mm,na,nr,np,nl,nc,nz,ni,ne,ng,nu,nf,mk,mp,no,om,pk,pw,ps,pa,pg,py,pe,ph,pn,pl,pt,pr,qa,re,ro,ru,rw,bl,sh,kn,lc,mf,pm,vc,ws,sm,st,sa,sn,rs,sc,sl,sg,sx,si,sb,so,za,gs,ss,es,lk,sd,sr,sj,se,ch,sy,tw,tj,tz,th,tl,tg,tk,to,tt,tn,tr,tm,tc,tv,ug,ua,ae,gb,us,um,uy,uz,vu,ve,vn,vg,vi,wf,eh,ye,zm,zw,other">

      </ParamField>

    </Expandable>
    </ParamField>

  </Expandable>
  </ParamField>

  <ParamField showLocation="false" body="paymentInfo" param-type="object" required="false">

  <Expandable title="Object Properties" default-open="false">

    <ParamField showLocation="false" body="iban" param-type="string" required="false">
    Nullable if payment type card
    </ParamField>

    <ParamField showLocation="false" body="variableSymbol" param-type="string" required="false">
    Variable symbol (takes numbers from invoice number if omitted)
    </ParamField>

  </Expandable>
  </ParamField>

  <ParamField showLocation="false" body="note" param-type="string" required="false">

  </ParamField>

  <ParamField showLocation="false" body="noteAboveItems" param-type="string" required="false">

  </ParamField>

  <ParamField showLocation="false" body="language" param-type="string" required="false" enum="english,slovak">
  Language of generated pdf, slovak if omitted
  </ParamField>

  <ParamField showLocation="false" body="currency" param-type="string" required="false" examples-b64="W3sibmFtZSI6ImV4YW1wbGUiLCJ2YWx1ZSI6IlVTRCJ9XQ==">
  Three digit currency code, EUR if omitted
  </ParamField>

  <ParamField showLocation="false" body="paid" param-type="boolean" required="false">
  Mark document as paid/not paid
  </ParamField>

  <ParamField showLocation="false" body="ossSettings" param-type="object" required="false">
  Settings for OSS(One Stop Shop) of expense

  <Expandable title="Object Properties" default-open="false">

    <ParamField showLocation="false" body="countryCode" param-type="string" required="false" enum="at,be,bg,hr,cy,cz,dk,ee,fi,fr,de,gr,hu,ie,it,lv,lt,lu,mt,nl,pl,pt,ro,sk,si,es,se" examples-b64="W3sibmFtZSI6ImV4YW1wbGUiLCJ2YWx1ZSI6ImRlIn1d">

    </ParamField>

    <ParamField showLocation="false" body="ossEvidentaryResource" param-type="string" required="false" enum="A,B,C,D,E,F,G,H,I">
    - A - Fakturacna adresa zakaznika
    - B - IP adresa alebo poloha
    - C - Bankove informacie
    - D - Kod krajiny
    - E - Umiestnenie pevnej linky pouzite pre sluzbu
    - F - Ostatne prostriedky
    - G - Miesto dorucenia (alebo dodania)
    - H - Ostatne platobne sluzby
    - I - Obciansky preukaz, pas
    </ParamField>

    <ParamField showLocation="false" body="ossServiceType" param-type="string" required="false" enum="BA,BB,GD,OS,OT,SA,SB,SD,SE,TA,TB,TC,TD,TE,TF,TG,TH,TI,TJ,TK,TX">

    </ParamField>

  </Expandable>
  </ParamField>

  <ParamField showLocation="false" body="paymentType" param-type="string" required="false" enum="cash,card,transfer,cash_on_delivery">

  </ParamField>

  <ParamField showLocation="false" body="discount" param-type="object" required="false">

  <Expandable title="Object Properties" default-open="false">

    <ParamField showLocation="false" body="discountPercent" param-type="number" required="false" examples-b64="W3sibmFtZSI6ImV4YW1wbGUiLCJ2YWx1ZSI6MTB9XQ==">

    </ParamField>

  </Expandable>
  </ParamField>

  <ParamField showLocation="false" body="internalNote" param-type="string" required="false">
  Internal note (pohoda only)
  </ParamField>

  <ParamField showLocation="false" body="servesAsDeliveryNote" param-type="boolean" required="false">
  Indicates whether this document also serves as a delivery note.
  </ParamField>

</Expandable>
</ParamField>
  </ContentType>
</BodyParams>

<Request tabs="curl,python,javascript,go,ruby">

```bash
curl -X POST "https://api-gateway-prod-europe-west-1-7epuecvu.ew.gateway.dev/v1/documents/invoice-issue" \
  -H "Content-Type: application/json" \
  -H "api_key: YOUR_API_KEY" \
  -d '{
  "data": {
    "organizationId": "example_string",
    "type": "issued_invoice",
    "issueDate": "2024-12-25",
    "dueDate": "2024-12-25",
    "deliveryDate": "2024-12-25",
    "taxPointDate": "2024-12-25",
    "number": "example_string",
    "originalNumber": "example_string",
    "telephoneNumber": "+1-555-0123",
    "email": "user@example.com",
    "website": "example_string",
    "reverseCharge": true,
    "accountingSettings": {
      "numericCodeId": "example_string",
      "expenditureCenterId": "example_string",
      "accountingItemId": "example_string",
      "projectId": "example_string",
      "activityId": "example_string",
      "approvalProcessId": "example_string",
      "orderId": "example_string",
      "classificationVatId": "example_string",
      "classificationKvVatId": "example_string",
      "debitAccountingAccountId": "example_string",
      "accountingSoftwareAgendaId": "example_string"
    },
    "items": [
      {
        "name": "John Doe",
        "unitPriceWithoutVat": 29.99,
        "vatRate": 3.14,
        "quantity": 3.14,
        "unit": "example_string",
        "note": "example_string",
        "debitAccountingAccountId": "example_string",
        "skuCode": "example_string",
        "ossServiceType": "BA",
        "discount": {
          "discountPercent": 10
        },
        "itemType": "advance_payment"
      }
    ],
    "customer": {
      "ico": "example_string",
      "icDph": "example_string",
      "name": "John Doe",
      "dic": "example_string",
      "vatPayer": true,
      "streetName": "John Doe",
      "propertyRegistrationNumber": "example_string",
      "postalCode": "example_string",
      "buildingNumber": "example_string",
      "municipality": "example_string",
      "country": "USA",
      "contactEmail": "user@example.com",
      "nonCorporateEntity": true,
      "registerNumberText": "example_string",
      "vatRegistrationType": "§4",
      "countryCode": "sk",
      "deliveryAddress": {
        "name": "Einsteinova",
        "phoneNumber": 905369874,
        "address": "Einsteinova 30",
        "postalCode": 85101,
        "municipality": "Bratislava - mestská časť Petržalka",
        "countryCode": "sk"
      }
    },
    "paymentInfo": {
      "iban": "example_string",
      "variableSymbol": "example_string"
    },
    "note": "example_string",
    "noteAboveItems": "example_string",
    "language": "english",
    "currency": "USD",
    "paid": true,
    "ossSettings": {
      "countryCode": "de",
      "ossEvidentaryResource": "A",
      "ossServiceType": "BA"
    },
    "paymentType": "cash",
    "discount": {
      "discountPercent": 10
    },
    "internalNote": "example_string",
    "servesAsDeliveryNote": true
  }
}'
```

```python
import requests
import json

url = "https://api-gateway-prod-europe-west-1-7epuecvu.ew.gateway.dev/v1/documents/invoice-issue"
headers = {
  "Content-Type": "application/json",
  "api_key": "YOUR_API_KEY"
}
data = {
  "data": {
    "organizationId": "example_string",
    "type": "issued_invoice",
    "issueDate": "2024-12-25",
    "dueDate": "2024-12-25",
    "deliveryDate": "2024-12-25",
    "taxPointDate": "2024-12-25",
    "number": "example_string",
    "originalNumber": "example_string",
    "telephoneNumber": "+1-555-0123",
    "email": "user@example.com",
    "website": "example_string",
    "reverseCharge": true,
    "accountingSettings": {
      "numericCodeId": "example_string",
      "expenditureCenterId": "example_string",
      "accountingItemId": "example_string",
      "projectId": "example_string",
      "activityId": "example_string",
      "approvalProcessId": "example_string",
      "orderId": "example_string",
      "classificationVatId": "example_string",
      "classificationKvVatId": "example_string",
      "debitAccountingAccountId": "example_string",
      "accountingSoftwareAgendaId": "example_string"
    },
    "items": [
      {
        "name": "John Doe",
        "unitPriceWithoutVat": 29.99,
        "vatRate": 3.14,
        "quantity": 3.14,
        "unit": "example_string",
        "note": "example_string",
        "debitAccountingAccountId": "example_string",
        "skuCode": "example_string",
        "ossServiceType": "BA",
        "discount": {
          "discountPercent": 10
        },
        "itemType": "advance_payment"
      }
    ],
    "customer": {
      "ico": "example_string",
      "icDph": "example_string",
      "name": "John Doe",
      "dic": "example_string",
      "vatPayer": true,
      "streetName": "John Doe",
      "propertyRegistrationNumber": "example_string",
      "postalCode": "example_string",
      "buildingNumber": "example_string",
      "municipality": "example_string",
      "country": "USA",
      "contactEmail": "user@example.com",
      "nonCorporateEntity": true,
      "registerNumberText": "example_string",
      "vatRegistrationType": "§4",
      "countryCode": "sk",
      "deliveryAddress": {
        "name": "Einsteinova",
        "phoneNumber": 905369874,
        "address": "Einsteinova 30",
        "postalCode": 85101,
        "municipality": "Bratislava - mestská časť Petržalka",
        "countryCode": "sk"
      }
    },
    "paymentInfo": {
      "iban": "example_string",
      "variableSymbol": "example_string"
    },
    "note": "example_string",
    "noteAboveItems": "example_string",
    "language": "english",
    "currency": "USD",
    "paid": true,
    "ossSettings": {
      "countryCode": "de",
      "ossEvidentaryResource": "A",
      "ossServiceType": "BA"
    },
    "paymentType": "cash",
    "discount": {
      "discountPercent": 10
    },
    "internalNote": "example_string",
    "servesAsDeliveryNote": true
  }
}

response = requests.post(url, headers=headers, json=data)
print(response.json())
```

```javascript
const response = await fetch("https://api-gateway-prod-europe-west-1-7epuecvu.ew.gateway.dev/v1/documents/invoice-issue", {
  method: "POST",
  headers: {
  "Content-Type": "application/json",
  "api_key": "YOUR_API_KEY"
},
  body: JSON.stringify({
  "data": {
    "organizationId": "example_string",
    "type": "issued_invoice",
    "issueDate": "2024-12-25",
    "dueDate": "2024-12-25",
    "deliveryDate": "2024-12-25",
    "taxPointDate": "2024-12-25",
    "number": "example_string",
    "originalNumber": "example_string",
    "telephoneNumber": "+1-555-0123",
    "email": "user@example.com",
    "website": "example_string",
    "reverseCharge": true,
    "accountingSettings": {
      "numericCodeId": "example_string",
      "expenditureCenterId": "example_string",
      "accountingItemId": "example_string",
      "projectId": "example_string",
      "activityId": "example_string",
      "approvalProcessId": "example_string",
      "orderId": "example_string",
      "classificationVatId": "example_string",
      "classificationKvVatId": "example_string",
      "debitAccountingAccountId": "example_string",
      "accountingSoftwareAgendaId": "example_string"
    },
    "items": [
      {
        "name": "John Doe",
        "unitPriceWithoutVat": 29.99,
        "vatRate": 3.14,
        "quantity": 3.14,
        "unit": "example_string",
        "note": "example_string",
        "debitAccountingAccountId": "example_string",
        "skuCode": "example_string",
        "ossServiceType": "BA",
        "discount": {
          "discountPercent": 10
        },
        "itemType": "advance_payment"
      }
    ],
    "customer": {
      "ico": "example_string",
      "icDph": "example_string",
      "name": "John Doe",
      "dic": "example_string",
      "vatPayer": true,
      "streetName": "John Doe",
      "propertyRegistrationNumber": "example_string",
      "postalCode": "example_string",
      "buildingNumber": "example_string",
      "municipality": "example_string",
      "country": "USA",
      "contactEmail": "user@example.com",
      "nonCorporateEntity": true,
      "registerNumberText": "example_string",
      "vatRegistrationType": "§4",
      "countryCode": "sk",
      "deliveryAddress": {
        "name": "Einsteinova",
        "phoneNumber": 905369874,
        "address": "Einsteinova 30",
        "postalCode": 85101,
        "municipality": "Bratislava - mestská časť Petržalka",
        "countryCode": "sk"
      }
    },
    "paymentInfo": {
      "iban": "example_string",
      "variableSymbol": "example_string"
    },
    "note": "example_string",
    "noteAboveItems": "example_string",
    "language": "english",
    "currency": "USD",
    "paid": true,
    "ossSettings": {
      "countryCode": "de",
      "ossEvidentaryResource": "A",
      "ossServiceType": "BA"
    },
    "paymentType": "cash",
    "discount": {
      "discountPercent": 10
    },
    "internalNote": "example_string",
    "servesAsDeliveryNote": true
  }
})
});

const data = await response.json();
console.log(data);
```

```go
package main

import (
    "fmt"
    "net/http"
    "bytes"
    "encoding/json"
)

func main() {
    data := []byte(`{
  "data": {
    "organizationId": "example_string",
    "type": "issued_invoice",
    "issueDate": "2024-12-25",
    "dueDate": "2024-12-25",
    "deliveryDate": "2024-12-25",
    "taxPointDate": "2024-12-25",
    "number": "example_string",
    "originalNumber": "example_string",
    "telephoneNumber": "+1-555-0123",
    "email": "user@example.com",
    "website": "example_string",
    "reverseCharge": true,
    "accountingSettings": {
      "numericCodeId": "example_string",
      "expenditureCenterId": "example_string",
      "accountingItemId": "example_string",
      "projectId": "example_string",
      "activityId": "example_string",
      "approvalProcessId": "example_string",
      "orderId": "example_string",
      "classificationVatId": "example_string",
      "classificationKvVatId": "example_string",
      "debitAccountingAccountId": "example_string",
      "accountingSoftwareAgendaId": "example_string"
    },
    "items": [
      {
        "name": "John Doe",
        "unitPriceWithoutVat": 29.99,
        "vatRate": 3.14,
        "quantity": 3.14,
        "unit": "example_string",
        "note": "example_string",
        "debitAccountingAccountId": "example_string",
        "skuCode": "example_string",
        "ossServiceType": "BA",
        "discount": {
          "discountPercent": 10
        },
        "itemType": "advance_payment"
      }
    ],
    "customer": {
      "ico": "example_string",
      "icDph": "example_string",
      "name": "John Doe",
      "dic": "example_string",
      "vatPayer": true,
      "streetName": "John Doe",
      "propertyRegistrationNumber": "example_string",
      "postalCode": "example_string",
      "buildingNumber": "example_string",
      "municipality": "example_string",
      "country": "USA",
      "contactEmail": "user@example.com",
      "nonCorporateEntity": true,
      "registerNumberText": "example_string",
      "vatRegistrationType": "§4",
      "countryCode": "sk",
      "deliveryAddress": {
        "name": "Einsteinova",
        "phoneNumber": 905369874,
        "address": "Einsteinova 30",
        "postalCode": 85101,
        "municipality": "Bratislava - mestská časť Petržalka",
        "countryCode": "sk"
      }
    },
    "paymentInfo": {
      "iban": "example_string",
      "variableSymbol": "example_string"
    },
    "note": "example_string",
    "noteAboveItems": "example_string",
    "language": "english",
    "currency": "USD",
    "paid": true,
    "ossSettings": {
      "countryCode": "de",
      "ossEvidentaryResource": "A",
      "ossServiceType": "BA"
    },
    "paymentType": "cash",
    "discount": {
      "discountPercent": 10
    },
    "internalNote": "example_string",
    "servesAsDeliveryNote": true
  }
}`)

    req, err := http.NewRequest("POST", "https://api-gateway-prod-europe-west-1-7epuecvu.ew.gateway.dev/v1/documents/invoice-issue", bytes.NewBuffer(data))
    if err != nil {
        panic(err)
    }

    req.Header.Set("Content-Type", "application/json")
    req.Header.Set("api_key", "YOUR_API_KEY")

    client := &http.Client{}
    resp, err := client.Do(req)
    if err != nil {
        panic(err)
    }
    defer resp.Body.Close()

    fmt.Println("Response Status:", resp.Status)
}
```

```ruby
require 'net/http'
require 'json'

uri = URI('https://api-gateway-prod-europe-west-1-7epuecvu.ew.gateway.dev/v1/documents/invoice-issue')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true

request = Net::HTTP::Post.new(uri)
request['Content-Type'] = 'application/json'
request['api_key'] = 'YOUR_API_KEY'
request.body = '{
  "data": {
    "organizationId": "example_string",
    "type": "issued_invoice",
    "issueDate": "2024-12-25",
    "dueDate": "2024-12-25",
    "deliveryDate": "2024-12-25",
    "taxPointDate": "2024-12-25",
    "number": "example_string",
    "originalNumber": "example_string",
    "telephoneNumber": "+1-555-0123",
    "email": "user@example.com",
    "website": "example_string",
    "reverseCharge": true,
    "accountingSettings": {
      "numericCodeId": "example_string",
      "expenditureCenterId": "example_string",
      "accountingItemId": "example_string",
      "projectId": "example_string",
      "activityId": "example_string",
      "approvalProcessId": "example_string",
      "orderId": "example_string",
      "classificationVatId": "example_string",
      "classificationKvVatId": "example_string",
      "debitAccountingAccountId": "example_string",
      "accountingSoftwareAgendaId": "example_string"
    },
    "items": [
      {
        "name": "John Doe",
        "unitPriceWithoutVat": 29.99,
        "vatRate": 3.14,
        "quantity": 3.14,
        "unit": "example_string",
        "note": "example_string",
        "debitAccountingAccountId": "example_string",
        "skuCode": "example_string",
        "ossServiceType": "BA",
        "discount": {
          "discountPercent": 10
        },
        "itemType": "advance_payment"
      }
    ],
    "customer": {
      "ico": "example_string",
      "icDph": "example_string",
      "name": "John Doe",
      "dic": "example_string",
      "vatPayer": true,
      "streetName": "John Doe",
      "propertyRegistrationNumber": "example_string",
      "postalCode": "example_string",
      "buildingNumber": "example_string",
      "municipality": "example_string",
      "country": "USA",
      "contactEmail": "user@example.com",
      "nonCorporateEntity": true,
      "registerNumberText": "example_string",
      "vatRegistrationType": "§4",
      "countryCode": "sk",
      "deliveryAddress": {
        "name": "Einsteinova",
        "phoneNumber": 905369874,
        "address": "Einsteinova 30",
        "postalCode": 85101,
        "municipality": "Bratislava - mestská časť Petržalka",
        "countryCode": "sk"
      }
    },
    "paymentInfo": {
      "iban": "example_string",
      "variableSymbol": "example_string"
    },
    "note": "example_string",
    "noteAboveItems": "example_string",
    "language": "english",
    "currency": "USD",
    "paid": true,
    "ossSettings": {
      "countryCode": "de",
      "ossEvidentaryResource": "A",
      "ossServiceType": "BA"
    },
    "paymentType": "cash",
    "discount": {
      "discountPercent": 10
    },
    "internalNote": "example_string",
    "servesAsDeliveryNote": true
  }
}'

response = http.request(request)
puts response.body
```

</Request>

### Responses

<div data-component="ResponsesCollection"><Expandable title="200 - Successful operation" default-open="true">

<ResponseField name="data" field-type="object" required="false">

<Expandable title="Object Properties" default-open="false">

<ResponseField name="document" field-type="string" required="false">
id of created document
</ResponseField>

</Expandable>
</ResponseField>

<ResponseField name="success" field-type="boolean" required="false">

</ResponseField>

<ResponseField name="message" field-type="string" required="false">
optional message to help user understand error code
</ResponseField>

<ResponseField name="code" field-type="string" required="false" enum="APP_UNAUTHENTICATED,APP_INCORRECT_INPUT_DATA,SAVE_DATA_ERROR_CODE">

</ResponseField>

</Expandable>

<Expandable title="403 - Not authorized" default-open="false">

*Not authorized*

</Expandable>

<Expandable title="404 - Not found" default-open="false">

*Not found*

</Expandable>

<Expandable title="500 - Server invocation error" default-open="false">

*Server invocation error*

</Expandable>

</div>

<Response tabs={["200","403","404","500"]} dropdown="true">

```json
{
  "data": {
    "document": "example_string"
  },
  "success": true,
  "message": "example_string",
  "code": "APP_UNAUTHENTICATED"
}
```

```json
{
  "error": "Forbidden",
  "message": "You don't have permission to access this resource",
  "code": 403
}
```

```json
{
  "error": "Not Found",
  "message": "The requested resource was not found",
  "code": 404
}
```

```json
{
  "error": "Internal Server Error",
  "message": "An unexpected error occurred on the server",
  "code": 500,
  "requestId": "req_1234567890"
}
```

</Response>

