x-api-key: ********************{
"companyId": "string",
"requestedBy": "string",
"contactIds": [
"string"
],
"rates": [
{
"roomTypeId": "string",
"rateTypeId": "string",
"currencyId": "string",
"fromDate": "string",
"toDate": "string",
"planId": "string",
"week1": 0,
"week2": 0,
"week3": 0,
"week4": 0,
"week5": 0,
"week6": 0,
"week7": 0,
"tariffSingle": 0,
"extraAdult": 0,
"extraChild": 0,
"extraChild2": 0,
"extraChild3": 0,
"tariffDouble": 0,
"tariffTriple": 0,
"tariffQuadruple": 0,
"tariffFive": 0,
"tariffQuintuple": 0,
"tariffHex": 0,
"planCharge2": 0,
"planCharge3": 0,
"weekAdult1": 0,
"weekAdult2": 0,
"weekAdult3": 0,
"weekAdult4": 0,
"weekAdult5": 0,
"weekAdult6": 0,
"weekExtraAdult": 0,
"weekExtraChild1": 0,
"weekExtraChild2": 0,
"weekExtraChild3": 0,
"weekAdultPlan": 0,
"weekChildPlan11": 0,
"weekChildPlan12": 0,
"weekChildPlan13": 0
}
]
}curl --location 'https://dev-api.wincloudone.com/stdinterface/api/v1/rates/direct' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"companyId": "string",
"requestedBy": "string",
"contactIds": [
"string"
],
"rates": [
{
"roomTypeId": "string",
"rateTypeId": "string",
"currencyId": "string",
"fromDate": "string",
"toDate": "string",
"planId": "string",
"week1": 0,
"week2": 0,
"week3": 0,
"week4": 0,
"week5": 0,
"week6": 0,
"week7": 0,
"tariffSingle": 0,
"extraAdult": 0,
"extraChild": 0,
"extraChild2": 0,
"extraChild3": 0,
"tariffDouble": 0,
"tariffTriple": 0,
"tariffQuadruple": 0,
"tariffFive": 0,
"tariffQuintuple": 0,
"tariffHex": 0,
"planCharge2": 0,
"planCharge3": 0,
"weekAdult1": 0,
"weekAdult2": 0,
"weekAdult3": 0,
"weekAdult4": 0,
"weekAdult5": 0,
"weekAdult6": 0,
"weekExtraAdult": 0,
"weekExtraChild1": 0,
"weekExtraChild2": 0,
"weekExtraChild3": 0,
"weekAdultPlan": 0,
"weekChildPlan11": 0,
"weekChildPlan12": 0,
"weekChildPlan13": 0
}
]
}'{
"success": true,
"message": "string",
"errorCode": "string",
"statusCode": 0,
"data": {
"success": true,
"updatedCount": 0,
"failedDates": [
{
"roomTypeId": "string",
"rateTypeId": "string",
"currencyId": "string",
"fromDate": "string",
"toDate": "string",
"statusCode": 0,
"reason": "string"
}
],
"errors": [
"string"
]
},
"timestamp": "2019-08-24T14:15:22.123Z",
"correlationId": "string"
}