> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getpara.com/llms.txt
> Use this file to discover all available pages before exploring further.

# getOnRampOrder

> Retrieves an order's current state, event payload, and any pending off-ramp deposit instructions

async

Retrieves an existing on-ramp or off-ramp order along with event data and any pending off-ramp deposit instructions. Provide `purchaseId` plus at least one wallet reference (`walletId`, `externalWalletAddress`, or `address`).

Copy method signature

### Returns

[`Promise<Omit<OnRampPurchaseWithEvent, 'launchToken'>>`](https://docs.getpara.com/v3/references/types/onramppurchase)

Flat `OnRampPurchase` fields (with `launchToken` stripped) plus optional `eventData` and `pendingDeposit`.

## Usage

Read the current state of an on-ramp or off-ramp order and retrieve `pendingDeposit` instructions after an off-ramp checkout returns. Order fields live directly on the returned object (with `launchToken` omitted).

```typescript theme={null}
const order = await para.getOnRampOrder({
  purchaseId,
  walletId: wallet.id,
});

console.log("Status:", order.status);
if (order.pendingDeposit) {
  console.log("Deposit destination:", order.pendingDeposit.destinationAddress);
}
```

```typescript Signature theme={null}
getOnRampOrder(params: {
  purchaseId: string;
  walletId?: string;
  externalWalletAddress?: string;
  walletType?: TWalletType;
  address?: string;
}): Promise<
  Omit<OnRampPurchase, "launchToken"> & {
    eventData?: OnRampEventPayload;
    pendingDeposit?: PendingOffRampDeposit;
  }
>
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.