POST Profile
Developing
POST
{{url}}api/v1/ecommerce/profile
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'http://ecompulse.test/api/v1/ecommerce/profile' \
--header 'Accept: application/json' \
--header 'X-API-Key: exzbLclGAzBCyL0k1Yv29Evu6mwoYOATBF0lWPyT' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": 5,
"first_name": "Gore",
"last_name": "Chitila",
"gender": "female",
"address": "45 Station Rd, Queen Street",
"zip_code": "TN12 7FY",
"phone": "12234444",
"email": "cart@demo.com",
"password": "12345678",
"password_confirmation": "12345678",
"country_id": 228
}'
Response Response Example
{
"status": "success",
"message": "Customer profile updated successfully",
"data": {
"id": 5,
"first_name": "Gore",
"last_name": "Chitila",
"gender": "female",
"address": "45 Station Rd, Queen Street",
"zip_code": "TN12 7FY",
"phone": "12234444",
"email": "cart@demo.com",
"country": {
"id": 228,
"name": "United Kingdom"
},
"status": 1,
"billing": {
"first_name": "Gore",
"last_name": "Chitila",
"address": "45 Station Rd, Queen Street",
"zip_code": "TN12 7FY",
"phone": "077 0492 5962",
"email": "cart@demo.com",
"country": {
"id": 228,
"name": "United Kingdom"
}
},
"shipping": {
"first_name": null,
"last_name": null,
"address": null,
"zip_code": null,
"phone": null,
"email": null,
"country": {
"id": null,
"name": null
}
}
}
}
Request
Header Params
Accept
stringÂ
required
Example:
application/json
X-API-Key
stringÂ
required
Example:
{{key}}
Body Params application/json
Responses
Modified at 2024-05-27 18:00:44