Remove Product As Default
Description¶
The removeProductAsDefault
API is used to remove a Product/Service as the default option in VELA.
Request¶
Endpoint¶
/ui/v1/removeProductAsDefault
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": 110,
"createdDateTime": 1627401629000,
"lastUpdatedDateTime": 1708112726000,
"lockedDateTime": null,
"lockedByUserId": null,
"createdUserId": 586,
"lastModifiedUserId": 861,
"productCode": "PUNC001",
"productName": "Easy Check-in",
"productDescription": null,
"productStatus": {
"name": "ACTIVE"
},
"productType": {
"name": "DEFAULT"
},
"costPerUnit": {
"amount": 17150,
"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": 11,
"minQuantity": null,
"maxQuantity": null,
"paymentAction": {
"name": "PRE_AUTHORIZATION"
},
"pointOfContactEmail": "",
"productCategory": {
"name": "INTERNAL_AND_EXTERNAL"
},
"useThisProductAsDefault": true,
"createdUserName": "Fiserv.eCommerce",
"message": null,
"merchantName": "VELA",
"sValidFromDateTime": null,
"sValidToDateTime": null
}
Response¶
{
"id": 110,
"createdDateTime": 1627401629000,
"lastUpdatedDateTime": 1708112726000,
"lockedDateTime": null,
"lockedByUserId": null,
"createdUserId": 586,
"lastModifiedUserId": 861,
"productCode": "VELA001",
"productName": "Test Product",
"productDescription": null,
"productStatus": {
"name": "ACTIVE"
},
"productType": {
"name": "DEFAULT"
},
"costPerUnit": {
"amount": 17150,
"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": 11,
"minQuantity": null,
"maxQuantity": null,
"paymentAction": {
"name": "PRE_AUTHORIZATION"
},
"pointOfContactEmail": "",
"productCategory": {
"name": "INTERNAL_AND_EXTERNAL"
},
"useThisProductAsDefault": true,
"createdUserName": "Fiserv.eCommerce",
"message": {
"code": "166",
"type": {
"name": "SUCCESS"
},
"include_i_icon": false,
"description": "PRODUCT_REMOVE_DEFAULT_SUCCESS",
"parameters": [
{
"name": "PRODUCT_NAME",
"value": "Test Product"
}
]
},
"merchantName": "VELA",
"sValidFromDateTime": null,
"sValidToDateTime": null
}
Updated As Of Version 6.1.1