GET https://invoice-psd2.valuein.io/api/payments/229657

Query Metrics

12 Database Queries
12 Different statements
265.17 ms Query time
0 Invalid entities

Queries

Group similar statements

# Time Info
1 0.59 ms
SELECT t0.id AS id_1, t0.deleted AS deleted_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4, t0.deleted_at AS deleted_at_5, t0.language_code AS language_code_6, t0.isDefault AS isDefault_7, t0.enabled AS enabled_8, t0.debug AS debug_9, t0.collect AS collect_10 FROM valueinvoice_language t0 WHERE t0.isDefault = ? AND t0.enabled = ? AND ((t0.deleted = 0)) LIMIT 1
Parameters:
[
  1
  1
]
2 0.40 ms
SELECT t0.id AS id_1, t0.deleted AS deleted_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4, t0.deleted_at AS deleted_at_5, t0.language_code AS language_code_6, t0.isDefault AS isDefault_7, t0.enabled AS enabled_8, t0.debug AS debug_9, t0.collect AS collect_10 FROM valueinvoice_language t0 WHERE t0.enabled = ? AND ((t0.deleted = 0))
Parameters:
[
  1
]
3 0.68 ms
SELECT t0.enabled_from AS enabled_from_1, t0.enabled_to AS enabled_to_2, t0.version_api AS version_api_3, t0.tmp_token AS tmp_token_4, t0.security_question AS security_question_5, t0.security_answer AS security_answer_6, t0.title AS title_7, t0.name AS name_8, t0.phone AS phone_9, t0.id AS id_10, t0.username AS username_11, t0.username_canonical AS username_canonical_12, t0.email AS email_13, t0.email_canonical AS email_canonical_14, t0.salt AS salt_15, t0.password AS password_16, t0.enabled AS enabled_17, t0.last_login AS last_login_18, t0.confirmation_token AS confirmation_token_19, t0.password_requested_at AS password_requested_at_20, t0.roles AS roles_21, t0.user_role_id AS user_role_id_22, t0.manager_id AS manager_id_23, t0.assistant_id AS assistant_id_24 FROM valueinvoice_user t0 WHERE t0.username = ? LIMIT 1
Parameters:
[
  "api"
]
4 0.54 ms
SELECT t0.id AS id_1, t0.deleted AS deleted_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4, t0.deleted_at AS deleted_at_5, t0.is_default_role AS is_default_role_6, t0.name AS name_7, t0.is_manager AS is_manager_8, t0.is_admin AS is_admin_9, t0.is_api AS is_api_10, t0.firewall_role AS firewall_role_11 FROM valueinvoice_user_role t0 WHERE t0.id = ? AND ((t0.deleted = 0))
Parameters:
[
  260
]
5 0.66 ms
SELECT t0.id AS id_1, t0.deleted AS deleted_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4, t0.deleted_at AS deleted_at_5, t0.name AS name_6 FROM valueinvoice_company t0 INNER JOIN valueinvoice_user_company ON t0.id = valueinvoice_user_company.company_id WHERE valueinvoice_user_company.user_id = ? AND ((t0.deleted = 0))
Parameters:
[
  84
]
6 0.62 ms
SELECT t0.id AS id_1, t0.deleted AS deleted_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4, t0.deleted_at AS deleted_at_5, t0.incremental_number AS incremental_number_6, t0.amount AS amount_7, t0.date AS date_8, t0.source AS source_9, t0.status AS status_10, t0.cancelled_on AS cancelled_on_11, t0.comment AS comment_12, t0.accounting_code AS accounting_code_13, t0.accounting_code_number AS accounting_code_number_14, t0.gateway_response_code AS gateway_response_code_15, t0.gateway_response AS gateway_response_16, t0.reference_id AS reference_id_17, t0.refund_amount AS refund_amount_18, t0.type AS type_19, t0.company_id AS company_id_20, t0.customer_id AS customer_id_21, t0.payment_schedule_id AS payment_schedule_id_22 FROM valueinvoice_payment t0 WHERE t0.id = ? AND ((t0.company_id IN ('229')) AND (t0.deleted = 0))
Parameters:
[
  "229657"
]
7 0.79 ms
SELECT t0.id AS id_1, t0.deleted AS deleted_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4, t0.deleted_at AS deleted_at_5, t0.incremental_number AS incremental_number_6, t0.amount AS amount_7, t0.amount_without_tax AS amount_without_tax_8, t0.tax_amount AS tax_amount_9, t0.balance AS balance_10, t0.payment_amount AS payment_amount_11, t0.adjustment_amount AS adjustment_amount_12, t0.applied_credit_balance AS applied_credit_balance_13, t0.invoice_date AS invoice_date_14, t0.due_date AS due_date_15, t0.recovery_date AS recovery_date_16, t0.posted_date AS posted_date_17, t0.status AS status_18, t0.type AS type_19, t0.company_id AS company_id_20, t0.customer_id AS customer_id_21, t0.entityType, t0.invoice_number_sequence_name AS invoice_number_sequence_name_22, t0.bill_run_id AS bill_run_id_23, t0.invoice_template_id AS invoice_template_id_24, t0.invoice_number_sequence_id AS invoice_number_sequence_id_25 FROM valueinvoice_invoice t0 INNER JOIN valueinvoice_payment_invoice ON t0.id = valueinvoice_payment_invoice.invoice_id WHERE valueinvoice_payment_invoice.payment_id = ? AND t0.entityType IN ('invoice', 'invoiceengineinvoice') AND ((t0.company_id IN ('229')) AND (t0.deleted = 0))
Parameters:
[
  229657
]
8 0.59 ms
SELECT t0.id AS id_1, t0.deleted AS deleted_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4, t0.deleted_at AS deleted_at_5, t0.login AS login_6, t0.password AS password_7, t0.name AS name_8, t0.balance AS balance_9, t0.total_invoice_balance AS total_invoice_balance_10, t0.credit_balance AS credit_balance_11, t0.crm_id AS crm_id_12, t0.status AS status_13, t0.currency AS currency_14, t0.notes AS notes_15, t0.tax_exempt AS tax_exempt_16, t0.company_id AS company_id_17, t0.bill_to_id AS bill_to_id_18, t0.sold_to_id AS sold_to_id_19, t21.id AS id_20, t21.deleted AS deleted_22, t21.created_at AS created_at_23, t21.updated_at AS updated_at_24, t21.deleted_at AS deleted_at_25, t21.title AS title_26, t21.prefix AS prefix_27, t21.is_default AS is_default_28, t21.languages_codes AS languages_codes_29, t21.currency AS currency_30, t21.company_id AS company_id_31, t21.billing_account_id AS billing_account_id_32, t0.entityType, t0.invoice_number_sequence_name AS invoice_number_sequence_name_33, t0.bill_cycle_day AS bill_cycle_day_34, t0.invoice_template_id AS invoice_template_id_35, t0.default_payment_method_id AS default_payment_method_id_36 FROM valueinvoice_customer t0 LEFT JOIN valueinvoice_legal_entity t21 ON t21.billing_account_id = t0.id WHERE t0.id = ? AND t0.entityType IN ('customer', 'invoiceenginecustomer') AND ((t0.company_id IN ('229')) AND (t0.deleted = 0))
Parameters:
[
  1127
]
9 0.99 ms
SELECT t0.id AS id_1, t0.deleted AS deleted_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4, t0.deleted_at AS deleted_at_5, t0.type AS type_6, t0.masked_card_number AS masked_card_number_7, t0.expiration_month AS expiration_month_8, t0.expiration_year AS expiration_year_9, t0.holder_name AS holder_name_10, t0.external AS external_11, t0.company_id AS company_id_12, t0.customer_id AS customer_id_13, t0.entityType, t0.label AS label_14, t0.stripe_token AS stripe_token_15, t0.mandate_id AS mandate_id_16 FROM valueinvoice_invoice_engine_payment_method t0 WHERE t0.id = ? AND t0.entityType IN ('invoiceenginepaymentmethod', 'externalpaymentmethod', 'otherpaymentmethod', 'stripepaymentmethod', 'stripesepapaymentmethod') AND ((t0.company_id IN ('229')) AND (t0.deleted = 0))
Parameters:
[
  5422
]
10 1.41 ms
SELECT t0.id AS id_1, t0.deleted AS deleted_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4, t0.deleted_at AS deleted_at_5, t0.refund_number AS refund_number_6, t0.amount AS amount_7, t0.status AS status_8, t0.cancelled_on AS cancelled_on_9, t0.comment AS comment_10, t0.gateway_response_code AS gateway_response_code_11, t0.gateway_response AS gateway_response_12, t0.reference_id AS reference_id_13, t0.type AS type_14, t0.refund_date AS refund_date_15, t0.company_id AS company_id_16, t0.customer_id AS customer_id_17, t0.payment_id AS payment_id_18 FROM valueinvoice_refund t0 WHERE t0.payment_id = ? AND ((t0.company_id IN ('229')) AND (t0.deleted = 0))
Parameters:
[
  229657
]
11 1.08 ms
SELECT t0.id AS id_1, t0.deleted AS deleted_2, t0.created_at AS created_at_3, t0.updated_at AS updated_at_4, t0.deleted_at AS deleted_at_5, t0.name AS name_6, t0.amount AS amount_7, t0.fixed_fees AS fixed_fees_8, t0.percentage_fees AS percentage_fees_9, t0.percentage AS percentage_10, t0.payment_id AS payment_id_11, t0.company_id AS company_id_12 FROM valueinvoice_gateway_payment t0 WHERE t0.payment_id = ? AND ((t0.company_id IN ('229')) AND (t0.deleted = 0))
Parameters:
[
  229657
]
12 256.83 ms
INSERT INTO
                    valueinvoice_perf_log (date, route, nb_request, nb_request_failed, total_time_millisecond)
                VALUES
                    (:date, :route, 1, :failed, :time)
                ON DUPLICATE KEY UPDATE
                                     nb_request=nb_request + 1,
                                     total_time_millisecond=total_time_millisecond + :time,
                                     nb_request_failed=nb_request_failed + :failed
Parameters:
[
  ":date" => "2024-12-21"
  ":route" => "valuein_invoiceapi_payment_getpayment"
  ":failed" => 0
  ":time" => 201
]

Database Connections

Name Service
default doctrine.dbal.default_connection

Entity Managers

Name Service
default doctrine.orm.default_entity_manager

Second Level Cache

Second Level Cache is not enabled.

Entities Mapping

Class Mapping errors
ValueIn\CommonBundle\Entity\AbstractEntity No errors.
App\Entity\Config\Language No errors.
App\Entity\User No errors.
App\Entity\UserRole No errors.
App\Entity\Company No errors.
App\Entity\Opportunity No errors.
App\Entity\SubscriptionHistory No errors.
App\Entity\Subscription No errors.
App\Entity\UserSettings No errors.
App\Entity\Ticket No errors.
App\Entity\Tag No errors.
App\Entity\Payment No errors.
App\Entity\Report No errors.
App\Entity\Extract No errors.
App\Entity\Amendment No errors.
App\Entity\Product No errors.
App\Entity\CompanyConfig No errors.
App\Entity\Environment No errors.
App\Entity\Documentation No errors.
App\Entity\Refund No errors.
App\Entity\SubscriptionItem No errors.
App\Entity\SubscriptionStatus No errors.
App\Entity\ProductPrice No errors.
App\Entity\Offer No errors.
App\Entity\PaymentSchedule No errors.
App\Entity\Invoice No errors.
App\Entity\InvoiceItem No errors.
App\Entity\RevenueSchedule No errors.
App\Entity\CreditBalanceAdjustment No errors.
App\Entity\TaxationItem No errors.
App\Entity\Contact No errors.
App\Entity\Customer No errors.
App\Entity\Group No errors.
App\Entity\TicketHistory No errors.
App\Entity\LegalEntity No errors.
App\Entity\CrmOffer No errors.
App\Entity\AccountAddress No errors.
App\Entity\Account No errors.
App\Entity\Notification No errors.
App\Entity\GatewayPayment No errors.
ValueIn\CommonBundle\Entity\EAV\AbstractField No errors.
ValueIn\CommonBundle\Entity\EAV\AbstractDatetime No errors.
App\Entity\EAV\Payment\EAVDatetime No errors.
ValueIn\CommonBundle\Entity\EAV\AbstractFloat No errors.
App\Entity\EAV\Payment\EAVFloat No errors.
ValueIn\CommonBundle\Entity\EAV\AbstractInt No errors.
App\Entity\EAV\Payment\EAVInt No errors.
ValueIn\CommonBundle\Entity\EAV\AbstractJson No errors.
App\Entity\EAV\Payment\EAVJson No errors.
ValueIn\CommonBundle\Entity\EAV\AbstractString No errors.
App\Entity\EAV\Payment\EAVString No errors.
ValueIn\CommonBundle\Entity\EAV\AbstractStringIndexed No errors.
App\Entity\EAV\Payment\EAVStringIndexed No errors.
ValueIn\InvoiceEngineBundle\Entity\InvoiceEngineInvoice No errors.
ValueIn\InvoiceEngineBundle\Entity\InvoiceEngineBillRun No errors.
ValueIn\InvoiceEngineBundle\Entity\InvoiceEngineTemplate No errors.
ValueIn\InvoiceEngineBundle\Entity\Configs\InvoiceNumberingSequence No errors.
ValueIn\InvoiceEngineBundle\Entity\InvoiceEngineCustomer No errors.
ValueIn\InvoiceEngineBundle\Entity\InvoiceEnginePaymentMethod No errors.
App\Entity\EAV\Customer\EAVDatetime No errors.
App\Entity\EAV\Customer\EAVFloat No errors.
App\Entity\EAV\Customer\EAVInt No errors.
App\Entity\EAV\Customer\EAVJson No errors.
App\Entity\EAV\Customer\EAVString No errors.
App\Entity\EAV\Customer\EAVStringIndexed No errors.
ValueIn\InvoiceEngineBundle\Entity\ExternalPaymentMethod No errors.
ValueIn\InvoiceEngineBundle\Entity\OtherPaymentMethod No errors.
ValueIn\InvoiceEnginePaymentMethods\StripePaymentMethodBundle\Entity\StripePaymentMethod No errors.
ValueIn\InvoiceEnginePaymentMethods\StripePaymentMethodBundle\Entity\StripeSepaPaymentMethod No errors.
App\Entity\EAV\Invoice\EAVDatetime No errors.
App\Entity\EAV\Invoice\EAVFloat No errors.
App\Entity\EAV\Invoice\EAVInt No errors.
App\Entity\EAV\Invoice\EAVJson No errors.
App\Entity\EAV\Invoice\EAVString No errors.
App\Entity\EAV\Invoice\EAVStringIndexed No errors.
ValueIn\InvoiceEngineBundle\Entity\InvoiceAddress No errors.