Integrations
Billing & Subscriptions
- Chargebee
- Recharge
- Recurly
- Stripe Billing
- Zuora
- Custom
- Overview
- API reference
- Slicker API Overview
- Webhook Implementation
- Slicker Endpoints
- Your Endpoints
Payment providers
Add transactions
Upload one or more transactions to be processed by Slicker. Requires authentication with a valid API key passed as a Bearer token. Maximum of 200 transactions per request.
curl --request POST \
--url https://api.app.slickerhq.com/ingest/v1/transactions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"transactions": [
{
"id": "txn_12345678",
"paymentGatewayTransactionId": "ch_1a2b3c4d5e",
"state": "TRANSACTION_STATE_PAID",
"customerId": "cus_87654321",
"subscriptionId": "sub_12345678",
"invoiceId": "inv_12345678",
"amount": 2500,
"currency": "USD",
"createdAt": "2023-01-15T10:15:00Z",
"updatedAt": "2023-01-15T10:20:00Z",
"paymentMethodType": "card",
"paymentGatewayId": "pg_stripe",
"paymentGatewayName": "Stripe",
"paymentGatewayType": "credit_card",
"paymentGatewayStatus": "succeeded",
"cardBrand": "visa",
"cardBin": "411111",
"cardFingerprint": "Xt5EWLLDS7FJjR1c",
"cardCountry": "US"
},
{
"id": "txn_87654321",
"paymentGatewayTransactionId": "ch_5e4d3c2b1a",
"state": "TRANSACTION_STATE_FAILED",
"customerId": "cus_12345678",
"subscriptionId": "sub_87654321",
"invoiceId": "inv_87654321",
"amount": 5000,
"currency": "USD",
"createdAt": "2023-01-20T09:15:00Z",
"updatedAt": "2023-01-20T09:20:00Z",
"paymentMethodType": "card",
"paymentGatewayId": "pg_stripe",
"paymentGatewayName": "Stripe",
"paymentGatewayType": "credit_card",
"paymentGatewayStatus": "failed",
"paymentGatewayErrorCode": "card_declined",
"paymentGatewayErrorMessage": "Your card was declined",
"cardBrand": "mastercard",
"cardBin": "511111",
"cardFingerprint": "R7GsJL9FmKj3dN2q",
"cardCountry": "UK"
}
]
}'
{
"requestId": "req_2uqkAo1bwllmzrgV2qtGv48DtGI"
}
Authorizations
API key authentication using a Bearer token in the Authorization header.
Example: Authorization: Bearer YOUR_API_KEY
Body
Request to ingest transaction data. Maximum of 200 transactions per request.
Unique identifier for the transaction
"txn_12345678"
Current state of the transaction
TRANSACTION_STATE_UNSPECIFIED
, TRANSACTION_STATE_PAID
, TRANSACTION_STATE_FAILED
, TRANSACTION_STATE_PENDING
, TRANSACTION_STATE_REFUNDED
, TRANSACTION_STATE_CHARGEBACK
, TRANSACTION_STATE_VOID
Unique identifier for the customer
"cus_87654321"
Monetary amount in smallest unit (e.g., cents)
2500
Three-letter ISO 4217 currency code
"USD"
Timestamp when the transaction was created
"2023-01-15T10:15:00Z"
Transaction identifier from the payment gateway
"ch_1a2b3c4d5e"
Unique identifier for the associated subscription, if applicable
"sub_12345678"
Unique identifier for the associated invoice, if applicable
"inv_12345678"
Timestamp when the transaction was last updated
"2023-01-15T10:20:00Z"
Type of payment method used
"card"
Identifier for the payment gateway
"pg_stripe"
Name of the payment gateway
"Stripe"
Type of the payment gateway
"credit_card"
Status reported by the payment gateway
"succeeded"
Error code from the payment gateway, if applicable
"card_declined"
Error message from the payment gateway, if applicable
"Your card was declined"
Brand of the credit card used for payment
"visa"
Bank Identification Number (first 6 digits of card number)
"411111"
Unique fingerprint for the card
"Xt5EWLLDS7FJjR1c"
ISO 3166-1 alpha-2 country code of the card
"US"
Response
Unique identifier for tracking the request through the system
"req_2uqkAo1bwllmzrgV2qtGv48DtGI"
curl --request POST \
--url https://api.app.slickerhq.com/ingest/v1/transactions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"transactions": [
{
"id": "txn_12345678",
"paymentGatewayTransactionId": "ch_1a2b3c4d5e",
"state": "TRANSACTION_STATE_PAID",
"customerId": "cus_87654321",
"subscriptionId": "sub_12345678",
"invoiceId": "inv_12345678",
"amount": 2500,
"currency": "USD",
"createdAt": "2023-01-15T10:15:00Z",
"updatedAt": "2023-01-15T10:20:00Z",
"paymentMethodType": "card",
"paymentGatewayId": "pg_stripe",
"paymentGatewayName": "Stripe",
"paymentGatewayType": "credit_card",
"paymentGatewayStatus": "succeeded",
"cardBrand": "visa",
"cardBin": "411111",
"cardFingerprint": "Xt5EWLLDS7FJjR1c",
"cardCountry": "US"
},
{
"id": "txn_87654321",
"paymentGatewayTransactionId": "ch_5e4d3c2b1a",
"state": "TRANSACTION_STATE_FAILED",
"customerId": "cus_12345678",
"subscriptionId": "sub_87654321",
"invoiceId": "inv_87654321",
"amount": 5000,
"currency": "USD",
"createdAt": "2023-01-20T09:15:00Z",
"updatedAt": "2023-01-20T09:20:00Z",
"paymentMethodType": "card",
"paymentGatewayId": "pg_stripe",
"paymentGatewayName": "Stripe",
"paymentGatewayType": "credit_card",
"paymentGatewayStatus": "failed",
"paymentGatewayErrorCode": "card_declined",
"paymentGatewayErrorMessage": "Your card was declined",
"cardBrand": "mastercard",
"cardBin": "511111",
"cardFingerprint": "R7GsJL9FmKj3dN2q",
"cardCountry": "UK"
}
]
}'
{
"requestId": "req_2uqkAo1bwllmzrgV2qtGv48DtGI"
}