Master Product

The function of the service Master Product is currently used to view any product provided by an application that can be used for the PPOB product purchase process.

Flow service Master Product



Action Master Product

Here is a detailed description of the five actions that are available in the service Master Product, such as :

  • Create , Used to create a new Master Product sample.
  • Update , Used to update data from an existing Master Product.
  • Get , Used to get Master Product details.
  • GetById , Used to get Master Product data details based on ID.
  • Delete , Used to delete Master Product data.


Create

Payload Data

NameData Type
IdString
categoryString
billerString
typeString
groupString
fIdString
codeString
nameString
descriptionString
denomString
priceString
feeString
commissionString
activeString
discountSetupString
wndProdIdString

Example Request

 {
      "Subject": "ewallet",
      "SubjectType": "web-crypto-configuration",
      "SubjectIdentifier": "master-product",
      "Action": "create",
      "ResourceType": "data",
      "Resource": "data",
      "ResourceId": "data",
      "Data": {
        "id": "0",
        "category":"TEST",
        "biller":"RAJABILLER",
        "type":"TESTTYPE",
        "group":"TESTGROUP",
        "fId":null,
        "code":"IDVF7HTEST",
        "name":"Voucher Test Fredom",
        "description":"Description voucher",
        "denom":1,
        "price":9999,
        "fee":900,
        "commission":99,
        "active":1,
        "discountSetup":null,
        "wndProdId":null
      }
}


Update

Payload Data

NameData Type
IdString
categoryString
billerString
typeString
groupString
fIdString
codeString
nameString
descriptionString
denomString
priceString
feeString
commissionString
activeString
discountSetupString
wndProdIdString

Example Request

{
    "Subject": "ewallet",
    "SubjectType": "web-crypto-configuration",
    "SubjectIdentifier": "master-product",
    "Action": "update",
    "ResourceType": "data",
    "Resource": "data",
    "ResourceId": "data",
    "Data": {
      "id": 7157,
      "category":"TESTU",
      "biller":"RAJABILLERU",
      "type":"TESTTYPEU",
      "group":"TESTGROUPU",
      "fId":null,
      "code":"IDVF7HTESTU",
      "name":"Voucher Test Fredom U",
      "description":"Description voucher U",
      "denom":12,
      "price":99993,
      "fee":9004,
      "commission":995,
      "active":0,
      "discountSetup":null,
      "wndProdId":null
    }
}


Get

Payload Data

NameData Type
keywordString
currentString
sizeString
statusString
dateString

Example Request

{
    "Subject": "ewallet",
    "SubjectType": "web-crypto-configuration",
    "SubjectIdentifier": "master-product",
    "Action": "get",
    "ResourceType": "data",
    "Resource": "data",
    "ResourceId": "data",
    "Data": {
      "biller": null,
      "type": null,
      "group": null,
      "category": null,
      "status": null,
      "current": 1,
      "size": 10
    }
}


Get By ID

Payload Data

NameData Type
IdString

Example Request

{
    "Subject": "ewallet",
    "SubjectType": "web-crypto-configuration",
    "SubjectIdentifier": "master-product",
    "Action": "getbyid",
    "ResourceType": "data",
    "Resource": "data",
    "ResourceId": "data",
    "Data": {
      "id": 451
    }
  }


Delete

Payload Data

NameData Type
IdString

Example Request

{
    "Subject": "ewallet",
    "SubjectType": "web-crypto-configuration",
    "SubjectIdentifier": "master-product",
    "Action": "delete",
    "ResourceType": "data",
    "Resource": "data",
    "ResourceId": "data",
    "Data": {
      "id": 34
    }
  }