Error: Il metodo di pagamento è obbligatorio in un documento elettronico. #301
-
electronic invoice this json {"data": {"entity":{"id":54343786,"vat_number":"00000000","tax_code":"","code":"","name":"PANE","address_street":"via","address_city":"CR","address_province":"PI","country":"Italia","entity_type":"client","default_payment_terms":0,"default_payment_terms_type":"standard","ei_code":"BA6ET11"},"type":"invoice","e_invoice":true,"number":261,"numeration":"A","date":"2023-03-31","year":2023,"visible_subject":"prova","delivery_note":false,"accompanying_invoice":false,"show_payment_method":false,"show_payments":true,"show_totals":"all","show_paypal_button":false,"show_notification_button":false,"payment_method":{"id":1898887,"name":"BONIFICO"},"use_split_payment":false,"items_list":[{"id":485,"code":"485","qty":54.7,"name":"SCHIACC.PALA Km0","measure":"Kg","net_price":6.6,"vat":{"id":4}},{"id":486,"code":"486","qty":28.1,"name":"PANACCIO Km0","measure":"Kg","net_price":2.1,"vat":{"id":4}}],"payments_list":[{"due_date":"2023-04-30","amount":436.83,"status":"not_paid","paid_date":"2023-04-30"}],"ei_status":"not_sent","locked":false,"has_ts_pay_pending_payment":false,"is_first_e_invoice":false,"ie_data":[{"payment_method":"MP05","bank_iban":"IT82A0846113901000010966345","bank_beneficiary":"PANIFICIO LA RINASCITA SRLS","vat_kind":"","original_document_type":"","od_number":"","od_date":"","cig":"","cup":"","bank_name":""}]}} return error: if "e_invoice":false the envoice is correct. Can help me? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @futurainfos Please, fix the name of the field and try again. If possible, I suggest you use one of our SDKs to reduce these errors. This guide could also be useful: Invoice Creation Thanks |
Beta Was this translation helpful? Give feedback.
Hi @futurainfos
As the error message you provided explained, the ei_data.payment_method is missing.
The field is called "ei_data", not "ie_data" like in your example JSON.
Please, fix the name of the field and try again.
If possible, I suggest you use one of our SDKs to reduce these errors.
This guide could also be useful: Invoice Creation
Thanks
Mauro