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

**URL:** <https://community.shiphero.com/t/created-order-by-api-can-retrieve-by-api-using-id-do-not-see-in-backend/2481>\
**Category:** Getting Started\
**Created:** [May 22, 2023, 8:29pm UTC](https://community.shiphero.com/t/created-order-by-api-can-retrieve-by-api-using-id-do-not-see-in-backend/2481 "2023-05-22T20:29:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![vapetasia](https://avatars.discourse-cdn.com/v4/letter/v/57b2e6/32.png) [@vapetasia](https://community.shiphero.com/u/vapetasia)\
**Post date:** [May 22, 2023, 8:29pm UTC](https://community.shiphero.com/t/created-order-by-api-can-retrieve-by-api-using-id-do-not-see-in-backend/2481/1 "2023-05-22T20:29:04Z")

</div>

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.

```auto

{
  "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
      }
    }
  }
}

```

---

<div class="post-metadata">

**Author:** ![tomasfd](https://avatars.discourse-cdn.com/v4/letter/t/5daacb/32.png) [@tomasfd](https://community.shiphero.com/u/tomasfd)\
**Post date:** [May 22, 2023, 9:05pm UTC](https://community.shiphero.com/t/created-order-by-api-can-retrieve-by-api-using-id-do-not-see-in-backend/2481/2 "2023-05-22T21:05:07Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![vapetasia](https://avatars.discourse-cdn.com/v4/letter/v/57b2e6/32.png) [@vapetasia](https://community.shiphero.com/u/vapetasia)\
**Post date:** [May 22, 2023, 9:22pm UTC](https://community.shiphero.com/t/created-order-by-api-can-retrieve-by-api-using-id-do-not-see-in-backend/2481/3 "2023-05-22T21:22:38Z")

</div>

Yes, I am referring to the user UI.

---

<div class="post-metadata">

**Author:** ![tomasfd](https://avatars.discourse-cdn.com/v4/letter/t/5daacb/32.png) [@tomasfd](https://community.shiphero.com/u/tomasfd)\
**Post date:** [May 22, 2023, 10:10pm UTC](https://community.shiphero.com/t/created-order-by-api-can-retrieve-by-api-using-id-do-not-see-in-backend/2481/4 "2023-05-22T22:10:00Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![vapetasia](https://avatars.discourse-cdn.com/v4/letter/v/57b2e6/32.png) [@vapetasia](https://community.shiphero.com/u/vapetasia)\
**Post date:** [May 22, 2023, 10:29pm UTC](https://community.shiphero.com/t/created-order-by-api-can-retrieve-by-api-using-id-do-not-see-in-backend/2481/5 "2023-05-22T22:29:38Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![tomasfd](https://avatars.discourse-cdn.com/v4/letter/t/5daacb/32.png) [@tomasfd](https://community.shiphero.com/u/tomasfd)\
**Post date:** [May 23, 2023, 6:49pm UTC](https://community.shiphero.com/t/created-order-by-api-can-retrieve-by-api-using-id-do-not-see-in-backend/2481/6 "2023-05-23T18:49:30Z")

</div>

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:

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

```

Have a nice day!  
TomasFD
