Confirm a Purchase

POST/api/v1/purchases

Confirm receipt of a purchase invoice from a supplier. This notifies Kenya Revenue Authority that you have accepted the goods or services described in the invoice.

Requires x-api-key

http://localhost:8100/api/v1/purchases

Headers

FieldTypeRequiredDescription
x-api-keystringRequiredYour Ushuru API key
Content-TypestringRequiredMust be application/json

Request Body

FieldTypeRequiredDescription
spplrTinstringRequiredKenya Revenue Authority PIN of the supplier who issued the invoice.
spplrInvcNostringRequiredInvoice number from the supplier.
rcptTyCdstringRequiredReceipt type: P=Purchase receipt.
pmtTyCdstringRequiredPayment method code (01=Cash, 02=Credit, etc.).
cfmDtstringRequiredConfirmation date in YYYYMMDDHHmmss format.
salesSttsCdstringRequiredStatus: 02=Confirmed.
totAmtnumberRequiredTotal amount of the purchase inclusive of VAT.
remarkstringOptionalOptional remark.

Request

{
  "spplrTin": "A111111111B",
  "spplrInvcNo": "SINV-001",
  "rcptTyCd": "P",
  "pmtTyCd": "02",
  "cfmDt": "20240112143000",
  "salesSttsCd": "02",
  "totAmt": 23200
}

Response

{
  "resultCd": "000",
  "resultMsg": "Purchase confirmed successfully",
  "data": {
    "cisInvcNo": 7,
    "cfmDt": "20240112143000"
  }
}
curl -X POST http://localhost:8100/api/v1/purchases \\
  -H "x-api-key: YOUR_API_KEY" \\
  -H "Content-Type: application/json" \\
  -d '{
    "spplrTin": "A111111111B",
    "spplrInvcNo": "SINV-001",
    "rcptTyCd": "P",
    "pmtTyCd": "02",
    "cfmDt": "20240112143000",
    "salesSttsCd": "02",
    "totAmt": 23200
  }'