Organizations (Multi-RFC)
Register multiple issuing organizations
You can issue invoices from different tax identification numbers by registering new issuing organizations, either from your dashboard or using the API, with the Create Organization method, as well as the other methods to configure tax data, logo, colors, certificates, etc.
info
Remember that to create and manage organizations, you must authenticate using your User Key, which is a secret key associated with your entire account. You can find it in your Integration Center.
- Node.js
- C#
- PHP
- cURL
const Facturapi = require('facturapi');
const facturapi = new Facturapi('sk_user_API_KEY');
const organization = await facturapi.organizations.create({
name: 'Skynet'
});
// remember to save the organization.id in your own database
var facturapi = new FacturapiClient("sk_user_API_KEY");
var organization = await facturapi.Organization.CreateAsync(new Dictionary<string, object>
{
["name"] = "Skynet"
});
// remember to save the organization.Id in your own database
$facturapi = new Facturapi("sk_user_API_KEY");
$organization = $facturapi->Organizations->create(array(
"name" => "Skynet"
));
// remember to save the organization.id in your own database
curl https://www.facturapi.io/v1/organizations \
-H "Authorization: Bearer sk_user_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Skynet"
}'