Python / Shopify / Updating a customers postal code
Back to Collection Items
import sys
import chilkat2
# This example assumes the Chilkat API to have been previously unlocked.
# See Global Unlock Sample for sample code.
http = chilkat2.Http()
http.SetRequestHeader("Content","<>")
# resp is a CkHttpResponse
resp = http.QuickRequest("PUT","httpsDefaultParameterValue:DefaultParameterValue@DefaultParameterValue.myshopify.com/admin/customers/3989659651/addresses/5484465742.json")
if (http.LastMethodSuccess == False):
print(http.LastErrorText)
sys.exit()
print(str(resp.StatusCode))
print(resp.BodyStr)
Curl Command
curl -X PUT
-H "Content: <>"
httpsDefaultParameterValue:DefaultParameterValue@DefaultParameterValue.myshopify.com/admin/customers/3989659651/addresses/5484465742.json
Postman Collection Item JSON
{
"name": "Updating a customers postal code",
"request": {
"method": "PUT",
"header": [
{
"key": "Content",
"value": "<>"
}
],
"url": {
"raw": "{{baseUrl}}/admin/customers/3989659651/addresses/5484465742.json",
"host": [
"{{baseUrl}}"
],
"path": [
"admin",
"customers",
"3989659651",
"addresses",
"5484465742.json"
]
},
"description": "Updating a customers postal code."
},
"response": [
]
}