{
    "variable": [
        {
            "id": "baseUrl",
            "key": "baseUrl",
            "type": "string",
            "name": "string",
            "value": "https:\/\/dev.invoiceportal.gr"
        }
    ],
    "info": {
        "name": "Invoice Portal",
        "_postman_id": "739ac46c-cbe9-44b9-abda-8addb332f155",
        "description": "",
        "schema": "https:\/\/schema.getpostman.com\/json\/collection\/v2.1.0\/collection.json"
    },
    "item": [
        {
            "name": "Company",
            "description": "",
            "item": [
                {
                    "name": "Pending Order Notes",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v2\/order-notes\/pending",
                            "query": [
                                {
                                    "key": "vat_number",
                                    "value": "998914851",
                                    "description": "",
                                    "disabled": false
                                },
                                {
                                    "key": "branch",
                                    "value": "",
                                    "description": "",
                                    "disabled": false
                                },
                                {
                                    "key": "table",
                                    "value": "table+%231",
                                    "description": "",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/v2\/order-notes\/pending?vat_number=998914851&branch=&table=table+%231"
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"data\":[{\"table\":\"table #1\",\"invoices\":{\"uid\":\"69C235338728CF9E2429E90348E62FF1D357B85C\",\"mark\":\"400001929261975\",\"authentication_code\":\"69C235338728CF9E2429E90348E62FF1D357B85C\",\"issue_date\":\"2024-09-18 14:55:41.000\",\"items\":[{\"name\":\"Item Name\",\"value\":\"100.00\",\"quantity\":4,\"seller_id\":\"e7314833-f451-42b7-8f8a-533b78015187\"},{\"name\":\"Item 2\",\"value\":\"8.00\",\"quantity\":1,\"seller_id\":\"643379a0-963e-405d-b544-4af3cbaa0372\"}]}}]}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Invite a company",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v2\/companies",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v2\/companies"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"email\":\"admin@example.com\",\"vat_number\":\"801082480\",\"reseller_email\":\"reseller@example.com\",\"buckets\":[{\"branch\":\"0\",\"invoices\":\"1000\",\"expires_at\":\"2026-09-14T01:02:03Z\"}],\"send_email\":false,\"tags\":[\"retail\"]}"
                        },
                        "description": "Create and invite a company to Invoice Portal.\nYou can also assign one or more invoice buckets to the company, so it can start issuing right away.\n<aside class=\"notice\">\n    In the Development environment the URL returned is a dummy one, and the company is activated right away.<br>\n    In the production environment the company must complete the onboarding process in order to be activated\n<\/aside>"
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"link\":\"https:\\\/\\\/invoiceportal.gr\\\/XXXX\"}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 400,
                            "body": "{\"message\":\"Invalid Vat Number\"}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 400,
                            "body": "{\"message\":\"Company Already Exists\"}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Update a company",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v2\/companies\/:vatNumber",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v2\/companies\/:vatNumber",
                            "variable": [
                                {
                                    "id": "vatNumber",
                                    "key": "vatNumber",
                                    "value": "998914851",
                                    "description": ""
                                }
                            ]
                        },
                        "method": "PUT",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"reseller_email\":\"reseller@example.com\"}"
                        },
                        "description": "Update the editable fields of a company."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"message\":\"ok\"}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 400,
                            "body": "{\"message\":\"Company Not Found\"}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Status",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v2\/companies\/:vatNumber\/status",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v2\/companies\/:vatNumber\/status",
                            "variable": [
                                {
                                    "id": "vatNumber",
                                    "key": "vatNumber",
                                    "value": "998914851",
                                    "description": ""
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Get information regarding the current status of a company.\nThe following statuses are available:\n- `PENDING`: The company hasn't completed the onboarding process.\n- `ACTIVE`: The company is active and able to issue invoices.\n- `SUSPENDED`: The company is suspended and cannot issue invoices.\n- `BANNED`: The company has been banned and is unable to issue invoices\n\n<aside>You can also get info about your reseller by using the value <code>reseller<\/code><\/aside>"
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n    \"status\": \"ACTIVE\",\n    \"onboarding_status\": null,\n    \"reseller_email\": \"reseller@example.com\",\n    \"available\": 35,\n    \"used\": 20003,\n    \"capacity\": 20038,\n    \"statement\": { \"b2c\": true, \"b2b\": false },\n    \"invoice_provider\": {\n        \"name\":\"Invoice Portal\",\n        \"site\": \"https:\/\/invoiceportal.gr\",\n        \"license\": \"2024_07_122BUSINESS CLOUD_001_Invoice Portal_V1_25072024\",\n        \"aade_provider_id\": 22\n    },\n    \"buckets\": [\n        {\n            \"branch\": 0,\n            \"capacity\": 38,\n            \"available\": 35,\n            \"used\": 3,\n            \"expires_at\": \"2024-08-10T00:00:00.000000Z\",\n            \"created_at\": \"2024-07-16T18:27:27.000000Z\",\n            \"updated_at\": \"2024-08-07T10:10:34.000000Z\"\n        },\n        {\n            \"branch\": null,\n            \"capacity\": 20000,\n            \"available\": 0,\n            \"used\": 20000,\n            \"expires_at\": null,\n            \"created_at\": \"2024-07-16T18:27:27.000000Z\",\n            \"updated_at\": \"2024-07-16T18:27:27.000000Z\"\n        }\n    ]\n}",
                            "name": "Success, company has 100\/200 invoices available"
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\"message\":\"Not Found\"}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Resend Invitation email",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v2\/companies\/:vatNumber\/resend-email",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v2\/companies\/:vatNumber\/resend-email",
                            "variable": [
                                {
                                    "id": "vatNumber",
                                    "key": "vatNumber",
                                    "value": "998914851",
                                    "description": ""
                                }
                            ]
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"email\":\"user@example.com\"}"
                        },
                        "description": "Resend the invitation email to a company. The company **must** be in a PENDING status."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"link\":\"https:\\\/\\\/invoiceportal.gr\\\/XXX\"}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Renew Contract",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v2\/companies\/:vatNumber\/renew-contract",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v2\/companies\/:vatNumber\/renew-contract",
                            "variable": [
                                {
                                    "id": "vatNumber",
                                    "key": "vatNumber",
                                    "value": "998914851",
                                    "description": ""
                                }
                            ]
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"send_email\":true,\"email\":\"user@example.com\"}"
                        },
                        "description": "Restart the onboarding process of a company, so it can sign a new contract.\nThe company's status is set to <code>PENDING_LINK<\/code> and the onboarding link is returned.\n<aside class=\"warning\">\n    If the company does not have an active statement, it will be <b>unable to issue invoices<\/b> until the onboarding process is completed.\n<\/aside>"
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"link\":\"https:\\\/\\\/invoiceportal.gr\\\/XXX\"}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 400,
                            "body": "{\"message\":\"Company Not Found\"}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Assign invoices to a company",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v2\/companies\/:vatNumber\/invoices",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v2\/companies\/:vatNumber\/invoices",
                            "variable": [
                                {
                                    "id": "vatNumber",
                                    "key": "vatNumber",
                                    "value": "801082480",
                                    "description": ""
                                }
                            ]
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"buckets\":[{\"branch\":2,\"expires_at\":\"2030-12-31T23:59:59Z\",\"invoices\":1000}]}"
                        },
                        "description": ""
                    },
                    "response": []
                },
                {
                    "name": "Activate a company",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v2\/companies\/:vatNumber\/activate",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v2\/companies\/:vatNumber\/activate",
                            "variable": [
                                {
                                    "id": "vatNumber",
                                    "key": "vatNumber",
                                    "value": "801082480",
                                    "description": ""
                                }
                            ]
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "Activate a company.\nThe company <b>must<\/b> have completed the onboarding proccess."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"message\":\"ok\"}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 400,
                            "body": "{\"message\":\"Invalid Vat Number\"}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 400,
                            "body": "{\"message\":\"Onboarding proccess incomplete\"}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Store Branch",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v2\/companies\/:vatNumber\/branches",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v2\/companies\/:vatNumber\/branches",
                            "variable": [
                                {
                                    "id": "vatNumber",
                                    "key": "vatNumber",
                                    "value": "998914851",
                                    "description": ""
                                }
                            ]
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"serial_number\":1,\"street\":\"Mixalakopoulou 38\",\"city\":\"Athens\",\"zip_code\":\"99999\"}"
                        },
                        "description": "Stores a branch of a company. Branches are unique by their serial number.\nIf you store a branch with a serial number that already exists, the existing branch will be updated instead"
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"message\":\"ok\"}",
                            "name": ""
                        }
                    ]
                }
            ]
        },
        {
            "name": "Invoices",
            "description": "",
            "item": [
                {
                    "name": "Map a JSON invoice to UBL & AADE xml",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v2\/transform",
                            "query": [
                                {
                                    "key": "output",
                                    "value": "aade",
                                    "description": "If provided only the selected xml will be returned",
                                    "disabled": false
                                }
                            ],
                            "raw": "{{baseUrl}}\/api\/v2\/transform?output=aade"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"uid\":\"F2B1762EF3380A47FDDD74FC14BD4F9E4FFF12AE\",\"issue_date\":\"2024-07-26 10:03:16\",\"self_pricing\":false,\"dispatch_date\":\"2026-09-25 10:00:00\",\"vehicle_number\":\"\u0399\u039a\u03a41234\",\"vat_payment_suspension\":false,\"correlated\":[400001929722136],\"comments\":\"Free text\",\"gross_value\":124,\"header\":{\"code\":\"11.1\",\"serial_number\":53,\"series\":\"\u03a4\u0394\u0391-\u0391\",\"special_invoice_category\":12,\"is_cancel_order\":false,\"table_name\":\"A1\",\"non_obligated_recipient\":false,\"without_digital_transport_tracking\":false},\"move_purpose\":\"1\",\"currency\":{\"code\":\"EUR\",\"exchange_rate\":1},\"issuer\":{\"name\":\"Some Company\",\"vat_number\":\"9000000000\",\"tax_office\":\"\u039a\u0395\u03a6\u039f\u0394\u0395 \u0391\u03a4\u03a4\u0399\u039a\u0397\u03a3 - 1190\",\"activity\":\"\u0394\u03a1\u0391\u03a3\u03a4\u0397\u03a1\u0399\u039f\u03a4\u0397\u03a4\u0395\u03a3 \u03a0\u03a1\u039f\u0393\u03a1\u0391\u039c\u039c\u0391\u03a4\u0399\u03a3\u039c\u039f\u03a5 \u0397\u039b\u0395\u039a\u03a4\u03a1\u039f\u039d\u0399\u039a\u03a9\u039d \u03a3\u03a5\u03a3\u03a4\u0397\u039c\u0391\u03a4\u03a9\u039d\",\"phone\":\"+30 2100000000\",\"country\":\"GR\",\"branch\":0,\"address\":{\"postal_code\":\"11528\",\"city\":\"\u0391\u03b8\u03ae\u03bd\u03b1\",\"number\":\"10\",\"street\":\"\u039c\u03b9\u03c7\u03b1\u03bb\u03b1\u03ba\u03bf\u03c0\u03bf\u03cd\u03bb\u03bf\u03c5\"}},\"counterpart\":{\"name\":\"Other Company\",\"vat_number\":\"9000000000\",\"tax_office\":\"\u03a6\u0391\u0395 \u0391\u0398\u0397\u039d\u03a9\u039d\",\"activity\":\"\u0395\u039c\u03a0\u039f\u03a1\u0399\u039f\",\"phone\":\"+30 2100000000\",\"country\":\"GR\",\"branch\":0,\"address\":{\"postal_code\":\"10431\",\"city\":\"\u0391\u03b8\u03ae\u03bd\u03b1\",\"number\":\"10\",\"street\":\"\u03a0\u03b1\u03c4\u03b7\u03c3\u03af\u03c9\u03bd\"}},\"payment_methods\":[{\"code\":\"3\",\"amount\":100}],\"other_correlated_entities\":[{\"entity\":{\"name\":null,\"vat_number\":null,\"country\":null}}],\"details\":[{\"line_number\":1,\"name\":\"EXAMPLE PRODUCT\",\"code\":\"00000\",\"not_vat_195\":false,\"detail_type\":1,\"quantity\":2,\"price_per_unit\":100,\"net_value\":200,\"discount\":0,\"deductions\":0,\"tax\":{\"code\":\"1\",\"value\":48,\"rate\":24},\"unit\":{\"code\":\"1\",\"display_name\":\"\u03a4\u0395\u039c\"},\"other_taxes\":{\"amount\":0},\"stamp_duty\":{\"amount\":0},\"retention_tax\":{\"rate\":0,\"amount\":0},\"fee\":{\"amount\":0},\"income\":[{\"type\":\"E3_561_002\",\"category\":\"category1_1\",\"amount\":100}]}],\"taxes_totals\":[{\"underlying_value\":100,\"id\":1,\"tax_type\":1,\"tax_amount\":4}],\"packings_declarations\":[{\"packaging_type\":null,\"quantity\":null}]}"
                        },
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"aade\":\"**xml file**\",\"peppol\":\"**xml file**\"}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "View Invoice Status",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v2\/invoices\/:uid",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v2\/invoices\/:uid",
                            "variable": [
                                {
                                    "id": "uid",
                                    "key": "uid",
                                    "value": "D4EB1048870839BCAB165550D388EFBCA2134D54",
                                    "description": ""
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"uid\":\"BF3C1C867FC4B97DEA1728900F0FD8CFE4E7BA1D\",\"authentication_code\":\"92A60F7464481B1BE2AD203A15E934BE542D786F\",\"mark\":\"400001929722136\",\"qr\":\"https:\\\/\\\/invoiceportal.gr\\\/invoices\\\/2024-BF3C1C867FC4B97DEA1728900F0FD8CFE4E7BA1D\\\/qr\",\"url\":\"https:\\\/\\\/invoiceportal.gr\\\/invoices\\\/2024-BF3C1C867FC4B97DEA1728900F0FD8CFE4E7BA1D\"}",
                            "name": "Success"
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "[]",
                            "name": "Not Found"
                        }
                    ]
                },
                {
                    "name": "Upload Invoice PDF",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v2\/invoices\/:uid\/pdf",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v2\/invoices\/:uid\/pdf",
                            "variable": [
                                {
                                    "id": "uid",
                                    "key": "uid",
                                    "value": "D4EB1048870839BCAB165550D388EFBCA2134D54",
                                    "description": ""
                                }
                            ]
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "multipart\/form-data"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "formdata",
                            "formdata": [
                                {
                                    "key": "pdf",
                                    "src": [],
                                    "type": "file"
                                }
                            ]
                        },
                        "description": ""
                    },
                    "response": []
                },
                {
                    "name": "Create a new Invoice (PEPPOL & myDATA)",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v2\/invoices",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v2\/invoices"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"aade_invoice\":\"...\",\"peppol_invoice\":\"...\",\"emails\":[\"user@example.com\"]}"
                        },
                        "description": "Issue a new invoice.\nThis requires two xml files, one according to AADE's spec, and one according to the PEPPOL protocol.<br>\nUsers can either generate those xml's on the fly themselves, or use our mapping endpoint to generate these files using a more user-friendly json format.\n\nYou can use <a href=\"https:\/\/ecosio.com\/en\/peppol-and-xml-document-validator\/\" class=\"sl-text-primary\" target=\"_blank\">this validator to make sure the PEPPOL Invoice<\/a> is correct."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"uid\":\"BF3C1C867FC4B97DEA1728900F0FD8CFE4E7BA1D\",\"authentication_code\":\"92A60F7464481B1BE2AD203A15E934BE542D786F\",\"mark\":\"400001929722136\",\"transmission_failure\":null,\"remaining_invoices\":1000,\"total_invoices\":3,\"qr\":\"https:\\\/\\\/invoiceportal.gr\\\/invoices\\\/2024-BF3C1C867FC4B97DEA1728900F0FD8CFE4E7BA1D\\\/qr\",\"url\":\"https:\\\/\\\/invoiceportal.gr\\\/invoices\\\/2024-BF3C1C867FC4B97DEA1728900F0FD8CFE4E7BA1D\"}",
                            "name": "Success"
                        },
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"uid\":\"BF3C1C867FC4B97DEA1728900F0FD8CFE4E7BA1D\",\"authentication_code\":null,\"mark\":null,\"transmission_failure\":\"AADE_DOWN\",\"remaining_invoices\":1000,\"total_invoices\":3,\"qr\":\"https:\\\/\\\/invoiceportal.gr\\\/invoices\\\/2024-BF3C1C867FC4B97DEA1728900F0FD8CFE4E7BA1D\\\/qr\",\"url\":\"https:\\\/\\\/invoiceportal.gr\\\/invoices\\\/2024-BF3C1C867FC4B97DEA1728900F0FD8CFE4E7BA1D\"}",
                            "name": "AADE is down - Transmission Failure 2"
                        },
                        {
                            "header": [],
                            "code": 400,
                            "body": "{\"message\":\"Vat category must have value other than 8 for this invoice type\",\"code\":217}",
                            "name": "AADE xml Validation error - Invoice should be fixed and resent"
                        },
                        {
                            "header": [],
                            "code": 400,
                            "body": "{\"message\":\"INVALID_COMPANY\"}",
                            "name": "Invalid issuer VAT Number"
                        },
                        {
                            "header": [],
                            "code": 400,
                            "body": "{\"message\":\"INVALID_SIGNATURE\"}",
                            "name": "The user attempted to issue an invoice containing an invalid signature"
                        },
                        {
                            "header": [],
                            "code": 402,
                            "body": "{\"message\":\"DEPLETED_INVOICES\"}",
                            "name": "The user has used up their invoices."
                        }
                    ]
                },
                {
                    "name": "Create a new Invoice",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v2\/invoices\/json",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v2\/invoices\/json"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"uid\":\"F2B1762EF3380A47FDDD74FC14BD4F9E4FFF12AE\",\"issue_date\":\"2024-07-26 10:03:16\",\"self_pricing\":false,\"dispatch_date\":\"2026-09-25 10:00:00\",\"vehicle_number\":\"\u0399\u039a\u03a41234\",\"vat_payment_suspension\":false,\"correlated\":[400001929722136],\"comments\":\"Free text\",\"gross_value\":124,\"header\":{\"code\":\"11.1\",\"serial_number\":53,\"series\":\"\u03a4\u0394\u0391-\u0391\",\"special_invoice_category\":12,\"is_cancel_order\":false,\"table_name\":\"A1\",\"non_obligated_recipient\":false,\"without_digital_transport_tracking\":false},\"move_purpose\":\"1\",\"currency\":{\"code\":\"EUR\",\"exchange_rate\":1},\"issuer\":{\"name\":\"Some Company\",\"vat_number\":\"9000000000\",\"tax_office\":\"\u039a\u0395\u03a6\u039f\u0394\u0395 \u0391\u03a4\u03a4\u0399\u039a\u0397\u03a3 - 1190\",\"activity\":\"\u0394\u03a1\u0391\u03a3\u03a4\u0397\u03a1\u0399\u039f\u03a4\u0397\u03a4\u0395\u03a3 \u03a0\u03a1\u039f\u0393\u03a1\u0391\u039c\u039c\u0391\u03a4\u0399\u03a3\u039c\u039f\u03a5 \u0397\u039b\u0395\u039a\u03a4\u03a1\u039f\u039d\u0399\u039a\u03a9\u039d \u03a3\u03a5\u03a3\u03a4\u0397\u039c\u0391\u03a4\u03a9\u039d\",\"phone\":\"+30 2100000000\",\"country\":\"GR\",\"branch\":0,\"address\":{\"postal_code\":\"11528\",\"city\":\"\u0391\u03b8\u03ae\u03bd\u03b1\",\"number\":\"10\",\"street\":\"\u039c\u03b9\u03c7\u03b1\u03bb\u03b1\u03ba\u03bf\u03c0\u03bf\u03cd\u03bb\u03bf\u03c5\"}},\"counterpart\":{\"name\":\"Other Company\",\"vat_number\":\"9000000000\",\"tax_office\":\"\u03a6\u0391\u0395 \u0391\u0398\u0397\u039d\u03a9\u039d\",\"activity\":\"\u0395\u039c\u03a0\u039f\u03a1\u0399\u039f\",\"phone\":\"+30 2100000000\",\"country\":\"GR\",\"branch\":0,\"address\":{\"postal_code\":\"10431\",\"city\":\"\u0391\u03b8\u03ae\u03bd\u03b1\",\"number\":\"10\",\"street\":\"\u03a0\u03b1\u03c4\u03b7\u03c3\u03af\u03c9\u03bd\"}},\"payment_methods\":[{\"code\":\"3\",\"amount\":100}],\"other_correlated_entities\":[{\"entity\":{\"name\":null,\"vat_number\":null,\"country\":null}}],\"details\":[{\"line_number\":1,\"name\":\"EXAMPLE PRODUCT\",\"code\":\"00000\",\"not_vat_195\":false,\"detail_type\":1,\"quantity\":2,\"price_per_unit\":100,\"net_value\":200,\"discount\":0,\"deductions\":0,\"tax\":{\"code\":\"1\",\"value\":48,\"rate\":24},\"unit\":{\"code\":\"1\",\"display_name\":\"\u03a4\u0395\u039c\"},\"other_taxes\":{\"amount\":0},\"stamp_duty\":{\"amount\":0},\"retention_tax\":{\"rate\":0,\"amount\":0},\"fee\":{\"amount\":0},\"income\":[{\"type\":\"E3_561_002\",\"category\":\"category1_1\",\"amount\":100}]}],\"taxes_totals\":[{\"underlying_value\":100,\"id\":1,\"tax_type\":1,\"tax_amount\":4}],\"packings_declarations\":[{\"packaging_type\":null,\"quantity\":null}],\"emails\":[\"user1@example.com\",\"user2@example.com\"]}"
                        },
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"uid\":\"BF3C1C867FC4B97DEA1728900F0FD8CFE4E7BA1D\",\"authentication_code\":\"92A60F7464481B1BE2AD203A15E934BE542D786F\",\"mark\":\"400001929722136\",\"transmission_failure\":null,\"remaining_invoices\":1000,\"total_invoices\":3,\"qr\":\"https:\\\/\\\/invoiceportal.gr\\\/invoices\\\/2024-BF3C1C867FC4B97DEA1728900F0FD8CFE4E7BA1D\\\/qr\",\"url\":\"https:\\\/\\\/invoiceportal.gr\\\/invoices\\\/2024-BF3C1C867FC4B97DEA1728900F0FD8CFE4E7BA1D\",\"aade_qr\":\"https:\\\/\\\/mydataapidev.aade.gr\\\/TimologioQR\\\/QRInfo?q=ztPMXpx5acftaLNTX2BOZOkI3dQiud%2ff5pIbfsxBh50yYizADY%2bsM%2bCzoo2PB5toOtRCfFL6APZAIQd0fUGjMLpCchWxpGxG2Xms6oS8A6o%3d\"}",
                            "name": "Success"
                        },
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"uid\":\"BF3C1C867FC4B97DEA1728900F0FD8CFE4E7BA1D\",\"authentication_code\":null,\"mark\":null,\"transmission_failure\":\"AADE_DOWN\",\"remaining_invoices\":1000,\"total_invoices\":3,\"qr\":\"https:\\\/\\\/invoiceportal.gr\\\/invoices\\\/2024-BF3C1C867FC4B97DEA1728900F0FD8CFE4E7BA1D\\\/qr\",\"url\":\"https:\\\/\\\/invoiceportal.gr\\\/invoices\\\/2024-BF3C1C867FC4B97DEA1728900F0FD8CFE4E7BA1D\",\"aade_qr\":\"https:\\\/\\\/mydataapidev.aade.gr\\\/TimologioQR\\\/QRInfo?q=ztPMXpx5acftaLNTX2BOZOkI3dQiud%2ff5pIbfsxBh50yYizADY%2bsM%2bCzoo2PB5toOtRCfFL6APZAIQd0fUGjMLpCchWxpGxG2Xms6oS8A6o%3d\"}",
                            "name": "AADE is down - Transmission Failure 2"
                        },
                        {
                            "header": [],
                            "code": 400,
                            "body": "{\"message\":\"INVALID_COMPANY\"}",
                            "name": "Invalid issuer VAT Number"
                        },
                        {
                            "header": [],
                            "code": 400,
                            "body": "{\"message\":\"INVALID_SIGNATURE\"}",
                            "name": "The user attempted to issue an invoice containing an invalid signature"
                        },
                        {
                            "header": [],
                            "code": 402,
                            "body": "{\"message\":\"DEPLETED_INVOICES\"}",
                            "name": "The user has used up their invoices."
                        }
                    ]
                },
                {
                    "name": "Cancel a delivery note",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v2\/delivery-notes\/cancel",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v2\/delivery-notes\/cancel"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"issuer_vat_number\":\"801082480\",\"uid\":\"C1574181AE8DE7019BB06B0912CD0A37850D5062\"}"
                        },
                        "description": "Cancels a delivery note, and returns a cancellation mark.\n<b>Only invoices of type 9.3 can be canceled<\/b>"
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"cancellation_mark\":\"400001942783398\"}",
                            "name": "Successful cancellation"
                        },
                        {
                            "header": [],
                            "code": 400,
                            "body": "{\"code\":\"251\",\"message\":\"Invoice with MARK 400001942783398 has already been cancelled\"}",
                            "name": "Invalid Cancellation Request"
                        }
                    ]
                },
                {
                    "name": "Cancel a receiving note",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v2\/receiving-notes\/cancel",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v2\/receiving-notes\/cancel"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"issuer_vat_number\":\"801082480\",\"uid\":\"C1574181AE8DE7019BB06B0912CD0A37850D5062\"}"
                        },
                        "description": "Cancels a receiving note, and returns a cancellation mark.\n<b>Only invoices of type 10.X can be canceled<\/b>"
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"cancellation_mark\":\"400001942783398\"}",
                            "name": "Successful cancellation"
                        },
                        {
                            "header": [],
                            "code": 400,
                            "body": "{\"code\":\"251\",\"message\":\"Invoice with MARK 400001942783398 has already been cancelled\"}",
                            "name": "Invalid Cancellation Request"
                        }
                    ]
                }
            ]
        },
        {
            "name": "Misc",
            "description": "",
            "item": [
                {
                    "name": "Calculate UID",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v2\/uid",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v2\/uid"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"issuer\":\"998914851\",\"date\":\"2025-01-01\",\"branch\":\"0\",\"type\":\"1.1\",\"series\":\"A\",\"serial_number\":\"12345\"}"
                        },
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"uid\":\"6937509F49384F7D521CFA1D5FCB65A349662979\"}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Setup webhooks",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v2\/webhook",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v2\/webhook"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"url\":\"https:\\\/\\\/example.com\\\/invoice-portal\"}"
                        },
                        "description": "Set up a webhook URL for cases where the invoices are sent asynchronously.\nA webhook key is returned, which will be used as a bearer token in the webhook request headers.\n\nExample webhook request:\n<pre><code class=\"language-json\">{\n    \"vat_number\": \"example vat number\",\n    \"successes\": [\n        { \"uid\": \"XXX\", \"mark\": \"YYY\", \"authentication_code\": \"YYY\"},\n        { \"uid\": \"XXX\", \"mark\": \"YYY\", \"authentication_code\": \"YYY\"},\n    ],\n}<\/code><\/pre>"
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"key\":\"XXXXX\"}",
                            "name": "A new webhook key"
                        }
                    ]
                }
            ]
        },
        {
            "name": "Payments",
            "description": "",
            "item": [
                {
                    "name": "Create a new POS payment request",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v2\/signature",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v2\/signature"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"issuer\":\"999999999\",\"uid\":\"6E7297D2828B1DFF02CE85094AADBCFF0043892C\",\"payment_amount\":124,\"net_value\":100,\"vat_amount\":24,\"gross_value\":124,\"terminal\":\"160000000\",\"type\":\"mellon\",\"mark\":\"160000000\"}"
                        },
                        "description": "Create a provider signature, used for activating POS devices.<br>\nYou must also specify the payment provider, since each one requires a different output type.<br>\nIf your payment includes tip then it must be included in the <code><b>net_value<\/b><\/code> and <code><b>gross_value<\/b><\/code> fields.\n\nIf the payment is for an invoice that has not yet been issued you can set the mark field to null, otherwise it must be equal to the mark\nof an existing invoice whose payment methods will be updated.\n\n<aside>\nPayment requests expire after 24 hours, and can be used only once.\n<\/aside>"
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"signature\":\"MEUCIQD6SCJw5mEK5PHDYqrfi+CCIyCfdi4OKk7WODq3YFKB2gIgITLVnyhC9sTrJ4f+WN7FHXoLxe2B5Q9h6IpNyNxZX7o=\",\"data\":\"6E7297D2828B1DFF02CE85094AADBCFF0043892C;400001929268735;20240625153412;2260;2260;0;2260;160000000\",\"provider_id\":\"123\"}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Update the payments of an invoice",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v2\/payments",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v2\/payments"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"mark\":400001929592800,\"payments\":[{\"signature\":\"MEUCIQDHPN9WXEDWinhbyCyTYf0cH+o66K7OufkuKl3RVMXqcgIgS2UkaK5Gg64T3QWB9CR6MIQMfbHSgbisLxj3VBSSihY=\",\"transaction_id\":\"9258762217454285091123\",\"tip\":1,\"paid_amount\":9,\"code\":7}]}"
                        },
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": null,
                            "name": "Success"
                        },
                        {
                            "header": [],
                            "code": 400,
                            "body": "{\"message\":\"Invalid Signature for Payment index $index\"}",
                            "name": "Invalid Signature"
                        }
                    ]
                }
            ]
        },
        {
            "name": "Unsigned Invoices",
            "description": "",
            "item": [
                {
                    "name": "Initiate an unsigned Invoice (myDATA)",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v2\/unsigned",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v2\/unsigned"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"aade_invoice\":\"...\",\"peppol_invoice\":\"...\"}"
                        },
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"uid\":\"BF3C1C867FC4B97DEA1728900F0FD8CFE4E7BA1D\",\"authentication_code\":null,\"mark\":\"400001929722136\",\"transmission_failure\":null,\"remaining_invoices\":1000,\"total_invoices\":3,\"qr\":\"https:\\\/\\\/invoiceportal.gr\\\/invoices\\\/2024-BF3C1C867FC4B97DEA1728900F0FD8CFE4E7BA1D\\\/qr\",\"url\":\"https:\\\/\\\/invoiceportal.gr\\\/invoices\\\/2024-BF3C1C867FC4B97DEA1728900F0FD8CFE4E7BA1D\"}",
                            "name": "Success"
                        },
                        {
                            "header": [],
                            "code": 400,
                            "body": "{\"message\":\"INVALID_COMPANY\"}",
                            "name": "Invalid issuer VAT Number"
                        },
                        {
                            "header": [],
                            "code": 400,
                            "body": "{\"message\":\"INVALID_SIGNATURE\"}",
                            "name": "The user attempted to issue an invoice containing an invalid signature"
                        }
                    ]
                },
                {
                    "name": "Initiate an unsigned Invoice (JSON)",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/v2\/unsigned\/json",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/v2\/unsigned\/json"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"uid\":\"F2B1762EF3380A47FDDD74FC14BD4F9E4FFF12AE\",\"issue_date\":\"2024-07-26 10:03:16\",\"self_pricing\":false,\"dispatch_date\":\"2026-09-25 10:00:00\",\"vehicle_number\":\"\u0399\u039a\u03a41234\",\"vat_payment_suspension\":false,\"correlated\":[400001929722136],\"comments\":\"Free text\",\"gross_value\":124,\"header\":{\"code\":\"11.1\",\"serial_number\":53,\"series\":\"\u03a4\u0394\u0391-\u0391\",\"special_invoice_category\":12,\"is_cancel_order\":false,\"table_name\":\"A1\",\"non_obligated_recipient\":false,\"without_digital_transport_tracking\":false},\"move_purpose\":\"1\",\"currency\":{\"code\":\"EUR\",\"exchange_rate\":1},\"issuer\":{\"name\":\"Some Company\",\"vat_number\":\"9000000000\",\"tax_office\":\"\u039a\u0395\u03a6\u039f\u0394\u0395 \u0391\u03a4\u03a4\u0399\u039a\u0397\u03a3 - 1190\",\"activity\":\"\u0394\u03a1\u0391\u03a3\u03a4\u0397\u03a1\u0399\u039f\u03a4\u0397\u03a4\u0395\u03a3 \u03a0\u03a1\u039f\u0393\u03a1\u0391\u039c\u039c\u0391\u03a4\u0399\u03a3\u039c\u039f\u03a5 \u0397\u039b\u0395\u039a\u03a4\u03a1\u039f\u039d\u0399\u039a\u03a9\u039d \u03a3\u03a5\u03a3\u03a4\u0397\u039c\u0391\u03a4\u03a9\u039d\",\"phone\":\"+30 2100000000\",\"country\":\"GR\",\"branch\":0,\"address\":{\"postal_code\":\"11528\",\"city\":\"\u0391\u03b8\u03ae\u03bd\u03b1\",\"number\":\"10\",\"street\":\"\u039c\u03b9\u03c7\u03b1\u03bb\u03b1\u03ba\u03bf\u03c0\u03bf\u03cd\u03bb\u03bf\u03c5\"}},\"counterpart\":{\"name\":\"Other Company\",\"vat_number\":\"9000000000\",\"tax_office\":\"\u03a6\u0391\u0395 \u0391\u0398\u0397\u039d\u03a9\u039d\",\"activity\":\"\u0395\u039c\u03a0\u039f\u03a1\u0399\u039f\",\"phone\":\"+30 2100000000\",\"country\":\"GR\",\"branch\":0,\"address\":{\"postal_code\":\"10431\",\"city\":\"\u0391\u03b8\u03ae\u03bd\u03b1\",\"number\":\"10\",\"street\":\"\u03a0\u03b1\u03c4\u03b7\u03c3\u03af\u03c9\u03bd\"}},\"payment_methods\":[{\"code\":\"3\",\"amount\":100}],\"other_correlated_entities\":[{\"entity\":{\"name\":null,\"vat_number\":null,\"country\":null}}],\"details\":[{\"line_number\":1,\"name\":\"EXAMPLE PRODUCT\",\"code\":\"00000\",\"not_vat_195\":false,\"detail_type\":1,\"quantity\":2,\"price_per_unit\":100,\"net_value\":200,\"discount\":0,\"deductions\":0,\"tax\":{\"code\":\"1\",\"value\":48,\"rate\":24},\"unit\":{\"code\":\"1\",\"display_name\":\"\u03a4\u0395\u039c\"},\"other_taxes\":{\"amount\":0},\"stamp_duty\":{\"amount\":0},\"retention_tax\":{\"rate\":0,\"amount\":0},\"fee\":{\"amount\":0},\"income\":[{\"type\":\"E3_561_002\",\"category\":\"category1_1\",\"amount\":100}]}],\"taxes_totals\":[{\"underlying_value\":100,\"id\":1,\"tax_type\":1,\"tax_amount\":4}],\"packings_declarations\":[{\"packaging_type\":null,\"quantity\":null}]}"
                        },
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"uid\":\"BF3C1C867FC4B97DEA1728900F0FD8CFE4E7BA1D\",\"authentication_code\":null,\"mark\":\"400001929722136\",\"transmission_failure\":null,\"qr\":\"https:\\\/\\\/invoiceportal.gr\\\/invoices\\\/2024-BF3C1C867FC4B97DEA1728900F0FD8CFE4E7BA1D\\\/qr\",\"url\":\"https:\\\/\\\/invoiceportal.gr\\\/invoices\\\/2024-BF3C1C867FC4B97DEA1728900F0FD8CFE4E7BA1D\"}",
                            "name": "Success"
                        },
                        {
                            "header": [],
                            "code": 400,
                            "body": "{\"message\":\"INVALID_COMPANY\"}",
                            "name": "Invalid issuer VAT Number"
                        },
                        {
                            "header": [],
                            "code": 402,
                            "body": "{\"message\":\"DEPLETED_INVOICES\"}",
                            "name": "The user has used up their invoices."
                        }
                    ]
                }
            ]
        }
    ],
    "auth": {
        "type": "bearer",
        "bearer": [
            {
                "key": "Authorization",
                "type": "string"
            }
        ]
    }
}