RCG B2B Commerce System API - Implementation Template

(0 reviews)

Data mappings

This document provides information generated from the DataWeave scripts included in the project, such as function definitions, variable definitions, and data mapping tables.

ModuleDescription
create-pricebookentry-requestPricebooks Create Mapping for B2B Commerce System
pricebook-entries-selectPricebooks Query Mapping for B2B Commerce System
pricebook-put-pricebookentrybodyPricebooks Create Mapping for B2B Commerce System
product-entitlements-assign-putCommerceEntitlementProduct Create Mapping for B2B Commerce System
product-image-prepare-entries-to-be-createdProductMedia Create Mapping for B2B Commerce System
product-media-selectProductMedia Query Mapping for B2B Commerce System
product-primarycategory-selectProductCatalog Query Mapping for B2B Commerce System
product-response-getProduct Query Mapping for B2B Commerce System
product-var-put-payloadProduct Upsert Mapping for B2B Commerce System
search-products-responseProduct Query Mapping for B2B Commerce System
update-pricebookentry-requestPricebooks Update Mapping for B2B Commerce System

create-pricebookentry-request

Pricebooks Create Mapping for B2B Commerce System

Source: ./src/main/resources/dwl/create-pricebookentry-request.dwl

Mapping Tables

Maps CIM PricebookEntry to B2B Commerce PricebookEntry format

B2B CommerceCIMDescription
IsActivetrueIndicates whether or not the pricebookEntry is active
Pricebook2IdPricebook2IdThe id of the pricebookEntry
Product2IdproductIdThe id of the product
UnitPriceunitListPriceThe unitListPrice of the pricebookEntry

(back to top)

pricebook-entries-select

Pricebooks Query Mapping for B2B Commerce System

Source: ./src/main/resources/dwl/pricebook-entries-select.dwl

Mapping Tables

Maps B2B Commerce PricebookEntry to CIM PricebookEntry format

CIMB2B CommerceDescription
idPricebook2IdThe id of the pricebookEntry in B2B Commerce system
namePricebook2.NameThe name of the pricebookEntry in B2B Commerce system
unitListPriceUnitPriceThe unit price of the pricebookEntry in B2B Commerce system
auditInfo.createdByCreatedByIdIdentifies the system or user which created the pricebookEntry entry
auditInfo.createdDateCreatedDateTimestamp of when the pricebookEntry entry was created
auditInfo.updatedByLastModifiedByIdIdentifies the system or user which last updated the pricebookEntry entry
auditInfo.updatedDateLastModifiedDateTimestamp of when the pricebookEntry entry was last updated
auditInfo.isDeletedIsDeletedIndicates whether or not the pricebookEntry has been soft-deleted

(back to top)

pricebook-put-pricebookentrybody

Pricebooks Create Mapping for B2B Commerce System

Source: ./src/main/resources/dwl/pricebook-put-pricebookentrybody.dwl

Variables

var s

Maps CIM PricebookEntry to B2B Commerce PricebookEntry format

Mapping Tables

Maps CIM PricebookEntry to B2B Commerce PricebookEntry format

B2B CommerceCIMDescription
External_ID__cPricebook2IdThe id of the pricebookEntry to be stored in B2B Commerce
IsActivetrueIndicates whether or not the pricebookEntry is active
Pricebook2IdPricebook2IdThe id of the pricebookEntry
Product2IdproductIdThe id of the product
UnitPriceunitListPriceThe unitListPrice of the pricebookEntry

(back to top)

product-entitlements-assign-put

CommerceEntitlementProduct Create Mapping for B2B Commerce System

Source: ./src/main/resources/dwl/product-entitlements-assign-put.dwl

Mapping Tables

Maps Input request to B2B Commerce CommerceEntitlementProduct format

B2B CommerceInput PayloadDescription
PolicyIdCommerceEntitlementPolicy.IdThe policy Id extracted from CommerceEntitlementPolicy object
ProductIdproduct2IDThe identifier of the product

(back to top)

product-image-prepare-entries-to-be-created

ProductMedia Create Mapping for B2B Commerce System

Source: ./src/main/resources/dwl/product-image-prepare-entries-to-be-created.dwl

Variables

var s

Maps CIM ProductImage to B2B Commerce ProductMedia format

Mapping Tables

Maps CIM ProductImage to B2B Commerce ProductMedia format

B2B CommerceCIMDescription
ProductIdproduct2IDThe product code of the product to be updated
ElectronicMediaGroupIdElectronicMediaGroupIdThe Electronic Media Group Id of the Product image
ElectronicMediaIdElectronicMediaIdThe Electronic Media Id of the Product image

(back to top)

product-media-select

ProductMedia Query Mapping for B2B Commerce System

Source: ./src/main/resources/dwl/product-media-select.dwl

Mapping Tables

Maps B2B Commerce ProductMedia to CIM ProductImage format

CIMB2B CommerceDescription
idIdThe id of the product image in B2B Commerce system
nameNameThe name of the product image in B2B Commerce system
isDefaultImageisDefaultImageIndicates whether or not the product image is default image - default set to false
auditInfo.createdByCreatedByIdIdentifies the system or user which created the product image entry
auditInfo.createdDateCreatedDateTimestamp of when the product image entry was created
auditInfo.updatedByLastModifiedByIdIdentifies the system or user which last updated the product image entry
auditInfo.updatedDateLastModifiedDateTimestamp of when the product image entry was last updated
auditInfo.isDeletedIsDeletedIndicates whether or not the product image has been soft-deleted

(back to top)

product-primarycategory-select

ProductCatalog Query Mapping for B2B Commerce System

Source: ./src/main/resources/dwl/product-primarycategory-select.dwl

Mapping Tables

Maps B2B Commerce to CIM product.primaryProductCategory

CIMB2B CommerceDescription
idProductCategoryProduct.ProductCategory.IdThe identifier of the product category
nameProductCategoryProduct.ProductCategory.NameThe name of the product category
activeFromDateProductCategoryProduct.ProductCategory.CreatedDateTimestamp of when the product category entry was created
parentCategoryProductCategoryProduct.ParentCategoryIdThe parent category id of the product category
productCatalog.idProductCatalog.IdThe identifier of the product catalog
productCatalog.nameProductCatalog.NameThe name of the product catalog
productCatalog.activeFromDateProductCatalog.CreatedDateTimestamp of when the product catalog entry was created

(back to top)

product-response-get

Product Query Mapping for B2B Commerce System

Source: ./src/main/resources/dwl/product-response-get.dwl

Mapping Tables

Maps B2B Commerce Product2 to CIM Product format

CIMB2B CommerceDescription
idIDThe id of the Product in B2B Commerce system
nameNameThe name of the Product in B2B Commerce system
longDescriptionDescriptionThe description of the Product in B2B Commerce system
descriptionShort_Description__cThe description of the Product in B2B Commerce system
externalSourceRecordExternal_ID__cThe external id of the Product in B2B Commerce system
isSellableIsActiveIndicates whether or not the product is active
typeFamilyThe family of the Product in B2B Commerce system
primaryProductCategoryproductCategoryThe product category of the product retrieved using a separate call
productIdProductCodeThe id of the Product in B2B Commerce system
productSKUStockKeepingUnitThe sku of the Product in B2B Commerce system
productStatusStatus__cThe status of the Product in B2B Commerce system
auditInfo.createdByCreatedByIdIdentifies the system or user which created the product entry
auditInfo.createdDateCreatedDateTimestamp of when the product entry was created
auditInfo.updatedByLastModifiedByIdIdentifies the system or user which last updated the product entry
auditInfo.updatedDateLastModifiedDateTimestamp of when the product entry was last updated
auditInfo.isDeletedIsDeletedIndicates whether or not the product has been soft-deleted

(back to top)

product-var-put-payload

Product Upsert Mapping for B2B Commerce System

Source: ./src/main/resources/dwl/product-var-put-payload.dwl

Mapping Tables

Maps CIM Product to B2B Commerce Product2 format

B2B CommerceCIMDescription
ProductCodeproductCodeThe product code of the product to be updated
Product_Catalog__c"All Products"Product catalog set to "All products"
DescriptionlongDescriptionThe long description of the product
Item_Long_Description__cThe long description of the product
Short_Description__cdescriptionThe description of the product
Item_Short_Description__cdescriptionThe description of the product
Status__cproductStatusThe status of the product
External_ID__cexternalSourceRecordThe external id of the product
ExternalIdexternalSourceRecordThe external id of the product
FamilytypeThe type of the product
IsActiveisSellableIndicates whether or not the product is active
StockKeepingUnitproductSKUThe sku of the product

(back to top)

search-products-response

Product Query Mapping for B2B Commerce System

Source: ./src/main/resources/dwl/search-products-response.dwl

Variables

var s

Maps B2B Commerce Product2 to CIM Product format

Mapping Tables

Maps B2B Commerce Product2 to CIM Product format

CIMB2B CommerceDescription
idIDThe id of the Product in B2B Commerce system
nameNameThe name of the Product in B2B Commerce system
longDescriptionDescriptionThe description of the Product in B2B Commerce system
descriptionShort_Description__cThe description of the Product in B2B Commerce system
externalSourceRecordExternal_ID__cThe external id of the Product in B2B Commerce system
isSellableIsActiveIndicates whether or not the product is active
typeFamilyThe family of the Product in B2B Commerce system
primaryProductCategoryproductCategoryThe product category of the product retrieved using a separate call
productIdProductCodeThe id of the Product in B2B Commerce system
productSKUStockKeepingUnitThe sku of the Product in B2B Commerce system
productStatusStatus__cThe status of the Product in B2B Commerce system
auditInfo.createdByCreatedByIdIdentifies the system or user which created the product entry
auditInfo.createdDateCreatedDateTimestamp of when the product entry was created
auditInfo.updatedByLastModifiedByIdIdentifies the system or user which last updated the product entry
auditInfo.updatedDateLastModifiedDateTimestamp of when the product entry was last updated
auditInfo.isDeletedIsDeletedIndicates whether or not the product has been soft-deleted

(back to top)

update-pricebookentry-request

Pricebooks Update Mapping for B2B Commerce System

Source: ./src/main/resources/dwl/update-pricebookentry-request.dwl

Mapping Tables

Maps CIM PricebookEntry to B2B Commerce PricebookEntry format

B2B CommerceCIMDescription
Idvars.pricebookEntryRecordList[0].IdThe Identifier of the existing standard pricebook entry
IsActivetrueIndicates whether or not the pricebookEntry is active
Pricebook2IdPricebook2IdThe id of the pricebookEntry
Product2IdproductIdThe id of the product
UnitPriceunitListPriceThe unitListPrice of the pricebookEntry

(back to top)


Reviews

TypeTemplate
OrganizationMuleSoft
Published by
MuleSoft Solutions
Published onSep 17, 2022
Asset overview

Asset versions for 2.6.x

Asset versions
VersionActions
2.6.1
2.6.0