# How to fetch order ID

**URL:** https://forum.shopware.com/t/how-to-fetch-order-id/65120
**Category:** International (English Only)
**Tags:** programming
**Created:** [2. März 2020 um 10:39 UTC](https://forum.shopware.com/t/how-to-fetch-order-id/65120 "2020-03-02T10:39:46Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![payzoff](https://avatars.discourse-cdn.com/v4/letter/p/ed655f/32.png) [@payzoff](https://forum.shopware.com/u/payzoff)
#### Post date: [2. März 2020 um 10:39 UTC](https://forum.shopware.com/t/how-to-fetch-order-id/65120/1 "2020-03-02T10:39:46Z")

</div>

I am developing payment plugin and for external API call I need to pass order ID. But seems there is no mantion in the manual how to fetch it. I can see

```
 $this-\>getOrderNumber(); function but it return null.
```
