Download the PHP package kloutit/kloutit-sdk-php without Composer
On this page you can find all versions of the php package kloutit/kloutit-sdk-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kloutit/kloutit-sdk-php
More information about kloutit/kloutit-sdk-php
Files in kloutit/kloutit-sdk-php
Package kloutit-sdk-php
Short Description Kloutit SDK API for client integrations
License Apache-2.0
Homepage https://kloutit.com
Informations about the package kloutit-sdk-php
Kloutit Clients API SDK
Kloutit is an AI-powered B2B SaaS that enables online merchants to effectively and efficiently defend and prevent chargebacks.
This SDK allows your organization to integrate with Kloutit Clients API v2.0, providing comprehensive case management capabilities including creating cases, uploading files, updating case information, and managing the complete chargeback defense workflow.
Installation
To install Kloutit SDK you can run the following composer command.
Prerequisites
To be able to use any Kloutit SDK function, your organization must be registered into our system and SDK client key for the organization must be created. You can register your organization by following a few simple steps from https://app.kloutit.com.
Once your organization is successfully registered, you will need to create new client key from the menu My organization > Developers
.
Available Endpoints
The Kloutit Clients API v2.0 provides the following main endpoints:
- Create Case - Create a new chargeback case
- Upload File - Upload supporting documents to a case
- Upload Product Photo - Upload product images to a case
- Update Case - Update case information with additional data
- Check Case - Validate case completeness and get missing fields
- Submit Completed Case - Mark case as ready for defense generation
- Verify Event - Verify webhook events from Kloutit
- Download Defense - Download the generated defense document
Usage
To use the Kloutit SDK client, you will need to instantiate the KloutitConfiguration using your client API key.
Creating a New Case
Updating an Existing Case
Uploading Files to a Case
Checking Case Completeness
Submitting a Completed Case
## Sector-Specific Requirements
This example is made for TECHNOLOGY sector. You can find the needed body for each sector here:
- [Digital product](tipologies/DIGITAL_PRODUCT.md)
- [Education](tipologies/EDUCATION.md)
- [Fashion](tipologies/FASHION.md)
- [Food](tipologies/FOOD.md)
- [Gaming](tipologies/GAMING.md)
- [Health & beauty](tipologies/HEALTH_BEAUTY.md)
- [Home](tipologies/HOME.md)
- [Leisure](tipologies/LEISURE.md)
- [Marketplace](tipologies/MARKETPLACE.md)
- [Phone](tipologies/PHONE.md)
- [Software](tipologies/SOFTWARE.md)
- [Sport](tipologies/SPORT.md)
- [Subscription](tipologies/SUBSCRIPTION.md)
- [Supply](tipologies/SUPPLY.md)
- [Technology](tipologies/TECHNOLOGY.md)
- [Transport](tipologies/TRANSPORT.md)
- [Travel Airline](tipologies/TRAVEL_AIRLINE.md)
- [Travel Hotel](tipologies/TRAVEL_HOTEL.md)
## File Upload Specifications
When uploading files to cases:
- **Supported formats**: PDF, JPG, JPEG, PNG
- **Maximum file size**: 10MB
- **Upload method**: multipart/form-data
- **Required parameters**: file and category
- **Available categories**: Based on FileCategoryEnum (INVOICE, PROOF_OF_DELIVERY, etc.)
## Webhook Event Verification
To verify webhook events from Kloutit:
## Defense Document Download
Download generated defense documents in different formats:
## API Reference
### Complete Workflow Example
Here's a complete example showing the typical workflow for managing a chargeback case:
### Error Handling
The API returns standard HTTP status codes:
- **200** - Success
- **201** - Created successfully
- **204** - No content (successful operation)
- **206** - Partial content (case has non-required fields missing)
- **400** - Bad request (validation errors)
- **401** - Unauthorized (invalid API key)
- **404** - Not found (case doesn't exist)
- **406** - Not acceptable (case has required fields missing)
### Rate Limiting
Please refer to your API key dashboard for rate limiting information and ensure your integration handles rate limits appropriately.
## Documentation
In this document, you will be able to see all the available methods and all the parameters needed, so you know exactly what you need to do. For complete API documentation with detailed parameter specifications, visit the [Kloutit API Reference](https://clients-api.kloutit.com/api).
If you have any doubts, please, don't hesitate to contact us so we can help you, or leave us any comment so we can improve your experience.
## Autocompletion
If you use an IDE such as PhpStorm or VSCode with PHP extensions, you will be able to see all the autocompletion for methods and parameters, so you know exactly what the call is expecting to receive.
## Security
Kloutit SDK uses API key for authentication. It is the responsibility of the SDK consumer to keep the API key secure and not expose it in source code, public repositories, or insecure environments.
To ensure the security of your integration:
- Store the API key in environment variables or a secure secret manager.
- Do not share your API key in public source code or with unauthorized third parties.
- Regularly rotate API keys to minimize exposure risks.
Please, if you discover any security issues, report them to [email protected] as soon as possible.
## License
Apache 2.0
All versions of kloutit-sdk-php with dependencies
ext-curl Version *
ext-json Version *
ext-mbstring Version *
guzzlehttp/guzzle Version ^7.3
guzzlehttp/psr7 Version ^1.7 || ^2.0