Skip to main content
PUT
When an activity’s next_action.action.type starts with input_, collect the value from the customer and send it here. Kwugwo forwards it to the PSP and returns the updated next action.
OTPs, PINs and BVNs are sensitive. Send them straight from your server to Kwugwo over TLS, and never log or store them.

Path parameters

string
required
The ugwo ID, ugw.XXXX.YYYY....
string
required
The activity ID, act.XXXX.YYYY....
string
required
The next action ID, uac.XXXX.YYYY.... Must be the activity’s current, pending next action.

Body parameters

Send exactly the one field that matches action.type:
string | null
For input_otp. Up to 10 characters. Send null to resend the code when the action has supports_resend: true.
string
For input_pin. Exactly 4 digits.
string
For input_bvn. Exactly 11 digits.
string
For input_birthday. A date, YYYY-MM-DD.

Response

The updated Next action object. Check, in order:
  1. last_error is set and status is still pending: the input was rejected. Ask the customer again (invalid_input) or resubmit (unknown_error_try_again).
  2. status is fulfilled: accepted. Get the activity: it may now be processing, successful, or requires_action with a new next_action (for example an OTP after a PIN).
  3. status is expired: too late. The activity has ended; start a new one.
Submitting to a next action that is not pending, or one whose action.type takes no input (user_action, open_url), changes nothing and returns it as is.