{ "operationId": "rates_set", "method": "POST", "path": "/api/connector/v1/rates/set", "summary": "Set rates", "requestExamples": [ { "contentType": "application/json", "example": { "ClientToken": "E0D439EE522F44368DC78E1BFB03710C-D24FB11DBE31D4621C4817E028D9E1D", "AccessToken": "C66EF7B239D24632943D115EDE9CB810-EA00F8FD8294692C940F6B5A8F9453D", "Client": "Sample Client 1.0.0", "Rates": [ { "Id": "e1b0bf46-32a3-4f7c-99c1-1ff78447d55d", "ServiceId": "956176af-e10b-4f3c-beb7-274801bce328", "RateGroupId": "d7adfddc-c2dc-4798-ace2-28de7b25408f", "IsEnabled": true, "Type": "Public", "Names": { "en-US": "Base rate" }, "Descriptions": { "en-US": "Base rate with all fields specified using GUID identifiers." }, "PricingType": "BaseRatePricing", "Pricing": { "BaseRatePricing": { "Amount": { "Currency": "EUR", "NetValue": 100.0 } } } }, { "ExternalIdentifier": "55698", "ServiceId": "eid:Stay", "RateGroupId": "eid:RG10", "IsEnabled": false, "Type": "Private", "Names": { "en-US": "Dependent rate" }, "Descriptions": { "en-US": "Dependent rate with all field specified using eid identifiers." }, "PricingType": "DependentRatePricing", "Pricing": { "DependentRatePricing": { "BaseRateId": "00392166-3869-4174-b491-cf0162524a38", "RelativeAdjustment": 0.0, "AbsoluteAdjustment": 0.0 } } } ], "EnterpriseId": "3fa85f64-5717-4562-b3fc-2c963f66afa6" } } ], "responseExamples": [ { "status": "200", "contentType": "application/json", "example": { "Rates": [ { "Id": "e1b0bf46-32a3-4f7c-99c1-1ff78447d55d", "GroupId": "d7adfddc-c2dc-4798-ace2-28de7b25408f", "ServiceId": "956176af-e10b-4f3c-beb7-274801bce328", "BaseRateId": null, "IsBaseRate": true, "BusinessSegmentId": "dc9188f6-fb61-412c-b3fd-af32dab082ed", "IsActive": true, "IsEnabled": true, "IsPublic": true, "IsDefault": false, "Type": "Public", "Name": null, "Names": { "en-US": "Base rate" }, "ShortName": "BR", "UpdatedUtc": "2024-11-20T00:00:00Z", "ExternalNames": { "en-US": "External base rate" }, "Description": { "en-US": "Base rate description." }, "ExternalIdentifier": null, "TaxExemptionReason": null, "TaxExemptionLegalReference": null }, { "Id": "8eb1f163-bce7-49ca-a62c-c9261951c85f", "GroupId": "d7adfddc-c2dc-4798-ace2-28de7b25408f", "ServiceId": "956176af-e10b-4f3c-beb7-274801bce328", "BaseRateId": "00392166-3869-4174-b491-cf0162524a38", "IsBaseRate": false, "BusinessSegmentId": "dc9188f6-fb61-412c-b3fd-af32dab082ed", "IsActive": true, "IsEnabled": false, "IsPublic": false, "IsDefault": false, "Type": "Private", "Name": null, "Names": { "en-US": "Dependent rate" }, "ShortName": "DR", "UpdatedUtc": "2024-11-20T00:00:00Z", "ExternalNames": { "en-US": "External dependent rate" }, "Description": { "en-US": "Dependent rate description." }, "ExternalIdentifier": "55698", "TaxExemptionReason": null, "TaxExemptionLegalReference": null } ] } } ] }