API reference
सशुल्क लिंक से API
MakePay भुगतान लिंक बनाएं, सूचीबद्ध करें, निरीक्षण करें, रोकें, संग्रहीत करें और भेजें।
मार्गों
MakeCrypto से होस्ट किए गए MakePay भुगतान लिंक बनाने और प्रबंधित करने के लिए इन मार्गों का उपयोग करें।
| Method | Route |
|---|---|
| GET | /api/partner/v1/companies |
Auth session Use User companies list करें authenticated MakeCrypto user के portal tools के लिए उपलब्ध teams लौटाता है. | |
| POST | /api/partner/v1/onboarding/company |
Auth partner onboarding secret Use Company onboarding link बनाएं partner द्वारा prefilled onboarding draft बनाता है और merchant claim URL लौटाता है. | |
| GET | /api/partner/v1/makepay/payment-links |
Auth MakePay API key or OAuth Use Payment links list करें या बनाएं API key की company के payment links पढ़ता है या hosted MakePay checkout links बनाता है. | |
| POST | /api/partner/v1/makepay/payment-links |
Auth MakePay API key, OAuth, or public Use Payment links list करें या बनाएं API key की company के payment links पढ़ता है या hosted MakePay checkout links बनाता है. | |
| POST | https://www.makepay.io/api/public/anonymous-payment-links |
Auth public Use Create anonymous payment link Public MakePay endpoint for one-time anonymous checkout links with explicit settlement priorities, branding, and optional webhooks. | |
| POST | /gateway/pay/{makepayKeyId} |
Auth public form key Use HTML payment form submit करें browser form fields स्वीकार करता है, hosted payment link बनाता है, और shopper को checkout पर redirect करता है. | |
| GET | /api/partner/v1/makepay/payment-links/{uid} |
Auth MakePay API key or OAuth Use Payment link लें या update करें payment link detail पढ़ता है या उसकी state को active, paused, या archived में बदलता है. | |
| PATCH | /api/partner/v1/makepay/payment-links/{uid} |
Auth MakePay API key or OAuth Use Payment link लें या update करें payment link detail पढ़ता है या उसकी state को active, paused, या archived में बदलता है. | |
| POST | /api/partner/v1/makepay/payment-links/{uid}/send-request-email |
Auth MakePay API key or OAuth Use Payment request भेजें hosted link customer email पर भेजता या फिर से भेजता है. | |
| GET | /api/partner/v1/makepay/subscriptions |
Auth MakePay API key or OAuth Use Subscriptions list करें या बनाएं recurring MakePay subscription plans लौटाता है या subscription और पहली invoice बनाता है. | |
| POST | /api/partner/v1/makepay/subscriptions |
Auth MakePay API key or OAuth Use Subscriptions list करें या बनाएं recurring MakePay subscription plans लौटाता है या subscription और पहली invoice बनाता है. | |
| GET | /api/partner/v1/makepay/customers |
Auth MakePay API key or OAuth Use Customers list करें या update करें MakePay customer profiles लौटाता है या email द्वारा customers create/update करता है. | |
| POST | /api/partner/v1/makepay/customers |
Auth MakePay API key or OAuth Use Customers list करें या update करें MakePay customer profiles लौटाता है या email द्वारा customers create/update करता है. | |
| POST | /api/partner/v1/makepay/customers/{customerId}/portal |
Auth MakePay API key or OAuth Use Customer portal link बनाएं 24 घंटे के लिए valid signed MakePay customer portal URL on demand generate करता है. | |
| GET | /api/partner/v1/timezones |
Auth public Use Timezones list करें supported IANA timezone identifiers लौटाता है. | |
| GET | /api/partner/v1/makepay/settings |
Auth MakePay API key or OAuth Use MakePay settings पढ़ें या update करें settlement, redirects, fees, और underpayment handling settings पढ़ता या update करता है. | |
| PUT | /api/partner/v1/makepay/settings |
Auth MakePay API key or OAuth Use MakePay settings पढ़ें या update करें settlement, redirects, fees, और underpayment handling settings पढ़ता या update करता है. | |
| GET | /api/partner/v1/makepay/destination-assets |
Auth MakePay API key or OAuth Use Destination assets list करें supported settlement assets और current default asset लौटाता है. | |
| GET | /api/partner/v1/makepay/webhook-requests |
Auth MakePay API key or OAuth Use Webhook deliveries list करें payment और subscription webhook delivery attempts और retry status दिखाता है. | |
| GET | /api/partner/v1/makepay/webhook-subscriptions/current |
Auth grant-bound OAuth Use Read current webhook subscription Read the webhook subscription owned by the current OAuth grant without revealing its signing secret. | |
| PUT | /api/partner/v1/makepay/webhook-subscriptions/current |
Auth grant-bound OAuth Use Create or update webhook subscription Create, reactivate, update, or explicitly rotate the current OAuth grant's MakePay payment webhook subscription. | |
| DELETE | /api/partner/v1/makepay/webhook-subscriptions/current |
Auth grant-bound OAuth Use Disable current webhook subscription Disable the current OAuth grant's webhook subscription and erase its stored signing secret. | |
एक भुगतान लिंक बनाएं
निर्माण मार्ग एक MakePay भुगतान लिंक सम्मिलित करता है, व्यापारी ब्रांडिंग और निपटान डिफ़ॉल्ट को हल करता है, रनटाइम बिलिंग फ़ील्ड इंजेक्ट करता है, और सार्वजनिक checkout URL लौटाता है।
POST /api/partner/v1/makepay/payment-links
{
"status": "active",
"sendPaymentRequestEmail": false,
"payload": {
"title": "Website order #1042",
"description": "Checkout for order #1042",
"amount": "129.99",
"fiatCurrency": "USD",
"currency": "USDT",
"feePaidBy": "merchant",
"skipQuoteAcceptance": true,
"lineItems": [
{
"id": "plan",
"name": "Starter package",
"unitAmount": "119.99",
"quantity": 1
}
],
"extraCharges": [
{
"id": "shipping",
"name": "Shipping",
"kind": "shipping",
"unitAmount": "10.00",
"quantity": 1
}
],
"optionalItems": [
{
"id": "priority_setup",
"name": "Priority setup",
"unitAmount": "19.99",
"quantity": 1,
"adjustableQuantity": {
"enabled": true,
"minimum": 1,
"maximum": 3
}
}
],
"orderId": "order_1042",
"customerEmail": "buyer@example.com",
"invoicePdfUrl": "https://merchant.example/invoices/1042.pdf",
"returnUrl": "https://merchant.example/orders/1042",
"successUrl": "https://merchant.example/orders/1042/success",
"failureUrl": "https://merchant.example/orders/1042/failure",
"expirationTime": "12h",
"metadata": {
"cartId": "cart_7M2V",
"source": "api"
}
}
}बिना कोड वाले या कम कोड वाले ब्राउज़र checkout बटन के लिए, फॉर्म सबमिट भुगतान देखें। यह एक सादा HTML POST स्वीकार करता है, उसी तरह का होस्टेड भुगतान लिंक बनाता है, और खरीदार को MakePay checkout पर रीडायरेक्ट करता है।
आवश्यक सेटअप
कंपनी के पास MakePay डिफ़ॉल्ट गंतव्य संपत्ति होनी चाहिए। यदि निपटान कॉन्फ़िगर नहीं किया गया है, तो रूट errorCode: "onboarding_required" के साथ 409 लौटाता है।
राशि और परिसंपत्ति फ़ील्ड
ग्राहक-सामना वाली राशि के लिए payload.amount का उपयोग करें। सटीक गंतव्य संपत्ति के लिए या तो payload.asset पास करें या जब कंपनी की डिफ़ॉल्ट गंतव्य संपत्ति श्रृंखला को हल कर सकती है तो payload.currency पास करें। यदि एक मुद्रा कई श्रृंखलाओं पर सक्षम है और कोई मेल खाने वाली कंपनी डिफ़ॉल्ट मौजूद नहीं है, तो स्पष्ट रूप से payload.asset पास करें।
समय सीमा समाप्ति
payload.expirationTime 15m, 1h, 12h, 24h, 72h, या never स्वीकार करता है। API भुगतान लिंक पर हल किए गए expires_at टाइमस्टैम्प को संग्रहीत करता है।
प्रतिक्रिया बनाएँ
{
"ok": true,
"companyId": "8d15bb78-d0f8-45ef-88d7-2a1f1f79644b",
"paymentRequestEmailSent": false,
"paymentRequestEmailError": null,
"paymentLink": {
"id": "3a85f64-5717-4562-b3fc-2c963f66afa6",
"uid": "01hzy4k6p4w9y2x7e2z7n8a2xm",
"donation_slug": null,
"link_type": "one_time",
"source": "api",
"status": "active",
"amount": "129.99",
"fiatAmount": "129.99",
"fiatCurrency": "USD",
"currency": "USDT",
"asset": "ETH.USDT-0xdac17f958d2ee523a2206206994597c13d831ec7",
"title": "Website order #1042",
"label": "Website order #1042",
"description": "Checkout for order #1042",
"orderId": "order_1042",
"customerEmail": "buyer@example.com",
"clientId": null,
"metadata": {
"source": "api"
},
"payload": {
"title": "Website order #1042",
"description": "Checkout for order #1042",
"amount": "129.99",
"fiatCurrency": "USD",
"currency": "USDT",
"asset": "ETH.USDT-0xdac17f958d2ee523a2206206994597c13d831ec7",
"runtimeMode": "merchant_target_net_v2",
"billingVersion": "v2",
"merchantName": "Merchant Co",
"merchantPaymentLinkTheme": "system",
"customerEmail": "buyer@example.com",
"orderId": "order_1042",
"skipQuoteAcceptance": true,
"metadata": {
"source": "api"
}
},
"latestSession": null,
"timelineEvents": [],
"publicUrl": "https://makepay.io/payment/01hzy4k6p4w9y2x7e2z7n8a2xm",
"created_at": "2026-04-19T00:00:00.000Z",
"updated_at": "2026-04-19T00:00:00.000Z",
"expires_at": "2026-04-19T12:00:00.000Z",
"dashboardUrl": "https://www.makecrypto.io/home/makepay/payment-links?orderUid=01hzy4k6p4w9y2x7e2z7n8a2xm"
}
}भुगतान लिंक सूचीबद्ध करें
बैक-ऑफ़िस समाधान, डैशबोर्ड और धूम्रपान परीक्षण के लिए सूची मार्ग का उपयोग करें।
curl "https://www.makecrypto.io/api/partner/v1/makepay/payment-links" \
-H "x-makecrypto-key-id: MAKEPAY_API_KEY_ID" \
-H "x-makecrypto-key-secret: MAKEPAY_API_SECRET" \
-H "Accept: application/json"भुगतान-लिंक विवरण प्राप्त करें
जब आपके पास पहले से ही भुगतान-लिंक UID है और आपको सामान्यीकृत लिंक, सार्वजनिक checkout URL, नवीनतम भुगतान सत्र और टाइमलाइन ईवेंट की आवश्यकता है, तो विवरण मार्ग का उपयोग करें।
curl "https://www.makecrypto.io/api/partner/v1/makepay/payment-links/PAYMENT_LINK_UID" \
-H "x-makecrypto-key-id: MAKEPAY_API_KEY_ID" \
-H "x-makecrypto-key-secret: MAKEPAY_API_SECRET" \
-H "Accept: application/json"भुगतान लिंक को रोकें या संग्रहीत करें
किसी लिंक को भुगतान होने से रोकने या सक्रिय संचालन से छिपाने के लिए स्टेटस रूट का उपयोग करें।
curl -X PATCH "https://www.makecrypto.io/api/partner/v1/makepay/payment-links/PAYMENT_LINK_UID" \
-H "x-makecrypto-key-id: MAKEPAY_API_KEY_ID" \
-H "x-makecrypto-key-secret: MAKEPAY_API_SECRET" \
-H "Idempotency-Key: order_1042_update_v1" \
-H "Content-Type: application/json" \
-d '{"status":"paused"}'status को active, paused, या archived होना चाहिए।
भुगतान अनुरोध ईमेल भेजें
MakeCrypto होस्टेड लिंक को सीधे भुगतान-लिंक पेलोड पर ग्राहक ईमेल पर या अनुरोध निकाय में ओवरराइड ईमेल पर भेज सकता है।
curl -X POST "https://www.makecrypto.io/api/partner/v1/makepay/payment-links/PAYMENT_LINK_UID/send-request-email" \
-H "x-makecrypto-key-id: MAKEPAY_API_KEY_ID" \
-H "x-makecrypto-key-secret: MAKEPAY_API_SECRET" \
-H "Content-Type: application/json" \
-d '{"email":"buyer@example.com"}'केवल सक्रिय भुगतान लिंक ही ईमेल किए जा सकते हैं। पूर्ण भुगतान लिंक दोबारा नहीं भेजे जा सकते।