Payments API
Create a named key in your dashboard's API section. Each request requires your merchant ID and API key. The secret is shown once.
Open company dashboardBase URL
https://api.mcmoney.dev
Create an invoice
POST /v1/payment
Send the JSON body with the merchant and sign headers. Calculate the signature from the exact bytes you send.
sign = md5(base64(raw_json_bytes) + payment_api_key)
{
"amount": "1500.00",
"currency": "USD",
"order_id": "budget-2026-001",
"url_callback": "https://shop.example/payments/callback"
}
A successful response contains the invoice ID and the customer's payment link.
{"state":0,"result":{"uuid":"…","order_id":"budget-2026-001","url":"https://my.mcmoney.dev/pay/…"}}
Redirect the customer to result.url. Reusing an order_id within the same company returns the original invoice, amount, key and callback URL. Use a new order_id for a new invoice.
Request parameters
| Parameter | Value |
|---|---|
amount, currency | Send the amount as a string from 1 to 1,000,000 USD, with up to two decimal places. |
order_id | An order identifier of up to 100 characters. Use ASCII letters, digits, hyphens and underscores. |
lifetime | 300 to 43,200 seconds. Defaults to 3,600. |
is_payment_multiple | Allows additional payments. Defaults to true. |
accuracy_payment_percent | Accepted underpayment percentage, from 0 to 5. Defaults to 0. |
additional_data | Optional string, up to 255 characters. |
url_return, url_success | Return links to the merchant's website. |
to_currency, network | Restrict the payment currency and network. |
currencies, except_currencies | Lists of allowed or excluded payment methods. |
Payment-method list entry
{"currency":"USDT","network":"tron"}
| Currency | API network code |
|---|---|
| USDT | tron, eth, bsc |
| USDC | eth |
| TON / GRAM | ton |
Payment status
POST /v1/payment/info
Sign the request the same way. Send uuid or order_id. If both are present, order_id takes precedence. A company can access only its own invoices.
{"uuid":"…"}
Notifications
When the status changes, we POST JSON to url_callback. Use a public HTTPS URL on port 443 with no redirects.
type, uuid, order_id, amount, payment_amount, payment_amount_usd,
merchant_amount, commission, status, is_final, currency,
payer_currency, payer_amount, network, txid, additional_data, sign
Remove sign. Serialize all remaining fields in their original order with no spaces, preserving Unicode and escaping forward slashes. In PHP use JSON_UNESCAPED_UNICODE. Compare signatures in constant time.
expected = md5(base64(callback_json_without_sign) + payment_api_key)
Notifications use the key that created the invoice. Revoking the key does not interrupt notifications for existing invoices.
| Status | Value |
|---|---|
check, confirm_check | Awaiting payment or network confirmation. |
paid, paid_over | Payment or overpayment confirmed. is_final is true. |
wrong_amount_waiting, wrong_amount | Partial payment. The first status allows top-ups. The second closes the underpaid invoice. |
cancel | The unpaid invoice expired. A late confirmed payment can still change its status to paid. |
Return HTTP 2xx. Process repeated notifications idempotently by uuid and status. The retry interval can reach one hour. View the delivery log in your dashboard.
Compatibility
The API supports USD invoices, status queries and notifications. Set the base URL, Merchant ID and Payment API key in your compatible integration.
subtract and discount_percent accept only 0. is_refresh accepts only false. Unsupported parameters return HTTP 422.
Payouts, refunds, exchange, static addresses, AML screening and energy rental are unavailable through this API. Quotes include the processing fee. The platform commission field is zero.