AutopayEG
    • Invoices
      • Create invoice
        POST
      • Get invoice
        GET
      • Cancel invoice
        POST
    • Merchant
      • Current merchant
        GET
    • Webhooks
      • Receive Autopay webhook
        POST
    • Schemas
      • InvoiceStatus
      • Provider
      • ErrorEnvelope
      • CreateInvoiceRequest
      • Invoice
      • CreateInvoiceResponse
      • GetInvoiceResponse
      • MerchantMeResponse
      • MerchantFees
      • MerchantTransaction
      • WebhookCustomer
      • WebhookEnvelope
      • WebhookData

    Invoice

    {
        "id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
        "amount": "100.00",
        "currency": "EGP",
        "status": "pending",
        "customer_email": "customer@example.com",
        "customer_name": "Ahmed Ali",
        "customer_phone": "01012345678",
        "customer_metadata": {
            "order_id": "1001"
        },
        "external_reference": "ORD-1001",
        "success_url": "https://merchant.example/orders/1001/success",
        "cancel_url": "https://merchant.example/orders/1001/cancel",
        "webhook_url": "https://merchant.example/webhooks/autopay",
        "expires_at": "2026-08-19T10:00:00+00:00",
        "completed_at": "2019-08-24T14:15:22.123Z",
        "cancelled_at": "2019-08-24T14:15:22.123Z",
        "created_at": "2026-08-17T10:00:00+00:00",
        "updated_at": "2026-08-17T10:00:00+00:00",
        "active_transaction": {
            "id": 42,
            "uuid": "a3f1c8e2-4b5d-4e6f-8a9b-1c2d3e4f5a6b",
            "invoice_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
            "provider": "vodafone_cash",
            "status": "verified",
            "currency": "EGP",
            "amount": "100.00",
            "received_amount": "100.00",
            "sender_identifier": "ahmed@instapay",
            "sender_name": "Ahmed Ali",
            "reference": "123456789",
            "is_flagged": false,
            "flag_reason": "amount_mismatch",
            "fees": {
                "customer_total": "103.00",
                "merchant_net": "100.00"
            },
            "matched_at": "2026-08-17T10:12:00+00:00",
            "created_at": "2026-08-17T10:05:00+00:00"
        }
    }
    Built with