Save a Customer

POST/api/v1/customers

Save a customer to the Kenya Revenue Authority eTIMS branch customer list (/saveBhfCustomer). This registers the customer against your branch so they appear in your Kenya Revenue Authority branch customer records.

Requires x-api-key

http://localhost:8100/api/v1/customers

Headers

FieldTypeRequiredDescription
x-api-keystringRequiredYour Ushuru API key.
Content-TypestringRequiredapplication/json

Request Body

FieldTypeRequiredDescription
custTinstringRequired11-character Kenya Revenue Authority PIN of the customer.
custNmstringRequiredCustomer full name.
custNostringOptionalCustomer number. Defaults to '000'.
adrsstringOptionalCustomer physical address.
telNostringOptionalPhone number.
emailstringOptionalEmail address.
faxNostringOptionalFax number.
useYnstringOptionalActive status: Y=Active, N=Inactive. Defaults to 'Y'.
regrIdstringOptionalRegistering user ID. Defaults to 'USR01'.
regrNmstringOptionalRegistering user name. Defaults to 'Admin'.
modrIdstringOptionalModifying user ID.
modrNmstringOptionalModifying user name.

Request

{
  "custTin": "A000000000Z",
  "custNm": "BUYER COMPANY LTD",
  "custNo": "001",
  "adrs": "P.O. Box 12345, Nairobi",
  "telNo": "+254700000000",
  "email": "accounts@buyerco.ke",
  "useYn": "Y",
  "regrId": "USR01",
  "regrNm": "Admin"
}

Response

{
  "success": true,
  "message": "Customer saved to Kenya Revenue Authority eTIMS branch customer list.",
  "data": {
    "resultCd": "000",
    "resultMsg": "Customer saved successfully"
  }
}
curl -X POST http://localhost:8100/api/v1/customers \\
  -H "x-api-key: YOUR_API_KEY" \\
  -H "Content-Type: application/json" \\
  -d '{
    "custTin": "A000000000Z",
    "custNm": "BUYER COMPANY LTD",
    "adrs": "P.O. Box 12345, Nairobi",
    "telNo": "+254700000000",
    "email": "accounts@buyerco.ke"
  }'