Projects

This chapter refers to the chapter "3.3 Generating API.key via API" of the flex.API documentation.

General

The call for creating a new project or sub-contract is similar to the previous API.

API call

Previous API

URL: https://api.secupay.ag/payment/requestapikey

HTTP Method: POST

{
  "data":{
    "apikey":"1835afe17833ec0c2f0eb950a184b881ad9135d9",
    "user":{
      "title":"Herr",
      "company":"Firma",
      "firstname":"Test FN",
      "lastname":"Test LN",
      "street":"Test Street",
      "housenumber":"5t",
      "zip":"12345",
      "city":"TestCity",
      "telephone":"+4912342134123",
      "industry":"4812",
      "dob_value":"01.02.1903",
      "email":"test@ema.il",
      "homepage":"www.test.de"
    },
    "payout_account":{
      "accountowner":"Test Inhaber",
      "iban":"DE37503240001000000524",
      "bic":"FTSBDEFAXXX"
    },
    "project":{
      "name":"APITest Shop"
    },
    "iframe_opts":{
      "show_basket":true,
      "basket_title":"Ihr Warenkorb",
      "submit_button_title":"Kostenpflichtig Bestellen!"
    },
    "payin_account":false
  }
}
{
  "status":"ok",
  "data":{
    "apikey":"d7a78f8363ed086e3235df4e627e2d69a57ed61a",
    "contract_id":"1234",
    "payin_account":{
      "accountowner":"Test Inhaber",
      "iban":"DE37503240001000000524",
      "bic":"FTSBDEFAXXX"
    }
  },
  "errors":null
}

Current API

URL: https://connect.secucard.com/api/v2/Payment/Contracts/me/RequestId

HTTP Method: POST

{
  "contact":{
    "salutation":"Herr",
    "companyname":"Firma",
    "forename":"Test FN",
    "surname":"Test LN",
    "address":{
      "type":"invoice",
      "street":"Test Street",
      "street_number":"5t",
      "postal_code":"12345",
      "city":"TestCity",
      "country":"DE"
    },
    "phone":[
      {
        "type":"invoice",
        "phone":"+4912342134123"
      }
    ],
    "dob":"1901-02-03",
    "email":{
      "type":"invoice",
      "email":"test@ema.il"
    },
    "url_website":"www.test.de"
  },
  "payout_account":{
    "owner":"Test Inhaber",
    "iban":"DE37503240001000000524",
    "bic":"FTSBDEFAXXX"
  },
  "project":"APITest Shop",
  "iframe_opts":{
    "show_basket":true,
    "basket_title":"Ihr Warenkorb",
    "submit_button_title":"Kostenpflichtig Bestellen!"
  },
  "payin_account":false
}
{
  "contract":{
    "object":"payment.contracts",
    "id":"PCR_3EEVFK2PV2MDZZX2875XU8DUQAA0AK",
    "parent":{
      "object":"payment.contracts",
      "id":"PCR_WUJF6S7G32MBFBUG875XU8HP0JQQAH"
    },
    "demo":false,
    "allow_cloning":false,
    "sepa_mandate_inform":"never",
    "created":"2017-09-08T15:07:16+02:00"
  },
  "apikey":"d7a78f8363ed086e3235df4e627e2d69a57ed61a",
  "payin_account":null
}