/createinvoice method

To create new invoice with a predefined checkout currency and a payment address please send a POST request to the /api/merchant/v1/createinvoice

This type of requests must include correct secret_hash and checkout_currency parameters. Users cannot choose another payment method.

A successful request will create a hosted checkout page https://www.cryptonator.com/merchant/invoice/<invoice_id> and a HTTP-notification with all the invoice parameters will be sent to the provided callback URL.

Red color indicates required parameters

Parameter Type and Values Description
merchant_id <UUID> Merchant ID.
item_name <string> Name of an item or service.
order_id <string> Description of an item or service.
item_description <string> Description of an item or service.
checkout_currency

<string>

blackcoin
bitcoin
dash
dogecoin
emercoin
litecoin
peercoin

Checkout currency.
invoice_amount <decimal> Invoice amount.
 invoice_currency usd – US dollar
eur – Euro
rur – Rubles

blackcoin
bitcoin
dash
dogecoin
emercoin
litecoin
peercoin

 Invoice currency.
success_url <string> An URL to which users will be redirected after a successful payment.

If undefined, default setting is used.

failed_url

<string>

An URL to which users will be redirected after a cancelled or failed payment.

If undefined, default setting is used.

 language en - English
de - German
es - Spanish
fr – French
ru - Russian
cn - Chinese
Language of the checkout page.

If undefined, English is used by default.

secret_hash <string>

Verification hash

secret_hash = sha1(string&secret)