Update Product

Description

The /admin/updateProduct endpoint is used to update a Product/Service in VELA.

Request

Endpoint

/ui/v1/admin/updateProduct

Method

POST
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=

Request Body

{
    "id": 263,
    "createdDateTime": 1756241146000,
    "lastUpdatedDateTime": null,
    "lockedDateTime": null,
    "lockedByUserId": null,
    "createdUserId": 645,
    "lastModifiedUserId": "645",
    "productCode": "TEST-001",
    "productName": "Recreation",
    "productDescription": "Recreation",
    "productStatus": {
        "name": "ACTIVE"
    },
    "productType": {
        "name": "SERVICE"
    },
    "costPerUnit": {
        "amount": "50.00",
        "currency": {
            "id": 1,
            "currencyCode": "USD",
            "currencyText": "United States Dollar",
            "currencySymbol": "$",
            "fractionalUnit": "Cent",
            "currencyExponent": "2",
            "supportedByVisaCheckout": true,
            "createdDateTime": 1754456477000,
            "isoNumericCode": "840",
            "isoCountryCode": "840",
            "alpha2CountryCode": "US"
        }
    },
    "validFromDateTime": null,
    "validToDateTime": null,
    "productInfoUrl": null,
    "productImageUrl": null,
    "channelId": null,
    "merchantId": 20,
    "minQuantity": 1,
    "maxQuantity": 1,
    "paymentAction": {
        "name": "SALE"
    },
    "pointOfContactEmail": "recreation@email.com",
    "productCategory": {
        "name": "INTERNAL_AND_EXTERNAL"
    },
    "useThisProductAsDefault": false,
    "restrictions": "",
    "createdUserName": null,
    "message": null,
    "merchantName": null,
    "sValidFromDateTime": null,
    "sValidToDateTime": null
}

Response

{
    "id": 263,
    "createdDateTime": 1756241146000,
    "lastUpdatedDateTime": null,
    "lockedDateTime": null,
    "lockedByUserId": null,
    "createdUserId": 645,
    "lastModifiedUserId": 645,
    "productCode": "TEST-001",
    "productName": "Recreation",
    "productDescription": "Recreation",
    "productStatus": {
        "name": "ACTIVE"
    },
    "productType": {
        "name": "SERVICE"
    },
    "costPerUnit": {
        "amount": 50,
        "currency": {
            "id": 1,
            "currencyCode": "USD",
            "currencyText": "United States Dollar",
            "currencySymbol": "$",
            "fractionalUnit": "Cent",
            "currencyExponent": "2",
            "supportedByVisaCheckout": true,
            "createdDateTime": 1754456477000,
            "isoNumericCode": "840",
            "isoCountryCode": "840",
            "alpha2CountryCode": "US"
        }
    },
    "validFromDateTime": null,
    "validToDateTime": null,
    "productInfoUrl": null,
    "productImageUrl": null,
    "channelId": null,
    "merchantId": 20,
    "minQuantity": 1,
    "maxQuantity": 1,
    "paymentAction": {
        "name": "SALE"
    },
    "pointOfContactEmail": "recreation@email.com",
    "productCategory": {
        "name": "INTERNAL_AND_EXTERNAL"
    },
    "useThisProductAsDefault": false,
    "restrictions": "",
    "createdUserName": null,
    "message": {
        "code": "60",
        "type": {
            "name": "SUCCESS"
        },
        "include_i_icon": false,
        "description": "PRODUCT_MODIFICATION_SUCCESS",
        "parameters": [
            {
                "name": "PRODUCT_NAME",
                "value": "Recreation"
            }
        ]
    },
    "merchantName": null,
    "sValidFromDateTime": null,
    "sValidToDateTime": null
}

Updated As Of Version 6.7.1.0