B2b

Actions

Canonical actions for B2B organization accounts, quotes, approvals, and cart sharing

Canonical B2B actions define account and workflow mutations shared by connector apps. Import them from @laioutr-core/canonical-types/b2b.

Available since v0.26.0 in @laioutr-core/canonical-types

Organization context

OrganizationGetMembershipsAction

b2b/organization/get-memberships

OrganizationSwitchAction

b2b/organization/switch
organizationId
stringrequired

The ID of the organization to switch to.

unknown

OrganizationSetLoginPreferencesAction

b2b/organization/set-login-preferences
defaultOrganizationId
string | null

The organization to enter on login. null means the customer is asked to choose on every login. Omit to leave unchanged.

loginTarget
string

Portal page to land on after login (open coded set, e.g. standard, dashboard, order-overview). Omit to leave unchanged.

unknown

Employees

OrganizationEmployeeInviteAction

b2b/organization/employee-invite
email
stringrequired
formatemail
jobTitle
string

The employee's job title (EmployeeBase.jobTitle).

roleIds
string[]

IDs of the roles to assign.

customFields
Record<string, unknown>

Custom fields are a way for implementations to pass arbitrary data to actions, queries, etc.

id
stringrequired

The ID of the created employee.

OrganizationEmployeeUpdateAction

b2b/organization/employee-update
employeeId
stringrequired
jobTitle
string

The employee's job title (EmployeeBase.jobTitle).

roleIds
string[]

IDs of the roles to assign, replacing the current assignment.

status
"active" | "inactive"
customFields
Record<string, unknown>

Custom fields are a way for implementations to pass arbitrary data to actions, queries, etc.

unknown

OrganizationEmployeeDeleteAction

b2b/organization/employee-delete
employeeId
stringrequired
unknown

Roles

OrganizationRoleGetAllAction

b2b/organization/role-get-all

OrganizationRoleCreateAction

b2b/organization/role-create
name
stringrequired
permissions
string[]required

Permission codes to grant (open coded set, seeded with the Shopware Commercial vocabulary).

id
stringrequired

The ID of the created role.

OrganizationRoleUpdateAction

b2b/organization/role-update
roleId
stringrequired
name
string
permissions
string[]

Permission codes, replacing the current set.

unknown

OrganizationRoleDeleteAction

b2b/organization/role-delete
roleId
stringrequired
unknown

Organization addresses

OrganizationAddressGetAllAction

b2b/organization/address-get-all

OrganizationAddressCreateAction

b2b/organization/address-create
unknown

OrganizationAddressUpdateAction

b2b/organization/address-update
id
stringrequired

The ID of the address to update.

unknown

OrganizationAddressDeleteAction

b2b/organization/address-delete
id
stringrequired

The ID of the address to delete.

unknown

OrganizationAddressSetDefaultAction

b2b/organization/address-set-default
id
stringrequired

The ID of the address to set as default.

type
"shipping" | "billing"required

The type of default to set. Not all backends may support this distinction.

unknown

Cost centers

OrganizationCostCenterCreateAction

b2b/organization/cost-center-create
name
stringrequired
description
string

Free-text description (CostCenterInfo.description).

status
"active" | "inactive"

The status value set — shared with the b2b/organization/cost-center-* actions so the vocabulary has a single source.

id
stringrequired

The ID of the created cost center.

OrganizationCostCenterUpdateAction

b2b/organization/cost-center-update
costCenterId
stringrequired
name
string
description
string

Free-text description (CostCenterInfo.description).

status
"active" | "inactive"

The status value set — shared with the b2b/organization/cost-center-* actions so the vocabulary has a single source.

unknown

OrganizationCostCenterDeleteAction

b2b/organization/cost-center-delete
costCenterId
stringrequired
unknown

Budgets

OrganizationBudgetCreateAction

b2b/organization/budget-create
name
stringrequired
period
stringrequired
status
"active" | "inactive"

The status value set — shared with the b2b/organization/budget-* actions so the vocabulary has a single source.

description
string

Free-text description (BudgetInfo.description).

approverEmployeeId
string
notificationThreshold
number

Consumption percentage at which a notification is sent (BudgetAllowance.notificationThreshold).

min0max100
id
stringrequired

The ID of the created budget.

OrganizationBudgetUpdateAction

b2b/organization/budget-update
budgetId
stringrequired
name
string
period
string
status
"active" | "inactive"

The status value set — shared with the b2b/organization/budget-* actions so the vocabulary has a single source.

description
string

Free-text description (BudgetInfo.description).

approverEmployeeId
string
notificationThreshold
number

Consumption percentage at which a notification is sent (BudgetAllowance.notificationThreshold).

min0max100
unknown

OrganizationBudgetDeleteAction

b2b/organization/budget-delete
budgetId
stringrequired
unknown

Customer product numbers

OrganizationProductNumberGetAllAction

b2b/organization/product-number-get-all

OrganizationProductNumberSetAction

b2b/organization/product-number-set
productId
string
variantId
stringrequired

The variant the reference is for — the natural key of the mapping.

number
stringrequired

The customer's own product number for this variant (ProductVariantCustomerReference.number; SAP KDMAT).

name
string

The customer's own name for this product, where supported (ProductVariantCustomerReference.name; SAP POSTX).

unknown

OrganizationProductNumberDeleteAction

b2b/organization/product-number-delete
variantId
stringrequired

The variant whose customer product number is removed — the natural key of the mapping.

unknown

Quotes

QuoteRequestAction

b2b/quote/request
comment
string

Free-text message from the buyer accompanying the request.

purchaseOrderNumber
string

The buyer's purchase order number for this quote.

id
stringrequired

The ID of the created quote (request).

status
stringrequired
statusLabel
string

Connector-resolved display label for the status.

QuoteAcceptAction

b2b/quote/accept
quoteId
stringrequired

The ID of the quote to accept.

unknown

QuoteDeclineAction

b2b/quote/decline
quoteId
stringrequired

The ID of the quote to decline.

comment
string

Free-text reason for declining.

unknown

QuoteRequestChangeAction

b2b/quote/request-change
quoteId
stringrequired

The ID of the quote to renegotiate.

comment
string

Free-text description of the requested change.

unknown

QuoteCancelAction

b2b/quote/cancel
quoteId
stringrequired

The ID of the quote request to withdraw.

comment
string

Free-text reason for withdrawing.

unknown

QuoteGetCheckoutUrlAction

b2b/quote/get-checkout-url
quoteId
stringrequired

The ID of the (accepted) quote to check out.

checkoutUrl
stringrequired

Approval flows

ApprovalFlowDecideAction

b2b/approval-flow/decide
approvalId
stringrequired
decision
"approve" | "reject"required
comment
string

Free-text note by the approver.

unknown

Cart sharing

CartShareSetAction

b2b/cart/share-set
cartId
string

The cart to share. Absent ⇒ the current session's active cart.

employeeId
stringrequired

The employee to share the cart with — the natural key of the grant.

permission
stringrequired
unknown

CartShareGetAllAction

b2b/cart/share-get-all
cartId
string

The cart to inspect. Absent ⇒ the current session's active cart.

CartShareDeleteAction

b2b/cart/share-delete
cartId
string

The cart the share is on. Absent ⇒ the current session's active cart.

employeeId
stringrequired

The employee whose share is revoked — the natural key of the grant.

unknown
Copyright © 2026 Laioutr GmbH