# routes/joy-place-order-scope

> Source: https://devdocs.joy.so/joy-headless-api/sdk-reference/hydrogen/routes/joy-place-order-scope/ · Last updated: 2026-11-24

## Interfaces

### JoyPlaceOrderScopeContext

#### Properties

##### env

```ts
env: JoyPlaceOrderScopeEnv;
```

***

### JoyPlaceOrderScopeEnv

Env the merchant declares in their Hydrogen project (Oxygen) — the same two vars every block's loader already reads.

#### Properties

##### JOY_API_URL?

```ts
JOY_API_URL?: string;
```

Base URL of the Joy Headless API, e.g. `https://api.joy.so/app/api/v1/headless`.

##### JOY_SHOP_DOMAIN?

```ts
JOY_SHOP_DOMAIN?: string;
```

The shop's myshopify domain. The ONLY source of truth for shop identity here — see file header.

***

### JoyPlaceOrderScopeLoaderArgs

Structural shape of a Hydrogen/Remix loader's args.

#### Properties

##### context

```ts
context: JoyPlaceOrderScopeContext;
```

##### request

```ts
request: Request;
```

## Functions

### loader()

```ts
function loader(__namedParameters): Promise<Response>;
```

Hydrogen resource-route loader. Always resolves to a `Response`; never throws.

#### Parameters

| Parameter           | Type                                                            |
| ------------------- | --------------------------------------------------------------- |
| `__namedParameters` | [`JoyPlaceOrderScopeLoaderArgs`](#joyplaceorderscopeloaderargs) |

#### Returns

`Promise`<`Response`>
