With this integration, customers and invoices/CNs created on Xero will be synced in real-time to Marmin.
If data is not syncing between Xero and Marmin, begin by checking the integration status on both platforms. Navigate to the integration screens in both Marmin and Xero to verify that the connection is properly established and active. Refer to the screenshots below for guidance.
If the connection is not established on either platform, disconnect from the platform and reconnect by following the steps outlined in the previous section.
To sync invoices from Xero to Marmin, you will need to ensure that the buyer/customer created on Xero have all the necessary details required for creating a compliance invoice.
Xero | Marmin Data Fields |
---|---|
Contact name | Company Name |
Primary person (First name + Last name) | Name |
Phone number | Phone Number |
Business registration number | CR number In case of a non-Saudi customer, this will be considered for Other ID |
Address line 1 | Address Put the entire address in Address line 1 |
Address line 2 + Address line 3 + Address line 4 | - |
City | City |
State | State and District The same value is mapped to both State and District on Marmin side since Xero doesn't provide the option for two separate fields |
Zip code | Postal Code |
Country | Country |
Tax ID number | VAT number (needs to follow KSA VAT guidelines) Leave this blank for a B2C customer |
The table below represents the types of customers and how Marmin will interpret the customer.
Saudi Customer Saudi Phone Number |
Non-Saudi Customer Non-Saudi Phone Number |
|
---|---|---|
VAT and Other ID (business registration) both are present | B2B customer | NA |
No VAT, only Other ID (business registration) is present | B2B customer | B2B Export customer |
VAT and Other ID (business registration) both are NOT present | B2C customer | NA B2C export is not allowed with ZATCA |
Notes
Here are the various combinations of different data points and what invoices will be created along with Tax categories
Phone Number | VAT | Other ID | Customer | Invoice type | Invoice Transaction Code | Tax received from Xero | Tax received from Xero |
---|---|---|---|---|---|---|---|
15% | 0% | ||||||
SA | No | No | B2C | B2C with local address | 0200000 | S | O |
SA | Yes | No | B2B | B2B normal with local address | 0100000 | S | O |
SA | No | Yes | B2B | B2B normal with local address | 0100000 | S | O |
Non-SA | NA | No | B2C | B2C with foreign address | 0200000 | S | O |
Non-SA | NA | Yes | B2B | B2B export | 0100100 | S | Z |
Creating an invoice:
Phase 2 Implementation:
When creating invoices in Marmin, it is crucial to select the appropriate VAT rate to ensure accurate tax application. Follow these guidelines to align the VAT rates set in Xero with those applied in Marmin:
To properly generate export invoices in Marmin, you need to consider the following steps: