/startpayment method

To create new invoice send a GET request to the /api/merchant/v1/startpayment

The difference between /startpayment and /createinvoice methods is that the first one doesn't require the secret_hash parameter to be included in the request and also the checkout currency is not predefined here. Users can choose their preferred payment method right on the checkout page.

A successful /startpayment request will create a hosted checkout page https://www.cryptonator.com/merchant/invoice/<invoice_id>.

Once user chooses preferred payment method, Cryptonator generates unique payment address,  calculates payable amount in cryptocurrency and sends HTTP-notification with all the invoice parameters 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.
 item_description  <string>  Description of an item or service.
 order_id  <string>  Order ID for your accounting purposes.
 invoice_currency usd – US dollar
eur – Euro
rur – Rubles

blackcoin
bitcoin
dash
dogecoin
emercoin
litecoin
peercoin

 Invoice currency.
invoice_amount <decimal> Invoice amount.
 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.

 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.