Save Account Setup Configuration
pop_onboarding_save_account_setupSave the account setup configuration and optionally activate SdI or Peppol integration. Completes the onboarding sequence.
Instructions
Save the account setup configuration and optionally activate SdI or Peppol integration.
This is step 5 of 5 in the onboarding sequence.
Integration rules:
To activate SdI (Italy/San Marino): set active_sdipop_integration=1 and active_peppol_integration=0
To activate Peppol (EU countries): set active_peppol_integration=1 and active_sdipop_integration=0, and provide all peppol_* fields
SdI and Peppol are mutually exclusive — never set both to 1
For 'basic' variant accounts (non-IT, non-EU): do not send integration toggle fields
Key behaviours:
general_store_vat_number must be unique on the target environment. 422 if already in use.
Sending 0 for an integration toggle means "do not activate" — the value stores as null in configurations. Always read the effective activation state from integration_state.environments.*.sdi.enabled.
Once wizard is complete (wizard_completed=true), calling this again returns the current state without writing (applied_changes=false).
Once Peppol is registered (peppol_legal_entity_uuid set), all Peppol fields are locked permanently.
If SdI activation fails at ACube, the account data is still saved — retry is safe.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| environment | No | Which POP environment to configure. 'live' affects your production account; 'sandbox' is for testing. | live |
| configurations | Yes | Account setup fields. Send only the fields you want to set. Locked fields (field_locks=true) cannot be changed. | |
| onboarding_token | Yes | Token returned by pop_onboarding_verify_otp. Expires 30 minutes after issue. |