New caph API version is out! check it out 🚀
New caph API version is out! check it out 🚀
curl --request PATCH \
--url https://api.monime.io/payment-codes/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Monime-Space-Id: <monime-space-id>' \
--data '{
"name": "<string>",
"isActive": true,
"status": "cancelled",
"expireTime": "2023-11-07T05:31:56Z",
"allowedProviders": [
"<string>"
],
"metadata": {}
}'
{
"success": true,
"messages": [
"<any>"
],
"result": {
"id": "pmc-TJh76H8hj778hftdtu66gjio",
"name": "Home EDSA Meter Top-up",
"mode": "oneTime",
"isActive": true,
"status": "pending",
"ussdCode": "\\*715\\*1\\*0123456789#",
"amount": {
"currency": "<string>",
"value": 123
},
"customerTarget": {
"name": "Musa Kamara",
"reference": "0123456789",
"payingPhoneNumber": "078000000"
},
"financialTarget": {
"expectedPaymentCount": 10,
"expectedPaymentSum": {
"currency": "<string>",
"value": 123
}
},
"allowedProviders": [
"m17",
"m18"
],
"progress": {
"isCompleted": true,
"totalPaymentCount": 123,
"totalPaymentSum": {
"currency": "<string>",
"value": 123
}
},
"financialAccountId": "<string>",
"expireTime": "2023-11-07T05:31:56Z",
"createTime": "2023-11-07T05:31:56Z",
"metadata": {}
}
}
Bearer HTTP authentication specified with the header Authorization: Bearer <access_token>
The value is the tenancy parameter that Monime used to determine which space the request is intended for.
100
A unique identifier for the payment code object.
OK
The response is of type object
.
Was this page helpful?
curl --request PATCH \
--url https://api.monime.io/payment-codes/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Monime-Space-Id: <monime-space-id>' \
--data '{
"name": "<string>",
"isActive": true,
"status": "cancelled",
"expireTime": "2023-11-07T05:31:56Z",
"allowedProviders": [
"<string>"
],
"metadata": {}
}'
{
"success": true,
"messages": [
"<any>"
],
"result": {
"id": "pmc-TJh76H8hj778hftdtu66gjio",
"name": "Home EDSA Meter Top-up",
"mode": "oneTime",
"isActive": true,
"status": "pending",
"ussdCode": "\\*715\\*1\\*0123456789#",
"amount": {
"currency": "<string>",
"value": 123
},
"customerTarget": {
"name": "Musa Kamara",
"reference": "0123456789",
"payingPhoneNumber": "078000000"
},
"financialTarget": {
"expectedPaymentCount": 10,
"expectedPaymentSum": {
"currency": "<string>",
"value": 123
}
},
"allowedProviders": [
"m17",
"m18"
],
"progress": {
"isCompleted": true,
"totalPaymentCount": 123,
"totalPaymentSum": {
"currency": "<string>",
"value": 123
}
},
"financialAccountId": "<string>",
"expireTime": "2023-11-07T05:31:56Z",
"createTime": "2023-11-07T05:31:56Z",
"metadata": {}
}
}