POST Trendyol/TestSaveOrder

Request Information

URI Parameters

None.

Body Parameters

TrendyolResult
NameDescriptionTypeAdditional information
totalCount

integer

None.

totalPages

integer

None.

page

integer

None.

size

integer

None.

content

Collection of TYContent

None.

Request Formats

application/json, text/json

Sample:
{
  "totalCount": 1,
  "totalPages": 2,
  "page": 3,
  "size": 4,
  "content": [
    {
      "id": "sample string 1",
      "supplierId": 2,
      "storeId": 3,
      "orderCode": "sample string 4",
      "deliveryType": "sample string 5",
      "packageCreationDate": 6.1,
      "packageModificationDate": 7,
      "preparationTime": 8,
      "orderId": "sample string 9",
      "orderNumber": "sample string 10",
      "totalPrice": 11.1,
      "callCenterPhone": "sample string 12",
      "customer": {
        "Id": 1.1,
        "FirstName": "sample string 2",
        "LastName": "sample string 3",
        "Email": "sample string 4"
      },
      "payment": {
        "paymentType": "sample string 1",
        "mealCard": {
          "cardSourceType": "sample string 1"
        },
        "onDelivery": {
          "paymentType": "sample string 1"
        }
      },
      "address": {
        "firstName": "sample string 1",
        "lastName": "sample string 2",
        "company": "sample string 3",
        "address1": "sample string 4",
        "address2": "sample string 5",
        "city": "sample string 6",
        "cityCode": 7.1,
        "cityId": 8,
        "district": "sample string 9",
        "districtId": 10,
        "neighborhoodId": 11.1,
        "neighborhood": "sample string 12",
        "apartmentNumber": "sample string 13",
        "floor": "sample string 14",
        "doorNumber": "sample string 15",
        "addressDescription": "sample string 16",
        "postalCode": "sample string 17",
        "countryCode": "sample string 18",
        "latitude": "sample string 19",
        "longitude": "sample string 20",
        "phone": "sample string 21"
      },
      "packageStatus": "sample string 13",
      "lines": [
        {
          "price": 1.1,
          "unitSellingPrice": 2.1,
          "items": [
            {
              "packageItemId": "sample string 1",
              "lineItemId": 2,
              "isCancelled": true,
              "coupon": {
                "couponId": "sample string 1",
                "amount": {
                  "seller": 1.1,
                  "trendyol": 1.1,
                  "total": 1.1
                },
                "sellerCoverageRatio": 2.1
              },
              "promotions": [
                {
                  "promotionId": 1,
                  "amount": {
                    "seller": 1.1,
                    "trendyol": 1.1,
                    "total": 1.1
                  },
                  "discountType": "sample string 2",
                  "sellerCoverageRatio": 3.1
                },
                {
                  "promotionId": 1,
                  "amount": {
                    "seller": 1.1,
                    "trendyol": 1.1,
                    "total": 1.1
                  },
                  "discountType": "sample string 2",
                  "sellerCoverageRatio": 3.1
                }
              ]
            },
            {
              "packageItemId": "sample string 1",
              "lineItemId": 2,
              "isCancelled": true,
              "coupon": {
                "couponId": "sample string 1",
                "amount": {
                  "seller": 1.1,
                  "trendyol": 1.1,
                  "total": 1.1
                },
                "sellerCoverageRatio": 2.1
              },
              "promotions": [
                {
                  "promotionId": 1,
                  "amount": {
                    "seller": 1.1,
                    "trendyol": 1.1,
                    "total": 1.1
                  },
                  "discountType": "sample string 2",
                  "sellerCoverageRatio": 3.1
                },
                {
                  "promotionId": 1,
                  "amount": {
                    "seller": 1.1,
                    "trendyol": 1.1,
                    "total": 1.1
                  },
                  "discountType": "sample string 2",
                  "sellerCoverageRatio": 3.1
                }
              ]
            }
          ],
          "productId": 3,
          "name": "sample string 4",
          "modifierProducts": [
            {
              "modifierGroupId": "sample string 1",
              "name": "sample string 2",
              "price": 3.1,
              "productId": "sample string 4"
            },
            {
              "modifierGroupId": "sample string 1",
              "name": "sample string 2",
              "price": 3.1,
              "productId": "sample string 4"
            }
          ],
          "extraIngredients": [
            {
              "id": "sample string 1",
              "name": "sample string 2",
              "price": 3.1
            },
            {
              "id": "sample string 1",
              "name": "sample string 2",
              "price": 3.1
            }
          ],
          "removedIngredients": [
            {
              "id": "sample string 1",
              "name": "sample string 2"
            },
            {
              "id": "sample string 1",
              "name": "sample string 2"
            }
          ]
        },
        {
          "price": 1.1,
          "unitSellingPrice": 2.1,
          "items": [
            {
              "packageItemId": "sample string 1",
              "lineItemId": 2,
              "isCancelled": true,
              "coupon": {
                "couponId": "sample string 1",
                "amount": {
                  "seller": 1.1,
                  "trendyol": 1.1,
                  "total": 1.1
                },
                "sellerCoverageRatio": 2.1
              },
              "promotions": [
                {
                  "promotionId": 1,
                  "amount": {
                    "seller": 1.1,
                    "trendyol": 1.1,
                    "total": 1.1
                  },
                  "discountType": "sample string 2",
                  "sellerCoverageRatio": 3.1
                },
                {
                  "promotionId": 1,
                  "amount": {
                    "seller": 1.1,
                    "trendyol": 1.1,
                    "total": 1.1
                  },
                  "discountType": "sample string 2",
                  "sellerCoverageRatio": 3.1
                }
              ]
            },
            {
              "packageItemId": "sample string 1",
              "lineItemId": 2,
              "isCancelled": true,
              "coupon": {
                "couponId": "sample string 1",
                "amount": {
                  "seller": 1.1,
                  "trendyol": 1.1,
                  "total": 1.1
                },
                "sellerCoverageRatio": 2.1
              },
              "promotions": [
                {
                  "promotionId": 1,
                  "amount": {
                    "seller": 1.1,
                    "trendyol": 1.1,
                    "total": 1.1
                  },
                  "discountType": "sample string 2",
                  "sellerCoverageRatio": 3.1
                },
                {
                  "promotionId": 1,
                  "amount": {
                    "seller": 1.1,
                    "trendyol": 1.1,
                    "total": 1.1
                  },
                  "discountType": "sample string 2",
                  "sellerCoverageRatio": 3.1
                }
              ]
            }
          ],
          "productId": 3,
          "name": "sample string 4",
          "modifierProducts": [
            {
              "modifierGroupId": "sample string 1",
              "name": "sample string 2",
              "price": 3.1,
              "productId": "sample string 4"
            },
            {
              "modifierGroupId": "sample string 1",
              "name": "sample string 2",
              "price": 3.1,
              "productId": "sample string 4"
            }
          ],
          "extraIngredients": [
            {
              "id": "sample string 1",
              "name": "sample string 2",
              "price": 3.1
            },
            {
              "id": "sample string 1",
              "name": "sample string 2",
              "price": 3.1
            }
          ],
          "removedIngredients": [
            {
              "id": "sample string 1",
              "name": "sample string 2"
            },
            {
              "id": "sample string 1",
              "name": "sample string 2"
            }
          ]
        }
      ],
      "customerNote": "sample string 14",
      "lastModifiedDate": 15,
      "isCourierNearby": true,
      "cancelInfo": {
        "reasonCode": 1
      },
      "eta": "sample string 17",
      "testPackage": true,
      "pickupEtaState": "sample string 19",
      "estimatedPickupTimeMin": 20,
      "estimatedPickupTimeMax": 21,
      "promotions": [
        {
          "promotionId": 1,
          "description": "sample string 2",
          "totalSellerAmount": 3.1
        },
        {
          "promotionId": 1,
          "description": "sample string 2",
          "totalSellerAmount": 3.1
        }
      ]
    },
    {
      "id": "sample string 1",
      "supplierId": 2,
      "storeId": 3,
      "orderCode": "sample string 4",
      "deliveryType": "sample string 5",
      "packageCreationDate": 6.1,
      "packageModificationDate": 7,
      "preparationTime": 8,
      "orderId": "sample string 9",
      "orderNumber": "sample string 10",
      "totalPrice": 11.1,
      "callCenterPhone": "sample string 12",
      "customer": {
        "Id": 1.1,
        "FirstName": "sample string 2",
        "LastName": "sample string 3",
        "Email": "sample string 4"
      },
      "payment": {
        "paymentType": "sample string 1",
        "mealCard": {
          "cardSourceType": "sample string 1"
        },
        "onDelivery": {
          "paymentType": "sample string 1"
        }
      },
      "address": {
        "firstName": "sample string 1",
        "lastName": "sample string 2",
        "company": "sample string 3",
        "address1": "sample string 4",
        "address2": "sample string 5",
        "city": "sample string 6",
        "cityCode": 7.1,
        "cityId": 8,
        "district": "sample string 9",
        "districtId": 10,
        "neighborhoodId": 11.1,
        "neighborhood": "sample string 12",
        "apartmentNumber": "sample string 13",
        "floor": "sample string 14",
        "doorNumber": "sample string 15",
        "addressDescription": "sample string 16",
        "postalCode": "sample string 17",
        "countryCode": "sample string 18",
        "latitude": "sample string 19",
        "longitude": "sample string 20",
        "phone": "sample string 21"
      },
      "packageStatus": "sample string 13",
      "lines": [
        {
          "price": 1.1,
          "unitSellingPrice": 2.1,
          "items": [
            {
              "packageItemId": "sample string 1",
              "lineItemId": 2,
              "isCancelled": true,
              "coupon": {
                "couponId": "sample string 1",
                "amount": {
                  "seller": 1.1,
                  "trendyol": 1.1,
                  "total": 1.1
                },
                "sellerCoverageRatio": 2.1
              },
              "promotions": [
                {
                  "promotionId": 1,
                  "amount": {
                    "seller": 1.1,
                    "trendyol": 1.1,
                    "total": 1.1
                  },
                  "discountType": "sample string 2",
                  "sellerCoverageRatio": 3.1
                },
                {
                  "promotionId": 1,
                  "amount": {
                    "seller": 1.1,
                    "trendyol": 1.1,
                    "total": 1.1
                  },
                  "discountType": "sample string 2",
                  "sellerCoverageRatio": 3.1
                }
              ]
            },
            {
              "packageItemId": "sample string 1",
              "lineItemId": 2,
              "isCancelled": true,
              "coupon": {
                "couponId": "sample string 1",
                "amount": {
                  "seller": 1.1,
                  "trendyol": 1.1,
                  "total": 1.1
                },
                "sellerCoverageRatio": 2.1
              },
              "promotions": [
                {
                  "promotionId": 1,
                  "amount": {
                    "seller": 1.1,
                    "trendyol": 1.1,
                    "total": 1.1
                  },
                  "discountType": "sample string 2",
                  "sellerCoverageRatio": 3.1
                },
                {
                  "promotionId": 1,
                  "amount": {
                    "seller": 1.1,
                    "trendyol": 1.1,
                    "total": 1.1
                  },
                  "discountType": "sample string 2",
                  "sellerCoverageRatio": 3.1
                }
              ]
            }
          ],
          "productId": 3,
          "name": "sample string 4",
          "modifierProducts": [
            {
              "modifierGroupId": "sample string 1",
              "name": "sample string 2",
              "price": 3.1,
              "productId": "sample string 4"
            },
            {
              "modifierGroupId": "sample string 1",
              "name": "sample string 2",
              "price": 3.1,
              "productId": "sample string 4"
            }
          ],
          "extraIngredients": [
            {
              "id": "sample string 1",
              "name": "sample string 2",
              "price": 3.1
            },
            {
              "id": "sample string 1",
              "name": "sample string 2",
              "price": 3.1
            }
          ],
          "removedIngredients": [
            {
              "id": "sample string 1",
              "name": "sample string 2"
            },
            {
              "id": "sample string 1",
              "name": "sample string 2"
            }
          ]
        },
        {
          "price": 1.1,
          "unitSellingPrice": 2.1,
          "items": [
            {
              "packageItemId": "sample string 1",
              "lineItemId": 2,
              "isCancelled": true,
              "coupon": {
                "couponId": "sample string 1",
                "amount": {
                  "seller": 1.1,
                  "trendyol": 1.1,
                  "total": 1.1
                },
                "sellerCoverageRatio": 2.1
              },
              "promotions": [
                {
                  "promotionId": 1,
                  "amount": {
                    "seller": 1.1,
                    "trendyol": 1.1,
                    "total": 1.1
                  },
                  "discountType": "sample string 2",
                  "sellerCoverageRatio": 3.1
                },
                {
                  "promotionId": 1,
                  "amount": {
                    "seller": 1.1,
                    "trendyol": 1.1,
                    "total": 1.1
                  },
                  "discountType": "sample string 2",
                  "sellerCoverageRatio": 3.1
                }
              ]
            },
            {
              "packageItemId": "sample string 1",
              "lineItemId": 2,
              "isCancelled": true,
              "coupon": {
                "couponId": "sample string 1",
                "amount": {
                  "seller": 1.1,
                  "trendyol": 1.1,
                  "total": 1.1
                },
                "sellerCoverageRatio": 2.1
              },
              "promotions": [
                {
                  "promotionId": 1,
                  "amount": {
                    "seller": 1.1,
                    "trendyol": 1.1,
                    "total": 1.1
                  },
                  "discountType": "sample string 2",
                  "sellerCoverageRatio": 3.1
                },
                {
                  "promotionId": 1,
                  "amount": {
                    "seller": 1.1,
                    "trendyol": 1.1,
                    "total": 1.1
                  },
                  "discountType": "sample string 2",
                  "sellerCoverageRatio": 3.1
                }
              ]
            }
          ],
          "productId": 3,
          "name": "sample string 4",
          "modifierProducts": [
            {
              "modifierGroupId": "sample string 1",
              "name": "sample string 2",
              "price": 3.1,
              "productId": "sample string 4"
            },
            {
              "modifierGroupId": "sample string 1",
              "name": "sample string 2",
              "price": 3.1,
              "productId": "sample string 4"
            }
          ],
          "extraIngredients": [
            {
              "id": "sample string 1",
              "name": "sample string 2",
              "price": 3.1
            },
            {
              "id": "sample string 1",
              "name": "sample string 2",
              "price": 3.1
            }
          ],
          "removedIngredients": [
            {
              "id": "sample string 1",
              "name": "sample string 2"
            },
            {
              "id": "sample string 1",
              "name": "sample string 2"
            }
          ]
        }
      ],
      "customerNote": "sample string 14",
      "lastModifiedDate": 15,
      "isCourierNearby": true,
      "cancelInfo": {
        "reasonCode": 1
      },
      "eta": "sample string 17",
      "testPackage": true,
      "pickupEtaState": "sample string 19",
      "estimatedPickupTimeMin": 20,
      "estimatedPickupTimeMax": 21,
      "promotions": [
        {
          "promotionId": 1,
          "description": "sample string 2",
          "totalSellerAmount": 3.1
        },
        {
          "promotionId": 1,
          "description": "sample string 2",
          "totalSellerAmount": 3.1
        }
      ]
    }
  ]
}

Response Information

Resource Description

TYResultModal
NameDescriptionTypeAdditional information
Result

integer

None.

Message

string

None.

StatusCode

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Result": 1,
  "Message": "sample string 2",
  "StatusCode": "sample string 3"
}