Skip to content

Instantly share code, notes, and snippets.

@garikKalash
Last active December 3, 2020 19:49
Show Gist options
  • Save garikKalash/755e73f1f6fb82494aaaf00204797956 to your computer and use it in GitHub Desktop.
Save garikKalash/755e73f1f6fb82494aaaf00204797956 to your computer and use it in GitHub Desktop.
Parcels fast scan contract

#Parcels fast scan

PUT /api/shipping/parcels/track/{trackNumber}

Finds and makes parcel shipped via track number.

  • URL Params
    Required: trackNumber=[string]
  • Data Params
    None
  • Headers
    Content-Type: application/json
    Authorization: Bearer <API Token>
  • Success Response:
    Code: 200
    Content: {message: "Parcel Marked As Shipped"}
  • Error Response:
    • Code: 404
      Content: { error : "Parcel is not found" }
    • Code: 400
      Content: { error : "Label was voided" }
    • Code: 409
      Content: { error : "Parcel or Invoice Already Shipped" }
    • Code: 401
      Content: { error : "Bearer token is required" }
    • Code: 403
      Content: { error : "Please fill token in the settings also" }
    • Code: 403
      Content: { error : "Invalid auth token" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment