{
  "opencollection": "1.0.0",
  "info": {
    "name": "Paymob Accept Legacy (v2) API",
    "version": "2.0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Authentication",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Authenticate Merchant",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://accept.paymob.com/api/auth/tokens",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Exchange the merchant API key for a short-lived auth_token (60 minutes)."
        }
      ]
    },
    {
      "info": {
        "name": "Orders",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Register Order",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://accept.paymob.com/api/ecommerce/orders",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Register an order on Paymob and obtain an order id for the payment key request."
        }
      ]
    },
    {
      "info": {
        "name": "Payment Keys",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Request Payment Key",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://accept.paymob.com/api/acceptance/payment_keys",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Request a payment_key for an order. The payment_key is bound to a single integration_id and used by the iframe or the headless pay endpoint."
        }
      ]
    },
    {
      "info": {
        "name": "Payments",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Pay With Payment Method",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://accept.paymob.com/api/acceptance/payments/pay",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Headless payment endpoint (MOTO / saved card / merchant-initiated transactions). Submit a payment_key plus source object describing the method (card, saved token, wallet, kiosk)."
        }
      ]
    },
    {
      "info": {
        "name": "Capture",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Capture Authorized Transaction",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://accept.paymob.com/api/acceptance/capture",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Capture Authorized Transaction"
        },
        {
          "info": {
            "name": "Void Transaction",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://accept.paymob.com/api/acceptance/void_refund/void",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Void Transaction"
        },
        {
          "info": {
            "name": "Refund Transaction",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://accept.paymob.com/api/acceptance/void_refund/refund",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Refund Transaction"
        }
      ]
    },
    {
      "info": {
        "name": "Transactions",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Retrieve Transaction By ID",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://accept.paymob.com/api/acceptance/transactions/:transaction_id",
            "params": [
              {
                "name": "transaction_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Retrieve Transaction By ID"
        },
        {
          "info": {
            "name": "Transaction Inquiry By Merchant Order ID",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://accept.paymob.com/api/ecommerce/orders/transaction_inquiry",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Transaction Inquiry By Merchant Order ID"
        }
      ]
    },
    {
      "info": {
        "name": "Payment Links",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Create Payment Link",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://accept.paymob.com/api/ecommerce/payment-links",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a sharable Quick Link (V2 Quick Link API) that customers can pay through a hosted URL."
        },
        {
          "info": {
            "name": "Cancel Payment Link",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://accept.paymob.com/api/ecommerce/payment-links/cancel",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Cancel Payment Link"
        }
      ]
    }
  ],
  "bundled": true
}