Created order by API, can retrieve by API using ID, do not see in backend

We are just starting to work with the API, created a test order successfully, and we can retrieve the order history by order ID as seen in the response below, however, I do not see the order in our ShipHero backend.


{
  "data": {
    "order_history": {
      "request_id": "646bcaa26dc3201c323882cb",
      "complexity": 3,
      "data": {
        "edges": [
          {
            "node": {
              "id": "T3JkZXJIaXN0b3J5OjI0OTM2MDM1Njc=",
              "order_id": "T3JkZXI6MzYwNTEyNDEz",
              "account_id": "QWNjb3VudDo3MjgyMA==",
              "order_number": "INV-40000109370",
              "information": "Order created from public-api",
              "order": {
                "shop_name": "Vegatech",
                "fulfillment_status": "pending",
                "order_date": "2023-05-22T00:00:00",
                "email": "shawn@vapetasia.com",
                "profile": "default",
                "packing_note": "",
                "required_ship_date": "2023-05-29T00:00:00",
                "shipping_address": {
                  "first_name": "Shawn",
                  "last_name": "Coward",
                  "company": "Vegatech",
                  "address1": "4621 JULENE CT",
                  "address2": "",
                  "city": "LAS VEGAS",
                  "state": "NV",
                  "state_code": null,
                  "zip": "89110-3475",
                  "country": "US",
                  "country_code": null,
                  "email": "shawn@vapetasia.com",
                  "phone": "702-769-1139"
                }
              }
            },
            "cursor": "YXJyYXljb25uZWN0aW9uOjA="
          },
          {
            "node": {
              "id": "T3JkZXJIaXN0b3J5OjI0OTM2MDQyMTc=",
              "order_id": "T3JkZXI6MzYwNTEyNDEz",
              "account_id": "QWNjb3VudDo3MjgyMA==",
              "order_number": "INV-40000109370",
              "information": "<p>Updated Shipping Fields:</p><ul> <li>Zip: 89110 to 89110-3475 </li><li>Address1: 4621 Julene Ct. to 4621 JULENE CT</li><li>City: Las Vegas to LAS VEGAS </li> </ul>",
              "order": {
                "shop_name": "Vegatech",
                "fulfillment_status": "pending",
                "order_date": "2023-05-22T00:00:00",
                "email": "shawn@vapetasia.com",
                "profile": "default",
                "packing_note": "",
                "required_ship_date": "2023-05-29T00:00:00",
                "shipping_address": {
                  "first_name": "Shawn",
                  "last_name": "Coward",
                  "company": "Vegatech",
                  "address1": "4621 JULENE CT",
                  "address2": "",
                  "city": "LAS VEGAS",
                  "state": "NV",
                  "state_code": null,
                  "zip": "89110-3475",
                  "country": "US",
                  "country_code": null,
                  "email": "shawn@vapetasia.com",
                  "phone": "702-769-1139"
                }
              }
            },
            "cursor": "YXJyYXljb25uZWN0aW9uOjE="
          }
        ]
      }
    }
  },
  "extensions": {
    "throttling": {
      "estimated_complexity": 3,
      "cost": 3,
      "cost_detail": {
        "order_history": {
          "items_count": 2,
          "cost": 1,
          "total_cost": 3,
          "fields": {}
        }
      },
      "user_quota": {
        "credits_remaining": 1999,
        "max_available": 2002,
        "increment_rate": 30
      }
    }
  }
}

Hello, @vapetasia! Welcome to our Community!

Could you further explain what you mean by your ShipHero back end? Are you referring to the UI?

Have a nice day!
TomasFD

Yes, I am referring to the user UI.

Hello, @vapetasia!

Thanks for clarifying that!

Did you try searching by order number? I could find it like that in the UI.

Also, check in the order list that on the top left you have set by default to show today’s orders, and that order has 05/21 as the order date. You might be missing it because of that.

Please let me know if you have further questions.

Kind regards,
TomasFD

Ok, yes that was it, I see it now. How do I delete an order?

Hello, @vapetasia!

Orders cannot be deleted in our system, but you can run an order_cancel mutation to set it as canceled. This will prevent it from being shipped and not holding the items allocated.

Here’s an example:

mutation{
  order_cancel(data:{order_id:"string"}){
    request_id
  }
}

Have a nice day!
TomasFD