Developer API v1

Build with Kredo

Integrate automated receipt generation directly into your POS, E-commerce store, or Mobile App.

Authentication

The Kredo API uses Bearer Tokens to authenticate requests. You can generate an API Token from your dashboard under Settings > Connected Apps.

Keep your tokens secure. Do not share them in publicly accessible areas such as GitHub or client-side code.

Include the token in the Headers of all your requests:

Authorization: Bearer YOUR_API_TOKEN
Content-Type: application/json
Accept: application/json
POST https://trykredo.com/api/generate
Core Endpoint

Creates a new receipt/invoice and instantly generates the printable PDF and Public Tracking Link.

Request Body (JSON)
{
  "type": "receipt",
  "customer_name": "John Doe",
  "customer_email": "john@example.com",
  "customer_phone": "08012345678",
  "payment_method": "Bank Transfer",
  "items": [
    {
      "description": "Premium Consultation",
      "qty": 1,
      "price": 50000
    },
    {
      "description": "Software License",
      "qty": 2,
      "price": 15000
    }
  ],
  "tax_rate": 7.5,
  "notes": "Thank you for your business!",
  "status": "paid"
}
Success Response (200 OK)
{
  "success": true,
  "message": "Document generated via API successfully",
  "data": {
    "public_id": "REC-482109A1C",
    "document_number": "REC-2026-0001",
    "view_url": "https://trykredo.com/shared/invoice/REC-482109A1C"
  }
}
GET https://trykredo.com/api/getReceipts

Retrieve a list of all documents generated by your business.

Query Parameters
  • limit (int): Number of results (default: 50)
  • offset (int): Pagination offset
Success Response
{
  "success": true,
  "data": [
    {
      "type": "receipt",
      "document_number": "REC-2026-0001",
      "public_id": "REC-482109A1C",
      "customer_name": "John Doe",
      "amount": 86000,
      "status": "paid",
      "issued_at": "2026-03-23 10:00:00"
    }
  ]
}