Find Product By Product Code

Description

The /findProductByProductCode/{productCode}/{merchantId} API is used to fetch the products by their code and Merchant ID.

Request

Endpoint

ui/v1/findProductByProductCode/{productCode}/{merchantId}

Note

Replace productCode with the internal Product Code.
Replace merchantid above with the internal merchant ID to which the product belongs to.

Method

GET
Content-Type: application/json
Authorization: $TOKEN

Note

Replace $TOKEN in the request with the base64-encoded username/password combination in the format username:password.

Given a username of username and a password of password, the request header would appear as follows:

Content-Type: application/json
Authorization: dXNlcm5hbWU6cGFzc3dvcmQ=

Response

{
    "id": 195,
    "createdDateTime": 1714658299000,
    "lastUpdatedDateTime": null,
    "lockedDateTime": null,
    "lockedByUserId": null,
    "createdUserId": 586,
    "lastModifiedUserId": 586,
    "productCode": "ABC0015",
    "productName": "Boutique",
    "productDescription": "Boutique",
    "productStatus": {
        "name": "ACTIVE"
    },
    "productType": {
        "name": "DEFAULT"
    },
    "costPerUnit": {
        "amount": 1000.000,
        "currency": {
            "id": 48,
            "currencyCode": "DOP",
            "currencyText": "Dominican Peso",
            "currencySymbol": "₱",
            "fractionalUnit": "Centavo",
            "currencyExponent": "2",
            "supportedByVisaCheckout": false,
            "createdDateTime": 1754456477000,
            "isoNumericCode": "214",
            "isoCountryCode": "214",
            "alpha2CountryCode": "DO"
        }
    },
    "validFromDateTime": null,
    "validToDateTime": null,
    "productInfoUrl": null,
    "productImageUrl": null,
    "channelId": null,
    "merchantId": 11,
    "minQuantity": 1,
    "maxQuantity": 5,
    "paymentAction": {
        "name": "SALE"
    },
    "pointOfContactEmail": "",
    "productCategory": {
        "name": "INTERNAL_AND_EXTERNAL"
    },
    "useThisProductAsDefault": false,
    "restrictions": null,
    "createdUserName": null,
    "message": null,
    "merchantName": null,
    "sValidFromDateTime": null,
    "sValidToDateTime": null
}

Updated As Of Version 6.7.1.0