Update Product Status
Description¶
The updateProductStatus
endpoint is used to update/delete/restore a Product/Service in VELA.
Request¶
Endpoint¶
/ui/v1/updateProductStatus
Method¶
POST
Header¶
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": 182,
"createdDateTime": 1703612933000,
"lastUpdatedDateTime": null,
"lockedDateTime": null,
"lockedByUserId": null,
"createdUserId": 819,
"lastModifiedUserId": "586",
"productCode": "V0001",
"productName": "BNN",
"productDescription": null,
"productStatus": {
"name": "ACTIVE"
},
"productType": {
"name": "ELECTRONIC_SOFTWARE"
},
"costPerUnit": {
"amount": null,
"currency": {
"id": 48,
"currencyCode": "DOP",
"currencyText": "Dominican Peso",
"currencySymbol": "$",
"fractionalUnit": "Centavo",
"numOfDecimalPlaces": "2",
"supportedByVisaCheckout": false,
"createdDateTime": 1608260909000,
"isoNumericCode": "214",
"isoCountryCode": "214"
}
},
"validFromDateTime": null,
"validToDateTime": null,
"productInfoUrl": null,
"productImageUrl": null,
"channelId": null,
"merchantId": 11,
"minQuantity": null,
"maxQuantity": null,
"paymentAction": {
"name": "PRE_AUTHORIZATION"
},
"pointOfContactEmail": "",
"productCategory": {
"name": "INTERNAL_AND_EXTERNAL"
},
"useThisProductAsDefault": false,
"createdUserName": "Testuser1",
"message": null,
"merchantName": "VELA",
"sValidFromDateTime": null,
"sValidToDateTime": null
}
Response¶
{
"id": 182,
"createdDateTime": 1703612933000,
"lastUpdatedDateTime": null,
"lockedDateTime": null,
"lockedByUserId": null,
"createdUserId": 819,
"lastModifiedUserId": 586,
"productCode": "V0001",
"productName": "BNN",
"productDescription": null,
"productStatus": {
"name": "ACTIVE"
},
"productType": {
"name": "ELECTRONIC_SOFTWARE"
},
"costPerUnit": {
"amount": null,
"currency": {
"id": 48,
"currencyCode": "DOP",
"currencyText": "Dominican Peso",
"currencySymbol": "$",
"fractionalUnit": "Centavo",
"numOfDecimalPlaces": "2",
"supportedByVisaCheckout": false,
"createdDateTime": 1608260909000,
"isoNumericCode": "214",
"isoCountryCode": "214"
}
},
"validFromDateTime": null,
"validToDateTime": null,
"productInfoUrl": null,
"productImageUrl": null,
"channelId": null,
"merchantId": 11,
"minQuantity": null,
"maxQuantity": null,
"paymentAction": {
"name": "PRE_AUTHORIZATION"
},
"pointOfContactEmail": "",
"productCategory": {
"name": "INTERNAL_AND_EXTERNAL"
},
"useThisProductAsDefault": false,
"createdUserName": null,
"message": {
"code": "61",
"type": {
"name": "SUCCESS"
},
"include_i_icon": false,
"description": "PRODUCT_RESTORE_SUCCESS",
"parameters": [
{
"name": "PRODUCT_NAME",
"value": "BNN"
}
]
},
"merchantName": null,
"sValidFromDateTime": null,
"sValidToDateTime": null
}
Updated As Of Version 6.1.1