Find by Consignment ID

This API allows you to query consignment details using the consignment ID.

Endpoint Information

Property Value
URL {{BASE_URL}}/api/v1/consignments/{consignment_id}/details
HTTP Method GET
Content Type application/json
Authentication APIKEY header
Rate Limit 6000 requests / 1 minute (sliding window)

Rate Limit Exceeded: When the limit is exceeded, the API returns a 429 Too Many Requests error. For details, see Rate Limit.


Request Parameters

URL Parameters

Parameter Type Required Description
consignment_id Integer REQUIRED Consignment ID

Example Usage

curl -X GET "{{BASE_URL}}/api/v1/consignments/632280/details" \
  -H "Content-Type: application/json" \
  -H "APIKEY: {{APIKEY}}"

API Response

Successful Response

{
    "status": true,
    "message": null,
    "data": {
        "id": 632280,
        "uuid": "3c1563eb-9afd-4eda-8c26-51174d805b08",
        "parent": null,
        "type": "NORMAL",
        "barcode": "C2H07238640094",
        "labels": [
            {
                "id": 149546,
                "provider": 1,
                "file_name": "label_GejlkH.pdf",
                "file_url": "http://localhost/api/v1/public-download/consignment-label/149546?_hash=...",
                "tracking_code": "1Z999AA10123456784",
                "label_type": 0,
                "tracking_type": 2,
                "package_id": 562353
            }
        ],
        "reference_no": "ORDER-2024-001",
        "ioss_number": null,
        "consignmentType": 0,
        "status": 1,
        "status_message": "Consignment sent to provider",
        "desi": 1.13,
        "weight": 5.4,
        "consignor": {
            "name": "Sender Company Inc.",
            "attention_name": "Sender Company Inc.",
            "country": "Turkey",
            "countryIso3": "TUR",
            "countryIso2": "TR",
            "state": "İstanbul",
            "state_code": null,
            "city": "Arnavutköy",
            "address": "Sample District, Sample Street No:28/A",
            "postal_code": "34277",
            "phone": "905386831394",
            "email": "consignor@example.com",
            "tax_number": null,
            "eori_number": null,
            "party_type": null
        },
        "consignee": {
            "name": "Recipient Name",
            "attention_name": "Recipient Name",
            "country": "Turkey",
            "countryIso3": "TUR",
            "countryIso2": "TR",
            "state": "Bursa",
            "state_code": null,
            "city": "Nilüfer",
            "address": "Sample District, Sample Street",
            "postal_code": "16285",
            "phone": "905386416672",
            "email": "consignee@example.com",
            "tax_number": null,
            "eori_number": null,
            "party_type": null
        },
        "warehouse_id": null,
        "consignee_id": null,
        "details": [
            {
                "status": 1,
                "status_name": "SENDED_TO_PROVIDER",
                "status_description": "Consignment sent to provider",
                "message": "Consignment sent to provider",
                "status_datetime": "2025-02-18 13:21:16",
                "location": null,
                "package_id": null
            }
        ],
        "packages": [
            {
                "id": 562353,
                "package_type": 1,
                "post_type": 4,
                "quantity": 1,
                "desi": 1.13,
                "weight": 5.4,
                "width": 20,
                "height": 15,
                "length": 10,
                "dangerous_goods": false,
                "current_status": 1,
                "current_status_message": "Consignment sent to provider",
                "order_number": "ORD-100245",
                "label_note": null,
                "items": [
                    {
                        "id": 150433,
                        "gtip": null,
                        "description": "Product Description",
                        "category": "Category",
                        "origin": "TR",
                        "currency": "USD",
                        "quantity": 1,
                        "unit_price": 8.03,
                        "merchant_product_id": null,
                        "manufacturer_product_id": null,
                        "standard_product_id": null
                    }
                ]
            }
        ],
        "documents": [],
        "special_service_fee": 0,
        "action_fee": 0,
        "tax_fee": 0,
        "total_cost": 120.96,
        "currency_code": "TRY",
        "currency_rate": 1,
        "export_declaration_number": null,
        "permissions": {
            "can_create_cn22": true,
            "can_create_cn23": true,
            "can_create_proforma_invoice": true,
            "can_send_to_provider_manually": false,
            "can_recheck_manually": false,
            "can_verify_package_size": false
        },
        "customer": {
            "id": 1,
            "customer_code": "1",
            "name": "Customer Name",
            "authorized_name": null
        },
        "user": {
            "id": 1,
            "firstname": "User",
            "lastname": "Name"
        },
        "provider": {
            "id": 1,
            "name": "Ptt",
            "logo": "http://localhost/uploads/provider_logos/ptt.png"
        },
        "special_services": [],
        "specific_shipping_method": null,
        "created_at": "2025-02-18 13:21:16",
        "updated_at": "2025-02-18 13:21:18",
        "drop_off_event_at": null,
        "return_status": null,
        "return_start_at": null,
        "return_start_event": {
            "id": null,
            "status": null,
            "original_status": null,
            "status_datetime": null
        }
    }
}

Error Responses

If the consignment is not found, the API returns the response below with the HTTP 404 status code. The message is in Turkish or English, based on the Accept-Language header.

{
    "status": false,
    "errors": [
        {
            "message": "Consignment not found"
        }
    ]
}