D17 (In/Out)

Transfer via phone number (8 digits, without county code).

CountryTunisia
CurrencyTND (Tunisian dinar)
Method typed17
DirectionPayIn/PayOut
Integration typeWidget/H2H
Transfer typeTransfer via phone number (8 digits)
Account number format8-digits phone number
Limits****

Create PayIn request

Integration type: Widget/H2H
HTTP Method: POST
Endpoint: /deals/payin

{
  "amount": 50,                                // Payment amount
  "currency": "TND",                           // Currency
  "invoiceId": "invoiceID",                    // Unique invoice identifier on the merchant side
  "type": "d17",                               // Method type
  "successUrl": "Google ",                     // Optional (widget): URL for redirect on successful                                                     payment
  "failUrl": "Google ",                        // Optional (widget): URL for redirect on failed                                                         payment
  "backUrl": "Google ",                        // Optional (widget): URL for return without                                                             completing payment
  "lang": "AR"                                 // Optional (widget): localization EN/AR/FR
}

H2H Response Example (PayIn/Credentials)

{
    "account_number": "12345678",
    "account_owner": "d17",
    "account_iban": "",
    "account_phone": "12345678",
    "currency": {
        "_id": "bb3ff8cc-ea23-4237-8138-33b3a6446d66",
        "type": "FIAT",
        "code": "TND",
        "symbol": "DT",
        "label": "د.ت.‏",
        "decimal": 3,
        "countryName": "Tunisia",
        "countryCode": "TN"
    },
    "bank": {
        "_id": "40d999ca-0c89-46b6-a8b3-24d5ae048273",
        "name": "Any bank TND",
        "alias": "anybank",
        "logo": {
            "short": "https://1.gravatar.com/avatar/bdfe3e619e7589d8c567e07b485f640aadd457801f67ed50d4196b3a84c33ed0?size=64",
            "full": "https://1.gravatar.com/avatar/bdfe3e619e7589d8c567e07b485f640aadd457801f67ed50d4196b3a84c33ed0?size=256"
        },
        "type": "bank",
        "automationAvailable": true,
        "enabled": true,
        "isTopBank": false,
        "tagColor": "#000000",
        "currency": "TND",
        "currencyId": "bb3ff8cc-ea23-4237-8138-33b3a6446d66",
        "country": "TN",
        "isAnyBank": true,
        "supportedPaymentSystems": []
    },
    "type": "phone",
    "account_subtype": "d17",
    "amounts": {
        "crypto": 1.8693,
        "fiat": 201,
        "fiat_net": 186.93
    }
}

Create PayOut request

Integration type: Widget/H2H
HTTP Method: POST
Endpoint: /deals/payin

{
    "amount":10,                                  // Payment amount
    "currencyTo": "TND",                          // Currency
    "clientId": "clientId",                       // Unique client identifier on the merchant side
    "recipient": {                                // Recipient information 
        "account_number": "12345678",             // Mobile number linked to recipient's account
        "account_owner": "account_ownerID",       // Recipient's full name (account holder)
        "type": "phone"                           // Recipient account type
    },
    "type": "d17"                                 // Method type
}


Did this page help you?