# Getting the order's details

Use the [`GET /v1/orders/{orderId}`](https://app.gitbook.com/s/drE2RCYBuoRpd2TC2sx2/offer-management/retrieve-an-offer-synchronous-api#v1-offers-offerid) request to retrieve the order details for the specified order (`orderId`) for either anonymous or authenticated shoppers.&#x20;

{% tabs %}
{% tab title="cURL" %}

```http
curl --location --request GET 'https://api.digitalriver.com/v1/orders/{orderid}' \
--header 'authorization: basic ***\
...
```

{% endtab %}

{% tab title="200 OK response" %}

```json
{
  "id": "1067669580082",
  "totalItemsInCart": 1,
  "testOrder": false,
  "sendEmail": false,
  "locale": "en_US",
  "currency": "USD",
  "taxExempt": false,
  "shopperLoginType": "Anonymous",
  "shopperId": "42317897435",
  "softDescriptor": "",
  "orderState": "Completed",
  "lineItems": [
    {
      "id": "52467820082",
      "quantity": 1,
      "lineItemState": "Submitted",
      "product": {
        "id": "5145984800",
        "sku": "sku",
        "displayName": "Physical Product",
        "systemProductName": "Physical Product"
      },
      "pricing": {
        "netPrice": {
          "value": 100
        },
        "listPrice": {
          "value": 100
        },
        "salePriceWithQuantity": {
          "value": 100
        },
        "totalDiscountWithQuantity": {
          "value": 0
        },
        "importTax": {
          "value": 0
        },
        "importDuty": {
          "value": 0
        }
      },
      "subscriptions": [
        {
          "id": "10007820082",
          "expirationDate": {
            "offset": {
              "totalSeconds": 0,
              "id": "Z",
              "rules": {
                "fixedOffset": true,
                "transitions": [],
                "transitionRules": []
              }
            },
            "nano": 0,
            "year": 2023,
            "monthValue": 2,
            "dayOfMonth": 27,
            "hour": 20,
            "minute": 36,
            "second": 2,
            "month": "FEBRUARY",
            "dayOfWeek": "MONDAY",
            "dayOfYear": 58
          }
        }
      ],
      "downloads": [
        {
          "downloadUri": "https://wgt.digitalriver.com/wgt/9B5A1DA80C/B5E89D92/paytest/testdownload22222.txt"
        }
      ],
      "digitalRights": [
        {
          "unlockCode": "unlockCode"
        }
      ]
    }
  ],
  "pricing": {
    "total": {
      "value": 122
    },
    "subTotal": {
      "value": 100
    },
    "subtotalWithDiscount": {
      "value": 100
    },
    "shippingAndHandling": {
      "value": 0
    },
    "discount": {
      "value": 0
    },
    "tax": {
      "value": 22
    },
    "importTaxAndDuty": {
      "value": 0
    },
    "fees": {
      "value": 0
    }
  },
  "businessEntityCode": "DR_IRELAND-ENTITY",
  "paymentMethods": [
    {
      "type": "creditCard",
      "sourceId": "31674ac7-09bf-463b-b22b-eef835c6feed",
      "sourceClientSecret": "31674ac7-09bf-463b-b22b-eef835c6feed_e5d0257c-107d-4515-b732-521a05cb4b6f",
      "creditCard": {
        "expirationYear": "2030",
        "lastFourDigits": "1111",
        "clientSecret": "31674ac7-09bf-463b-b22b-eef835c6feed_e5d0257c-107d-4515-b732-521a05cb4b6f",
        "expirationMonth": "expirationMonth",
        "brand": "AmericanExpress",
        "flow": "standard",
        "reusable": false
      },
      "amountContributed": {
        "currency": "USD",
        "value": 97
      }
    }
  ],
  "shippingMethod": {
    "code": 265200,
    "description": "Standard"
  },
  "billingAddress": {
    "title": "title",
    "firstName": "firstName",
    "lastName": "lastName",
    "line1": "line1",
    "line2": "line2",
    "city": "city",
    "postalCode": "00187",
    "country": "IT",
    "countryName": "Italy",
    "phoneNumber": "06 6780691",
    "emailAddress": "shopxTest@digitalriver.com",
    "companyName": "companyName",
    "countrySubdivision": "countrySubdivision",
    "countyName": "countyName",
    "phoneticFirstName": "phoneticFirstName",
    "phoneticLastName": "phoneticLastName",
    "division": "division"
  },
  "shippingAddress": {
    "title": "title",
    "firstName": "firstName",
    "lastName": "lastName",
    "line1": "line1",
    "line2": "line2",
    "city": "city",
    "postalCode": "00187",
    "country": "IT",
    "countryName": "Italy",
    "phoneNumber": "06 6780691",
    "emailAddress": "shopxTest@digitalriver.com",
    "companyName": "companyName",
    "countrySubdivision": "countrySubdivision",
    "countyName": "countyName",
    "phoneticFirstName": "phoneticFirstName",
    "phoneticLastName": "phoneticLastName",
    "division": "division"
  },
  "taxRegistrations": [
    {
      "key": "IT_VAT2",
      "value": "IT12345678901"
    }
  ],
  "taxInclusive": false,
  "submissionDate": {
    "offset": {
      "totalSeconds": 0,
      "id": "Z",
      "rules": {
        "fixedOffset": true,
        "transitions": [],
        "transitionRules": []
      }
    },
    "nano": 0,
    "year": 2023,
    "monthValue": 2,
    "dayOfMonth": 27,
    "hour": 20,
    "minute": 36,
    "second": 2,
    "month": "FEBRUARY",
    "dayOfWeek": "MONDAY",
    "dayOfYear": 58
  },
  "requestToBeForgotten": {
    "offset": {
      "totalSeconds": 0,
      "id": "Z",
      "rules": {
        "fixedOffset": true,
        "transitions": [],
        "transitionRules": []
      }
    },
    "nano": 0,
    "year": 2023,
    "monthValue": 2,
    "dayOfMonth": 28,
    "hour": 22,
    "minute": 38,
    "second": 6,
    "month": "FEBRUARY",
    "dayOfWeek": "TUESDAY",
    "dayOfYear": 59
  }
}
```

{% endtab %}
{% endtabs %}

{% hint style="info" %}
The `GET /v1/orders/{orderId}` differs from the [`GET /v1/shoppers/me/orders/{orderId}`](https://app.gitbook.com/s/X2fWaY1Kp5sXA1fmOL7z/orders/orders#v1-shoppers-me-orders-orderid) in the following ways:

* `GET /v1/orders/{orderId}` requires an admin key/secret to fetch the order information, regardless of whether an authenticated or anonymous shopper placed the order.
* `GET /v1/shoppers/me/orders/{orderId}` requires a shopper token to fetch the order information.
  {% endhint %}
