Get available payment methods
Returns the available payment methods for the authenticated user: SEPA mandate (if exists) and saved credit/debit cards. Use the returned IDs with POST /payments.
Authorizations
Section titled “Authorizations ”Responses
Section titled “ Responses ”Payment methods
Available payment methods
object
SEPA direct debit mandate, if the user has one
object
SEPA mandate ID
Masked IBAN
Last 4 digits of IBAN
Bank name
BIC/SWIFT code
Account holder name
Street address
Postal code
City
Creation date (unix timestamp)
Saved credit/debit cards
object
Card ID
Last 4 digits of the card
Expiration month
Expiration year
Card brand (e.g. visa, mastercard)
Issuing country code
Creation date (unix timestamp)
Examples
Payment methods example
Example response for GET /payment-methods
{ "sepa_mandate": { "id": 747, "iban_masked": "DExxxxxxxxxxxxxxxx0 00", "last4": "3000", "bank": "", "bic": "37040044", "account_holder": "", "street": "", "postcode": 0, "city": "", "created_at": 1775504768 }, "stored_cards": [ { "id": 94, "last4": "4242", "exp_month": 12, "exp_year": 2034, "brand": "visa", "country": "US", "created_at": 1781775977 } ]}Client ID or API key isn’t active or invalid!
Account isn’t activated. Please wait or contact to support!
IP address was temporary blocked, because during short time from it was sent many request with invalid credentials. Please wait and try later.
Code Samples
curl -s 'https://api.lox24.eu/payment-methods' \ -H 'X-LOX24-AUTH-TOKEN: YOUR_API_TOKEN' | jqusing System;using System.Net.Http;using System.Threading.Tasks;
class Program{ static async Task Main() { using var client = new HttpClient(); client.DefaultRequestHeaders.Add("X-LOX24-AUTH-TOKEN", "YOUR_API_TOKEN"); client.DefaultRequestHeaders.Add("Accept", "application/json");
var response = await client.GetAsync("https://api.lox24.eu/payment-methods"); var result = await response.Content.ReadAsStringAsync(); Console.WriteLine(result); }}package main
import ( "fmt" "io" "net/http")
func main() { req, _ := http.NewRequest("GET", "https://api.lox24.eu/payment-methods", nil) req.Header.Set("X-LOX24-AUTH-TOKEN", "YOUR_API_TOKEN") req.Header.Set("Accept", "application/json")
resp, _ := http.DefaultClient.Do(req) defer resp.Body.Close() respBody, _ := io.ReadAll(resp.Body) fmt.Println(string(respBody))}import java.net.URI;import java.net.http.HttpClient;import java.net.http.HttpRequest;import java.net.http.HttpResponse;
public class Main { public static void main(String[] args) throws Exception { var client = HttpClient.newHttpClient(); var request = HttpRequest.newBuilder() .uri(URI.create("https://api.lox24.eu/payment-methods")) .header("X-LOX24-AUTH-TOKEN", "YOUR_API_TOKEN") .header("Accept", "application/json") .GET() .build();
var response = client.send(request, HttpResponse.BodyHandlers.ofString()); System.out.println(response.body()); }}fetch('https://api.lox24.eu/payment-methods', { headers: { 'X-LOX24-AUTH-TOKEN': 'YOUR_API_TOKEN', 'Accept': 'application/json' }}).then(res => res.json()).then(console.log);<?php
$ch = curl_init('https://api.lox24.eu/payment-methods');curl_setopt($ch, CURLOPT_HTTPHEADER, [ 'X-LOX24-AUTH-TOKEN: YOUR_API_TOKEN', 'Accept: application/json']);curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);curl_close($ch);
echo $response;import requests
response = requests.get( 'https://api.lox24.eu/payment-methods', headers={ 'X-LOX24-AUTH-TOKEN': 'YOUR_API_TOKEN', 'Accept': 'application/json' })print(response.json())