跳转到内容

购买说明

使用采购订单说明根据您的观察添加附加信息,包括技术信息,到特定的采购订单中。

属性

id (long)
用于唯一标识说明的标识符

id (long)
用于唯一标识说明的标识符

示例

234759602834500

description (html)
包含说明的描述 

description (html)
包含说明的描述 

示例

<b>The content to be displayed</b>

notify_to (notify_to)
包含要通知的用户列表

notify_to (notify_to)
包含要通知的用户列表

示例

{
  "notify_to": {
    "to": [
      "test@zmail.com"
    ]
  }
}

attachments (attachment)
表示说明的附件。

attachments (attachment)
表示说明的附件。

示例

{
  "attachments": [
    {
      "file_id": "1004"
    }
  ]
}

performed_by (user)read only
表示创建说明的用户

performed_by (user)
表示创建说明的用户

performed_time (datetime)read only
表示说明的创建时间

performed_time (datetime)
表示说明的创建时间

添加购买说明

使用此操作添加说明

必填字段 :- description

Url

<service domain|custom domain>/app/<portal>/api/v3/purchase_orders/{purchaseorder_id}/notes

属性

id (long)
用于唯一标识说明的标识符

id (long)
用于唯一标识说明的标识符

示例

234759602834500

description (html)
包含说明的描述 

description (html)
包含说明的描述 

示例

<b>The content to be displayed</b>

summary (note_summary)
无描述

summary (note_summary)

notify_to (notify_to)
包含要通知的用户列表

notify_to (notify_to)
包含要通知的用户列表

示例

{
  "notify_to": {
    "to": [
      "test@zmail.com"
    ]
  }
}

mentions (user)
无描述

mentions (user)

attachments (attachment)
表示说明的附件。

attachments (attachment)
表示说明的附件。

示例

{
  "attachments": [
    {
      "file_id": "1004"
    }
  ]
}

更多属性 全部展开

performed_by (user)read only

表示创建说明的用户

performed_by (user)
表示创建说明的用户

performed_time (datetime)read only

表示说明的创建时间

performed_time (datetime)
表示说明的创建时间

$ curl <service domain|custom domain>/app/<portal>/api/v3/purchase_orders/{purchaseorder_id}/notes\
      -X POST\
      -H "Accept: application/vnd.manageengine.sdp.v3+json"\
      -H "Authorization: Zoho-oauthtoken 1000.7xxx98976ab0xxxxxx19901e7551be57.bxxxx921ed64c04f79622bebcfxxxxxx"\
      -H "Content-Type: application/x-www-form-urlencoded"\
      -d input_data='{
  "note": {
    "description": "Purchase Order Conversation Notes",
    "notify_to": {
      "users": [
        {
          "id": "2000000040351",
          "name": "SDPCloud"
        }
      ]
    },
    "attachments": [
      {
        "file_id": "3"
      }
    ]
  }
}'
// Deluge Sample script
url = "<service domain|custom domain>/app/<portal>/api/v3/purchase_orders/{purchaseorder_id}/notes";
headers = {"Accept":"application/vnd.manageengine.sdp.v3+json",
           "Content-Type": "application/x-www-form-urlencoded",
           "Authorization": "Zoho-oauthtoken 1000.7xxx98976ab0xxxxxx19901e7551be57.bxxxx921ed64c04f79622bebcfxxxxxx"};
input_data = {
  "note": {
    "description": "Purchase Order Conversation Notes",
    "notify_to": {
      "users": [
        {
          "id": "2000000040351",
          "name": "SDPCloud"
        }
      ]
    },
    "attachments": [
      {
        "file_id": "3"
      }
    ]
  }
};
params = {"input_data": input_data};
response = invokeurl
[
    url: url
    type: POST
    parameters: params
    headers: headers
];
info response;
#Powershell version - 5.1
$url = "<service domain|custom domain>/app/<portal>/api/v3/purchase_orders/{purchaseorder_id}/notes"
$headers = @{ "Accept" = "application/vnd.manageengine.sdp.v3+json"
    "Authorization" = "Zoho-oauthtoken 1000.7xxx98976ab0xxxxxx19901e7551be57.bxxxx921ed64c04f79622bebcfxxxxxx"
    "Content-Type" = "application/x-www-form-urlencoded"}
$input_data = @'
{
  "note": {
    "description": "Purchase Order Conversation Notes",
    "notify_to": {
      "users": [
        {
          "id": "2000000040351",
          "name": "SDPCloud"
        }
      ]
    },
    "attachments": [
      {
        "file_id": "3"
      }
    ]
  }
}
'@
$data = @{ 'input_data' = $input_data}
$response = Invoke-RestMethod -Uri $url -Method post -Body $data -Headers $headers
$response
#Python version - 3.10
from urllib.error import HTTPError
from urllib.parse import urlencode
from urllib.request import urlopen,Request

url = "<service domain|custom domain>/app/<portal>/api/v3/purchase_orders/{purchaseorder_id}/notes"
headers ={"Accept": "application/vnd.manageengine.sdp.v3+json", 
          "Authorization" : "Zoho-oauthtoken 1000.7xxx98976ab0xxxxxx19901e7551be57.bxxxx921ed64c04f79622bebcfxxxxxx", 
          "Content-Type" : "application/x-www-form-urlencoded"}
input_data = '''{
  "note": {
    "description": "Purchase Order Conversation Notes",
    "notify_to": {
      "users": [
        {
          "id": "2000000040351",
          "name": "SDPCloud"
        }
      ]
    },
    "attachments": [
      {
        "file_id": "3"
      }
    ]
  }
}'''
data = urlencode({"input_data":input_data}).encode()
httprequest = Request(url, headers=headers,data=data, method="POST")
try:
    with urlopen(httprequest) as response:
        print(response.read().decode())
except HTTPError as e:
    print(e.read().decode())
{
    "note": {
        "attachments": [
            {
                "size": "14842",
                "content_type": "text/html",
                "file_id": "7",
                "name": "purchase.txt",
                "content_url": "/purchase_orders/2000000040511/notes/2000000040537/_uploads/3",
                "id": "2000000040549"
            }
        ],
        "performed_by": {
            "email_id": "test@zylker.com",
            "is_technician": true,
            "sms_mail": null,
            "mobile": null,
            "last_name": "T8779",
            "user_scope": "internal_user",
            "sms_mail_id": null,
            "cost_per_hour": "0",
            "site": {
                "deleted": false,
                "name": "Base Site",
                "id": "2000000006824",
                "is_default": true
            },
            "phone": "",
            "employee_id": null,
            "name": "SDPCloud",
            "id": "2000000040351",
            "photo_url": "https://test-photo_url",
            "is_vip_user": false,
            "department": null,
            "first_name": "Test",
            "job_title": null
        },
        "description": "Purchase Order Conversation Notes",
        "id": "2000000040537",
        "performed_time": {
            "display_value": "Jan 22, 2025 11:48 AM",
            "value": "1737526736065"
        }
    },
    "response_status": {
        "status_code": 2000,
        "status": "success"
    }
}

编辑购买说明

使用此操作编辑备注

Url

<service domain|custom domain>/app/<portal>/api/v3/purchase_orders/{purchaseorder_id}/notes/{notes_id}

属性

id (long)
用于唯一标识说明的标识符

id (long)
用于唯一标识说明的标识符

示例

234759602834500

description (html)
包含说明的描述 

description (html)
包含说明的描述 

示例

<b>The content to be displayed</b>

summary (note_summary)
无描述

summary (note_summary)

notify_to (notify_to)
包含要通知的用户列表

notify_to (notify_to)
包含要通知的用户列表

示例

{
  "notify_to": {
    "to": [
      "test@zmail.com"
    ]
  }
}

mentions (user)
无描述

mentions (user)

attachments (attachment)
表示说明的附件。

attachments (attachment)
表示说明的附件。

示例

{
  "attachments": [
    {
      "file_id": "1004"
    }
  ]
}

更多属性 全部展开

performed_by (user)read only

表示创建说明的用户

performed_by (user)
表示创建说明的用户

performed_time (datetime)read only

表示说明的创建时间

performed_time (datetime)
表示说明的创建时间

$ curl <service domain|custom domain>/app/<portal>/api/v3/purchase_orders/{purchaseorder_id}/notes/{notes_id}\
      -X PUT\ 
      -H "Accept: application/vnd.manageengine.sdp.v3+json"\
      -H "Authorization: Zoho-oauthtoken 1000.7xxx98976ab0xxxxxx19901e7551be57.bxxxx921ed64c04f79622bebcfxxxxxx"\
      -H "Content-Type: application/x-www-form-urlencoded"\
      -d input_data='{
  "note": {
    "description": "Purchase Order -Zykler"
  }
}'
// Deluge Sample script
url = "<service domain|custom domain>/app/<portal>/api/v3/purchase_orders/{purchaseorder_id}/notes/{notes_id}";
headers = {"Accept":"application/vnd.manageengine.sdp.v3+json",
           "Content-Type": "application/x-www-form-urlencoded",
           "Authorization": "Zoho-oauthtoken 1000.7xxx98976ab0xxxxxx19901e7551be57.bxxxx921ed64c04f79622bebcfxxxxxx"};
input_data = {
  "note": {
    "description": "Purchase Order -Zykler"
  }
};
params = {"input_data": input_data};
response = invokeurl
[
    url: url
    type: PUT
    parameters: params
    headers: headers
];
info response;
#Powershell version - 5.1
$url = "<service domain|custom domain>/app/<portal>/api/v3/purchase_orders/{purchaseorder_id}/notes/{notes_id}"
$headers = @{"Accept": "application/vnd.manageengine.sdp.v3+json", 
          "Authorization" : "Zoho-oauthtoken 1000.7xxx98976ab0xxxxxx19901e7551be57.bxxxx921ed64c04f79622bebcfxxxxxx", 
          "Content-Type" : "application/x-www-form-urlencoded"}
$input_data = @'
{
  "note": {
    "description": "Purchase Order -Zykler"
  }
}
'@
$data = @{ 'input_data' = $input_data}
$response = Invoke-RestMethod -Uri $url -Method put -Body $data -Headers $headers
$response
#Python version - 3.10
from urllib.error import HTTPError
from urllib.parse import urlencode
from urllib.request import urlopen,Request

url = "<service domain|custom domain>/app/<portal>/api/v3/purchase_orders/{purchaseorder_id}/notes/{notes_id}"
headers ={"Accept": "application/vnd.manageengine.sdp.v3+json", 
          "Authorization" : "Zoho-oauthtoken 1000.7xxx98976ab0xxxxxx19901e7551be57.bxxxx921ed64c04f79622bebcfxxxxxx", 
          "Content-Type" : "application/x-www-form-urlencoded"}
input_data = '''{
  "note": {
    "description": "Purchase Order -Zykler"
  }
}'''
data = urlencode({"input_data":input_data}).encode()
httprequest = Request(url, headers=headers,data=data, method="PUT")
try:
    with urlopen(httprequest) as response:
        print(response.read().decode())
except HTTPError as e:
    print(e.read().decode())
{
    "note": {
        "attachments": [
            {
                "size": "14842",
                "content_type": "text/html",
                "file_id": "7",
                "name": "purchase.txt",
                "content_url": "/purchase_orders/2000000040511/notes/2000000040537/_uploads/7",
                "id": "2000000040549"
            }
        ],
        "performed_by": {
            "email_id": "test@zylker.com",
            "is_technician": true,
            "sms_mail": null,
            "mobile": null,
            "last_name": "T8779",
            "user_scope": "internal_user",
            "sms_mail_id": null,
            "cost_per_hour": "0",
            "site": {
                "deleted": false,
                "name": "Base Site",
                "id": "2000000006824",
                "is_default": true
            },
            "phone": "",
            "employee_id": null,
            "name": "SDPCloud",
            "id": "2000000040351",
            "photo_url": "https://test-photo_url",
            "is_vip_user": false,
            "department": null,
            "first_name": "Test",
            "job_title": null
        },
        "description": "Purchase Order Conversation Notes",
        "id": "2000000040537",
        "performed_time": {
            "display_value": "Jan 22, 2025 11:48 AM",
            "value": "1737526736065"
        }
    },
    "response_status": {
        "status_code": 2000,
        "status": "success"
    }
}

获取购买说明

使用此操作从采购订单获取备注

Url

<service domain|custom domain>/app/<portal>/api/v3/purchase_orders/{purchaseorder_id}/notes/{notes_id}

属性

id (long)
用于唯一标识说明的标识符

id (long)
用于唯一标识说明的标识符

示例

234759602834500

description (html)
包含说明的描述 

description (html)
包含说明的描述 

示例

<b>The content to be displayed</b>

summary (note_summary)
无描述

summary (note_summary)

notify_to (notify_to)
包含要通知的用户列表

notify_to (notify_to)
包含要通知的用户列表

示例

{
  "notify_to": {
    "to": [
      "test@zmail.com"
    ]
  }
}

mentions (user)
无描述

mentions (user)

attachments (attachment)
表示说明的附件。

attachments (attachment)
表示说明的附件。

示例

{
  "attachments": [
    {
      "file_id": "1004"
    }
  ]
}

更多属性 全部展开

performed_by (user)read only

表示创建说明的用户

performed_by (user)
表示创建说明的用户

performed_time (datetime)read only

表示说明的创建时间

performed_time (datetime)
表示说明的创建时间

$ curl -G <service domain|custom domain>/app/<portal>/api/v3/purchase_orders/{purchaseorder_id}/notes/{notes_id}\
      -X GET\
      -H "Accept: application/vnd.manageengine.sdp.v3+json"\
      -H "Authorization: Zoho-oauthtoken 1000.7xxx98976ab0xxxxxx19901e7551be57.bxxxx921ed64c04f79622bebcfxxxxxx"\
      -H "Content-Type: application/x-www-form-urlencoded"
// Deluge Sample script
url = "<service domain|custom domain>/app/<portal>/api/v3/purchase_orders/{purchaseorder_id}/notes/{notes_id}";
headers = {"Accept":"application/vnd.manageengine.sdp.v3+json",
           "Content-Type": "application/x-www-form-urlencoded",
           "Authorization": "Zoho-oauthtoken 1000.7xxx98976ab0xxxxxx19901e7551be57.bxxxx921ed64c04f79622bebcfxxxxxx"};          
response = invokeurl
[
    url: url
    type: GET
    headers: headers
];
info response;
#Powershell version - 5.1
$url = "<service domain|custom domain>/app/<portal>/api/v3/purchase_orders/{purchaseorder_id}/notes/{notes_id}"
$headers = @{ "Accept" = "application/vnd.manageengine.sdp.v3+json"
    "Authorization" = "Zoho-oauthtoken 1000.7xxx98976ab0xxxxxx19901e7551be57.bxxxx921ed64c04f79622bebcfxxxxxx"
    "Content-Type" = "application/x-www-form-urlencoded"}  
$response = Invoke-RestMethod -Uri $url -Method get -Headers $headers 
$response
#Python version - 3.8
#This script requires requests module installed in python.
from urllib.error import HTTPError
from urllib.parse import urlencode
from urllib.request import urlopen,Request

url = "<service domain|custom domain>/app/<portal>/api/v3/purchase_orders/{purchaseorder_id}/notes/{notes_id}"
headers ={"Accept": "application/vnd.manageengine.sdp.v3+json", 
          "Authorization" : "Zoho-oauthtoken 1000.7xxx98976ab0xxxxxx19901e7551be57.bxxxx921ed64c04f79622bebcfxxxxxx", 
          "Content-Type" : "application/x-www-form-urlencoded"}
httprequest = Request(url, headers=headers)
try:
    with urlopen(httprequest) as response:
        print(response.read().decode())
except HTTPError as e:
    print(e.read().decode())
{
    "note": {
        "attachments": [
            {
                "size": "14842",
                "content_type": "text/html",
                "file_id": "7",
                "name": "purchase.txt",
                "content_url": "/purchase_orders/2000000040511/notes/2000000040537/_uploads/7",
                "id": "2000000040549"
            }
        ],
        "performed_by": {
            "email_id": "test@zylker.com",
            "is_technician": true,
            "sms_mail": null,
            "mobile": null,
            "last_name": "T8779",
            "user_scope": "internal_user",
            "sms_mail_id": null,
            "cost_per_hour": "0",
            "site": {
                "deleted": false,
                "name": "Base Site",
                "id": "2000000006824",
                "is_default": true
            },
            "phone": "",
            "employee_id": null,
            "name": "SDPCloud",
            "id": "2000000040351",
            "photo_url": "https://test-photo_url",
            "is_vip_user": false,
            "department": null,
            "first_name": "Test",
            "job_title": null
        },
        "description": "Purchase Order Conversation Notes",
        "id": "2000000040537",
        "performed_time": {
            "display_value": "Jan 22, 2025 11:48 AM",
            "value": "1737526736065"
        }
    },
    "response_status": {
        "status_code": 2000,
        "status": "success"
    }
}

获取购买说明列表

使用此操作获取所有备注列表

Url

<service domain|custom domain>/app/<portal>/api/v3/purchase_orders/{purchaseorder_id}/notes

属性

id (long)
用于唯一标识说明的标识符

id (long)
用于唯一标识说明的标识符

示例

234759602834500

description (html)
包含说明的描述 

description (html)
包含说明的描述 

示例

<b>The content to be displayed</b>

summary (note_summary)
无描述

summary (note_summary)

notify_to (notify_to)
包含要通知的用户列表

notify_to (notify_to)
包含要通知的用户列表

示例

{
  "notify_to": {
    "to": [
      "test@zmail.com"
    ]
  }
}

mentions (user)
无描述

mentions (user)

attachments (attachment)
表示说明的附件。

attachments (attachment)
表示说明的附件。

示例

{
  "attachments": [
    {
      "file_id": "1004"
    }
  ]
}

更多属性 全部展开

performed_by (user)read only

表示创建说明的用户

performed_by (user)
表示创建说明的用户

performed_time (datetime)read only

表示说明的创建时间

performed_time (datetime)
表示说明的创建时间

$ curl -G <service domain|custom domain>/app/<portal>/api/v3/purchase_orders/{purchaseorder_id}/notes\
      -X GET\ 
      -H "Accept: application/vnd.manageengine.sdp.v3+json"\
      -H "Authorization: Zoho-oauthtoken 1000.7xxx98976ab0xxxxxx19901e7551be57.bxxxx921ed64c04f79622bebcfxxxxxx"\
      -H "Content-Type: application/x-www-form-urlencoded"\
      --data-urlencode input_data=''
// Deluge Sample script
url = "<service domain|custom domain>/app/<portal>/api/v3/purchase_orders/{purchaseorder_id}/notes";
headers = {"Accept":"application/vnd.manageengine.sdp.v3+json",
           "Content-Type": "application/x-www-form-urlencoded",
           "Authorization": "Zoho-oauthtoken 1000.7xxx98976ab0xxxxxx19901e7551be57.bxxxx921ed64c04f79622bebcfxxxxxx"};
input_data = ;
params = {"input_data":input_data};           
response = invokeurl
[
    url: url
    type: GET
    parameters:params
    headers: headers
];
info response;
#Powershell version - 5.1
$url = "<service domain|custom domain>/app/<portal>/api/v3/purchase_orders/{purchaseorder_id}/notes"
$headers = @{ "Accept" = "application/vnd.manageengine.sdp.v3+json"
    "Authorization" = "Zoho-oauthtoken 1000.7xxx98976ab0xxxxxx19901e7551be57.bxxxx921ed64c04f79622bebcfxxxxxx"
    "Content-Type" = "application/x-www-form-urlencoded"}
$input_data = @''@
$data = @{ 'input_data' = $input_data}    
$response = Invoke-RestMethod -Uri $url -Method get -Body $data -Headers $headers 
$response
#Python version - 3.8
#This script requires requests module installed in python.
from urllib.error import HTTPError
from urllib.parse import urlencode
from urllib.request import urlopen,Request

url = "<service domain|custom domain>/app/<portal>/api/v3/purchase_orders/{purchaseorder_id}/notes"
headers ={"Accept": "application/vnd.manageengine.sdp.v3+json", 
          "Authorization" : "Zoho-oauthtoken 1000.7xxx98976ab0xxxxxx19901e7551be57.bxxxx921ed64c04f79622bebcfxxxxxx", 
          "Content-Type" : "application/x-www-form-urlencoded"}
input_data = ''''''       
url += "?" + urlencode({"input_data":input_data})
httprequest = Request(url, headers=headers)
try:
    with urlopen(httprequest) as response:
        print(response.read().decode())
except HTTPError as e:
    print(e.read().decode())
{
    "notes": [
        {
            "performed_by": {
                "email_id": "test@zylker.com",
                "is_technician": true,
                "sms_mail": null,
                "mobile": null,
                "last_name": "T8779",
                "user_scope": "internal_user",
                "sms_mail_id": null,
                "cost_per_hour": "0",
                "site": {
                    "deleted": false,
                    "name": "Base Site",
                    "id": "2000000006824",
                    "is_default": true
                },
                "phone": "",
                "employee_id": null,
                "name": "SDPCloud",
                "id": "2000000040351",
                "photo_url": "https://test-photo_url",
                "is_vip_user": false,
                "department": null,
                "first_name": "Test",
                "job_title": null
            },
            "description": "Purchase Order Conversation Notes",
            "id": "2000000040523",
            "performed_time": {
                "display_value": "Jan 22, 2025 11:46 AM",
                "value": "1737526612426"
            }
        },
        {
            "performed_by": {
                "email_id": "test@zylker.com",
                "is_technician": true,
                "sms_mail": null,
                "mobile": null,
                "last_name": "T8779",
                "user_scope": "internal_user",
                "sms_mail_id": null,
                "cost_per_hour": "0",
                "site": {
                    "deleted": false,
                    "name": "Base Site",
                    "id": "2000000006824",
                    "is_default": true
                },
                "phone": "",
                "employee_id": null,
                "name": "SDPCloud",
                "id": "2000000040351",
                "photo_url": "https://test-photo_url",
                "is_vip_user": false,
                "department": null,
                "first_name": "Test",
                "job_title": null
            },
            "description": "Payment is due within 30 days of the invoice date. Late payments will incur a penalty of 2% per month.",
            "id": "2000000040537",
            "performed_time": {
                "display_value": "Jan 22, 2025 11:48 AM",
                "value": "1737526736065"
            }
        }
    ],
    "response_status": [
        {
            "status_code": 2000,
            "status": "success"
        }
    ],
    "list_info": {
        "has_more_rows": false,
        "row_count": 2
    }
}

删除购买说明

使用此操作从采购订单删除备注

Url

<service domain|custom domain>/app/<portal>/api/v3/purchase_orders/{purchaseorder_id}/notes/{notes_id}

$ curl <service domain|custom domain>/app/<portal>/api/v3/purchase_orders/{purchaseorder_id}/notes/{notes_id}\
      -X DELETE\ 
      -H "Accept: application/vnd.manageengine.sdp.v3+json"\
      -H "Authorization: Zoho-oauthtoken 1000.7xxx98976ab0xxxxxx19901e7551be57.bxxxx921ed64c04f79622bebcfxxxxxx"\
      -H "Content-Type: application/x-www-form-urlencoded"
// Deluge Sample script
url = "<service domain|custom domain>/app/<portal>/api/v3/purchase_orders/{purchaseorder_id}/notes/{notes_id}";
headers = {"Accept":"application/vnd.manageengine.sdp.v3+json",
           "Content-Type": "application/x-www-form-urlencoded",
           "Authorization": "Zoho-oauthtoken 1000.7xxx98976ab0xxxxxx19901e7551be57.bxxxx921ed64c04f79622bebcfxxxxxx"};
response = invokeurl
[
    url: url
    type: DELETE
    headers: headers
];
info response;
#Powershell version - 5.1
$url = "<service domain|custom domain>/app/<portal>/api/v3/purchase_orders/{purchaseorder_id}/notes/{notes_id}"
$headers = @{ "Accept" = "application/vnd.manageengine.sdp.v3+json"
    "Authorization" = "Zoho-oauthtoken 1000.7xxx98976ab0xxxxxx19901e7551be57.bxxxx921ed64c04f79622bebcfxxxxxx"
    "Content-Type" = "application/x-www-form-urlencoded"}
$response = Invoke-RestMethod -Uri $url -Method delete -Headers $headers
$response
#Python version - 3.10
from urllib.error import HTTPError
from urllib.request import urlopen,Request

url = "<service domain|custom domain>/app/<portal>/api/v3/purchase_orders/{purchaseorder_id}/notes/{notes_id}"
headers ={"Accept": "application/vnd.manageengine.sdp.v3+json", 
          "Authorization" : "Zoho-oauthtoken 1000.7xxx98976ab0xxxxxx19901e7551be57.bxxxx921ed64c04f79622bebcfxxxxxx", 
          "Content-Type" : "application/x-www-form-urlencoded"}
httprequest = Request(url, headers=headers,method="DELETE")
try:
    with urlopen(httprequest) as response:
        print(response.read().decode())
except HTTPError as e:
    print(e.read().decode())
{
  "response_status": {
    "status_code": 2000,
    "status": "success"
  }
}