Retail Point-of-Service Solutions (MOSC)

MOSC Banner

Deleting information in xcenter through services

edited Aug 11, 2022 3:31PM in Retail Point-of-Service Solutions (MOSC) 2 commentsAnswered

Hi,

We notice that xcenter has a Endpoint - DTX provided as a web service (xservice) explained in page 306 of document xstorepos-190-sg.pdf where the example shows how to persist a entinty onto the xcenter database using the REST web service:

POST Accepted media type is application/json. Service to save a DTX immediately. Example call: Call this method via REST like 1 > POST https://:/xcenter/rest/default/19/dtx 1 > Accept: application/json 1 > Authorization: 1 > Content-Type: application/xml { "Timeout": 1000, "persistables": [ [ { "v": 19, "type": "Item", "cmd": "INSERT", "recordtype": "dao" }, { "OrganizationId": 1, "ItemId": "1622", "CreateDate": 1526463366239, "OrgCode": "*", "OrgValue": "*", "Description": "FOOBARSTOOL", "SerializedItem": false, } ] ] }


My question is if it can be used to DELETE an existing record instead of inserting a new one as I can see a parameter named cmd (in example given it has the value INSERT "cmd": "INSERT").I am guessing that using a another value for CMD we can delete and update records, is it correct?

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center