Здравствуйте. Получаю ответ с Нова Пошта в виде массива.
[20-06-02 16:36:17:270 EEST] {
"success": true,
"data": [
{
"Number": "20450243002350",
"DocumentWeight": 0.5,
"CheckWeight": 0,
"DocumentCost": 40,
"SumBeforeCheckWeight": 0,
"PayerType": "Recipient",
"RecipientFullName": "",
"RecipientDateTime": "",
"OwnerDocumentType": "",
"ScheduledDeliveryDate": "",
"PaymentMethod": "Cash",
"CargoDescriptionString": "",
"CargoType": "Parcel",
"CitySender": "Дніпро",
"CityRecipient": "Ірпінь",
"WarehouseRecipient": "",
"CounterpartyType": "",
"Redelivery": 0,
"RedeliverySum": "",
"RedeliveryNum": "",
"RedeliveryPayer": "",
"AfterpaymentOnGoodsCost": "",
"ServiceType": "WarehouseWarehouse",
"UndeliveryReasonsSubtypeDescription": "",
"WarehouseRecipientNumber": 0,
"LastCreatedOnTheBasisNumber": "",
"LastCreatedOnTheBasisDocumentType": "",
"LastCreatedOnTheBasisPayerType": "",
"LastCreatedOnTheBasisDateTime": "",
"LastTransactionStatusGM": "",
"LastTransactionDateTimeGM": "",
"WarehouseRecipientInternetAddressRef": "",
"MarketplacePartnerToken": "",
"DateScan": "0001-01-01 00:00:00",
"PaymentStatus": "",
"PaymentStatusDate": "",
"AmountToPay": "",
"AmountPaid": "",
"InternationalDeliveryType": "",
"UndeliveryReasonsDate": "",
"RecipientWarehouseTypeRef": "",
"RedeliveryPaymentCardDescription": "",
"OwnerDocumentNumber": "",
"FactualWeight": "",
"WarehouseSender": "",
"WarehouseRecipientRef": "3321656b-bc47-11e0-9503-b808a0f711c0",
"SenderAddress": "",
"RecipientAddress": "",
"OnlineCreditStatus": "",
"VolumeWeight": "",
"ActualDeliveryDate": "",
"RefCitySender": "db5c88f0-391c-11dd-90d9-001a92567626",
"RefCityRecipient": "db5c8911-391c-11dd-90d9-001a92567626",
"CardMaskedNumber": "",
"BarcodeRedBox": "",
"Packaging": [],
"Status": "Нова пошта очікує надходження від відправника",
"StatusCode": "1",
"RefEW": "00000000-0000-0000-0000-000000000000",
"CounterpartySenderDescription": "",
"CounterpartyRecipientDescription": "",
"AnnouncedPrice": "",
"RedeliveryPaymentCardRef": "",
"CreatedOnTheBasis": "",
"DatePayedKeeping": "",
"OnlineCreditStatusCode": ""
}
],
"errors": [],
"warnings": [
{
"ID_20450243002350": "Please enter a valid phone number from the express invoice to show full information"
}
],
"info": [],
"messageCodes": [],
"errorCodes": [],
"warningCodes": [],
"infoCodes": []
}
Пытаюсь вытащить значение ключа "Status"
таким кодом
Status= orderList2['data']['Status'];
Код не видит значение
"Нова пошта очікує надходження від відправника"
Помогите. В чём моя ошибка?