Skip to content

SAP Business One

Connect fyrn to SAP Business One to automate ERP workflows — manage business partners, create sales orders, and generate invoices through the Service Layer REST API.

Property Value
Type http
Authentication basic
Category Finance & Accounting
Field Type Required Description
server string Yes SAP B1 server hostname or IP
port number No Service Layer port (default: 50000)
company_db string Yes Company database name
username string Yes SAP B1 username
password string Yes SAP B1 password
ssl_verify boolean No Verify SSL certificate (default: true)

Authenticate with SAP Business One Service Layer and obtain a session cookie.

Endpoint POST /Login
Method POST

List business partners (customers, suppliers, leads) from SAP Business One.

Endpoint GET /BusinessPartners
Method GET

Retrieve a single business partner by CardCode.

Endpoint GET /BusinessPartners('{CardCode}')
Method GET

Create a new customer, supplier, or lead in SAP Business One.

Endpoint POST /BusinessPartners
Method POST

List sales orders from SAP Business One with OData filtering.

Endpoint GET /Orders
Method GET

Create a new sales order in SAP Business One with line items.

Endpoint POST /Orders
Method POST

List A/R invoices from SAP Business One.

Endpoint GET /Invoices
Method GET

Create a new A/R invoice in SAP Business One.

Endpoint POST /Invoices
Method POST
name: shopify-to-sap-b1
description: Sync Shopify orders into SAP Business One as sales orders
trigger:
type: webhook
event: shopify.order.created
steps:
- id: create-partner
connector: sap-business-one
action: create-business-partner
params:
CardCode: "C-{{ trigger.body.customer.id }}"
CardName: "{{ trigger.body.customer.first_name }} {{ trigger.body.customer.last_name }}"
CardType: "cCustomer"
EmailAddress: "{{ trigger.body.customer.email }}"
- id: create-order
connector: sap-business-one
action: create-order
params:
CardCode: "{{ steps.create-partner.result.CardCode }}"
DocDate: "{{ trigger.body.created_at | date: '%Y-%m-%d' }}"
DocumentLines: "{{ trigger.body.line_items | map: 'sku', 'quantity', 'price' }}"