Lấy dữ liệu mẫu của template

HTTP request

URL: https://zns.api.gobysend.com/api/template/sample-data Method: GET Content Type: application/json Response Type: application/json

Example request

curl
-X GET
-H "Content-Type: application/json"
"https://zns.api.gobysend.com/api/template/sample-data?template_id=12345"

Tham số header

Tham số

Kiểu dữ liệu

Tính bắt buộc

Mô tả

string

yes

Đoạn mã cần truyền vào để xác minh quyền sử dụng API. Xem thêm tài liệu tham khảo

Tham số

Tham số

Kiểu dữ liệu

Tính bắt buộc

Mô tả

template_id

string

yes

ID của template cần lấy thông tin.

Example response

{
   "message": "Success",
   "data": {
       "balance_debt": 2000,
       "due_date": "01/01/1970",
       "number_debt": 2000,
       "customer_name": "customer_name_sample"
   },
   "error": 0
}

Cấu trúc respond

Thuộc tính

Kiểu dữ liệu

Mô tả

data

object

Chứa tham số và dữ liệu mẫu của template bạn cần truy xuất.

Last updated