SearchBookingLoops

 

CampaignService / SearchBookingLoops

 

Description: Search bookingloops

URL: http://{your-server-url}/api/v1/appspace/campaigns/search/bookingloops

Method: POST

Token Required: True


Request Headers:
content-type: application/json or content-type: application/xml
token: {token}
Request:

Type: Nexus.AppSpace.Service.Contract.Messages.AppSpaceIntegration.Campaign.CampaignRequest

Parameter Type Nullable
Request.BookingID integer True
Request.OwnerID integer True

Response:

Type: Nexus.AppSpace.Service.Contract.Messages.AppSpaceIntegration.Campaign.CampaignResponse

Parameter Type
Response.BookingLoops Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.Campaign.BookingLoop[]

Enums:
Field Name Values
Priority Nexus.AppSpace.Service.Contract.Model.Enums.Campaign.Priority Lowest = 1, Low = 2, Normal = 3, High = 4, Highest = 5

The following is an example request Xml body:
<CampaignRequest xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Messages.AppSpaceIntegration.Campaign" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <BookingID>123</BookingID>
  <OwnerID>123</OwnerID>
</CampaignRequest>

The following is an example request Json body:
{
	"BookingID":123,
	"OwnerID":123
}

The following is an example response Xml body:
<CampaignResponse xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Messages.AppSpaceIntegration.Campaign" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <DebugMessage xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Messages">String</DebugMessage>
  <Errors xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Messages">
    <Error>
      <Code>String</Code>
      <Message>String</Message>
      <StackTrace>String</StackTrace>
    </Error>
  </Errors>
  <Status xmlns="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Messages">Success</Status>
  <BookingLoops xmlns:a="http://schemas.datacontract.org/2004/07/Nexus.AppSpace.Service.Contract.Model.DTO.AppSpaceIntegration.Campaign">
    <a:BookingLoop>
      <a:AssetIds xmlns:b="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <b:int>123</b:int>
      </a:AssetIds>
      <a:BookingId>123</a:BookingId>
      <a:Id>123</a:Id>
      <a:IsDefaultContentLoop>true</a:IsDefaultContentLoop>
      <a:SiteId>123</a:SiteId>
    </a:BookingLoop>
  </BookingLoops>
</CampaignResponse>

The following is an example response Json body:
{
	"DebugMessage":"String",
	"Errors":[
		{
			"Code":"String",
			"Message":"String",
			"StackTrace":"String"
		}
	],
	"Status":1,
	"BookingLoops":[
		{
			"AssetIds":[
				123
			],
			"BookingId":123,
			"Id":123,
			"IsDefaultContentLoop":true,
			"SiteId":123
		}
	]
}