So today, I started to look at PEPPOL requirements. I found some php package to generate PEOPOL XML invoices and they have sample code for that. To generate invoice, we would need to have both buyers and seller information. For seller information, the data will be something like:
Code:
'supplier' => [
'endpoint_id' => '87654321', // e.g., KVK number
'endpoint_scheme' => '0106', // 0106 for KVK
'party_id' => 'SUPPLIER-002', // Internal reference
'name' => 'Darvis ALU', // Company name
'street' => 'Koningin Maximalaan 44', // Street + number
'postal_code' => '1787DA', // Postal code
'city' => 'Den Helder', // City
'country' => 'NL', // Country code (2 letters)
'vat_number' => 'NL853848932B01', // VAT number
'additional_street' => null, // Optional: additional address line
],
As a seller, I guess you have all information above available, right? I wonder about endpoint_id, endpoint_scheme and party_id data. If anyone knows about it and can explain it to me, that would be great
More important is customer data. It requires data like this:
Code:
'customer' => [
'vat_number' => '853848932B01', // Customer VAT number without country code
'endpoint_id' => 'RSSMRA85M01H501Z', // Geldig Italiaans Codice Fiscale formaat
'endpoint_scheme' => '0210', // 0210 for VAT
'party_id' => 'CUST-' . uniqid(), // Internal reference
'name' => 'ARVID.NL B.V.', // Company name
'street' => 'Klantstraat 123', // Street + number
'postal_code' => '1234 AB', // Postal code
'city' => 'Amsterdam', // City
'country' => 'NL', // Country code (2 letters)
'additional_street' => 'Tweede verdieping', // Optional: additional address line
'registration_number' => '85384893', // KVK nummer (8 cijfers) zonder landcode
'contact_name' => 'John Doe', // Contact person name
'contact_phone' => '+31 20 123 4567', // Contact phone number
'contact_email' => 'john.doe@example.com', // Contact email
],
The question is for data such as endpoint_id, vat_number, endpoint_scheme, party_id: all these data will be collected when users register for your event? Or it will only be collected at certain conditions ? If it is only collected in certain conditional (for example, customer is a company/business), then will the PEPOL xml invoices always be generated? Or it will only be generated for customers with all these data available?
Regards,
Tuan