Get Order Packages on Awaiting Confirmation (getShipmentPackages)

Get Order Packages on Awaiting Confirmation

With the help of this method, you can receive your orders that are going through payment security and whose cargo information is expected from the cargo company. After the payment control and the cargo information are completed by the system, the order packages are created by automatic packaging.

  1. You can use Awaiting status orders only stock controlling.
  2. Orders that passed the payment check will return to you in Created status.
  3. Orders that not passed the payment check will return to you in Cancelled status.

GET getShipmentPackages

Service Parameters

ParameterParameter ValueExplanationType
startDateIt fetches the next orders from a specific date. Must be sent as Timestamplong
endDateIt fetches orders up to the specified date. Must be sent as Timestamp.long
pageOnly return information on the specified pageint
sizeSpecifies the maximum number to list on a page.int
supplierIdID information of the relevant supplier should be sentlong
orderNumberOnly a specific order number is given to bring that order's informationstring
statusCreated, Picking, Invoiced, Shipped, Cancelled, Delivered, UnDelivered, Returned, Repack, UnSuppliedFetchs the information according to the status of orders.string
orderByFieldPackageLastModifiedDateBased on the last update date.string
orderByFieldCreatedDateBased on the order creation date.string
orderByDirectionASCSorts from old to new.string
orderByDirectionDESCSorts from new to old.string
shipmentPackageIdsTrendyol shipmentPackageIdslong

Order Status

StatüAçıklama
orderDateWhen the customer creates the order on trendyol.com.
AwaitingIt returns when the payment is waiting the confirm. (You should not take any action until these orders with this status change to "Created" status. You can use this status only for stock updates.)

Sample Service Response

{
    "page": 0,
    "size": 50,
    "totalPages": 1,
    "totalElements": 1,
    "content": [
        {
            "shipmentAddress": {
                "id": 0,
                "firstName": "***",
                "lastName": "***",
                "address1": "***",
                "address2": "***",
                "addressLines": {
                    "addressLine1": "xxx",
                    "addressLine2": "xxx"
                },
                "city": "***",
                "cityCode": 0,
                "district": "***",
                "districtId": 0,
                "countyId": 0, //eligible for the cee region
                "countyName": "***", //eligible for the cee region
                "shortAddress": "***", //eligible for the gulf region
                "stateName": "***", //eligible for the gulf region
                "postalCode": "***",
                "countryCode": "***",
                "phone": "***",
                "latitude": "***",
                "longitude": "***",
                "fullAddress": "*** *** *** ***",
                "fullName": "*** ***"
            },
            "orderNumber": "252647418",
            "grossAmount": 55.95,
            "totalDiscount": 0.00,
            "taxNumber": "***",
            "invoiceAddress": {
                "id": 0,
                "firstName": "***",
                "lastName": "***",
                "company": "",
                "address1": "***",
                "address2": "***",
                "addressLines": {
                    "addressLine1": "xxx",
                    "addressLine2": "xxx"
                },
                "city": "***",
                "cityCode": 0,
                "district": "***",
                "districtId": 0,
                "countyId": 0, //eligible for the cee region
                "countyName": "***", //eligible for the cee region
                "shortAddress": "***", //eligible for the gulf region
                "stateName": "***", //eligible for the gulf region
                "postalCode": "***",
                "countryCode": "***",
                "phone": "***",
                "latitude": "***",
                "longitude": "***",
                "fullAddress": "*** *** *** ***",
                "fullName": "*** ***"
            },
            "customerFirstName": "***",
            "customerEmail": "***",
            "customerId": 0,
            "customerLastName": "***",
            "id": 0,
            "cargoTrackingNumber": 0,
            "cargoProviderName": "***",
            "lines": [
                {
                    "quantity": 1,
                    "productId": 197197197,
                    "salesCampaignId": 111111,
                    "productSize": "L",
                    "merchantSku": "merchantSku",
                    "productName": "Kadın Siyah Pantolon",
                    "productCode": 554554554,
                    "amount": 55.95,
                    "discount": 0,
                    "discountDetails": [
                        {
                            "lineItemPrice": 55.95,
                            "lineItemDiscount": 0
                        }
                    ],
                    "currencyCode": "TRY",
                    "productColor": "SIYAH",
                    "id": 444444444,
                    "sku": "skue",
                    "vatBaseAmount": 8.0,
                    "barcode": "6000001036071",
                    "orderLineItemStatusName": "Approved",
                    "price": 55.95
                    "productCategoryId": 11111,
                    "laborCost": 11.11,
                    "commission": 9
                }
            ],
            "orderDate": 1583327549228,
            "identityNumber": "0000000000000",
            "currencyCode": "TRY",
            "packageHistories": [
                {
                    "createdDate": 0,
                    "status": "Awaiting"
                }
            ],
            "shipmentPackageStatus": "Approved",
            "deliveryType": "normal",
            "estimatedDeliveryStartDate": 1583392349000,
            "estimatedDeliveryEndDate": 1583824349000,
            "totalPrice": 55.95,
            "cargoDeci": 0,
            "isCod": false,
            "createdBy": "",
            "originPackageIds": null,
            "whoPays": null,
            "hsCode": ""
        }
    ]
}