C2bResponse

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

C2B 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

The unique request ID returned my M-PESA for each request made. Sample: Alpha-Numeric String of less than 20 characters eg: 1236-7134259-1

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

The unique request ID for tracking a transaction. Sample: Alpha Numeric String of less than 20 characters eg: AG_20210709_1234409f86436c583e3f

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

The numeric status code indicates the status transaction processing. 0 means success and any other code means an error occurred or the transaction failed. Success submission message or an error description. Sample: 0 or 1 or 2001 or 21

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

Response description message. Sample: Accept the service request successfully