This operation will create a credit account
curl --request POST \
--url https://integration-api-cat2./%7B{environment}%7D.ext.%7B{realm}%7D.cia.enfuce.com/account/v4/CREDIT/customer/{customerId} \
--header 'Content-Type: application/json' \
--data '{
"address": {
"address1": "Kings street 12",
"address2": "<string>",
"address3": "<string>",
"address4": "<string>",
"city": "Mariehamn",
"country": "FIN",
"region": "Åland Islands",
"zipCode": 22100
},
"additionalValues": [
{
"key": "<string>",
"value": "<string>"
}
],
"name": "My example account name",
"number": 123456789,
"segment": "SEGMENT_A",
"paymentReference": {
"number": 1234567897,
"type": "MOD10"
},
"parentId": 9876543210,
"creditLimit": 10000,
"paymentTerms": 10,
"eInvoice": {
"address": "FI7165429021331431",
"operator": "NDEAFIHH",
"paymentInstruction": "AA"
},
"invoiceDayOfMonth": 21,
"invoiceDeliveryMethod": "REGULAR_MAIL",
"minimumToPay": {
"amount": 123,
"percentage": 50
},
"productCode": "CREDIT_EUR_FI",
"invoicePaymentMethod": "DIRECT_DEBIT"
}'
{
"description": "<string>",
"id": "<string>"
}
The customer id of which customer you want to create the account on
The audit user to log the request
The fields that you want to apply to your newly created account, these values will override the predefined template values
The body is of type object
.
Successful creation of the account
The response is of type object
.
Was this page helpful?
curl --request POST \
--url https://integration-api-cat2./%7B{environment}%7D.ext.%7B{realm}%7D.cia.enfuce.com/account/v4/CREDIT/customer/{customerId} \
--header 'Content-Type: application/json' \
--data '{
"address": {
"address1": "Kings street 12",
"address2": "<string>",
"address3": "<string>",
"address4": "<string>",
"city": "Mariehamn",
"country": "FIN",
"region": "Åland Islands",
"zipCode": 22100
},
"additionalValues": [
{
"key": "<string>",
"value": "<string>"
}
],
"name": "My example account name",
"number": 123456789,
"segment": "SEGMENT_A",
"paymentReference": {
"number": 1234567897,
"type": "MOD10"
},
"parentId": 9876543210,
"creditLimit": 10000,
"paymentTerms": 10,
"eInvoice": {
"address": "FI7165429021331431",
"operator": "NDEAFIHH",
"paymentInstruction": "AA"
},
"invoiceDayOfMonth": 21,
"invoiceDeliveryMethod": "REGULAR_MAIL",
"minimumToPay": {
"amount": 123,
"percentage": 50
},
"productCode": "CREDIT_EUR_FI",
"invoicePaymentMethod": "DIRECT_DEBIT"
}'
{
"description": "<string>",
"id": "<string>"
}