Create OA authorization link

This API is used to get the OA authorization path for the application (app).

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.

Request:

curl --location '$BASE_URL.Zalo/AuthorizeOA' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer $API_KEY' \
--data '{
  "app_id": "int64",
  "app_secret": "string",
  "redirect_uri": "string"
}'

Response:

{
  "url": "string"
}

Request body structure

Parameters
Data type
Describe

app_id

int64

Application ID

app_secret

string

Application secret key

redirects

string

Return data attribute structure

Parameters
Data type
Describe

url

string

OA authorization link for the application

Last updated