Skip to content

Transactions API

Transaction status lookup operations. Access via payd.transactions.

Methods

getStatus(transactionReference)

Look up the full details and current status of any Payd transaction.

Endpoint: GET /api/v1/status/{transactionReference}

typescript
const result = await payd.transactions.getStatus(
  transactionReference: string
): Promise<TransactionStatusResponse>;

Parameters

FieldTypeDescription
transactionReferencestringThe Payd transaction reference (e.g., "9BD103350408eR")

TransactionStatusResponse

FieldTypeDescription
idstringTransaction UUID
accountIdstringAccount UUID
billingCurrencystringBilling currency code
currencystringTransaction currency
codestringTransaction reference code
conversionRatenumberCurrency conversion rate
amountnumberTransaction amount
billingCurrencyAmountnumberAmount in billing currency
balancenumberAccount balance after transaction
typestring"receipt", "withdrawal", "transfer", "topup"
transactionDetailsTransactionDetailsDetailed transaction info
transactionCategorystringTransaction category
userIdstringUser identifier
requestMetadataunknownRequest metadata
createdAtstringISO timestamp
transactionReferencestringAlias for code
_rawRecord<string, unknown>Raw API response

TransactionDetails

FieldTypeDescription
payerstringPayer identifier
merchantIdstringMerchant identifier
phoneNumberstringPhone number
processedAtProcessedAtProcessing timestamp
reasonstringTransaction reason
channelstringPayment channel (e.g., "MPESA")
accountNumberstringAccount number
statusstringTransaction status (e.g., "success")
receiverstringReceiver identifier
emailAddressstringEmail address

ProcessedAt

FieldTypeDescription
secondsnumberUnix seconds
nanosnumberNanoseconds

Released under the MIT License.