Received Documents

Create Received Document

Creates a new document.

post/c/{company_id}/received_documents

Request

  • Base URL: https://api-v2.fattureincloud.it
  • URL: https://api-v2.fattureincloud.it/c/{company_id}/received_documents
  • Auth: one of:
    • OAuth 2 (authorization code, authorization URL https://api-v2.fattureincloud.it/oauth/authorize, token URL https://api-v2.fattureincloud.it/oauth/token, scopes: received_documents:a, stock:a)
    • HTTP bearer

Request body

pending_idinteger

Pending received document id of the document from which the new document is created.

Example request

{
  "data": {
    "entity": {
      "code": "123",
      "name": "Rossi S.r.l.",
      "vat_number": "IT01234567890",
      "tax_code": "RSSMRA44A12E890Q",
      "address_street": "Via dei tigli, 12",
      "address_postal_code": "24010",
      "address_city": "Bergamo",
      "address_province": "BG",
      "country": "Italia",
      "country_iso": "Italia",
      "email": "mario.rossi@example.it",
      "certified_email": "mario.rossi@pec.example.it",
      "default_payment_terms": 30,
      "default_vat": {
        "value": 22,
        "description": "Non imponibile art. 123",
        "notes": "IVA non imponibile ai sensi dell'articolo 123, comma 2"
      },
      "default_payment_method": {
        "default_payment_account": {
          "name": "Conto Banca Intesa"
        }
      }
    },
    "currency": {
      "id": "EUR",
      "symbol": "€",
      "exchange_rate": "1",
      "html_symbol": "EUR"
    },
    "items_list": [
      {
        "vat": {
          "value": 22,
          "description": "Non imponibile art. 123",
          "notes": "IVA non imponibile ai sensi dell'articolo 123, comma 2"
        }
      }
    ],
    "payments_list": [
      {
        "payment_account": {
          "name": "Conto Banca Intesa"
        }
      }
    ]
  }
}

Response

Document created.

Example response

{
  "data": {
    "entity": {
      "code": "123",
      "name": "Rossi S.r.l.",
      "vat_number": "IT01234567890",
      "tax_code": "RSSMRA44A12E890Q",
      "address_street": "Via dei tigli, 12",
      "address_postal_code": "24010",
      "address_city": "Bergamo",
      "address_province": "BG",
      "country": "Italia",
      "country_iso": "Italia",
      "email": "mario.rossi@example.it",
      "certified_email": "mario.rossi@pec.example.it",
      "default_payment_terms": 30,
      "default_vat": {
        "value": 22,
        "description": "Non imponibile art. 123",
        "notes": "IVA non imponibile ai sensi dell'articolo 123, comma 2"
      },
      "default_payment_method": {
        "default_payment_account": {
          "name": "Conto Banca Intesa"
        }
      }
    },
    "currency": {
      "id": "EUR",
      "symbol": "€",
      "exchange_rate": "1",
      "html_symbol": "EUR"
    },
    "items_list": [
      {
        "vat": {
          "value": 22,
          "description": "Non imponibile art. 123",
          "notes": "IVA non imponibile ai sensi dell'articolo 123, comma 2"
        }
      }
    ],
    "payments_list": [
      {
        "payment_account": {
          "name": "Conto Banca Intesa"
        }
      }
    ]
  }
}

Changes

No recorded changes to this operation across all 2 revisions of this API.