Setting up B2Brouter
Before users can send invoices with B2Brouter, administrators must complete setup in Document Dispatch - Module Setup and in the related dispatch profile.
Prerequisites
- The B2Brouter feature is enabled in your environment.
- You have B2Brouter account credentials for production and, if needed, staging.
Configure B2Brouter in Module Setup
- Open the role center Document Dispatch - Administrator.
- Go to Setup and open Module Setup.
- Open the B2Brouter Setup area.
- Enter your production credentials:
- Account Id
- API Key
- Enter your staging credentials if you want to test:
- Account Id (Staging)
- API Key (Staging)
- Set Testmode if you want to use staging instead of production.
- Review the connection indicators:
- API Status (Production)
- API Status (Staging)
The status fields show whether the configured account can be reached.
Configure a Dispatch Profile for B2Brouter
- Open Dispatch Profiles.
- Create a new profile or open an existing one.
- Set Output Type to B2Brouter.
- Open Output Type Setup.
- Configure these options:
- Automatic Validation on Dialog: validates the selected document in the send dialog.
- Automatic Deletion if Error Occurs: removes the transferred item in B2Brouter when a send error is returned.
Configure the B2Brouter JSON request body
If you want to generate the JSON request body for B2Brouter, configure an eDocuments schema in JSON mode.
- Open eDocuments Schema.
- Create a new schema or open an existing schema.
- Set Schema Type to JSON.
- Use Create Schema Lines to generate the default JSON structure.
- In Schema Data, review fields and assign values as needed.
- For each JSON field, set JSON Value Type to control output format:
- String for text values
- Number for numeric values
- Boolean for true/false values
Info
In JSON schemas, the contact fields transport_type_code and document_type_code are controlled by the dispatch profile and are not edited directly in schema lines.
JSON field help
In a JSON schema line, use Information to open a field description for the selected JSON node.
Test B2Brouter Json
Use Test B2Brouter Json to verify the schema end-to-end against the B2Brouter API.
- Open the JSON schema.
- Choose Test B2Brouter Json.
- Select a business record, for example an invoice.
- Confirm the selection.
The system submits the generated JSON payload to B2Brouter for validation, deletes the submission from B2Brouter immediately after, and displays the validation result.
Configure FactBox Status for B2Brouter (Optional)
You can show a dedicated B2Brouter counter in the FactBox status area.
- Open Module Setup.
- In Status Display, enable B2Brouter Sent Counter.
- The FactBox can now show how many B2Brouter entries exist for the current record.