Events API stuck in old orders and 'confirmed' verb

ID4Software
New Member
1 0 0

When trying to call the Events API, filtered by Orders, I'm getting the following problems:

 

- The API only returns Orders with the verb 'confirmed'

- All orders are from May 2016, even though the creation date is from yesterday.

 

Anyone ever faced the same issue, or has any tips?

Thx.

 

 

{
    "id": 123456789,
    "subject_id": 987654321,
    "created_at": "2020-01-28T15:52:36+00:00",
    "subject_type": "Order",
    "verb": "confirmed",
    "arguments": [
        "000",
        "Customer 01"
    ],
    "body": null,
    "message": "Received new order <a href=\"https://mushop.myshopify.com/admin/orders/987654321\">0000</a> by Customer 01.",
    "author": "Shopify",
    "description": "Received new order 0000 by Customer 01.",    // Order from 05/2016
    "path": "/admin/orders/987654321"
}

 

 

0 Likes
SBD_
Shopify Staff
Shopify Staff
1089 147 199

Hey @ID4Software 

 

Are you able to provide an example API call?

0 Likes
bbarr
Shopify Partner
17 1 2

I am also unable to query the Events API as it suggests I should in documentation.

 

For example, hitting /admin/api/2021-04/orders/#ORDER_ID#/events.json gets me

{
    "events": [
        {
            "id": __,
            "subject_id": __
            "created_at": "2021-05-28T14:44:58-07:00",
            "subject_type": "Order",
            "verb": "placed",
            "arguments": [],
            "body": null,
            "message": "__ placed this order on Online Store (checkout #__).",
            "author": "Shopify",
            "description": "__ placed this order on Online Store (checkout #__).",
            "path": "/admin/orders/__"
        },
        {
            "id": __,
            "subject_id": __,
            "created_at": "2021-05-28T14:44:59-07:00",
            "subject_type": "Order",
            "verb": "payments_charge",
            "arguments": [
                "__",
                "2021-06-01T17:00:00-07:00",
                "__",
                null
            ],
            "body": null,
            "message": "__ will be added to your Jun 2, 2021 payout.",
            "author": "Shopify",
            "description": "__ will be added to your Jun 2, 2021 payout.",
            "path": "/admin/orders/__"
        },
        ...
]

 

But when I query /admin/api/2021-04/events.json?filter=Order&created_at_min=2021-05-28T14:40:00-07:00 I only receive that order's "confirmed" event, as well as other orders' "confirmed" events. When I try adding the verb= filter it always returns an empty array, even though there are events to show.

I am pretty disheartened to be adding onto an issue from a year ago, but hopefully there is just drift in the documentation and this isn't just a longstanding unresolved broken API issue.

 

Let me know if I can provide any additional information.

Thanks,

Brendan

0 Likes