Retrieval Order Packages on Awaiting Payment Confirmation (getShipmentPackages)

Retrieval Order Packages on Awaiting Payment Confirmation

You can get the information of every order that you have sent to the Trendyol system and the orders that are placed by the customers after the boutique after the boutique and that are under the control of payment. After the payment check 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

https://api.trendyol.com/sapigw/suppliers/{supplierid}/orders?status=Awaiting

Parameter Parameter Value Explanation Type
startDate It fetches the next orders from a specific date. Must be sent as Timestamp long
endDate It fetches orders up to the specified date. Must be sent as Timestamp. long
page Only return information on the specified page int
size Specifies the maximum number to list on a page. int
supplierId ID information of the relevant supplier should be sent long
orderNumber Only a specific order number is given to bring that order's information string
status Created, Picking, Invoiced, Shipped, Cancelled, Delivered, UnDelivered, Returned, Repack, UnSupplied Fetchs the information according to the status of orders. string
orderByField PackageLastModifiedDate Based on the last update date. string
orderByField CreatedDate Based on the order creation date. string
orderByDirection ASC Sorts from old to new. string
orderByDirection DESC Sorts from new to old. string
shipmentPackageIds Trendyol shipmentPackageIds long


Statü Açıklama
orderDate When the customer creates the order on trendyol.com.
Awaiting It 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.)

Örnek Servis Cevabı

{
    "page": 0,
    "size": 50,
    "totalPages": 1,
    "totalElements": 1,
    "content": [
        {
            "shipmentAddress": {
                "id": 0,
                "firstName": "***",
                "lastName": "***",
                "address1": "***",
                "address2": "***",
                "city": "***",
                "cityCode": 0,
                "district": "***",
                "districtId": 0,
                "postalCode": "***",
                "countryCode": "***",
                "phone": "***",
                "fullAddress": "*** *** *** ***",
                "fullName": "*** ***"
            },
            "orderNumber": "252647418",
            "grossAmount": 55.95,
            "totalDiscount": 0.00,
            "taxNumber": "***",
            "invoiceAddress": {
                "id": 0,
                "firstName": "***",
                "lastName": "***",
                "company": "",
                "address1": "***",
                "address2": "***",
                "city": "***",
                "cityCode": 0,
                "district": "***",
                "districtId": 0,
                "postalCode": "***",
                "countryCode": "***",
                "phone": "***",
                "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
                }
            ],
            "orderDate": 1583327549228,
            "tcIdentityNumber": "99999999999",
            "currencyCode": "TRY",
            "packageHistories": [
                {
                    "createdDate": 0,
                    "status": "Awaiting"
                }
            ],
            "shipmentPackageStatus": "Approved",
            "deliveryType": "normal",
            "estimatedDeliveryStartDate": 1583392349000,
            "estimatedDeliveryEndDate": 1583824349000,
            "totalPrice": 55.95
        }
    ]
}