cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Public OData API (API_MKT_PRODUCT_SRV)

Former Member
0 Likes
801

Hello,

Its possible send more than one product at the same time to marketing use this API?

Because I have something like this, and the marketing only receive the first one A190.

Whats is wrong with this? How can I import all the porducts?

Thanks

--batch
content-type:multipart/mixed; boundary=changeset_boomi

--changeset_boomi
content-type: application/http
content-transfer-encoding: binary

PATCH ProductOriginDataSet(ProductID='A190',ProductOrigin='SAP_HYBRIS_PRODUCT') HTTP/1.1
Content-Length: 1035
Accept: application/json
Content-Type: application/json
Sap-Cuan-SourceSystemId: P02CLNT100
Sap-Cuan-SourceSystemType: XXX_XXX
Sap-Cuan-SequenceId: XXX_PRODHIER
Sap-Cuan-RequestTimestamp: 2018-12-04T08:01:01
Sap-Cuan-ExternalReferenceId: HYB_001

{
  "ProductOrigin" : "SAP_HYBRIS_PRODUCT",
  "ProductID" : "A190",
  "Brand" : "FOSTERS"
}

--changeset_boomi----changeset_boomi
content-type: application/http
content-transfer-encoding: binary

PATCH ProductOriginDataSet(ProductID='A191',ProductOrigin='SAP_HYBRIS_PRODUCT') HTTP/1.1
Content-Length: 1035
Accept: application/json
Content-Type: application/json
Sap-Cuan-SourceSystemId: P02CLNT100
Sap-Cuan-SourceSystemType: XXX_XXX
Sap-Cuan-SequenceId: XXX_PRODHIER
Sap-Cuan-RequestTimestamp: 2018-12-04T08:01:01
Sap-Cuan-ExternalReferenceId: HYB_001

{
  "ProductOrigin" : "SAP_HYBRIS_PRODUCT",
  "ProductID" : "A191",
  "Brand" : "FOSTERS"
}

--changeset_boomi----changeset_boomi
content-type: application/http
content-transfer-encoding: binary

PATCH ProductOriginDataSet(ProductID='A954',ProductOrigin='SAP_HYBRIS_PRODUCT') HTTP/1.1
Content-Length: 1035
Accept: application/json
Content-Type: application/json
Sap-Cuan-SourceSystemId: P02CLNT100
Sap-Cuan-SourceSystemType: XXX_XXX
Sap-Cuan-SequenceId: XXX_PRODHIER
Sap-Cuan-RequestTimestamp: 2018-12-04T08:01:01
Sap-Cuan-ExternalReferenceId: HYB_001

{
  "ProductOrigin" : "SAP_HYBRIS_PRODUCT",
  "ProductID" : "A954",
  "Brand" : "FOSTERS"
}

--changeset_boomi----changeset_boomi
content-type: application/http
content-transfer-encoding: binary

PATCH ProductOriginDataSet(ProductID='C086',ProductOrigin='SAP_HYBRIS_PRODUCT') HTTP/1.1
Content-Length: 1035
Accept: application/json
Content-Type: application/json
Sap-Cuan-SourceSystemId: P02CLNT100
Sap-Cuan-SourceSystemType: XXX_XXX
Sap-Cuan-SequenceId: XXX_PRODHIER
Sap-Cuan-RequestTimestamp: 2018-12-04T08:01:01
Sap-Cuan-ExternalReferenceId: HYB_001

{
  "ProductOrigin" : "SAP_HYBRIS_PRODUCT",
  "ProductID" : "C086",
  "Brand" : "FOSTERS"
}

--changeset_boomi----changeset_boomi
content-type: application/http
content-transfer-encoding: binary

PATCH ProductOriginDataSet(ProductID='CD23',ProductOrigin='SAP_HYBRIS_PRODUCT') HTTP/1.1
Content-Length: 1035
Accept: application/json
Content-Type: application/json
Sap-Cuan-SourceSystemId: P02CLNT100
Sap-Cuan-SourceSystemType: XXX_XXX
Sap-Cuan-SequenceId: XXX_PRODHIER
Sap-Cuan-RequestTimestamp: 2018-12-04T08:01:01
Sap-Cuan-ExternalReferenceId: HYB_001

{
  "ProductOrigin" : "SAP_HYBRIS_PRODUCT",
  "ProductID" : "CD23",
  "Brand" : "FOSTERS"
}

--changeset_boomi----changeset_boomi
content-type: application/http
content-transfer-encoding: binary

PATCH ProductOriginDataSet(ProductID='CJ92',ProductOrigin='SAP_HYBRIS_PRODUCT') HTTP/1.1
Content-Length: 1035
Accept: application/json
Content-Type: application/json
Sap-Cuan-SourceSystemId: P02CLNT100
Sap-Cuan-SourceSystemType: XXX_XXX
Sap-Cuan-SequenceId: XXX_PRODHIER
Sap-Cuan-RequestTimestamp: 2018-12-04T08:01:01
Sap-Cuan-ExternalReferenceId: HYB_001

{
  "ProductOrigin" : "SAP_HYBRIS_PRODUCT",
  "ProductID" : "CJ92",
  "Brand" : "FOSTERS"
}

--changeset_boomi----changeset_boomi
content-type: application/http
content-transfer-encoding: binary

PATCH ProductOriginDataSet(ProductID='DI59',ProductOrigin='SAP_HYBRIS_PRODUCT') HTTP/1.1
Content-Length: 1035
Accept: application/json
Content-Type: application/json
Sap-Cuan-SourceSystemId: P02CLNT100
Sap-Cuan-SourceSystemType: XXX_XXX
Sap-Cuan-SequenceId: XXX_PRODHIER
Sap-Cuan-RequestTimestamp: 2018-12-04T08:01:01
Sap-Cuan-ExternalReferenceId: HYB_001

{
  "ProductOrigin" : "SAP_HYBRIS_PRODUCT",
  "ProductID" : "DI59",
  "Brand" : "FOSTERS"
}

--changeset_boomi--

--batch--

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Likes

Hi Marisa,

If you change all of these lines

--changeset_boomi----changeset_boomi

to this

--changeset_boomi

I think it will work.

Regards,

Cagri

Former Member
0 Likes

Thanks for your help Cagri

Best Regard´s

Marisa

Answers (1)

Answers (1)

Former Member
0 Likes

Hi Marisa,

please have alook at the examples here: Products API docu

I guess the problem is related to your changeset representation.

Like e.g. it changes from --changeset_boomi to --changeset_boomi----changeset_boomi

As it is changing in a not correct way in your payload. Please check the samples and adapt your payload.

BR
Maik

Former Member
0 Likes

Thanks for your help Maik

Best Regard´s

Marisa