< All Topics
Print

New Invoice Notification

{
 "Invoice": {
   "ID": 120149,
   "URL": "YOUR_MYPAY_SUBDOMAIN.mypay.gr/Project/Invoices/PDF/120149/example company-Transaction_281162_Invoice?token=gXyoxBrdtJw1&language=EL",
   "InvoiceCode": "3de93f97-8c4c-4403-a78c-57d1990e72a5",
   "Title": "Transaction 281162 Invoice",
   "CustomerID": 3,
   "Customer": {
     "ID": 3,
     "Token": "41d2dbebc8494d74856f341f68075b39636791761523986421",
     "Active": true,
     "Email": "example@gmail.com",
     "ProjectSubdomain": "https://mypay.mypay.gr",
     "FirstName": "John",
     "LastName": "Smith",
     "Company": "Next Company Ltd.",
     "Phone": "2103625485",
     "UniqueCustomerID": "75cb48c6-c5a4-4c87-996c-834eb1159672",
     "ShippingAddress1": "Stadiou 2",
     "ShippingCountry": "GR",
     "ShippingState": "Not Available",
     "ShippingCity": "Athens",
     "ShippingZip": "167 77",
     "VatNumber": "800600554",
     "VatCountry": "EL",
     "UseSameAsBilling": true,
     "BillingAddress1": "Stadiou 2",
     "BillingCountry": "GR",
     "BillingState": "Not Available",
     "BillingCity": "Athens",
     "BillingZip": "10563",
     "IsDeleted": false,
     "CustomerAreaLink": "YOUR_MYPAY_SUBDOMAIN.mypay.gr/Customer/Login?code=eWlqWTJwVG5TX2ZBZkJHek8xRDdsRUR6NGE3Ykt5VUgzYjI4b3hDbmlrZWk3Vi1aWHFHLVJBMg==",
     "CreditCards": [
       {
         "Token": "6af49c4c1db34cd1945f3d7d375ad335636957858098195833",
         "Active": true,
         "CardType": "MasterCard",
         "ExpirationMonth": 4,
         "ExpirationYear": 23,
         "FirstName": "John",
         "LastName": "Smith",
         "Number": "542523******9903",
         "BillingAddress1": "Stadiou 2",
         "Country": "Ireland",
         "State": "Not Available",
         "Zip": "10563"
       }
     ],
     "BankAccounts": [],
     "ProviderData": [
       {
         "PaymentMethod": "Mypay",
         "Token": "a86bac6e7ab844de8584b9ce3eb499ec636957858149330466"
       }
     ]
   },
   "Currency": "EUR",
   "ProjectGateWayID": 30021,
   "Date": "2019-06-10T17:52:34.8623618+03:00",
   "DueOn": "2019-06-10T17:52:34.8623618+03:00",
   "InvoiceType": "Automatic",
   "Status": "Paid",
   "UseCustomShippingAddress": false,
   "ShippingAddress1": "Stadiou 2",
   "ShippingCountry": "GR",
   "ShippingState": "Not Available",
   "ShippingZip": "167 77",
   "UseCustomBillingAddress": false,
   "BillingAddress1": "Stadiou 2",
   "BillingCountry": "GR",
   "BillingState": "Not Available",
   "BillingZip": "10563",
   "IsDeleted": false,
   "Total": 110,
   "CanBePaid": false,
   "OrderUnits": [
     {
       "Title": "Small Chair",
       "Description": "A very small Chair",
       "ProductType": "Goods",
       "Quantity": 1,
       "Currency": "EUR",
       "Total": 110
     }
   ]
 },
 "WebhookType": 4,
 "NotificationType": "INVOICE CREATED"
}
Table of Contents
< All Topics
Print

New Invoice Notification

{
 "Invoice": {
   "ID": 120149,
   "URL": "YOUR_MYPAY_SUBDOMAIN.mypay.gr/Project/Invoices/PDF/120149/example company-Transaction_281162_Invoice?token=gXyoxBrdtJw1&language=EL",
   "InvoiceCode": "3de93f97-8c4c-4403-a78c-57d1990e72a5",
   "Title": "Transaction 281162 Invoice",
   "CustomerID": 3,
   "Customer": {
     "ID": 3,
     "Token": "41d2dbebc8494d74856f341f68075b39636791761523986421",
     "Active": true,
     "Email": "example@gmail.com",
     "ProjectSubdomain": "https://mypay.mypay.gr",
     "FirstName": "John",
     "LastName": "Smith",
     "Company": "Next Company Ltd.",
     "Phone": "2103625485",
     "UniqueCustomerID": "75cb48c6-c5a4-4c87-996c-834eb1159672",
     "ShippingAddress1": "Stadiou 2",
     "ShippingCountry": "GR",
     "ShippingState": "Not Available",
     "ShippingCity": "Athens",
     "ShippingZip": "167 77",
     "VatNumber": "800600554",
     "VatCountry": "EL",
     "UseSameAsBilling": true,
     "BillingAddress1": "Stadiou 2",
     "BillingCountry": "GR",
     "BillingState": "Not Available",
     "BillingCity": "Athens",
     "BillingZip": "10563",
     "IsDeleted": false,
     "CustomerAreaLink": "YOUR_MYPAY_SUBDOMAIN.mypay.gr/Customer/Login?code=eWlqWTJwVG5TX2ZBZkJHek8xRDdsRUR6NGE3Ykt5VUgzYjI4b3hDbmlrZWk3Vi1aWHFHLVJBMg==",
     "CreditCards": [
       {
         "Token": "6af49c4c1db34cd1945f3d7d375ad335636957858098195833",
         "Active": true,
         "CardType": "MasterCard",
         "ExpirationMonth": 4,
         "ExpirationYear": 23,
         "FirstName": "John",
         "LastName": "Smith",
         "Number": "542523******9903",
         "BillingAddress1": "Stadiou 2",
         "Country": "Ireland",
         "State": "Not Available",
         "Zip": "10563"
       }
     ],
     "BankAccounts": [],
     "ProviderData": [
       {
         "PaymentMethod": "Mypay",
         "Token": "a86bac6e7ab844de8584b9ce3eb499ec636957858149330466"
       }
     ]
   },
   "Currency": "EUR",
   "ProjectGateWayID": 30021,
   "Date": "2019-06-10T17:52:34.8623618+03:00",
   "DueOn": "2019-06-10T17:52:34.8623618+03:00",
   "InvoiceType": "Automatic",
   "Status": "Paid",
   "UseCustomShippingAddress": false,
   "ShippingAddress1": "Stadiou 2",
   "ShippingCountry": "GR",
   "ShippingState": "Not Available",
   "ShippingZip": "167 77",
   "UseCustomBillingAddress": false,
   "BillingAddress1": "Stadiou 2",
   "BillingCountry": "GR",
   "BillingState": "Not Available",
   "BillingZip": "10563",
   "IsDeleted": false,
   "Total": 110,
   "CanBePaid": false,
   "OrderUnits": [
     {
       "Title": "Small Chair",
       "Description": "A very small Chair",
       "ProductType": "Goods",
       "Quantity": 1,
       "Currency": "EUR",
       "Total": 110
     }
   ]
 },
 "WebhookType": 4,
 "NotificationType": "INVOICE CREATED"
}
Table of Contents
@media only screen and (min-width:768px){#eckb-article-page-container-v2 #eckb-article-body #eckb-article-content #eckb-article-content-header-v2 #eckb-article-content-header-row-1,#eckb-article-page-container-v2 #eckb-article-body #eckb-article-content #eckb-article-content-header-v2 #eckb-article-content-header-row-2,#eckb-article-page-container-v2 #eckb-article-body #eckb-article-content #eckb-article-content-header-v2 #eckb-article-content-header-row-3,#eckb-article-page-container-v2 #eckb-article-body #eckb-article-content #eckb-article-content-header-v2 #eckb-article-content-header-row-4,#eckb-article-page-container-v2 #eckb-article-body #eckb-article-content #eckb-article-content-header-v2 #eckb-article-content-header-row-5{flex-direction:row;}}#eckb-article-content-header-row-1{margin-bottom:8px;}#eckb-article-content-header-row-1 .eckb-article-content-header-row-left-group,#eckb-article-content-header-row-1 .eckb-article-content-header-row-right-group{align-items:center;}.eckb-article-content-toolbar-button-container{background-color:#ffffff;padding:10px 10px 10px 10px;margin:0px 0px 0px 0px;border-radius:0px;border-width:0px;border-color:#ffffff;border-style:solid;}.eckb-article-content-toolbar-button-container .eckb-toolbar-button-text{color:#000000;font-size:15px;}.eckb-article-content-toolbar-button-container .eckb-toolbar-button-icon{color:#000000;font-size:20px;}.eckb-article-content-toolbar-button-container:hover{background-color:#ffffff;}.eckb-article-content-toolbar-button-container:hover .eckb-toolbar-button-text{color:#000000;}.eckb-article-content-toolbar-button-container:hover .eckb-toolbar-button-icon{color:#000000;}#eckb-article-content-header-row-2{margin-bottom:0px;}#eckb-article-content-header-row-2 .eckb-article-content-header-row-left-group,#eckb-article-content-header-row-2 .eckb-article-content-header-row-right-group{align-items:flex-end;}#eckb-article-content-footer .epkb-article-navigation-container a{background-color:#f7f7f7;color:#1e73be;}#eckb-article-content-footer .epkb-article-navigation-container a:hover{background-color:#dee3e5;color:#6d6d6d;}#eckb-article-body .eckb-article-toc ul a.active{background-color:#1e73be;color:#ffffff;}#eckb-article-body .eckb-article-toc ul a:hover{background-color:#e1ecf7;color:#000000;}#eckb-article-body .eckb-article-toc__inner{border-color:#2b98e5;font-size:14px !important;background-color:#fcfcfc;}#eckb-article-body .eckb-article-toc__inner a{color:#2b98e5;font-size:14px !important;}#eckb-article-body .eckb-article-toc__title{color:#2b98e5;font-size:15px !important;}