Skip to main content
Version: v0.9

Create Payment

POST
/v0/payments

Creates a new cryptocurrency payment request. This endpoint generates a crypto payment address for your customer to send funds to and initiates payment tracking.

Request Parameters

ParameterTypeDescription
amount_usd requirednumberThe payment amount in USD. Will be converted to the equivalent cryptocurrency amount based on daily exchange rates.
blockchain requiredstringThe blockchain network to use for the payment. Options: ETH, BSC, BTC, TRX
callback_url optionalstringA URL that will receive payment status updates via webhooks. Must be a valid HTTPS URL.
custom_id optionalstringYour custom identifier for this payment (e.g., an order number). Max 64 characters.

Example Request

POST /v0/payments
Content-Type: application/json
X-API-Key: your_api_key_here

{
"amount_usd": 100.00,
"blockchain": "ETH",
"callback_url": "https://your-site.com/payment/callback",
"custom_id": "ORDER-12345"
}

Response Parameters

ParameterTypeDescription
payment_idstringUnique identifier for the payment. Use this to check status or reference the payment.
crypto_amountnumberThe amount of cryptocurrency to be paid, calculated based on daily exchange rates.
addressstringThe cryptocurrency address where funds should be sent.
expiry_timestringISO 8601 timestamp indicating when the payment request expires.
tokenstringThe cryptocurrency token to be used for payment (USDT, or BTC for Bitcoin network).
blockchainstringThe blockchain network being used (ETH, BSC, BTC, or TRX).

Example Response

{
"error": "deprecated_endpoint",
"message": "This API endpoint is deprecated in v0.9 and no longer functional. Please use the v1.0 API endpoints instead.",
"request_id": "req_v09_deprecated"
}

Error Codes

Status CodeError CodeDescription
400invalid_requestThe request was malformed or contained invalid parameters.
401authentication_failedAuthentication failed. Check your API key.
410deprecated_endpointThis endpoint is deprecated in v0.9 and no longer functional. Please use the v1.0 API.
422unsupported_blockchainThe specified blockchain is not supported in v0.9 (only ETH, BSC, BTC, and TRX are supported).
429rate_limit_exceededYou have exceeded the rate limit for payment creation.
500payment_provider_errorAn error occurred with the payment processor. Contact support if this persists.

Notes

Important: This API endpoint is deprecated in v0.9 and will always return an error response. Please upgrade to the v1.0 API for current functionality.

  • This endpoint is no longer functional in v0.9 as the API has been deprecated.
  • All requests to this endpoint will receive the error response shown above.
  • To continue using the Cryptofuse API, please upgrade to the v1.0 API endpoints.