Actions
Canonical B2B actions define account and workflow mutations shared by connector apps. Import them from @laioutr-core/canonical-types/b2b.
@laioutr-core/canonical-typesOrganization context
OrganizationGetMembershipsAction
b2b/organization/get-membershipsOrganizationSwitchAction
b2b/organization/switchThe ID of the organization to switch to.
unknownOrganizationSetLoginPreferencesAction
b2b/organization/set-login-preferencesThe organization to enter on login. null means the customer is asked to choose on every login. Omit to leave unchanged.
Portal page to land on after login (open coded set, e.g. standard, dashboard, order-overview). Omit to leave unchanged.
unknownEmployees
OrganizationEmployeeInviteAction
b2b/organization/employee-inviteThe employee's job title (EmployeeBase.jobTitle).
IDs of the roles to assign.
Custom fields are a way for implementations to pass arbitrary data to actions, queries, etc.
The ID of the created employee.
OrganizationEmployeeUpdateAction
b2b/organization/employee-updateThe employee's job title (EmployeeBase.jobTitle).
IDs of the roles to assign, replacing the current assignment.
Custom fields are a way for implementations to pass arbitrary data to actions, queries, etc.
unknownOrganizationEmployeeDeleteAction
b2b/organization/employee-deleteunknownRoles
OrganizationRoleGetAllAction
b2b/organization/role-get-allOrganizationRoleCreateAction
b2b/organization/role-createPermission codes to grant (open coded set, seeded with the Shopware Commercial vocabulary).
The ID of the created role.
OrganizationRoleUpdateAction
b2b/organization/role-updatePermission codes, replacing the current set.
unknownOrganizationRoleDeleteAction
b2b/organization/role-deleteunknownOrganization addresses
OrganizationAddressGetAllAction
b2b/organization/address-get-allOrganizationAddressCreateAction
b2b/organization/address-createunknownOrganizationAddressUpdateAction
b2b/organization/address-updateThe ID of the address to update.
unknownOrganizationAddressDeleteAction
b2b/organization/address-deleteThe ID of the address to delete.
unknownOrganizationAddressSetDefaultAction
b2b/organization/address-set-defaultThe ID of the address to set as default.
The type of default to set. Not all backends may support this distinction.
unknownCost centers
OrganizationCostCenterCreateAction
b2b/organization/cost-center-createFree-text description (CostCenterInfo.description).
The status value set — shared with the b2b/organization/cost-center-* actions so the vocabulary has a single source.
The ID of the created cost center.
OrganizationCostCenterUpdateAction
b2b/organization/cost-center-updateFree-text description (CostCenterInfo.description).
The status value set — shared with the b2b/organization/cost-center-* actions so the vocabulary has a single source.
unknownOrganizationCostCenterDeleteAction
b2b/organization/cost-center-deleteunknownBudgets
OrganizationBudgetCreateAction
b2b/organization/budget-createThe status value set — shared with the b2b/organization/budget-* actions so the vocabulary has a single source.
Free-text description (BudgetInfo.description).
Consumption percentage at which a notification is sent (BudgetAllowance.notificationThreshold).
The ID of the created budget.
OrganizationBudgetUpdateAction
b2b/organization/budget-updateThe status value set — shared with the b2b/organization/budget-* actions so the vocabulary has a single source.
Free-text description (BudgetInfo.description).
Consumption percentage at which a notification is sent (BudgetAllowance.notificationThreshold).
unknownOrganizationBudgetDeleteAction
b2b/organization/budget-deleteunknownCustomer product numbers
OrganizationProductNumberGetAllAction
b2b/organization/product-number-get-allOrganizationProductNumberSetAction
b2b/organization/product-number-setThe variant the reference is for — the natural key of the mapping.
The customer's own product number for this variant (ProductVariantCustomerReference.number; SAP KDMAT).
The customer's own name for this product, where supported (ProductVariantCustomerReference.name; SAP POSTX).
unknownOrganizationProductNumberDeleteAction
b2b/organization/product-number-deleteThe variant whose customer product number is removed — the natural key of the mapping.
unknownQuotes
QuoteRequestAction
b2b/quote/requestFree-text message from the buyer accompanying the request.
The buyer's purchase order number for this quote.
The ID of the created quote (request).
Connector-resolved display label for the status.
QuoteAcceptAction
b2b/quote/acceptThe ID of the quote to accept.
unknownQuoteDeclineAction
b2b/quote/declineThe ID of the quote to decline.
Free-text reason for declining.
unknownQuoteRequestChangeAction
b2b/quote/request-changeThe ID of the quote to renegotiate.
Free-text description of the requested change.
unknownQuoteCancelAction
b2b/quote/cancelThe ID of the quote request to withdraw.
Free-text reason for withdrawing.
unknownQuoteGetCheckoutUrlAction
b2b/quote/get-checkout-urlThe ID of the (accepted) quote to check out.
Approval flows
ApprovalFlowDecideAction
b2b/approval-flow/decideFree-text note by the approver.
unknownCart sharing
CartShareSetAction
b2b/cart/share-setThe cart to share. Absent ⇒ the current session's active cart.
The employee to share the cart with — the natural key of the grant.
unknownCartShareGetAllAction
b2b/cart/share-get-allThe cart to inspect. Absent ⇒ the current session's active cart.
CartShareDeleteAction
b2b/cart/share-deleteThe cart the share is on. Absent ⇒ the current session's active cart.
The employee whose share is revoked — the natural key of the grant.
unknown