- Overview
- Payments
- Payouts
- Reserved Account
Initialize Crypto Payment
POST
https://devapi.collect.africa/payments/crypto/initialize
Payments
Last modified:2025-05-05 21:11:17
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Body Params application/json
reference
string
required
Example:
order_12345
currency
string
required
Example:
USD
coin
enum<string>
required
Allowed values:
USDTUSDC
chain
enum<string>
required
Allowed values:
tronsolanapolygon
amount
number
required
Example:
100.5
is_fee_paid_by_user
boolean
optional
Example:
false
expires_in_seconds
number
required
Example:
900
metadata
object
optional
Example
{
"reference": "order_12345",
"currency": "USD",
"coin": "USDT",
"chain": "tron",
"amount": 100.5,
"is_fee_paid_by_user": false,
"expires_in_seconds": 900,
"metadata": {}
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://devapi.collect.africa/payments/crypto/initialize' \
--header 'Content-Type: application/json' \
--data-raw '{
"reference": "order_12345",
"currency": "USD",
"coin": "USDT",
"chain": "tron",
"amount": 100.5,
"is_fee_paid_by_user": false,
"expires_in_seconds": 900,
"metadata": {}
}'
Responses
🟢200OK
application/json
Body
message
string
required
data
object
optional
status
string
required
reference
string
required
address
string
required
chain
string
required
expires_at
string
required
amount
number
required
Example
{
"message": "string",
"data": {
"status": "string",
"reference": "string",
"address": "string",
"chain": "string",
"expires_at": "string",
"amount": 0
}
}
🟢201Created