This operation will update given fields given an account id
curl --request PATCH \
--url https://integration-api-cat2./%7B{environment}%7D.ext.%7B{realm}%7D.cia.enfuce.com/account/v4/PREPAID/{id} \
--header 'Content-Type: application/json' \
--data '{
"address": {
"address1": "<string>",
"address2": "<string>",
"address3": "<string>",
"address4": "<string>",
"city": "<string>",
"country": "FIN",
"region": "<string>",
"zipCode": "<string>"
},
"additionalValues": [
{
"key": "<string>",
"value": "<string>"
}
],
"customerId": 55667788990,
"name": "My example account name",
"number": 123456789,
"reason": "<string>",
"segment": "SEGMENT_A",
"closureReason": "CLOSED1",
"usageLimits": [
{
"code": "24H",
"values": [
{
"code": "ATM",
"reset": true,
"singleAmount": 1000,
"count": 5,
"sumAmount": 1200
}
]
}
],
"paymentReference": {
"number": 1234567897,
"type": "MOD10"
},
"parentId": 9876543210,
"status": "ACCOUNT_BLOCKED"
}'
{
"description": "<string>",
"id": "<string>"
}
The account id for given account
The audit user to log the request
The fields that you want to apply to your newly cr, these values will override the predefined template values
Updating set values
Successful update of the account
The response is of type object
.
curl --request PATCH \
--url https://integration-api-cat2./%7B{environment}%7D.ext.%7B{realm}%7D.cia.enfuce.com/account/v4/PREPAID/{id} \
--header 'Content-Type: application/json' \
--data '{
"address": {
"address1": "<string>",
"address2": "<string>",
"address3": "<string>",
"address4": "<string>",
"city": "<string>",
"country": "FIN",
"region": "<string>",
"zipCode": "<string>"
},
"additionalValues": [
{
"key": "<string>",
"value": "<string>"
}
],
"customerId": 55667788990,
"name": "My example account name",
"number": 123456789,
"reason": "<string>",
"segment": "SEGMENT_A",
"closureReason": "CLOSED1",
"usageLimits": [
{
"code": "24H",
"values": [
{
"code": "ATM",
"reset": true,
"singleAmount": 1000,
"count": 5,
"sumAmount": 1200
}
]
}
],
"paymentReference": {
"number": 1234567897,
"type": "MOD10"
},
"parentId": 9876543210,
"status": "ACCOUNT_BLOCKED"
}'
{
"description": "<string>",
"id": "<string>"
}