Skip to content

Broadcast Gateway v2

Broadcast gateway service for sending co-ordinated customer messaging


License: Apache 2.0

Servers

Description URL
https://bcg.betfair.com/BroadcastGateway/v2 https://bcg.betfair.com/BroadcastGateway/v2

BroadcastGatewayV2


POST /send

Sending messages to customers to channels

Description

Sends a message to customers to channels

Input parameters

Parameter In Type Default Nullable Description
headers header object No

Request body

{
    "accountId": 176,
    "programme": "string",
    "initiative": "string",
    "messages": [
        {
            "messageId": "string",
            "expiryDate": "2022-04-13T15:42:05.901Z",
            "payload": {
                "urn": "string",
                "params": {}
            },
            "preferences": [
                {
                    "channels": [
                        {
                            "channel": "ON_SITE"
                        }
                    ]
                }
            ],
            "preferredAppKey": "string",
            "priority": 291,
            "retriedCount": 97
        }
    ],
    "context": {}
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "type": "object",
    "required": [
        "accountId",
        "programme",
        "initiative",
        "messages"
    ],
    "properties": {
        "accountId": {
            "type": "integer",
            "format": "int64"
        },
        "programme": {
            "type": "string",
            "minLength": 1
        },
        "initiative": {
            "type": "string",
            "minLength": 1
        },
        "messages": {
            "type": "array",
            "minItems": 1,
            "items": {
                "$ref": "#/components/schemas/Message"
            }
        },
        "context": {
            "type": "object",
            "additionalProperties": {
                "type": "string"
            }
        }
    }
}

Response 200 OK

Response 400 Bad Request


Schemas

DeliveryChannel

Name Type
channel string

DeliveryPreference

Name Type
channels Array<DeliveryChannel>

Message

Name Type
expiryDate string(date-time)
messageId string
payload MessagePayload
preferences Array<DeliveryPreference>
preferredAppKey string
priority integer(int32)
retriedCount integer(int32)

MessagePayload

Name Type
params
urn string

MessageQueueChannel

Type:

MessageRequest

Name Type
accountId integer(int64)
context
initiative string
messages Array<Message>
programme string

OnSiteChannel

Type:

OnSiteDisplayType

Type: string

Tags

Name Description
BroadcastGatewayV2