Payment Code
Create Payment Code
Creates a new payment code with the specified parameters for value collection and provider restrictions.
post/v1/payment-codes
Request
- Base URLhttps://api.monime.io
- URLhttps://api.monime.io/v1/payment-codes
- AuthHTTP bearer
Headers
Idempotency-Keystring required
This header is used to uniquely identify a logical request, ensuring that it is not processed more than once during retries.
Monime-Version'caph.2025-08-23' | 'caph.2025-06-20' nullable
Specifies which version of the Monime API will handle this request.
Monime-Space-Idstring required
The value is the tenancy parameter that Monime uses to determine which space the request is intended for.
Request body
Example request
{
"name": "Home EDSA Meter Top-up",
"duration": "1h30m",
"customer": {
"name": "Musa Kamara"
},
"recurrentPaymentTarget": {
"expectedPaymentCount": 10
}
}Response
OK
Example response
{
"result": {
"name": "Home EDSA Meter Top-up",
"customer": {
"name": "Musa Kamara"
},
"authorizedProviders": [
"m17",
"m18"
],
"recurrentPaymentTarget": {
"expectedPaymentCount": 10
}
}
}Changes
No recorded changes to this operation across all 2 revisions of this API.