Company Payment Settings
GET https://leads.qreq.com/api/company-payment-settings/
curl --request GET \
--url 'https://leads.qreq.com/api/company-payment-settings/' \
--header 'Authorization: Bearer {api_key}'
--url 'https://leads.qreq.com/api/company-payment-settings/' \
--header 'Authorization: Bearer {api_key}'
{
"success": true,
"data": {
"id": 1,
"company_id": 123,
"currency": "USD",
"payment_methods_enabled": ["card", "bank_transfer", "paypal"],
"default_method": "card",
"created_at": "2025-11-05T10:00:00Z",
"updated_at": "2025-11-05T11:00:00Z"
}
}
POST https://leads.qreq.com/api/company-payment-settings/
| Parameter | Einzelheiten | Beschreibung |
|---|---|---|
| currency | ErforderlichZeichenfolge | Default currency (e.g., "USD") |
| payment_methods_enabled | OptionalArray | Array of enabled payment methods |
| default_method | OptionalZeichenfolge | Default payment method key |
curl --request POST \
--url 'https://leads.qreq.com/api/company-payment-settings/' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: application/json' \
--data-raw '{ "currency": "USD", "payment_methods_enabled": ["card", "bank_transfer", "paypal"], "default_method": "card" }'
--url 'https://leads.qreq.com/api/company-payment-settings/' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: application/json' \
--data-raw '{ "currency": "USD", "payment_methods_enabled": ["card", "bank_transfer", "paypal"], "default_method": "card" }'
{
"success": true,
"message": "Company payment settings updated successfully.",
"data": {
"id": 1,
"company_id": 123,
"currency": "USD",
"payment_methods_enabled": ["card", "bank_transfer", "paypal"],
"default_method": "card",
"updated_at": "2025-11-05T11:15:00Z"
}
}
GET https://leads.qreq.com/api/company-payment-settings/methods
curl --request GET \
--url 'https://leads.qreq.com/api/company-payment-settings/methods' \
--header 'Authorization: Bearer {api_key}'
--url 'https://leads.qreq.com/api/company-payment-settings/methods' \
--header 'Authorization: Bearer {api_key}'
[
{
"key": "card",
"name": "Credit / Debit Card",
"status": "enabled",
"settings_fields": ["card_number", "expiry_date", "cvv"]
},
{
"key": "bank_transfer",
"name": "Bank Transfer",
"status": "enabled",
"settings_fields": ["account_number", "bank_code", "account_name"]
},
{
"key": "paypal",
"name": "PayPal",
"status": "disabled",
"settings_fields": ["paypal_email"]
}
]