Skip to main content

Get Parcel for Customer

Overview

{
"name": "Get Parcel",
"route": "GET /customer/parcel/:id",
"description": "Find a parcel for a customer using its id.",
"parameters": [
{
"name": "id",
"type": "string",
"description": "Parcel ID",
"required": true
}
],
"body": null,
"response": {
"success": {
"code": 200,
"description": "Returns the parcel object including related media"
},
"error": [
{
"code": 400,
"description": "Bad Request - Invalid id"
},
{
"code": 401,
"description": "Unauthorized - User is not authenticated"
},
{
"code": 403,
"description": "Forbidden - User does not have permission to access this resource"
},
{
"code": 404,
"description": "Not Found - Parcel not found or doesn't belong to the customer"
}
]
},
"notes": [
"This endpoint requires authentication (InternalGuard and AuthorizationGuard)."
]
}