cancel
Showing results for 
Search instead for 
Did you mean: 

Offer Import API

deanmg1
Participant
0 Kudos

Hi,

We are using the Offer Import API to create Offers from an external system: CUAN_OFFER_IMPORT_SRV

However we picked up an issue on some of the Offer created where the Location assign was part of the incorrect Marketing area

We are aware of the single entry API call to delete the location assigned to the Offer, but is there an option to use the batch request to delete the location from multiple offers?

So basically delete multiple MarketingLocationAssignments using CUAN_OFFER_IMPORT_SRV in batch

https://api.sap.com/api/CUAN_OFFER_IMPORT_SRV/resource

Not looking promising based on my attempts but maybe someone has figured this out

Accepted Solutions (0)

Answers (1)

Answers (1)

Kunal_Bansal
Active Contributor
0 Kudos

Dear deanmg,

Have you tried the different changeset_number for each delete call in single batch payload.

Thank you.

Best Regards,

Kunal Bansal, Senior Marketing Consultant

deanmg1
Participant
0 Kudos

Hi kunalkumar.bansal ,

The single is not batched though - the actual data elements reside in the URI

I'm looking to use the request separator with $batch in the following way:

--request-separator

Content-Type: application/http

Content-Transfer-Encoding: binary

DELETE MarketingLocationAssignments HTTP/1.1

Accept: application/json

{ "OfferIdExt": "1234",

"OfferIdOrigin": "EXT_OFFER",

"MarketingLocationOriginId": "DATA_LOC",

"MarketingLocationId": "9999"

}

--request-separator--

I know from other batch requests POST is used with the URI but within the payload the actual operation to be performed is in the body. eg. PATCH, GET

DELETE in the body, I'm not sure of this