Khởi tạo Journey Token
Body
oa_idstring · int64Optional
phonestringOptional
Responses
200
A successful response
application/json
post
/v1/shop.Zalo/CreateJourneyPOST /v1/shop.Zalo/CreateJourney HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 31
{
"oa_id": "text",
"phone": "text"
}200
A successful response
{
"created_at": "2025-12-06T03:54:32.848Z",
"error_code": 1,
"error_message": "text",
"expired_at": "2025-12-06T03:54:32.848Z",
"id": "text",
"is_charged": true,
"journey_id": "text",
"journey_token": "text",
"phone": "text",
"status": "Z",
"updated_at": "2025-12-06T03:54:32.848Z"
}Request:
curl --location '$BASE_URL/v1/shop.Zalo/CreateJourney' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer $API_KEY' \
--data '{
"oa_id": "<int64>",
"phone": "<string>"
}'Response:
{
"created_at": "2019-08-24T14:15:22Z",
"error_code": 0,
"error_message": "string",
"expired_at": "2019-08-24T14:15:22Z",
"id": "string",
"is_charged": true,
"journey_id": "string",
"journey_token": "string",
"phone": "string",
"status": "Z",
"updated_at": "2019-08-24T14:15:22Z"
}Cấu trúc body của request
Tham số
Kiểu dữ liệu
Mô tả
oa_id
int64
ID của OA
phone
string
Số điện thoại của người nhận.
Lưu ý: SĐT phải được liên kết với tài khoản Zalo
Cấu trúc thuộc tính dữ liệu trả về
Tham số
Kiểu dữ liệu
Mô tả
id
int64
ID của journey trên hệ thống của SenCloud
journey_id
string
ID của journey
journey_token
string
Mã hành trình được kích hoạt
expires_at
string<date-time>
Thời gian hết hạn
phone
string
Số điện thoại người nhận
status
string
Trạng thái
Z: Mới tạo
P: Enable
N: Disable
error_code
int
Mã lỗi
error_message
string
Thông tin lỗi
is_charged
bool
Tính phí hay không tính phí
updated_at
string<date-time>
Thời gian cập nhật
created_at
string<date-time>
Thời gian tạo
Last updated