Create

You can create invoices if you want to receive the exact amount of fiat.

Create invoice

POST https://my.cryptopayments.pro/api/v2/invoice/new

Headers

Request Body

{
    "foreign_id":"hzqky3SdrSG4CMwrOwT6bWakWGX1HAeY",
    "status":"created",
    "expired_at":"2020-06-09T10:14:13.047Z",
    "client_amount":200,
    "client_currency":"EUR",
    "addresses":[
        {
            "address":"3BPnYXwMMeAt1UuHXUEomRByMWiUxDfZVn",
            "expected_amount":0.02594724,
            "crypto_currency":"BTC",
            "rate_usd":0,
            "rate_eur":7785.027
        },
        {
            "address":"0xCDF64E06539390eF44a2E947BdDFC2a7606BaCC7",
            "expected_amount":1.0333538,
            "crypto_currency":"ETH",
            "rate_usd":0,
            "rate_eur":195.48
        }
    ]
}
curl -X POST https://my.cryptopayments.pro/api/v2/invoice/new \
    -H 'Content-type: application/json' \
    -H 'X-Processing-Key: zyj0tEv5...PFQlO5OArdQD' \
    -H 'X-Processing-Signature: 25d318a3ec541a426...b78d5a5414718cce8ad' \
    -d '{"amount":200,"fiat_currency":"EUR","allow_paid_expired":true}'
curl -X POST https://my.cryptopayments.pro/api/v2/invoice/new \
    -H 'Content-type: application/json' \
    -H 'X-Processing-Key: zyj0tEv5...PFQlO5OArdQD' \
    -H 'X-Processing-Signature: 25d318a3ec541a426...b78d5a5414718cce8ad' \
    -d '{"amount":200,"fiat_currency":"EUR","url_success":"https://success.com","url_failure":"https://failure.io"}'

For web address invoice compile https://my.cryptopayments.pro/invoice/{invoice_id}

Example: https://my.cryptopayments.pro/invoice/HldQrP11Lg3NkPpCojhtzYX0n19XouSW

Last updated