B2cResponse

@Serializable
data class B2cResponse(val conversationId: String, val originatorConversationId: String, val responseCode: String, val responseDescription: String)

B2C acknowledgement response

Constructors

Link copied to clipboard
constructor(conversationId: String, originatorConversationId: String, responseCode: String, responseDescription: String)

Properties

Link copied to clipboard
@SerialName(value = "ConversationID")
val conversationId: String

This is a global unique identifier for the transaction request returned by the M-Pesa upon successful request submission.

Link copied to clipboard
@SerialName(value = "OriginatorConversationID")
val originatorConversationId: String

This is a global unique identifier for the transaction request returned by the API proxy upon successful request submission.

Link copied to clipboard
@SerialName(value = "ResponseCode")
val responseCode: String

This is a Numeric status code that indicates the status of the transaction submission. 0 means successful submission and any other code means an error occurred.

Link copied to clipboard
@SerialName(value = "ResponseDescription")
val responseDescription: String

This is the status of the request.