REST API Documentation





Function overview






Custom types overview






Functions



CreateTransaction

(String publicKey, CreateTransactionRequest request)

Description: This function creates the initial transaction. There are some options for it, please check the described parameters.

Method: POST
Endpoint: https://premium.black/service/rest/Pay.svc/CreateTransaction
Request Body: Json
Response Body: Json

Request parameters:
NameDatatypeDescription
publicKeyString-
requestCreateTransactionRequest -
NameDatatypeMax lengthIs optional
CurrencyString-
BlockchainString-
AmountString-
PriceCurrencyString-
IPNString-
CustomDataString-
CustomUserIdString-
CustomerMailString-
CustomOrderIdString-
BlockAddressString-
ReturnQRCodeString-
HashString-
ErrorString-
EnvironmentString-

Descriptions
CurrencyThe crypto currency which should be requested.
Blockchain-
AmountThe amount to request in fiat currency (i.e. 100 for 100€)
PriceCurrencyThe fiat currency which will be used to fix the price.
IPNThe callback url for the status changes.
CustomDataCustom data you want to add to this transaction.
CustomUserIdA custom user id you want to add to this transaction.
CustomerMailYour customers mail address, if you want to add to this transaction. (good for researches)
CustomOrderIdA custom order id you want to add to this transaction.
BlockAddressSet to true if the crypto address for the transaction should be linked/blocked right away. If false or null it will blocked on first user visit of the status page. (i.e. custom status pages)
ReturnQRCodeShould the QR Code be returned in base64 encoding ?
HashA SHA256 Bit lowercase Hash of all fields in ascending sort order (excluding the Hash field)
Error-
Environment-


Response parameters:
NameDatatypeDescription
-CreateTransactionResponse -
NameDatatype
TransactionIdString
TransactionKeyString
CurrencyString
PricingCurrencyString
AmountString
OriginalAmountString
UrlString
StatusString
StatusEnumeStatus
AddressToReceiveString
AllowOverpayBoolean
AllowUnderpayBoolean
ExchangeExchangeData
QRCodeString
SystemString
HashString
ErrorString
EnvironmentString

Descriptions
TransactionIdThe ID of the transaction.
TransactionKeyThe Key of the transaction.
CurrencyThe crypto currency which has been requested
PricingCurrencyThe fiat currency which has been used to fix the price.
AmountThe requested crypto currency amount
OriginalAmountThe requested fiat currency amount
UrlOn success, contains the url of the status page
StatusContains the plain status text
StatusEnum-
AddressToReceiveThe address where the customer needs to sent the coins.
AllowOverpayThis transaction allows overpayment.
AllowUnderpayThis transaction allows underpayment.
ExchangeThe used exchange to fix the price.
QRCodeThe QR Code, Use: 'data:image/gif;base64,' + qrcode
System-
HashA SHA256 Bit lowercase Hash of all fields in ascending sort order (excluding the Hash field)
Error-
Environment-