Replen.it

View Categories

Transactional Data API Endpoints

Replenit Transactional Data API allows you to send transactional data to Replenit, enabling insertion and updating from different endpoints.

Base URL: https://services.replen.it

Authorization: All routes require a Bearer Token with the correct permission level in the “Authorization” header. Contact your CSM to receive your client ID and Bearer Token details.

Endpoints:

  • Single Transaction Upsert (POST): https://services.replen.it/transactions/{clientId}/upload
    • Inserts or updates a single transaction.

Sample Payload:

{
  "identifiers": {
    "userId": "string",
    "email": "[email protected]"
  },
  "transaction": {
    "transactionId": "string",
    "transactionDate": "2024-07-02T12:44:19.658Z",
    "transactionCurrency": "string",
    "transactionAmount": 0,
    "totalProductQuantity": 0,
    "uniqueProductQuantity": 0
  },
  "lineItems": [
    {
      "productId": "string",
      "SKU": "string",
      "productName": "string",
      "productOriginalPrice": 0,
      "productSalePrice": 0,
      "productSize": "string",
      "quantity": 0
    }
  ]
}
  • Bulk Transaction Upsert (POST): https://services.replen.it/transactions/{clientId}/upload-bulk
    • Inserts or updates multiple transactions.

Sample Payload:

[
  {
    "identifiers": {
      "userId": "string",
      "email": "[email protected]"
    },
    "transaction": {
      "transactionId": "string",
      "transactionDate": "2024-07-02T12:45:50.085Z",
      "transactionCurrency": "string",
      "transactionAmount": 0,
      "totalProductQuantity": 0,
      "uniqueProductQuantity": 0
    },
    "lineItems": [
      {
        "productId": "string",
        "sku": "string",
        "productName": "string",
        "productOriginalPrice": 0,
        "productSalePrice": 0,
        "productSize": "string",
        "quantity": 0
      }
    ]
  }
]
  • Delete Transaction (DELETE): https://services.replen.it/transactions/{clientId}?transactionId={transactionId}
    • Deletes a transaction.

Sample Payload:

{
  "identifiers": {
    "userId": "string",
    "email": "[email protected]"
  }
}