{
  "info": {
    "name": "WATADCASH API v2",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "description": "Imported from the current public OpenAPI document. Replace sample IDs. base_url is intentionally blank: set it only after choosing the intended environment. Mutating calls can move real funds."
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{api_key}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "base_url",
      "value": ""
    },
    {
      "key": "api_key",
      "value": ""
    },
    {
      "key": "resource_id",
      "value": ""
    },
    {
      "key": "idempotency_key",
      "value": ""
    }
  ],
  "item": [
    {
      "name": "GET /wallet",
      "request": {
        "method": "GET",
        "header": [],
        "url": "{{base_url}}/wallet",
        "description": "رصيد محفظة التاجر\nScope: wallet:read"
      }
    },
    {
      "name": "GET /transactions",
      "request": {
        "method": "GET",
        "header": [],
        "url": "{{base_url}}/transactions",
        "description": "حركات المحفظة\nScope: transactions:read"
      }
    },
    {
      "name": "GET /customers",
      "request": {
        "method": "GET",
        "header": [],
        "url": "{{base_url}}/customers",
        "description": "العملاء\nScope: customers:read"
      }
    },
    {
      "name": "POST /customers",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": "{{base_url}}/customers",
        "description": "إنشاء عميل\nScope: customers:write",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"name\": \"REPLACE_NAME\",\n  \"email\": \"REPLACE_EMAIL\",\n  \"external_reference\": \"REPLACE_EXTERNAL_REFERENCE\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "GET /customers/{id}",
      "request": {
        "method": "GET",
        "header": [],
        "url": "{{base_url}}/customers/{{resource_id}}",
        "description": "تفاصيل العملاء\nScope: customers:read"
      }
    },
    {
      "name": "GET /cards",
      "request": {
        "method": "GET",
        "header": [],
        "url": "{{base_url}}/cards",
        "description": "البطاقات\nScope: cards:read"
      }
    },
    {
      "name": "POST /cards",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Idempotency-Key",
            "value": "{{idempotency_key}}"
          }
        ],
        "url": "{{base_url}}/cards",
        "description": "طلب إصدار بطاقة\nScope: cards:create",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"plan_code\": \"cards_500\",\n  \"customer_id\": 1,\n  \"product_id\": 1,\n  \"reference\": \"REPLACE_REFERENCE\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "GET /cards/{id}",
      "request": {
        "method": "GET",
        "header": [],
        "url": "{{base_url}}/cards/{{resource_id}}",
        "description": "تفاصيل البطاقات\nScope: cards:read"
      }
    },
    {
      "name": "GET /card-orders",
      "request": {
        "method": "GET",
        "header": [],
        "url": "{{base_url}}/card-orders",
        "description": "طلبات البطاقات\nScope: cards:read"
      }
    },
    {
      "name": "GET /card-orders/{id}",
      "request": {
        "method": "GET",
        "header": [],
        "url": "{{base_url}}/card-orders/{{resource_id}}",
        "description": "تفاصيل طلبات البطاقات\nScope: cards:read"
      }
    },
    {
      "name": "GET /invoices",
      "request": {
        "method": "GET",
        "header": [],
        "url": "{{base_url}}/invoices",
        "description": "فواتير USDT للعملاء\nScope: invoices:read"
      }
    },
    {
      "name": "POST /invoices",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Idempotency-Key",
            "value": "{{idempotency_key}}"
          }
        ],
        "url": "{{base_url}}/invoices",
        "description": "فتح فاتورة USDT لعميل\nScope: invoices:create",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"customer_id\": 1,\n  \"amount\": \"25.00\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "GET /invoices/{id}",
      "request": {
        "method": "GET",
        "header": [],
        "url": "{{base_url}}/invoices/{{resource_id}}",
        "description": "تفاصيل فواتير USDT للعملاء\nScope: invoices:read"
      }
    },
    {
      "name": "GET /wallet-payments",
      "request": {
        "method": "GET",
        "header": [],
        "url": "{{base_url}}/wallet-payments",
        "description": "طلبات الدفع من محفظة WATADCASH\nScope: wallet_payments:read"
      }
    },
    {
      "name": "POST /wallet-payments",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Idempotency-Key",
            "value": "{{idempotency_key}}"
          }
        ],
        "url": "{{base_url}}/wallet-payments",
        "description": "طلب دفع من محفظة WATADCASH\nScope: wallet_payments:create",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"amount\": \"25.00\",\n  \"description\": \"REPLACE_DESCRIPTION\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "GET /wallet-payments/{id}",
      "request": {
        "method": "GET",
        "header": [],
        "url": "{{base_url}}/wallet-payments/{{resource_id}}",
        "description": "تفاصيل طلبات الدفع من محفظة WATADCASH\nScope: wallet_payments:read"
      }
    },
    {
      "name": "GET /withdrawals",
      "request": {
        "method": "GET",
        "header": [],
        "url": "{{base_url}}/withdrawals",
        "description": "السحوبات\nScope: withdrawals:read"
      }
    },
    {
      "name": "POST /withdrawals",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Idempotency-Key",
            "value": "{{idempotency_key}}"
          }
        ],
        "url": "{{base_url}}/withdrawals",
        "description": "تأكيد طلب السحب\nScope: withdrawals:create",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"quote_id\": \"REPLACE_QUOTE_ID\",\n  \"nonce\": \"REPLACE_NONCE\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "GET /withdrawals/{id}",
      "request": {
        "method": "GET",
        "header": [],
        "url": "{{base_url}}/withdrawals/{{resource_id}}",
        "description": "تفاصيل السحوبات\nScope: withdrawals:read"
      }
    },
    {
      "name": "GET /transfers",
      "request": {
        "method": "GET",
        "header": [],
        "url": "{{base_url}}/transfers",
        "description": "التحويلات\nScope: transactions:read"
      }
    },
    {
      "name": "POST /transfers",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Idempotency-Key",
            "value": "{{idempotency_key}}"
          }
        ],
        "url": "{{base_url}}/transfers",
        "description": "تحويل إلى حساب WATADCASH\nScope: transfers:create",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"amount\": \"25.00\",\n  \"recipient\": \"REPLACE_RECIPIENT\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "GET /transfers/{id}",
      "request": {
        "method": "GET",
        "header": [],
        "url": "{{base_url}}/transfers/{{resource_id}}",
        "description": "تفاصيل التحويلات\nScope: transactions:read"
      }
    },
    {
      "name": "GET /office-transfers",
      "request": {
        "method": "GET",
        "header": [],
        "url": "{{base_url}}/office-transfers",
        "description": "الحوالات المكتبية\nScope: transactions:read"
      }
    },
    {
      "name": "POST /office-transfers",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Idempotency-Key",
            "value": "{{idempotency_key}}"
          }
        ],
        "url": "{{base_url}}/office-transfers",
        "description": "حوالة إلى مكتب\nScope: office:transfers:create",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"amount\": \"25.00\",\n  \"recipient_name\": \"REPLACE_RECIPIENT_NAME\",\n  \"recipient_phone\": \"REPLACE_RECIPIENT_PHONE\",\n  \"office\": \"REPLACE_OFFICE\",\n  \"receive_currency\": \"REPLACE_RECEIVE_CURRENCY\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "GET /office-transfers/{id}",
      "request": {
        "method": "GET",
        "header": [],
        "url": "{{base_url}}/office-transfers/{{resource_id}}",
        "description": "تفاصيل الحوالات المكتبية\nScope: transactions:read"
      }
    },
    {
      "name": "GET /card-products",
      "request": {
        "method": "GET",
        "header": [],
        "url": "{{base_url}}/card-products",
        "description": "منتجات البطاقات المتاحة\nScope: cards:read"
      }
    },
    {
      "name": "GET /funding",
      "request": {
        "method": "GET",
        "header": [],
        "url": "{{base_url}}/funding",
        "description": "فواتير تمويل محفظة التاجر\nScope: wallet:read"
      }
    },
    {
      "name": "POST /funding",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Idempotency-Key",
            "value": "{{idempotency_key}}"
          }
        ],
        "url": "{{base_url}}/funding",
        "description": "فاتورة USDT لتمويل محفظة التاجر\nScope: wallet:fund",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"amount\": \"25.00\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "POST /cards/{id}/fund",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Idempotency-Key",
            "value": "{{idempotency_key}}"
          }
        ],
        "url": "{{base_url}}/cards/{{resource_id}}/fund",
        "description": "طلب تمويل بطاقة مملوكة\nScope: cards:fund",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"plan_code\": \"cards_500\",\n  \"amount\": \"25.00\",\n  \"reference\": \"REPLACE_REFERENCE\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "POST /withdrawals/quote",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Idempotency-Key",
            "value": "{{idempotency_key}}"
          }
        ],
        "url": "{{base_url}}/withdrawals/quote",
        "description": "عرض سحب USDT عبر TRON\nScope: withdrawals:create",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"amount\": \"25.00\",\n  \"address\": \"REPLACE_ADDRESS\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    }
  ]
}