Skip to content

Cancel the Bulk processing

PUT
/bulks/{id}/cancel

Cancel Bulk’s processing if it has status_code = 0 (New) or status_code = 5 and related to the Bulk messages with is_sent = False

id
required

Unique entity UUID

string
/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/

Bulk ID

Bulks resource updated

Bulk SMS status summary (JSON-LD)

object
@id

JSON-LD ID

string
@type

JSON-LD type

string
uuid

Unique entity UUID

string
/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/
delivery_at

Scheduled delivery timestamp

integer
sender_id

Sender-ID of the message. Can be a number (up to 15 digits) or a text (up to 11 character). In case of a number please use preferentially E.164 phone number format. A sender of text may contain spaces but no other special characters. Please note that some countries do not support own sender IDs or do require pre-registration. Our system automatically tries to detect whether a sender ID is a text or a phone number. Avoid special characters in a number and enter it the same way as it would be dialed on a phone.

For voice messages (text2speech, text2speech_ssml): if sender_id does not conform to E.164 format (e.g., missing leading +, non-digit characters), the message will be sent from the system default number +493075435114. Some downstream telephony providers may override or not respect the user-defined sender number — the actual caller ID presented to the recipient depends on provider capabilities.

string
/^(\+?[1-9]\d{0,14}|[a-zA-Z0-9 ]{1,11})$/
status_code

Bulk’s status:

  • 0 - new and not processed
  • 5 - bulks in progress
  • 10 - bulks was successfully processed
  • 15 - bulk’s processing was canceled by the user
  • 20 - system error
  • 201 - error: no recipients found
integer
Allowed values: 0 5 10 15 20 201
msg_total_count

Count of the messages created by the bulk

integer
created_at

Timestamp when the entity was added to the system by the user

integer
processed_at

Timestamp of last changes

integer | null
ip

IP address of the host which sent request

string format: ipv4
is_unicode

True if message contains Unicode characters, False otherwise

boolean | null
is_dryrun

Type of the bulk ‘dryrun’ or not

boolean
callback_data

String which will be send back to your endpoint. E.g. it can be usable to pass your system message id.

string | null
<= 36 characters
service_code

Service or gateway code

Allowed values: direct text2speech text2speech_ssml
key_id
One of:

API key identifier

integer
>= 1
source

Message source or origin

integer | null
voice_lang

Voice message language. Possible values: null (auto-detection) or one of: EN (English), DE (German), FR (French), IT (Italian), ES (Spanish), PL (Polish), NL (Dutch), RO (Romanian), PT (Portuguese), CS (Czech), HU (Hungarian), SV (Swedish), DA (Danish), FI (Finnish), SK (Slovak), HR (Croatian), TR (Turkish), RU (Russian), BG (Bulgarian), UK (Ukrainian).

string | null
Allowed values: EN DE FR IT ES PL NL RO PT CS HU SV DA FI SK HR TR RU BG UK
is_text_deleted

True if message text was deleted, False otherwise

boolean
msg_total_cost

Cost of the messages created by the bulk

number
requests

URL to get the list of the bulk’s messages requests

string format: iri-reference
Example
{
"sender_id": "+491701234567",
"status_code": 0,
"ip": "192.168.1.1",
"service_code": "direct",
"voice_lang": "EN"
}

Invalid input

Client ID or API key isn’t active or invalid!

Account isn’t activated. Please wait or contact to support!

Resource not found

The request was well-formed but was unable to be followed due to semantic errors

IP address was temporary blocked, because during short time from it was sent many request with invalid credentials. Please wait and try later.

Code Samples

#!/usr/bin/env bash
curl -X PUT https://api.lox24.eu/bulks/da0fa78c-4699-11ea-a637-96000028b339/cancel \
-H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx'