Journey Token Creation

Note:

  • For APIs used for Shop, the API key is: <api_key>. The base_url information of the Shop.

  • For APIs used for Partner, the API key is: <shop_key>. The base_url information of the Partner.

CreateJourney

post
Body
oa_idstring · int64Optional
phonestringOptional
token_typestring · enumOptionalPossible values:
Responses
200

A successful response

application/json
post
$BASE_URL.Zalo/CreateJourney
200

A successful response

Request:

Response:

Request body structure

Parameters
Data type
Describe

oa_id

require

int64

OA ID

phone

require

string

Recipient's phone number.

Note: Phone number must be linked to Zalo account

token_type

string (uqTokenType) Enum

" unknown" " token_logistics_7" token_logistics_30" " token_coach_bus_7" " token_coach_bus_30" If no token_type is passed the default istoken_logistics_7

Return data attribute structure

Parameters
Data type
Describe

id

int64

Journey ID on eTelecom system

journey_id

string

Journey ID

journey_token

string

Trip code activated

expires_at

string<date-time>

Expiration time

phone

string

Recipient phone number

status

string

Status

Z: Newly created

P: Enable

N: Disable

error_code

int

Error code

error_message

string

Error information

is_charged

bool

To charge or not to charge

updated_at

string<date-time>

Update time

created_at

string<date-time>

Creation time

Last updated