POST
/
v1
/
transactions
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

Authorization
string
header
required

API key authentication using a Bearer token in the Authorization header. Example: Authorization: Bearer YOUR_API_KEY

Body

application/json

Request to ingest transaction data. Maximum of 200 transactions per request.

transactions
object[]

Response

200
application/json
A successful response.
requestId
string

Unique identifier for tracking the request through the system

Example:

"req_2uqkAo1bwllmzrgV2qtGv48DtGI"