Update merchant application payment provider payment methods
Updates the enabled payment methods for the configured payment provider on the given application. The application must belong to the authenticated merchant.
curl -X PATCH "https://api.example.com/api/v1/applications/example_string/providers/stripe/payment-methods" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN (JWT)" \
-d '{
"paymentMethods": [
"card",
"blik"
]
}'
import requests
import json
url = "https://api.example.com/api/v1/applications/example_string/providers/stripe/payment-methods"
headers = {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_API_TOKEN (JWT)"
}
data = {
"paymentMethods": [
"card",
"blik"
]
}
response = requests.patch(url, headers=headers, json=data)
print(response.json())
const response = await fetch("https://api.example.com/api/v1/applications/example_string/providers/stripe/payment-methods", {
method: "PATCH",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_API_TOKEN (JWT)"
},
body: JSON.stringify({
"paymentMethods": [
"card",
"blik"
]
})
});
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"net/http"
"bytes"
"encoding/json"
)
func main() {
data := []byte(`{
"paymentMethods": [
"card",
"blik"
]
}`)
req, err := http.NewRequest("PATCH", "https://api.example.com/api/v1/applications/example_string/providers/stripe/payment-methods", bytes.NewBuffer(data))
if err != nil {
panic(err)
}
req.Header.Set("Content-Type", "application/json")
req.Header.Set("Authorization", "Bearer YOUR_API_TOKEN (JWT)")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
fmt.Println("Response Status:", resp.Status)
}
require 'net/http'
require 'json'
uri = URI('https://api.example.com/api/v1/applications/example_string/providers/stripe/payment-methods')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(uri)
request['Content-Type'] = 'application/json'
request['Authorization'] = 'Bearer YOUR_API_TOKEN (JWT)'
request.body = '{
"paymentMethods": [
"card",
"blik"
]
}'
response = http.request(request)
puts response.body
{
"applicationId": "00000000-0000-0000-0000-000000000000",
"provider": "stripe",
"isActive": true,
"paymentMethods": [
"card",
"blik"
],
"keyFingerprint": "rk_live_****x1sf",
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-01T00:00:00.000Z"
}
{
"error": "Unauthorized",
"message": "Authentication required. Please provide a valid API token",
"code": 401
}
{
"error": "Forbidden",
"message": "You don't have permission to access this resource",
"code": 403
}
{
"error": "Not Found",
"message": "The requested resource was not found",
"code": 404
}
{
"error": "Unprocessable Entity",
"message": "The request was well-formed but contains semantic errors",
"code": 422,
"details": [
{
"field": "password",
"message": "Password must be at least 8 characters long"
}
]
}
{
"error": "Error",
"message": "Service temporarily unavailable.",
"code": 502
}
{
"error": "Error",
"message": "Request timed out.",
"code": 504
}
/api/v1/applications/{applicationId}/providers/{providerName}/payment-methodsTarget server for requests. Edit to use your own host.
Bearer token (JWT) - just enter the token, "Bearer" prefix will be added automatically
ID of the application that owns the provider configuration.
Name identifier of the payment provider whose payment methods are updated.
The media type of the request body
Payment method types to enable for this provider.
Request Preview
Response
Response will appear here after sending the request
Authentication
Bearer token (JWT). Authentication token required.
Path Parameters
ID of the application that owns the provider configuration.
Name identifier of the payment provider whose payment methods are updated.
stripeBody
Responses
Merchant application ID this configuration belongs to.
Payment provider name.
Whether the configuration is active.
Enabled payment method types.
First 8 characters and last 4 characters of the API key with the middle redacted. Used to identify the key without exposing its value.
Creation timestamp.
Last update timestamp.