RCG B2C Commerce System API - Implementation Template

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
createProductInventoryRequestMaps Input payload to B2C Commerce Cloud Product Inventory
createProductRequestMaps Input payload to B2C Commerce Cloud Product
createProductVariationValueResponseMaps Input payload to B2C Commerce Cloud Product attribute
createVariationMasterProductRequestPrepare payload to assign variation for Master product
getProductByIdResponseMaps B2C Commerce Cloud to CIM Product Payload
get-promotionsB2C Promotions Mapping
map-b2c-order-to-cimB2C Order Mapping
put-cc-productsMaps Input payload to B2C Commerce Cloud Product
put-product-var-attB2C Promotions Mapping

createProductInventoryRequest

Maps Input payload to B2C Commerce Cloud Product Inventory

Source: ./src/main/resources/dwl/createProductInventoryRequest.dwl

Mapping Tables

Maps Input payload to B2C Commerce Cloud Product Inventory

B2CInputDescription
ididThe id of the product
productIdidThe id of the product
locationTypePARTNERThe PARTNER by default
productNamenameThe name of the product
locationIdinventory_mThe inventory_m by default
locationNameinventory_mThe inventory_m by default
quantityInStockmaximumOrderQuantityCountThe quantity count of the product

(back to top)

createProductRequest

Maps Input payload to B2C Commerce Cloud Product

Source: ./src/main/resources/dwl/createProductRequest.dwl

Mapping Tables

Maps Input payload to B2C Commerce Cloud Product

B2CInputDescription
ididThe id of the product
manufacturer_namemanufacturerNameThe manufacturer's name of the product
manufacturer_skuproductSKUThe manufacturer's SKu of the product
name.defaultnameThe name of the product
brandbrandThe brand name of the product
short_description.markupdescriptionThe short description of the product
short_description.sourcedescriptionThe short description of the product
long_description.markuplongDescriptionThe long description of the product
long_description.sourcelongDescriptionThe long description of the product
upcmodelNumbermodelNumber of the Product
unitmaximumOrderQuantityCountmaximumOrderQuantityCount
unit.master.master_idmasterProductThe masterProduct (applicable only to the 'variant' products)
master.linkurlhardcoded url (applicable only to the 'variant' products)
owning_catalog_idprimaryProductCategory.productCatalog.idOwning Catalog Id
c_globalProductIdexternalIds.externalIdMDM Id
online_flag.defaulttruedefault value is true
searchable.defaulttruedefault value is true

(back to top)

createProductVariationValueResponse

Maps Input payload to B2C Commerce Cloud Product attribute

Source: ./src/main/resources/dwl/createProductVariationValueResponse.dwl

Mapping Tables

Maps Input payload to B2C Commerce Cloud Product attribute

B2CInputDescription
idattributeDefinitionIdId of the attribute
nameattributeDefinitionNameName of the attribute
attributeValuevalues.valuevalue of the attribute

(back to top)

createVariationMasterProductRequest

Prepare payload to assign variation for Master product

Source: ./src/main/resources/dwl/createVariationMasterProductRequest.dwl

Mapping Tables

Maps Input payload to B2C Commerce Cloud Product

B2CInputDescription
defaultProductVariationtrueDefault value is true
productIdidThe id of the product

(back to top)

getProductByIdResponse

Maps B2C Commerce Cloud to CIM Product Payload

Source: ./src/main/resources/dwl/getProductByIdResponse.dwl

Mapping Tables

Maps B2C Commerce Cloud to CIM Product Payload

CIMB2CDescription
ididThe id of the product
namenameThe name of the product
longDescriptionlongDescription.default.sourceThe longDescription of the product
descriptionshortDescription.default.sourceThe shortDescription of the product
manufacturerNamemanufacturer_nameThe manufacturer's name of the product
productSKUmanufacturer_skuThe product's SKu of the product
validFromDatecreationDateThe Creation Date of the Product
modelNumberupcupc of the Product
maximumOrderQuantityCountatsunit of the product
manufacturerNamemanufacturer_nameThe manufacturer's name of the product
primaryProductCategory.productCatalog.idowningCatalogIdproduct Catalog Id
primaryProductCategory.productCatalog.nameowningCatalogName.defaultproduct Catalog name
primaryProductCategory.productCatalog.activeFromDatecreationDateactive from date
externalSourceRecordidThe product id
mSRPAmountpricemSRP Amount fo the product
masterProductmaster.master_idmasterProduct Id of the Product variant
brandbrandBrand of the Product
productAttributes.idattributeDefinitionIdThe product attribute id
productAttributes.nameattributeDefinitionName.defaultThe product attribute name
productAttributes.attributeValuevalues.valueThe product attribute value
externalIds.idc_globalProductIdThe c_globalProductId value default
externalIds.externalIdc_globalProductIdThe c_globalProductId value default
externalIds.externalIdTypeMDMHardcoded as MDM
externalIds.statusVALIDHardocded as VALID
auditInfo.createdDatecreationDatecreated Date of the Product
auditInfo.createdByrcg-b2c-commerce-sys-apiHardcoded as rcg-b2c-commerce-sys-api
auditInfo.updatedDatelastModifiedupdated Date of the Product
auditInfo.updatedByrcg-b2c-commerce-sys-apiHardcoded as rcg-b2c-commerce-sys-api
productCatalog.namename.defaultname of the catalog
productCatalog.idowningCatalogName.defaultid of the catalog
productCatalog.activeFromDateactiveFromDateactiveFromDate of the catalog
productCategory.nameassignedCategories.categoryIdname of the category
productCategory.idassignedCategories.categoryIdid of the category
productCategory.activeFromDateactiveFromDateactiveFromDate of the category

(back to top)

get-promotions

B2C Promotions Mapping

Source: ./src/main/resources/dwl/get-promotions.dwl

Mapping Tables

Maps B2C Promotions to Promotions output format

outputB2CDescription
promotionIdPromotionIdThe id of the Promotion created for that campaign
promotionNamepromotionNameThe name of the promotion
customerProfile.customerIdCustomerIdThe B2C customer Id
customerProfile.firstNameFirstnameThe FirstName of the customer
customerProfile.lastNameLastNameThe Lastname of the Customer
customerProfile.emailAddressemailAddressThe Customer Email address

(back to top)

map-b2c-order-to-cim

B2C Order Mapping

Source: ./src/main/resources/dwl/map-b2c-order-to-cim.dwl

Variables

var s

Maps B2C Orders to CIM Sales Order format

Mapping Tables

Maps B2C Orders to CIM Sales Order format

CIMB2CDescription
idc_globalSalesOrderIdThe id of the Sales Order
orderNumberorder_noThe order number of the Sales Order
grandTotalAmountCustomerThe total amount of the Sales Order
totalTaxAmountmerchandize_total_taxThe tax amount of the Sales Order
requestedStartDatecreation_dateThe created date of Sales Order
salesOrderTypeORDERThe type of Sales Order
salesOrderStatusstatusThe status of Sales Order
customer.idcustomer_info.customer_noThe customer ID
partyTypeIndividualThe type of party hardcoded to 'Customer'
personNamecustomer_info.customer_nameThe customer name
contactPoints.nameBillingAddressThe contact point name
contactPoints.contactPointTypeContactPointAddressThe type of contact point
contactPoints.addressLine1billing_address.address1Address 1
contactPoints.addressLine2billing_address.address2Address 2
contactPoints.cityNamebilling_address.cityThe city name
contactPoints.stateProvinceNamebilling_address.state_codeThe state code
contactPoints.countryNamebilling_address.country_codeThe country code
contactPoints.postalCodeTextbilling_address.postal_codeThe postal code
externalIds.externalIdorder_noThe external Id
externalIds.externalIdTypeSALESFORCE_B2CThe external Id type
auditInfo.createdDatecreation_dateThe order created date
auditInfo.createdBycreated_byThe order created by
auditInfo.updatedDatelast_modifiedThe order last modified date
auditInfo.updatedBycreated_byThe order last modified by

(back to top)

put-cc-products

Maps Input payload to B2C Commerce Cloud Product

Source: ./src/main/resources/dwl/put-cc-products.dwl

Mapping Tables

Maps Input payload to B2C Commerce Cloud Product

B2CInputDescription
ididThe id of the product
manufacturer_namemanufacturerNameThe manufacturer's name of the product
manufacturer_skuproductSKUThe manufacturer's SKu of the product
name.defaultnameThe name of the product
brandbrandThe brand name of the product
short_description.markupdescriptionThe short description of the product
short_description.sourcedescriptionThe short description of the product
long_description.markuplongDescriptionThe long description of the product
long_description.sourcelongDescriptionThe long description of the product
upcmodelNumbermodelNumber of the Product
unitmaximumOrderQuantityCountmaximumOrderQuantityCount
master.master_idmasterProductThe masterProduct (applicable only to the 'variant' products)
master.linkurlhardcoded url (applicable only to the 'variant' products)
owning_catalog_idprimaryProductCategory.productCatalog.idOwning Catalog Id
c_globalProductIdexternalIds.externalIdMDM Id
online_flag.defaulttruedefault value is true
c_availableForInStorePickuptrueProduct default available for Instore pickup

(back to top)

put-product-var-att

B2C Promotions Mapping

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

Mapping Tables

Maps Input payload to B2C Commerce Cloud Product Attribute

B2CInputDescription
attributeDefinitionIdproductAttributes.idThe attributeDefinitionId id
ididThe product attribute id

(back to top)

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

Asset versions for 2.6.x

Asset versions
VersionActions
2.6.2
2.6.0