obtain Payloadthis Validations | token : | from Front Payment.
Example:
'countryCode'Authorization: =>Bearer 'required|string',YOUR_FRONTPAYMENT_BEARER_TOKEN
'msisdn' => 'required|string|min:8|max:12',
'email' => 'required|email',
'name' => 'required|string',
'preferredLanguage' => 'required|string',
'addresses.billing' => 'required|array',
'addresses.billing.street' => 'required|string',
'addresses.billing.zip' => 'required|string',
'addresses.billing.city' => 'required|string',
'addresses.billing.country' => 'required|string|in:ISO Alpha 2',
'addresses.shipping' => 'nullable|array',
'addresses.shipping.street' => 'nullable|string',
'addresses.shipping.zip' => 'nullable|string',
'addresses.shipping.city' => 'nullable|string',
'addresses.shipping.country' => 'nullable|string|in:ISO Alpha 2',
'personalNumber' => 'nullable|string|size:11'
|
ExampleRequest Payload |
: | Send
the following JSON object in the request body:
{
"name": "Kari Nordmann",
"personalNumber": "925710482",
"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": "Sandnes ",
"country": "NO"
}
}
}
Validation Rules
Make sure your request meets the following requirements:
Field |
Type |
Description |
name |
string |
Required Customer's full name. |
Response Structureemail |
: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 . |
personalNumber |
string |
Optional Customer's personal identification number, must be exactly 11 characters containing 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. |
Response
A successful request returns 202 OK:
{
"status_code": 202,
"status_message": "OK",
"message": "customerUpdatedSuccessfully",
"is_data": false,
"data": null
}
| If