Update Corporate Customer
This API endpoint allows you to update the details of an existing corporate customer. You can modify information such as their name, email, phone number, and address.
Endpoint
PUT https://demo-api.frontpayment.no/api/v1/connect/customers/update/corporate/{CUSTOMER_UUID}
Authentication
Include a Bearer Token in the Authorization
header. You can obtain this token from Front Payment.
Example:
Authorization: Bearer YOUR_FRONTPAYMENT_BEARER_TOKEN
Request Payload
Send the following JSON object in the request body:
{
"name": "Kari Nordmann",
"organizationId": 192933933,
"preferredLanguage": "en",
"msisdn": "46567468",
"email": "[email protected]",
"countryCode": "+47",
"addresses": {
"billing": {
"street": "Luramyrveien 65",
"zip": "4313",
"city": "Sandnes",
"country": "NO"
},
"shipping": {
"street": "Luramyrveien 65",
"zip": "4313",
"city": "Oslo",
"country": "NO"
}
},
"additionalContact": {
"0": {
"name": "Tomas Simonen",
"email": "[email protected]",
"designation": "CEO",
"countryCode": "+88",
"msisdn": "0175272184121",
"note": "Note goes here"
}
}
}
Validation Rules
Make sure your request meets the following requirements:
Field | Type | Description |
---|---|---|
name |
string |
Required Customer's full name. |
email |
email |
Required Customer's email address. |
countryCode |
string |
Required Country code for the customer's phone number (e.g., "+47"). |
msisdn |
string |
Required Mobile Subscriber ISDN Number (phone number). |
preferredLanguage |
string |
Required Customer preferred language. Available languages are en , no , sv , da , de . |
organizationId |
string |
Optional Organization identification number, must contain only numbers and cannot contain spaces. |
addresses |
array |
Required Customer's billing and shipping address. |
addresses.billing.street |
string |
Required Street address of the customer. |
addresses.billing.zip |
string |
Required Zip code of the customer's address. |
addresses.billing.city |
string |
Required City of the customer's address. |
addresses.billing.country |
string |
Required ISO Alpha-2 country code (e.g., NO). Custom validation IsoAlpha2Country applies. |
addresses.shipping.street |
string |
Optional Street address of the customer. |
addresses.shipping.zip |
string |
Optional Zip code of the customer's address. |
addresses.shipping.city |
string |
Optional City of the customer's address. |
addresses.shipping.country |
string |
Optional ISO Alpha-2 country code (e.g., NO). Custom validation IsoAlpha2Country applies. |
additionalContact.*.name |
string |
Optional Additional Contact person Name. |
additionalContact.*.designation |
string |
Optional Additional Contact person designation |
additionalContact.*.countryCode |
string |
Optional Country code for the additional contact person phone number (e.g., "+47"). |
additionalContact.*.msisdn |
string |
Optional Mobile Subscriber ISDN Number (phone number). |
additionalContact.*.email |
string |
Optional Additional contact person email address. |
additionalContact.*.note |
string |
Optional Additional contact person notes. |
Response
A successful request returns 202 OK:
{
"status_code": 202,
"status_message": "OK",
"message": "customerUpdatedSuccessfully",
"is_data": false,
"data": null
}
If the API returns a 510 error, it indicates a server-side failure:
{
"status_code": 510,
"status_message": "Execution Exception Occurred",
"message": "somethingWentWrong",
"is_error": true,
"errors": "Array"
}