rollbackSale

Rollback a previously reserved transaction

Download OpenAPI description
Languages
Servers
Mock server
https://enterprise-iot-portal.u.com.my/_mock/eload/rollbacksale/

rollbackSale

Request

Rolls back a previously reserved transaction that was made using the setSale API. The CRM order number and the corresponding message ID will be used to identify and reverse the transaction.

Bodyapplication/jsonrequired
access_tokenstring<= 500 charactersrequired

API Gateway access token

Example: "abc123xyz456"
methodstring<= 64 charactersrequired

API name

Example: "rollbackSale"
versionstring<= 10 charactersrequired

API version

Example: "1.0.0"
contentobjectrequired
content.​msgIdstring<= 30 charactersrequired

Unique Message ID generated by 3rd party system. Format AAAYYYYMMDDHH24MISSCCCC

Example: "0472023040112305999"
content.​channelstring<= 20 charactersrequired

Fixed value for each channel

Example: "047"
content.​extOrderNbrstringrequired

CRM order number that was submitted during the setSale API

Example: "CRMORDER001"
curl -i -X POST \
  https://enterprise-iot-portal.u.com.my/_mock/eload/rollbacksale/api/rest \
  -H 'Content-Type: application/json' \
  -d '{
    "access_token": "abc123xyz456",
    "method": "rollbackSale",
    "version": "1.0.0",
    "content": {
      "msgId": "0472023040112305999",
      "channel": "047",
      "extOrderNbr": "CRMORDER001"
    }
  }'

Responses

Rollback successful

Bodyapplication/json
res_codestring<= 10 characters

Response code (e.g., "00000" for success)

Example: "00000"
res_messagestring<= 255 characters

Response message

Example: "Operation success"
resultobject

Response result (optional).

Response
application/json
{ "res_code": "00000", "res_message": "Operation success", "result": { "resultCode": "DBEP0000", "resultMsg": "Success", "transactions": [] } }