POST
/
v1
/
payment-intents
/
direct
Creer une charge crypto directe (adresse retournee)
curl --request POST \
  --url https://api.pay.izichange.com/v1/payment-intents/direct \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'idempotency-key: <idempotency-key>' \
  --data '
{
  "requestedCoin": "USDT.TRC20",
  "amount": "100",
  "customer": {
    "firstName": "<string>",
    "lastName": "<string>",
    "email": "<string>",
    "refundAddress": "<string>"
  },
  "merchantReference": "<string>",
  "idempotencyKey": "<string>",
  "metadata": {}
}
'

Autorisations

Authorization
string
header
requis

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

En-têtes

idempotency-key
string
requis
Idempotency-Key
string

Cle d'idempotence (recommandee) pour eviter les doublons en cas de rejeu.

Corps

application/json
requestedCoin
string
requis

Crypto demandee, reseau-qualifiee (assetCode). Ex: USDT.TRC20, USDT.BEP20, BTC, ETH. Un coinCode (ex: USDT) n'est accepte que s'il ne reste qu'un seul reseau actif pour ce coin sur votre compte.

Exemple:

"USDT.TRC20"

amount
string
requis

Montant a recevoir, libelle dans requestedCoin.

Exemple:

"100"

customer
object
requis

Informations du client (obligatoires).

merchantReference
string

Reference interne du marchand.

idempotencyKey
string

Cle d'idempotence (recommandee).

metadata
object

Donnees arbitraires attachees a l'intent.

Réponse

Intention creee + adresse allouee. Renvoie depositAddress, memo/memoType (chaines a tag), amountToSend/amountCryptoExpected, expiresAt/expiryHours.