Skip to main content

StatePaymentResponseDto

This document presents the StatePaymentResponseDto, a key data structure used in the NoWallet API to retrieve detailed information about a transaction's current state.
It helps merchants track the payment flow, verify balances, fees, transaction statuses, and other operational details.

JSON Response Example

The JSON snippet illustrates a typical response structure for a payment state query. It includes multiple fields such as:

  • status: The current status of the transaction.
  • transaction_id: A unique identifier for the transaction.
  • additional_infos: Customer information like email, name, and phone number.
  • amount: The transaction amount.
  • currency: The currency used for the transaction.
  • fee_percent: The percentage of the transaction fee.
  • fee_value: The value of the transaction fee.
  • balance: The merchant's balance after the transaction.
  • balance_before: The merchant's balance before the transaction.
  • balance_after: The merchant's balance after the transaction.
  • transaction_method: The method used for the transaction.
  • transaction_phone_number: The phone number associated with the transaction.
  • transaction_dialcode: The dial code for the transaction phone number.
  • signature: The signature generated for the transaction.
  • transaction_date: The date of the transaction.
  • transaction_country_code: The country code for the transaction.
  • transaction_service_name: The name of the service used for the transaction.
  • transaction_observation: Any observations related to the transaction.

Example Payload

Here is an example of a valid payload for the StatePaymentResponseDto:

{
"status": "SUCCESS",
"transaction_id": "EXAMPLE-ba325fc6-ca09eb7b4dce",
"additional_infos": {
"customer_email": "[email protected]",
"customer_lastname": "Doe",
"customer_firstname": "John",
"customer_phone": "+237691234567"
},
"amount": 200,
"currency": "XAF",
"fee_percent": 1.2,
"fee_value": 20,
"balance": 200,
"balance_before": 180,
"balance_after": 220,
"transaction_method": "MERCHANT",
"transaction_phone_number": "691234567",
"transaction_dialcode": "+237",
"signature": "EXAMPLE-XXXXX-XXXXX",
"transaction_date": "2025-01-01TZ00:00:00",
"transaction_country_code": "CM",
"transaction_service_name": "ORANGE MONEY",
"transaction_observation": ""
}

Properties

NameTypeRequiredRestrictionsDescription
statusstringtruenonetransaction status
transaction_idstringtruenonetransaction id
additional_infosobjecttruenoneclient informations like email, lastname, firstname, phone
amountnumbertruenonetransaction amount
currencystringtruenonetransaction currency
fee_percentnumbertruenonefees applied to the transaction in percentage
fee_valuenumbertruenonefees applied to the transaction in value
balancenumbertruenonemerchant balance
balance_beforenumbertruenonemerchant balance before the transaction
balance_afternumbertruenonemerchant balance after the transaction
transaction_methodstringtruenonetransaction type (CASHIN, CASHOUT, MERCHANT)
transaction_phone_numberstringtruenonecustomer phone number
transaction_dialcodestringtruenonecustomer phone number dial code
signaturestringtruenonesignature generate from ClaPay for the transaction
transaction_datestringtruenonetransaction date
transaction_country_codestringtruenonetransaction country code
transaction_service_namestringtruenonetransaction operator label
transaction_observationstringtruenonetransaction observation note if there is any issue

Enumerated Values

Some fields use predefined values:

PropertyValue
statusFAILED
statusSUCCESSFUL
statusPENDING
statusINITIATED
statusINITIATEFROMCLIENT
statusUNCOMPLETED
statusCLOSED
statusUNKNOWN
statusSIGNATURE_DESTROYED
statusINPROGRESS
statusUNAVAILABLE_SERVICES
currencyDZD
currencyAOA
currencyBWP
currencyBIF
currencyCVE
currencyXAF
currencyKMF
currencyCDF
currencyDJF
currencyEGP
currencyERN
currencyETB
currencyEUR
currencyGMD
currencyGHS
currencyGNF
currencyXOF
currencyKES
currencyLSL
currencyLRD
currencyLYD
currencyMGA
currencyMWK
currencyMRO
currencyMUR
currencyMAD
currencyMZN
currencyNAD
currencyNGN
currencyRWF
currencySHP
currencySTN
currencyRSD
currencySCR
currencySLL
currencySOS
currencyZAR
currencySSP
currencySDG
currencySZL
currencyTZS
currencyTND
currencyUGX
currencyAED
currencyUSD
currencyZMW
currencyZWL
transaction_methodCASHIN
transaction_methodMERCHANT
transaction_methodCASHOUT

This page was helpful?