You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
order_id: (String[1..128]) Order ID in your system. The parameter should be a string consisting of alphabetic characters, numbers, underscores, and dashes. It should not contain any spaces or special characters.
url_return: (String, Optional) Url to which the user will return after payment
138
-
url_callback: (String, Optional) Url to which webhooks with payment status will be sent
139
-
is_payment_multiple: (Bool, Optional) Whether payment of the remaining amount is possible (true/false)
140
-
lifetime: (?Int?, Optional) The lifespan of the issued invoice (?in seconds?)
141
-
to_currency: (String, Optional) Currency code for accepting payments
142
-
subtract: (?Float?, Optional) Percentage of the payment commission charged to the client. The subtract parameter allows you to specify what percentage of the payment acceptance will be paid by the client. If you have a payment commission 1%, then if you create an invoice for 100 USDT with subtract=100 (the client pays 100% commission), the client will have to pay 101 USDT.
143
-
accuracy_payment_percent: (?Float?, Optional) Acceptable inaccuracy in payment (min 0, max 5.00)
144
-
additional_data: (?String?, Optional) Additional information
145
-
currencies: (List[Currency], Optional) List of allowed currencies for payment Structure
146
-
except_currencies: (List[Currency], Optional) List of excluded currencies for payment Structure
138
+
url_return: (String[6..255], Optional) Before paying, the user can click on the button on the payment form and return to the store page at this URL.
139
+
url_success: (String[6..255], Optional) After successful payment, the user can click on the button on the payment form and return to this URL.
140
+
url_callback: (String[6..255], Optional) Url to which webhooks with payment status will be sent.
141
+
is_payment_multiple: (Bool, Optional) Whether the user is allowed to pay the remaining amount. This is useful when the user has not paid the entire amount of the invoice for one transaction, and you want to allow him to pay up to the full amount. If you disable this feature, the invoice will finalize after receiving the first payment and you will receive funds to your balance.
142
+
lifetime: (Int[300..43200], Optional) The lifespan of the issued invoice (?in seconds?)
143
+
to_currency: (String, Optional) The parameter is used to specify the target currency for converting the invoice amount. When creating an invoice, you provide an amount and currency, and the API will convert that amount to the equivalent value in the to_currency. For example, to create an invoice for 20 USD in bitcoin: amount: 20, currency: USD, to_currency: BTC. The API will convert 20 USD amount to its equivalent in BTC based on the current exchange rate and the user will pay in BTC.
144
+
subtract: (Int[0..100], Optional) Percentage of the payment commission charged to the client. If you have a rate of 1%, then if you create an invoice for 100 USDT with subtract = 100 (the client pays 100% commission), the client will have to pay 101 USDT.
145
+
accuracy_payment_percent: (Float[0..5], Optional) Acceptable inaccuracy in payment. For example, if you pass the value 5, the invoice will be marked as Paid even if the client has paid only 95% of the amount. The actual payment amount will be credited to the balance.
146
+
additional_data: (?String?, Optional) Additional information for you (not shown to the client).
147
+
currencies: (List[Currency][1..255], Optional) List of allowed currencies for payment. This is useful if you want to limit the list of coins that your customers can use to pay invoices.
148
+
except_currencies: (List[Currency], Optional) List of excluded currencies for payment.
149
+
course_source: (String[4..20], Optional) The service from which the exchange rates are taken for conversion in the invoice. If not passed, Cryptomus exchange rates are used. Available values: https://doc.cryptomus.com/payments/creating-invoice
150
+
from_referral_code: (String, Optional) The merchant who makes the request connects to a referrer by code. For example, you are an application that generates invoices via the Cryptomus API and your customers are other stores. They enter their api key and merchant id in your application, and you send requests with their credentials and passing your referral code. Thus, your clients become referrals on your Cryptomus account and you will receive income from their turnover.
151
+
discount_percent: (Int[-99..100], Optional) Positive numbers: allows you to set a discount. To set a 5% discount for the payment, you should pass a value: 5. Negative numbers: allows you to set custom additional commission. To set an additional commission of 10% for the payment, you should pass a value: -10.
152
+
is_refresh: (Bool, Optional) Using this parameter, you can update the lifetime and get a new address for the invoice if the lifetime has expired. To do that, you need to pass all required parameters, and the invoice with passed order_id will be refreshed.
153
+
154
+
* The order_id must be unique within the merchant invoices/static wallets/recurrence payments
155
+
* When we find an existing invoice with order_id, we return its details, a new invoice will not be created.
156
+
* The to_currency should always be the cryptocurrency code, not a fiat currency code.
157
+
* The discount percentage when creating an invoice is taken into account only if the invoice has a specific cryptocurrency.
158
+
* Only address, payment_status and expired_at are changed. No other fields are changed, regardless of the parameters passed.
url_callback: (String, Optional) Url to which webhooks with payment status will be sent
210
+
order_id: (String[1..100]) Order ID in your system. The parameter should be a string consisting of alphabetic characters, numbers, underscores, and dashes. It should not contain any spaces or special characters.
211
+
url_callback: (String[6..255], Optional) URL, to which the webhook will be sent after each top-up of the wallet.
212
+
from_referral_code: (String, Optional) The merchant who makes the request connects to a referrer by code. For example, you are an application that generates invoices via the Cryptomus API and your customers are other stores. They enter their api key and merchant id in your application, and you send requests with their credentials and passing your referral code. Thus, your clients become referrals on your Cryptomus account and you will receive income from their turnover.
213
+
214
+
* The order_id must be unique within the merchant invoices/static wallets/recurrence payments
215
+
* When we find an existing invoice with order_id, we return its details, a new invoice will not be created.
wallet_uuid: (String, Optional if order_id set) Wallet UUID
238
-
order_id: (String, Optional if wallet_uuid set) Order ID in your system
266
+
address: (String[10..128]) Refund all blocked funds to this address
267
+
wallet_uuid: (String, Optional if order_id set) UUID of a static wallet
268
+
order_id: (String[1..32], Optional if wallet_uuid set) Order ID of a static wallet
269
+
270
+
* To refund payments you need to pass either uuid or order_id, if you pass both, the static wallet will be identified by uuid
239
271
"""
240
272
method="wallet/blocked-address-refund"
241
273
params= {
@@ -259,7 +291,9 @@ def payment_information(self,
259
291
Requires PAYMENT API key
260
292
261
293
invoice_uuid: (String, Optional if order_id set) Invoice UUID
262
-
order_id: (String, Optional if wallet_uuid set) Order ID in your system
294
+
order_id: (String[1..128], Optional if wallet_uuid set) Invoice order ID
295
+
296
+
* To get the invoice status you need to pass one of the required parameters, if you pass both, the account will be identified by order_id
263
297
"""
264
298
method="payment/info"
265
299
params= {
@@ -281,10 +315,12 @@ def refund(self,
281
315
You need to pass one of the required parameters, if you pass both, the account will be identified by invoice_uuid
282
316
Requires PAYMENT API key
283
317
284
-
address: (String) Refund address
285
-
is_subtract: (Bool) Determines whether the commission is to be charged to the merchantor to the client (True - to the merchant, False - to the client)
318
+
address: (String) The address to which the refund should be made
319
+
is_subtract: (Bool) Whether to take a commission from the merchant's balance or from the refund amount. true - take the commission from merchant balance. false - reduce the refundable amount by the commission amount
286
320
invoice_uuid: (String, Optional if order_id set) Invoice UUID
287
-
order_id: (String, Optional if wallet_uuid set) Order ID in your system
321
+
order_id: (String[1..128], Optional if invoice_uuid set) Invoice order ID
322
+
323
+
* Invoice is identified by order_id or uuid, if you pass both, the account will be identified by uuid
0 commit comments