API Name - Copy 10 API ID: 12586

This is a example to import APIs from Postman. The description must be at least 50 characters.
Use this API from your AI agent via MCP
Works with OpenClaw, Claude Code/Desktop, Cursor, Windsurf, Cline and any MCP-compatible AI client.
Docs & setup
Create a skill by wrapping this MCP: https://mcp.zylalabs.com/mcp?apikey=YOUR_ZYLA_API_KEY

This is a example to import APIs from Postman. The description must be at least 50 characters.

API Documentation

Endpoints


The "credit txn" endpoint is designed to facilitate the processing and retrieval of credit transaction data within a financial or transactional application. This endpoint allows users to submit details of credit transactions, such as the transaction amount, date, associated account information, and merchant details, and it processes these submissions by validating the data and updating the respective account balances accordingly. Upon successful processing, the endpoint returns a confirmation of the transaction along with relevant metadata such as a transaction ID, timestamp, and current account balance, making it essential for use cases like expense tracking, financial reporting, and maintaining accurate account records within personal finance management tools or e-commerce platforms.



                                                                            
GET https://docs.zylalabs.com/api/12586/api+name+-+copy+10/24189/credit+txn
                                                                            
                                                                        

Free test requests remaining: 3 of 3.

This endpoint does not require any input parameters.


API EXAMPLE RESPONSE

{"code":200,"message":"success","data":{"total":4,"items":[{"transaction_type":"CONSUME","amount":-1.0,"balance_after":7.0,"related_type":"AGENT_CHAT","remark":"AI Agent 对话消耗","created_at":"2026-04-24T18:17:02"},{"transaction_type":"CONSUME","amount":-1.0,"balance_after":8.0,"related_type":"AGENT_CHAT","remark":"AI Agent 对话消耗","created_at":"2026-04-24T18:16:38"},{"transaction_type":"CONSUME","amount":-1.0,"balance_after":9.0,"related_type":"AGENT_CHAT","remark":"AI Agent 对话消耗","created_at":"2026-04-24T18:15:30"},{"transaction_type":"GIFT","amount":10.0,"balance_after":10.0,"related_type":"GIFT_IN","remark":"注册赠送 10.0 Credit","created_at":"2026-04-24T17:07:26"}]}}

Credit txn - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/12586/api+name+-+copy+10/24189/credit+txn' --header 'Authorization: Bearer YOUR_API_KEY' 


    

The `txn-log-v2` endpoint provides a robust interface for retrieving and managing transaction logs within a specified time frame and criteria. This endpoint allows users to filter transaction records by various parameters such as transaction ID, status, user ID, and date range, facilitating efficient tracking and auditing of transactional data. The response includes detailed information about each transaction, including timestamps, status codes, amounts, and associated user data, making it invaluable for use cases such as financial reconciliation, fraud detection, and regulatory compliance, where a precise and accessible log of transactions is crucial.



                                                                            
GET https://docs.zylalabs.com/api/12586/api+name+-+copy+10/24190/txn+status+v1
                                                                            
                                                                        

Free test requests remaining: 3 of 3.

This endpoint does not require any input parameters.


API EXAMPLE RESPONSE

{"code":200,"message":"success","data":{"total":4,"items":[{"transaction_type":"CONSUME","amount":-1.0,"balance_after":7.0,"related_type":"AGENT_CHAT","remark":"AI Agent 对话消耗","created_at":"2026-04-24T18:17:02"},{"transaction_type":"CONSUME","amount":-1.0,"balance_after":8.0,"related_type":"AGENT_CHAT","remark":"AI Agent 对话消耗","created_at":"2026-04-24T18:16:38"},{"transaction_type":"CONSUME","amount":-1.0,"balance_after":9.0,"related_type":"AGENT_CHAT","remark":"AI Agent 对话消耗","created_at":"2026-04-24T18:15:30"},{"transaction_type":"GIFT","amount":10.0,"balance_after":10.0,"related_type":"GIFT_IN","remark":"注册赠送 10.0 Credit","created_at":"2026-04-24T17:07:26"}]}}

Txn status v1 - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/12586/api+name+-+copy+10/24190/txn+status+v1' --header 'Authorization: Bearer YOUR_API_KEY' 


    

API Access Key & Authentication

After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the API Name - Copy 10 simply include your bearer token in the Authorization header.
Headers
Header Description
Authorization [Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.

Simple Transparent Pricing

No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.

🚀 Enterprise

Starts at
$ 10,000/Year


  • Custom Volume
  • Custom Rate Limit
  • Specialized Customer Support
  • Real-Time API Monitoring

Customer favorite features

  • ✔︎ Only Pay for Successful Requests
  • ✔︎ Free 7-Day Trial
  • ✔︎ Multi-Language Support
  • ✔︎ One API Key, All APIs.
  • ✔︎ Intuitive Dashboard
  • ✔︎ Comprehensive Error Handling
  • ✔︎ Developer-Friendly Docs
  • ✔︎ Postman Integration
  • ✔︎ Secure HTTPS Connections
  • ✔︎ Reliable Uptime

API Name - Copy 10 FAQs

The "credit txn" endpoint returns transaction details including transaction type, amount, balance after the transaction, related type, remark, and creation timestamp. The "txn-log-v2" endpoint provides transaction records filtered by parameters, including transaction ID, status, user ID, and date range, along with detailed information for each transaction.

Key fields in the "credit txn" response include `transaction_type`, `amount`, `balance_after`, `related_type`, `remark`, and `created_at`. For the "txn-log-v2" response, key fields include `transaction_type`, `amount`, `balance_after`, `created_at`, and user-related data.

The "credit txn" endpoint primarily processes transaction details submitted by users. The "txn-log-v2" endpoint accepts parameters such as `transaction_id`, `status`, `user_id`, and `date_range` to filter transaction records effectively.

The response data is structured in JSON format. It includes a `code` indicating the status, a `message` for success or error, and a `data` object containing transaction details or records, organized in an array under `items`.

Typical use cases include tracking expenses, generating financial reports, reconciling accounts, detecting fraud, and ensuring regulatory compliance. Users can leverage transaction details for personal finance management or e-commerce platforms.

Users can customize requests by specifying parameters such as transaction ID, status, user ID, and date range in the "txn-log-v2" endpoint. This allows for tailored queries to retrieve specific transaction records based on their needs.

Data accuracy is maintained through validation checks during transaction submissions in the "credit txn" endpoint. Additionally, the "txn-log-v2" endpoint allows users to filter and audit transactions, ensuring reliable records for financial analysis.

If the response contains partial or empty results, users should check their query parameters for accuracy. For the "txn-log-v2" endpoint, adjusting the date range or filters may yield more results. The API response will indicate the total count of items returned.

The "credit txn" endpoint allows you to retrieve information about credit transactions, including transaction amounts, types (e.g., CONSUME, GIFT), associated account details, and timestamps. This data is essential for tracking financial activities and managing account balances.

The "txn-log-v2" endpoint accepts parameters such as `transaction_id`, `status`, `user_id`, and `date_range`. These parameters enable users to filter transaction logs based on specific criteria, enhancing data retrieval efficiency.

The `transaction_type` field indicates the nature of the transaction, such as CONSUME for expenses or GIFT for credits received. Understanding this field helps users categorize and analyze their financial activities effectively.

The `balance_after` field shows the account balance following a transaction. This information is crucial for users to monitor their financial status and ensure accurate account management after each transaction.

Timestamps in the transaction data, such as `created_at`, allow users to track when transactions occurred. This is vital for auditing, financial reporting, and understanding spending patterns over time.

If you receive an error message, check the request parameters for accuracy and completeness. Common issues may include invalid transaction IDs or unsupported date ranges. Adjust your request accordingly and retry.

The API maintains data integrity through validation checks during transaction submissions and by providing detailed logs via the "txn-log-v2" endpoint. This allows users to verify and audit transactions effectively.

Common scenarios include tracking user spending, reconciling accounts, and conducting audits. Users can filter transactions by date or status to analyze financial behavior and ensure compliance with regulations.

O endpoint "credit txn" permite que os usuários enviem detalhes de transações de crédito, como valor, data e informações da conta. Embora não tenha parâmetros de filtragem, os dados retornados incluem informações detalhadas sobre cada transação, permitindo que os usuários analisem suas atividades financeiras após o processamento.

O campo `related_type` indica a categoria da transação, como "AGENT_CHAT" ou "GIFT_IN". Isso ajuda os usuários a entenderem a origem das transações e a categorizá-las para relatórios financeiros ou análises de gastos.

O campo `created_at` fornece o timestamp da transação, permitindo que os usuários rastreiem quando cada transação ocorreu. Essa informação é essencial para auditorias e para entender padrões de gastos ao longo do tempo.

O endpoint "credit txn" suporta transações de crédito, incluindo tipos como "CONSUME" para despesas e "GIFT" para créditos recebidos. Isso permite que os usuários monitorem tanto gastos quanto ganhos em suas contas.

O campo `amount` indica o valor da transação, podendo ser positivo (créditos) ou negativo (despesas). Compreender este campo é crucial para a gestão financeira, pois ajuda os usuários a monitorar seu saldo e gastos.

O endpoint "txn-log-v2" fornece registros detalhados de transações, incluindo informações como ID da transação, status, montante e dados do usuário. Isso é útil para auditorias e reconciliações financeiras.

Os usuários podem auditar transações filtrando por parâmetros como `transaction_id`, `status` e `date_range`. Isso permite uma análise detalhada e a verificação de transações específicas, garantindo a conformidade e a precisão dos registros.

As respostas dos endpoints seguem um padrão JSON, contendo um `code`, uma `message` e um objeto `data`. O `data` inclui detalhes das transações ou registros, organizados em um array sob `items`, facilitando a interpretação e o uso dos dados retornados.

General FAQs

To obtain your API key, you first need to sign in to your account and subscribe to the API you want to use. Once subscribed, go to your Profile, open the Subscription section, and select the specific API. Your API key will be available there and can be used to authenticate your requests.

You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.

If you don’t cancel before the 7th day, your free trial will end automatically and your subscription will switch to a paid plan under the same plan you originally subscribed to, meaning you will be charged and gain access to the API calls included in that plan.

The free trial ends when you reach 50 API requests or after 7 days, whichever comes first. 

No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.

 Yes, we offer a 7-day free trial that allows you to make up to 50 API calls at no cost, so you can test our APIs without any commitment. 

Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.

Prices are listed in USD (United States Dollar), EUR (Euro), CAD (Canadian Dollar), AUD (Australian Dollar), and GBP (British Pound). We accept all major debit and credit cards. Our payment system uses the latest security technology and is powered by Stripe, one of the world's most reliable payment companies. If you have any trouble paying by card, just contact us at [email protected]

Additionally, if you already have an active subscription in any of these currencies (USD, EUR, CAD, AUD, GBP), that currency will remain for subsequent subscriptions. You can change the currency at any time as long as you don't have any active subscriptions.
The local currency shown on the pricing page is based on the country of your IP address and is provided for reference only. The actual prices are in USD (United States Dollar). When you make a payment, the charge will appear on your card statement in USD, even if you see the equivalent amount in your local currency on our website. This means you cannot pay directly with your local currency.
Occasionally, a bank may decline the charge due to its fraud protection settings. We suggest reaching out to your bank initially to check if they are blocking our charges. Also, you can access the Billing Portal and change the card associated to make the payment. If these does not work and you need further assistance, please contact our team at [email protected]
Prices are determined by a recurring monthly or yearly subscription, depending on the chosen plan.
API calls are deducted from your plan based on successful requests. Each plan comes with a specific number of calls that you can make per month. Only successful calls, indicated by a Status 200 response, will be counted against your total. This ensures that failed or incomplete requests do not impact your monthly quota.
Zyla API Hub works on a recurring monthly subscription system. Your billing cycle will start the day you purchase one of the paid plans, and it will renew the same day of the next month. So be aware to cancel your subscription beforehand if you want to avoid future charges.
To upgrade your current subscription plan, simply go to the pricing page of the API and select the plan you want to upgrade to. The upgrade will be instant, allowing you to immediately enjoy the features of the new plan. Please note that any remaining calls from your previous plan will not be carried over to the new plan, so be aware of this when upgrading. You will be charged the full amount of the new plan.
To check how many API calls you have left for the current month, refer to the 'X-Zyla-API-Calls-Monthly-Remaining' field in the response header. For example, if your plan allows 1,000 requests per month and you've used 100, this field in the response header will indicate 900 remaining calls.
To see the maximum number of API requests your plan allows, check the 'X-Zyla-RateLimit-Limit' response header. For instance, if your plan includes 1,000 requests per month, this header will display 1,000.
The 'X-Zyla-RateLimit-Reset' header shows the number of seconds until your rate limit resets. This tells you when your request count will start fresh. For example, if it displays 3,600, it means 3,600 seconds are left until the limit resets.
Yes, you can cancel your plan anytime by going to your account and selecting the cancellation option on the Billing page. Please note that upgrades, downgrades, and cancellations take effect immediately. Additionally, upon cancellation, you will no longer have access to the service, even if you have remaining calls left in your quota.
After 7 days, you will be charged the full amount for the plan you were subscribed to during the trial. Therefore, it's important to cancel before the trial period ends. Refund requests for forgetting to cancel on time are not accepted.
When you subscribe to an API free trial, you can make up to 50 API calls. If you wish to make additional API calls beyond this limit, the API will prompt you to perform an "Start Your Paid Plan." You can find the "Start Your Paid Plan" button in your profile under Subscription -> Choose the API you are subscribed to -> Pricing tab.
Payout Orders are processed between the 20th and the 30th of each month. If you submit your request before the 20th, your payment will be processed within this timeframe.
You can contact us through our chat channel to receive immediate assistance. We are always online from 8 am to 5 pm (EST). If you reach us after that time, we will get back to you as soon as possible. Additionally, you can contact us via email at [email protected]

Please have a look at our Refund Policy: https://zylalabs.com/terms#refund


Related APIs


You might also like