# Get subscription by transaction ID Endpoint: GET /subscription Version: 1.2 Security: X-Api-Key ## Query parameters: - `transaction_id` (string) Example: "2U5T2MIX22EK3" - `page` (integer) Example: 1 - `size` (integer) Example: 100 ## Response 200 fields (application/json): - `type` (string, required) Enum: "SUBSCRIPTION" - `data` (array, required) - `data.subscription_id` (string) - `data.created_at` (string) UTC date time format - `data.subscription_status` (string) - `data.expires_at` (string) UTC date time format - `data.merchant_id` (string) - `data.merchant_product_id` (string) - `data.merchant_payment_id` (string) - `data.merchant_customer_id` (string) - `data.payment_method` (string) Enum: "CARD" - `data.currency_code` (string) - `data.amount` (string) - `data.transaction_currency_code` (string) - `data.transaction_amount` (string) - `data.transaction_fee_currency_code` (string) - `data.transaction_fee_amount` (string) - `data.transaction_tax_currency_code` (string) - `data.transaction_tax_amount` (string) - `data.transaction_tax_type` (string) - `data.transaction_tax_label` (string) - `data.transaction_tax_percentage` (string) - `data.is_trial` (boolean) - `data.charge_interval` (string) Enum: "DAY" - `data.charge_interval_value` (number) - `data.is_rebill_enabled` (boolean) - `data.trial_interval` (string) Enum: "DAY" - `data.trial_interval_value` (number) - `data.payment_id` (string) Example: "2JWZGTNKS67K2" - `data.product_id` (string) Example: "2JWZGTNKSG7K2" - `data.retry_at` (string) UTC date time format - `data.retry_count` (number) - `data.retry_total_count` (number) Total count of attempts to rebill - `data.shop_name` (string) Shop name from original payment - `data.shop_url` (string) Shop URL from original payment - `meta` (object, required) - `meta.pageNumber` (integer, required) - `meta.pageSize` (integer, required) ## Response 401 fields (application/json): - `errors` (array) - `errors.error_code` (string, required) Enum: "INVALID_REQUEST_PARAMETER", "INVALID_REQUEST", "INTERNAL_ERROR", "TOO_MANY_REQUESTS", "NOT_FOUND" - `errors.error_message` (string, required) ## Response 500 fields (application/json): - `errors` (array) - `errors.error_code` (string, required) Enum: "INVALID_REQUEST_PARAMETER", "INVALID_REQUEST", "INTERNAL_ERROR", "TOO_MANY_REQUESTS", "NOT_FOUND" - `errors.error_message` (string, required)