Update Product

Description

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

Request

Endpoint

/ui/v1/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": 101,
    "createdDateTime": 1614959258000,
    "lastUpdatedDateTime": 1657298156000,
    "lockedDateTime": null,
    "lockedByUserId": null,
    "createdUserId": 665,
    "lastModifiedUserId": "929",
    "productCode": "Colu001",
    "productName": "Easy Check-in",
    "productDescription": "Easy Check-in",
    "productStatus": {
        "name": "ACTIVE"
    },
    "productType": {
        "name": "DEFAULT"
    },
    "costPerUnit": {
        "amount": "310.00",
        "currency": {
            "id": 1,
            "currencyCode": "USD",
            "currencyText": "United States Dollar",
            "currencySymbol": "$",
            "fractionalUnit": "Cent",
            "numOfDecimalPlaces": "2",
            "supportedByVisaCheckout": true,
            "createdDateTime": 1608260908000,
            "isoNumericCode": "840",
            "isoCountryCode": "840"
        }
    },
    "validFromDateTime": null,
    "validToDateTime": null,
    "productInfoUrl": null,
    "productImageUrl": null,
    "channelId": null,
    "merchantId": 21,
    "minQuantity": null,
    "maxQuantity": null,
    "paymentAction": {
        "name": "PRE_AUTHORIZATION"
    },
    "pointOfContactEmail": "",
    "productCategory": {
        "name": "INTERNAL_AND_EXTERNAL"
    },
    "useThisProductAsDefault": true,
    "createdUserName": null,
    "message": null,
    "merchantName": null,
    "sValidFromDateTime": null,
    "sValidToDateTime": null
}

Response

{
    "id": 101,
    "createdDateTime": 1614959258000,
    "lastUpdatedDateTime": 1657298156000,
    "lockedDateTime": null,
    "lockedByUserId": null,
    "createdUserId": 665,
    "lastModifiedUserId": 929,
    "productCode": "Colu001",
    "productName": "Easy Check-in",
    "productDescription": "Easy Check-in",
    "productStatus": {
        "name": "ACTIVE"
    },
    "productType": {
        "name": "DEFAULT"
    },
    "costPerUnit": {
        "amount": 310.00,
        "currency": {
            "id": 1,
            "currencyCode": "USD",
            "currencyText": "United States Dollar",
            "currencySymbol": "$",
            "fractionalUnit": "Cent",
            "numOfDecimalPlaces": "2",
            "supportedByVisaCheckout": true,
            "createdDateTime": 1608260908000,
            "isoNumericCode": "840",
            "isoCountryCode": "840"
        }
    },
    "validFromDateTime": null,
    "validToDateTime": null,
    "productInfoUrl": null,
    "productImageUrl": null,
    "channelId": null,
    "merchantId": 21,
    "minQuantity": null,
    "maxQuantity": null,
    "paymentAction": {
        "name": "PRE_AUTHORIZATION"
    },
    "pointOfContactEmail": "",
    "productCategory": {
        "name": "INTERNAL_AND_EXTERNAL"
    },
    "useThisProductAsDefault": true,
    "createdUserName": null,
    "message": {
        "code": "60",
        "type": {
            "name": "SUCCESS"
        },
        "include_i_icon": false,
        "description": "The Product <strong>Easy Check-in</strong> has been updated successfully."
    },
    "merchantName": null,
    "sValidFromDateTime": null,
    "sValidToDateTime": null
}

Updated As Of Version 5.9.0.7