# Nhận thông báo OKPay 

**POST**`https://pay.example.com/payments/okpay/v1/notify`

[Ví dụ yêu cầu ↓](https://epusdt.com/vi/api/endpoints/okpay-notify#request-example)

Cấu hình URL này trong OKPay. EPUSDT dùng `token` cửa hàng để xác minh thông báo đã ký. Phản hồi văn bản là success (200) hoặc fail (400).

## Tài liệu liên quan 

* [Chọn mạng hoặc nhà cung cấp](https://epusdt.com/vi/api/endpoints/switch-network)
* [Thông báo cho người bán](https://epusdt.com/vi/api/payment#callbacks)

## Phản hồi

text/plain`success`

text/plain`fail`

[error-codes.json ↓](https://epusdt.com/agent-setup/error-codes.json)

**Ví dụ yêu cầu**

URL cổng thanh toán 

```
curl -i -X POST \
  'https://pay.example.com/payments/okpay/v1/notify' \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "code": 200,
  "id": "okpay-shop-test",
  "status": "success",
  "data": {
    "order_id": "okpay-order-test-001",
    "unique_id": "20260523171652123456001",
    "pay_user_id": 1234567890,
    "amount": "0.15000000",
    "coin": "USDT",
    "status": 1,
    "type": "deposit"
  },
  "sign": "PROVIDER_SIGNATURE"
}'
```

**Ví dụ phản hồi**200 · Thành công400 · Thông báo bị từ chối

text/plain

```
success
```
