NAV
bash javascript php python

Info

Welcome to the generated API reference. Get Postman Collection

Exchange

Create Exchange

Create an exchange and receive a bank or crypto address with / as reference code.


Requires authentication

Example request:

curl -X POST \
    "https://coinnexus.ch/api/exchangePost" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -d '{"customer":{"iban":"NL35ABNA9732254661","cryptoAddress":"1bSUZAzYR24i1jqkKaHg1JQzN5o6Kj1Vh","bic":"BNPABGSX","fullName":"Madeleine Kanz","address":"Brunnenstr. 3","zip":"8610","city":"Uster","country":"CH","email":"madeleine.kanz@example.com"},"lang":"en","type":"buy","crypto":"btc","cryptoAmount":"0.053","fiat":"chf","fiatAmount":"50.21"}'
const url = new URL(
    "https://coinnexus.ch/api/exchangePost"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

let body = {
    "customer": {
        "iban": "NL35ABNA9732254661",
        "cryptoAddress": "1bSUZAzYR24i1jqkKaHg1JQzN5o6Kj1Vh",
        "bic": "BNPABGSX",
        "fullName": "Madeleine Kanz",
        "address": "Brunnenstr. 3",
        "zip": "8610",
        "city": "Uster",
        "country": "CH",
        "email": "madeleine.kanz@example.com"
    },
    "lang": "en",
    "type": "buy",
    "crypto": "btc",
    "cryptoAmount": "0.053",
    "fiat": "chf",
    "fiatAmount": "50.21"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://coinnexus.ch/api/exchangePost',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
        'json' => [
            'customer' => [
                'iban' => 'NL35ABNA9732254661',
                'cryptoAddress' => '1bSUZAzYR24i1jqkKaHg1JQzN5o6Kj1Vh',
                'bic' => 'BNPABGSX',
                'fullName' => 'Madeleine Kanz',
                'address' => 'Brunnenstr. 3',
                'zip' => '8610',
                'city' => 'Uster',
                'country' => 'CH',
                'email' => 'madeleine.kanz@example.com',
            ],
            'lang' => 'en',
            'type' => 'buy',
            'crypto' => 'btc',
            'cryptoAmount' => '0.053',
            'fiat' => 'chf',
            'fiatAmount' => '50.21',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://coinnexus.ch/api/exchangePost'
payload = {
    "customer": {
        "iban": "NL35ABNA9732254661",
        "cryptoAddress": "1bSUZAzYR24i1jqkKaHg1JQzN5o6Kj1Vh",
        "bic": "BNPABGSX",
        "fullName": "Madeleine Kanz",
        "address": "Brunnenstr. 3",
        "zip": "8610",
        "city": "Uster",
        "country": "CH",
        "email": "madeleine.kanz@example.com"
    },
    "lang": "en",
    "type": "buy",
    "crypto": "btc",
    "cryptoAmount": "0.053",
    "fiat": "chf",
    "fiatAmount": "50.21"
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):

{
    "id": 142,
    "p_accountHolder": "Coinnexus SA",
    "p_bic": "BCNNCH22",
    "p_bankName": "BCN, Switzerland",
    "p_bankCountry": "CH",
    "lang": "en",
    "type": "buy",
    "crypto": "BTC",
    "cryptoAmount": null,
    "fiat": "CHF",
    "fiatAmount": "50.21",
    "c_iban": "NL35ABNA9732254661",
    "c_cryptoAddress": "1bSUZAzYR24i1jqkKaHg1JQzN5o6Kj1Vh",
    "c_bic": "BNPABGSX",
    "c_fullName": "Madeleine Kanz",
    "c_address": "Brunnenstr. 3",
    "c_zip": "8610",
    "c_city": "Uster",
    "c_country": "CH",
    "c_email": "madeleine.kanz@example.com",
    "refAmount": 50.21,
    "p_iban": "CH44 0076 6000 1034 4164 1",
    "p_reference": "KmWB",
    "originalPaymentStatus": "new",
    "updated_at": "2020-04-15T11:29:21.000000Z",
    "created_at": "2020-04-15T11:29:20.000000Z"
}

HTTP Request

POST api/exchangePost

Body Parameters

Parameter Type Status Description
customer.iban string required Customer
customer.cryptoAddress string optional Customer (required_if:type=buy)
customer.bic string optional Customer (required_if:type=sell)
customer.fullName string optional Customer (required_if:type=sell)
customer.address string optional Customer (required_if:type=sell)
customer.zip string optional Customer (required_if:type=sell)
customer.city string optional Customer (required_if:type=sell)
customer.country string optional Customer (required_if:type=sell)
customer.email string required Customer
lang string required The lang of your exchange.
type string required The type (buy,sell) of your exchange.
crypto string optional The cryptocurrency (btc) of your exchange.
cryptoAmount string optional The amount in crypto of your exchange.
fiat string optional string The fiatcurrency (chf,eur,usd) of your exchange.
fiatAmount string optional The amount in crypto of your exchange.

Check Exchange Limit

Check exchange limit of 5000 CHF per year by bank or crypto address.


Requires authentication

Example request:

curl -X POST \
    "https://coinnexus.ch/api/checkLimit" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -d '{"iban":"NL35ABNA9732254661","cryptoAddress":"1bSUZAzYR24i1jqkKaHg1JQzN5o6Kj1Vh","crypto":"btc","cryptoAmount":"0.3456"}'
const url = new URL(
    "https://coinnexus.ch/api/checkLimit"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

let body = {
    "iban": "NL35ABNA9732254661",
    "cryptoAddress": "1bSUZAzYR24i1jqkKaHg1JQzN5o6Kj1Vh",
    "crypto": "btc",
    "cryptoAmount": "0.3456"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->post(
    'https://coinnexus.ch/api/checkLimit',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
        'json' => [
            'iban' => 'NL35ABNA9732254661',
            'cryptoAddress' => '1bSUZAzYR24i1jqkKaHg1JQzN5o6Kj1Vh',
            'crypto' => 'btc',
            'cryptoAmount' => '0.3456',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://coinnexus.ch/api/checkLimit'
payload = {
    "iban": "NL35ABNA9732254661",
    "cryptoAddress": "1bSUZAzYR24i1jqkKaHg1JQzN5o6Kj1Vh",
    "crypto": "btc",
    "cryptoAmount": "0.3456"
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Example response (200):

{
    "withinLimit": true
}

HTTP Request

POST api/checkLimit

Body Parameters

Parameter Type Status Description
iban string optional Iban to check limit.
cryptoAddress string optional Crypto address to check limit.
crypto string optional Cryptocurrency to check limit. (btc)
cryptoAmount string optional Crypto amount to check limit.

Show Exchange

Show an existing exchange. The 'originalPaymentStatus' can be 'new' (after invoice created), 'paidUnconfirmed' (outstanding confirmation), 'proceeding' (internal payment proceeding), 'paidIn' or 'paidOut'.


Requires authentication

Example request:

curl -X GET \
    -G "https://coinnexus.ch/api/exchange/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -d '{"id":"345"}'
const url = new URL(
    "https://coinnexus.ch/api/exchange/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

let body = {
    "id": "345"
}

fetch(url, {
    method: "GET",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://coinnexus.ch/api/exchange/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
        'json' => [
            'id' => '345',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://coinnexus.ch/api/exchange/1'
payload = {
    "id": "345"
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('GET', url, headers=headers, json=payload)
response.json()

Example response (200):

{
    "id": 142,
    "p_accountHolder": "Coinnexus SA",
    "p_bic": "BCNNCH22",
    "p_bankName": "BCN, Switzerland",
    "p_bankCountry": "CH",
    "lang": "en",
    "type": "buy",
    "crypto": "BTC",
    "cryptoAmount": null,
    "fiat": "CHF",
    "fiatAmount": "50.21",
    "c_iban": "NL35ABNA9732254661",
    "c_cryptoAddress": "1bSUZAzYR24i1jqkKaHg1JQzN5o6Kj1Vh",
    "c_bic": "BNPABGSX",
    "c_fullName": "Madeleine Kanz",
    "c_address": "Brunnenstr. 3",
    "c_zip": "8610",
    "c_city": "Uster",
    "c_country": "CH",
    "c_email": "madeleine.kanz@example.com",
    "refAmount": 50.21,
    "p_iban": "CH44 0076 6000 1034 4164 1",
    "p_reference": "KmWB",
    "originalPaymentStatus": "paidOut",
    "updated_at": "2020-04-15T11:29:21.000000Z",
    "created_at": "2020-04-15T11:29:20.000000Z"
}

HTTP Request

GET api/exchange/{id}

Body Parameters

Parameter Type Status Description
id string required Exchange ID

Check Exchange Rate

Check exchange rate by crypto and fiat pair.

Example request:

curl -X GET \
    -G "https://coinnexus.ch/api/rate/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Authorization: Bearer {token}" \
    -d '{"currency_pair":"chf_btc, btc_chf, btc_eur, ..."}'
const url = new URL(
    "https://coinnexus.ch/api/rate/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
    "Authorization": "Bearer {token}",
};

let body = {
    "currency_pair": "chf_btc, btc_chf, btc_eur, ..."
}

fetch(url, {
    method: "GET",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get(
    'https://coinnexus.ch/api/rate/1',
    [
        'headers' => [
            'Content-Type' => 'application/json',
            'Accept' => 'application/json',
            'Authorization' => 'Bearer {token}',
        ],
        'json' => [
            'currency_pair' => 'chf_btc, btc_chf, btc_eur, ...',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = 'https://coinnexus.ch/api/rate/1'
payload = {
    "currency_pair": "chf_btc, btc_chf, btc_eur, ..."
}
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
  'Authorization': 'Bearer {token}'
}
response = requests.request('GET', url, headers=headers, json=payload)
response.json()

Example response (200):

{
    "name": "Euro",
    "cryptoCode": "BTC",
    "currencyPair": "BTC_EUR",
    "code": "EUR",
    "rate": 6318.163170000001,
    "fee": "0.0197"
}

HTTP Request

GET api/rate/{currency_pair}

Body Parameters

Parameter Type Status Description
currency_pair string optional Currency Pair