GET
/api/v1/customer/swag-shop/purchases/{id}/tracking
This API method will return the purchases made by the logged in customer.
Request Parameters
None Required
Sample Response
{
"status": true,
"last_message": "Delivered, In\/At Mailbox",
"last_message_time": "2017-10-01 12:06:00",
"tracking_number": "15822899220282599558",
"status_id": 2,
"status_name": "Shipping \/ In-Progress",
"provider_id": 2,
"provider_name": "USPS",
"items": [
{
"time": "2017-10-01 12:06:00",
"data": "Delivered, In\/At Mailbox",
"location": "New York, NY"
},
{
"time": "2017-10-01 05:58:00",
"data": "Arrived at Post Office",
"location": "New York, NY"
},
{
"time": "2017-09-30 06:03:00",
"data": "Departed USPS Regional Facility",
"location": "Great Falls, NY"
},
{
"time": "2017-09-28 18:34:00",
"data": "Arrived at USPS Regional Origin Facility",
"location": "Great Falls, NY"
},
{
"time": "2018-09-27 17:19:00",
"data": "Accepted at USPS Origin Facility",
"location": "Boulder, Colorado"
},
{
"time": "2018-09-27 16:15:00",
"data": "Shipping Label Created, USPS Awaiting Item",
"location": "Boulder, Colorado"
}
]
}{
"status": false,
"message": "This purchase record is not yours"
}{
"status": false,
"message": "Cannot track purchase. The purchase is not in the shipping status"
}{
"status": false,
"message": "Tracking number not yet provided"
}{
"status": false,
"message": "Invalid shipping provider attached to purchase record"
}{
"status": false,
"message": "Tracking info could not be found for this purchase"
}{
"status": false,
"message": "Purchase record could not be found"
}