Chilkat Online Tools

VBScript / Shopify / Cancel a fulfillment.

Back to Collection Items

Dim fso, outFile
Set fso = CreateObject("Scripting.FileSystemObject")
'Create a Unicode (utf-16) output text file.
Set outFile = fso.CreateTextFile("output.txt", True, True)

' This example assumes the Chilkat API to have been previously unlocked.
' See Global Unlock Sample for sample code.

set http = CreateObject("Chilkat.Http")

http.SetRequestHeader "Content","<>"

set resp = CreateObject("Chilkat.HttpResponse")
success = http.HttpNoBody("POST","httpsDefaultParameterValue:DefaultParameterValue@DefaultParameterValue.myshopify.com/admin/orders/4528049998/fulfillments/3770145678/cancel.json",resp)
If (success = 0) Then
    outFile.WriteLine(http.LastErrorText)
    WScript.Quit
End If

outFile.WriteLine(resp.StatusCode)
outFile.WriteLine(resp.BodyStr)

outFile.Close

Curl Command

curl -X POST
	-H "Content: <>"
httpsDefaultParameterValue:DefaultParameterValue@DefaultParameterValue.myshopify.com/admin/orders/4528049998/fulfillments/3770145678/cancel.json

Postman Collection Item JSON

{
  "name": "Cancel a fulfillment.",
  "request": {
    "method": "POST",
    "header": [
      {
        "key": "Content",
        "value": "<>"
      }
    ],
    "url": {
      "raw": "{{baseUrl}}/admin/orders/4528049998/fulfillments/3770145678/cancel.json",
      "host": [
        "{{baseUrl}}"
      ],
      "path": [
        "admin",
        "orders",
        "4528049998",
        "fulfillments",
        "3770145678",
        "cancel.json"
      ]
    },
    "description": "Cancel a fulfillment.."
  },
  "response": [
  ]
}