Get the current status of an Express payment attempt using either the paymentId or related transactionId returned by POST /v1/express.
Permissions: transactions.read
Documentation Index
Fetch the complete documentation index at: https://docs.moflay.com/llms.txt
Use this file to discover all available pages before exploring further.
The API key to use for authentication
Payment lookup identifier. Use a paymentId prefixed with 'pay_' or the related transactionId prefixed with 'trxn_'.
"pay_ABC123DEF456GHI"
Payment Status
Payment Status
Unique identifier for the payment, prefixed with 'pay_'
"pay_ABC123DEF456GHI"
Unique identifier for the related transaction, prefixed with 'trxn_'
"trxn_ABC123DEF456GHI"
Unique identifier for the customer attached to the payment, prefixed with 'cus_'
"cus_GqfKXLmg61LURZhB"
M-Pesa MerchantRequestID returned by Safaricom
"29115-34620561-1"
M-Pesa CheckoutRequestID used to reconcile the STK push
"ws_CO_191220241030123456789"
Current status. Possible values: initiating, pending, completed, failed, canceled, unknown
initiating, pending, completed, failed, canceled, unknown "completed"
Provider detail explaining the current payment status, when available
"The service request is processed successfully."
Developer-readable explanation when the payment failed, was canceled, or moved to an unknown state. Null for successful or in-progress payments.
"The customer cancelled the STK prompt."
Payment amount in the smallest currency unit
1000
Three-letter ISO currency code for the payment
"KES"
Short customer-facing payment description
"Premium plan"
Short alphanumeric reference that was sent to M-Pesa and stored with this payment, such as an order or invoice number.
"ORDER123"
M-Pesa receipt number for a completed payment
"QMF7MBB5ED"
Environment where the payment was created. Either 'sandbox' or 'production'
sandbox, production "sandbox"
Timestamp when the payment was created (ISO 8601 format)
"2024-12-19T10:25:00.000Z"
Timestamp when the payment was last updated (ISO 8601 format)
"2024-12-19T10:32:00.000Z"
Timestamp when the payment reached a terminal completed, failed, canceled, or unknown state (ISO 8601 format)
"2024-12-19T10:32:00.000Z"
Timestamp when the payment completed successfully (ISO 8601 format)
"2024-12-19T10:32:00.000Z"
Timestamp when the payment failed (ISO 8601 format)
null
Timestamp when the payment moved to an unknown state (ISO 8601 format)
null