Skip to main content
POST
/
sandbox
/
moneybird
/
{sandbox_id}
/
initialize
Initialize moneybird sandbox with data
curl --request POST \
  --url https://api.klavis.ai/sandbox/moneybird/{sandbox_id}/initialize \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "ledger_accounts": [
    {
      "name": "<string>",
      "account_type": "<string>",
      "rgs_code": "<string>",
      "account_id": "<string>"
    }
  ],
  "contacts": [
    {
      "company_name": "<string>",
      "firstname": "<string>",
      "lastname": "<string>",
      "phone": "<string>",
      "address1": "<string>",
      "city": "<string>",
      "zipcode": "<string>",
      "country": "<string>",
      "sepa_iban": "<string>"
    }
  ],
  "products": [
    {
      "description": "<string>",
      "title": "<string>",
      "price": "<string>",
      "currency": "<string>",
      "identifier": "<string>",
      "frequency": 123,
      "frequency_type": "<string>"
    }
  ],
  "projects": [
    {
      "name": "<string>",
      "state": "active",
      "budget": 123
    }
  ],
  "time_entries": [
    {
      "description": "<string>",
      "hours": 123,
      "billable": true
    }
  ],
  "sales_invoices": [
    {
      "reference": "<string>",
      "details": [
        {
          "description": "<string>",
          "price": "<string>",
          "amount": "<string>"
        }
      ],
      "currency": "EUR",
      "prices_are_incl_tax": false,
      "state": "draft"
    }
  ]
}
'
{
  "sandbox_id": "<string>",
  "status": "idle",
  "message": "<string>",
  "records_created": {}
}

Authorizations

Authorization
string
header
required

Your Klavis AI API key.

Path Parameters

sandbox_id
string
required

The unique sandbox identifier

Body

application/json

Complete Moneybird sandbox data structure - API format

Note: Objects are created in dependency order:

  1. Ledger accounts (no dependencies)
  2. Contacts (no dependencies)
  3. Products (no dependencies, but needs tax rates from system)
  4. Projects (no dependencies)
  5. Time entries (linked to projects and contacts)
  6. Sales invoices (linked to contacts)
ledger_accounts
MoneybirdLedgerAccount · object[] | null

List of ledger accounts to create

contacts
MoneybirdContact · object[] | null

List of contacts to create

products
MoneybirdProduct · object[] | null

List of products to create

projects
MoneybirdProject · object[] | null

List of projects to create

time_entries
MoneybirdTimeEntry · object[] | null

List of time entries to create

sales_invoices
MoneybirdSalesInvoice · object[] | null

List of sales invoices to create

Response

Successful Response

Response model for sandbox initialization

sandbox_id
string
required

Sandbox identifier

status
enum<string>
required

Current status

Available options:
idle,
occupied
message
string
required

Initialization result message

records_created
Records Created · object

Count of records created per object type