NAV Navigation
HTTP Shell JavaScript Node.js Java Python Go

Sca Fake v1.0.0

Scroll down for code samples, example requests and responses. Select a language for code samples from the tabs above or the mobile navigation menu.

Base URLs:

SCA

Perform a SCA operation

Code samples

POST https://api.int.proyecto-sol.es/sca-fake/v1/security/sca HTTP/1.1
Host: api.int.proyecto-sol.es
Content-Type: application/json;charset=UTF-8
Accept: application/json;charset=UTF-8

# You can also use wget
curl -X POST https://api.int.proyecto-sol.es/sca-fake/v1/security/sca \
  -H 'Content-Type: application/json;charset=UTF-8' \
  -H 'Accept: application/json;charset=UTF-8'

var headers = {
  'Content-Type':'application/json;charset=UTF-8',
  'Accept':'application/json;charset=UTF-8'

};

$.ajax({
  url: 'https://api.int.proyecto-sol.es/sca-fake/v1/security/sca',
  method: 'post',

  headers: headers,
  success: function(data) {
    console.log(JSON.stringify(data));
  }
})

const fetch = require('node-fetch');
const inputBody = '{
  "customerId": null,
  "operationData": "6e063266-3509-4f27-a4cc-7a197b72c866",
  "type": "SCA_TRANFER"
}';
const headers = {
  'Content-Type':'application/json;charset=UTF-8',
  'Accept':'application/json;charset=UTF-8'

};

fetch('https://api.int.proyecto-sol.es/sca-fake/v1/security/sca',
{
  method: 'POST',
  body: inputBody,
  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

URL obj = new URL("https://api.int.proyecto-sol.es/sca-fake/v1/security/sca");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
con.setRequestMethod("POST");
int responseCode = con.getResponseCode();
BufferedReader in = new BufferedReader(
    new InputStreamReader(con.getInputStream()));
String inputLine;
StringBuffer response = new StringBuffer();
while ((inputLine = in.readLine()) != null) {
    response.append(inputLine);
}
in.close();
System.out.println(response.toString());

import requests
headers = {
  'Content-Type': 'application/json;charset=UTF-8',
  'Accept': 'application/json;charset=UTF-8'
}

r = requests.post('https://api.int.proyecto-sol.es/sca-fake/v1/security/sca', params={

}, headers = headers)

print r.json()

package main

import (
       "bytes"
       "net/http"
)

func main() {

    headers := map[string][]string{
        "Content-Type": []string{"application/json;charset=UTF-8"},
        "Accept": []string{"application/json;charset=UTF-8"},
        
    }

    data := bytes.NewBuffer([]byte{jsonReq})
    req, err := http.NewRequest("POST", "https://api.int.proyecto-sol.es/sca-fake/v1/security/sca", data)
    req.Header = headers

    client := &http.Client{}
    resp, err := client.Do(req)
    // ...
}

POST /v1/security/sca

Verification of an SCA operation

Body parameter

{
  "customerId": null,
  "operationData": "6e063266-3509-4f27-a4cc-7a197b72c866",
  "type": "SCA_TRANFER"
}

Parameters

Name In Type Required Description
body body genericScaInitiationRequest false none

Example responses

400 Response

{
  "code": "core.error.invalid.input",
  "message": "The request does not contain valid data",
  "cid": "b23aebf4c9d6f5a3"
}

Responses

Status Meaning Description Schema
200 OK SCA initiated None
400 Bad Request SCA Request is not valid authorizationBadRequest
406 Not Acceptable Not acceptable Operation Type: TYPE None

Schemas

genericScaInitiationRequest

{
  "customerId": null,
  "operationData": "6e063266-3509-4f27-a4cc-7a197b72c866",
  "type": "SCA_TRANFER"
}

Properties

Name Type Required Restrictions Description
customerId uuid of the customer false none none
operationData string false none A operation unique identificator
type string false none the type of the authorized operation, retrieved via the push sent in the sca initiation.

authorizationBadRequest

{
  "code": "core.error.invalid.input",
  "message": "The request does not contain valid data",
  "cid": "b23aebf4c9d6f5a3"
}

Properties

Name Type Required Restrictions Description
code string false none none
message string false none none
cid string false none none