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

# Get Pay-in

> Retrieve details of an existing pay-in.

## Get Pay-in

Retrieve the full details of a pay-in by its ID, including current status and payment instructions.

### Endpoint

```
GET /v1/payins/:id
```

### Request

<CodeGroup>
  ```bash cURL theme={null}
  curl https://api.thiqwave.com/v1/payins/payin_1234567890 \
    -H "X-API-Key: your_api_key"
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch('https://api.thiqwave.com/v1/payins/payin_1234567890', {
    method: 'GET',
    headers: {
      'X-API-Key': 'your_api_key',
    },
  });

  const payin = await response.json();
  console.log(payin);
  ```

  ```python Python theme={null}
  import requests

  response = requests.get(
      'https://api.thiqwave.com/v1/payins/payin_1234567890',
      headers={'X-API-Key': 'your_api_key'}
  )

  payin = response.json()
  print(payin)
  ```
</CodeGroup>

### Response

```json theme={null}
{
  "payin_id": "payin_1234567890",
  "quote_id": "quote_1234567890",
  "status": "processing",
  "source_currency": "AED",
  "destination_currency": "USDT",
  "destination_network": "ethereum",
  "destination_address": "0x742d35Cc6634C0532925a3b844Bc123e5fA42f9c",
  "source_amount": 50000,
  "estimated_stablecoin_amount": "479.50",
  "actual_stablecoin_amount": null,
  "payment_instructions": {
    "beneficiary_account": "1234567890",
    "beneficiary_name": "Thiqwave Limited",
    "bank_code": "ABUAAE3D",
    "country": "AE",
    "reference": "payin_1234567890"
  },
  "expires_at": "2026-04-09T14:45:00Z",
  "created_at": "2026-04-09T14:30:00Z",
  "completed_at": null
}
```

### Response Fields

| Field                         | Type           | Description                                                              |
| ----------------------------- | -------------- | ------------------------------------------------------------------------ |
| `payin_id`                    | string         | Unique pay-in identifier.                                                |
| `quote_id`                    | string         | Associated quote ID.                                                     |
| `status`                      | string         | Current status: `awaiting_deposit`, `processing`, `completed`, `failed`. |
| `source_currency`             | string         | Source fiat currency.                                                    |
| `destination_currency`        | string         | Destination stablecoin.                                                  |
| `destination_network`         | string         | Destination blockchain.                                                  |
| `destination_address`         | string         | Recipient wallet address.                                                |
| `source_amount`               | integer        | Amount in smallest fiat unit.                                            |
| `estimated_stablecoin_amount` | string         | Expected stablecoin in human-readable format.                            |
| `actual_stablecoin_amount`    | string \| null | Actual amount if completed.                                              |
| `payment_instructions`        | object         | Bank transfer details.                                                   |
| `expires_at`                  | string         | ISO 8601 timestamp when pay-in window closes.                            |
| `created_at`                  | string         | ISO 8601 timestamp of creation.                                          |
| `completed_at`                | string \| null | ISO 8601 timestamp of completion.                                        |

## Notes

* Check the `status` field to determine the current state of the pay-in.
* If status is `awaiting_deposit`, use the `payment_instructions` to complete the bank transfer.
* Once status becomes `completed`, the stablecoins have been delivered to the destination address.
