Chargeback API conforms to REST design principles, featuring resource-oriented URLs, JSON-encoded request and response bodies, standard HTTP response codes, and authentication protocols.
When integrating Chargebackhit, consider the total response time for your requests. This includes network latency, data enrichment from third-party servers, and the matching process to apply your rules and configurations.
inquiry
, less than 24 hours for init-refund
according to rules, and not critical for all other alert types.
To start the integration process, receive an email invitation with credentials for accessing the Chargebackhit HUB . It is recommended that the account holder handle steps 1-2, and the developer handle steps 3–6.
Step 1. Get API credentials
To get API credentials
- Log in to the Chargebackhit HUB .
- Go to Account settings.
- In the API keys section, get your Public and Secret API keys.
Step 2. Set notification URL
To set a notification URL
- Prepare a notification URL for both the sandbox and production environments.
- Log in to the Chargebackhit HUB .
- Go to Account settings.
- In the Notification URL section, specify your URL.
Step 3. Create signature
Generate a digital signature using the SHA-512 hash function encoded in base64. This signature uses the concatenation of the public key, JSON-encoded request data, and the public key again as input.
public_key + requestJsonData + public_key
|
|
|
|
|
|
|
|
|
|
Step 4. Verify signature
Verify the integrity and authenticity of notifications using the public and secret keys to calculate the signature. Headers of each request are to be placed in the following:
Parameter | Description | Example |
---|---|---|
signature |
Signature of the request allows verifying whether the request is genuine. | MjNiYjVjxxxZhYmMxMzNiZDY= |
public_key |
Unique identification, which is shared at the moment of registration along with the Private Key. | Account |
Step 5. Generate sandbox alerts
Initially configure and test the integration using sandbox alerts, which can be manually generated in the sandbox account under the alerts section.
Step 6. Match alerts
Match alerts to the corresponding transactions in the merchant’s database or CRM system using an appropriate matching algorithm.
It is a straightforward process, but in some cases, it is needed to apply
Internal logic for quick matching of alert data by the system in real-time.
specific matching
algorithm.