Viewing 3 replies - 1 through 3 (of 3 total)
  • Hey @odzhuryk,

    Could you paste in a copy of an example of the array you see?

    Thanks!

    Thread Starter odzhuryk

    (@odzhuryk)

    Yeah, there was a trying to send a note with specific text. But I got in response something like
    [
    {
    “id”:921,
    “date_created”:”2020-06-10T22:57:46″,
    “date_created_gmt”:”2020-06-10T20:57:46″,
    “note”:”Lagerniv\u00e5erna minskade: Saltvattentv\u00e5l | Sj\u00f6&Hav Utomhus Tv\u00e5l (SH1003) 936→935, Saltvattenschampo | Sj\u00f6&Hav Utomhus Schampo (SH1004) 9929→9928″,
    “customer_note”:false,
    “_links”:{
    “self”:[
    {
    “href”:”https:\/\/sjohav.se\/wp-json\/wc\/v2\/orders\/15108\/notes\/921″
    }
    ],
    “collection”:[
    {
    “href”:”https:\/\/sjohav.se\/wp-json\/wc\/v2\/orders\/15108\/notes”
    }
    ],
    “up”:[
    {
    “href”:”https:\/\/sjohav.se\/wp-json\/wc\/v2\/orders\/15108″
    }
    ]
    }
    },
    {
    “id”:922,
    “date_created”:”2020-06-10T22:57:46″,
    “date_created_gmt”:”2020-06-10T20:57:46″,
    “note”:”Order skapad – Best\u00e4llningsstatus \u00e4ndrad fr\u00e5n Inv\u00e4ntar betalning till Behandlas.”,
    “customer_note”:false,
    “_links”:{
    “self”:[
    {
    “href”:”https:\/\/sjohav.se\/wp-json\/wc\/v2\/orders\/15108\/notes\/922″
    }
    ],
    “collection”:[
    {
    “href”:”https:\/\/sjohav.se\/wp-json\/wc\/v2\/orders\/15108\/notes”
    }
    ],
    “up”:[
    {
    “href”:”https:\/\/sjohav.se\/wp-json\/wc\/v2\/orders\/15108″
    }
    ]
    }
    }
    ]

    And the weirdest it tried to send the note today(11.06) but in response, I got creation_date yesterday(10.06), so I can assume that it couldn’t create the note and returned something wrong. This behavior has been presenting since the 2.06 at least

    Thread Starter odzhuryk

    (@odzhuryk)

    @3sonsdevelopment , here’s the better-formated response also please check my message above.

    [
      {
        "id": 921,
        "date_created": "2020-06-10T22:57:46",
        "date_created_gmt": "2020-06-10T20:57:46",
        "note": "Lagerniv?erna minskade: Saltvattentv?l | Sj?&Hav Utomhus Tv?l (SH1003) 936→935, Saltvattenschampo | Sj?&Hav Utomhus Schampo (SH1004) 9929→9928",
        "customer_note": false,
        "_links": {
          "self": [
            {
              "href": "https://sjohav.se/wp-json/wc/v2/orders/15108/notes/921"
            }
          ],
          "collection": [
            {
              "href": "https://sjohav.se/wp-json/wc/v2/orders/15108/notes"
            }
          ],
          "up": [
            {
              "href": "https://sjohav.se/wp-json/wc/v2/orders/15108"
            }
          ]
        }
      },
      {
        "id": 922,
        "date_created": "2020-06-10T22:57:46",
        "date_created_gmt": "2020-06-10T20:57:46",
        "note": "Order skapad – Best?llningsstatus ?ndrad fr?n Inv?ntar betalning till Behandlas.",
        "customer_note": false,
        "_links": {
          "self": [
            {
              "href": "https://sjohav.se/wp-json/wc/v2/orders/15108/notes/922"
            }
          ],
          "collection": [
            {
              "href": "https://sjohav.se/wp-json/wc/v2/orders/15108/notes"
            }
          ],
          "up": [
            {
              "href": "https://sjohav.se/wp-json/wc/v2/orders/15108"
            }
          ]
        }
      }
    ]
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Create order note returns an array of notes’ is closed to new replies.