Obtain available payment methods

A GET request to /payment/gettypes returns all available payment methods. We recommended you to run this query prior to offering a payment method, so that you do not get unwanted error messages if the particular payment method is not available.

Request
GET /payment/gettypes HTTP/1.1
Host: api-testing.secupay-ag.de
Content-Type: application/json; charset=utf-8;
Accept: application/json
 
{
"data": {
"apikey":"6801fxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx7ace"
}
}

If everything is OK, the API responds with 200 OK:

Response
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8;
...
 
{
"status": "ok",
"data": [
"prepay",
"debit",
"invoice",
"creditcard",
"transfer",
"payout",
"sofort"
],
"errors": null
}

The returned payment methods correspond one-to-one with the field payment_type that is passed when you create a new transaction.