organizations
Creates an organization
Creates an organization
post/organizations
Request
- Base URLhttps://provisioning.commercelayer.io
- URLhttps://provisioning.commercelayer.io/organizations
- AuthHTTP bearer
Request body
Example request
{
"data": {
"attributes": {
"name": "The Blue Brand",
"support_phone": "+01 30800857",
"support_email": "support@bluebrand.com",
"logo_url": "https://bluebrand.com/img/logo.svg",
"favicon_url": "https://bluebrand.com/img/favicon.ico",
"primary_color": "#C8984E",
"contrast_color": "#FFFFCC",
"gtm_id": "GTM-5FJXX6",
"gtm_id_test": "GTM-5FJXX7",
"region": "eu-west-1",
"config": {
"mfe": {
"language": "it-IT",
"default": {
"links": {
"cart": "https://cart.example.com/:order_id?accessToken=:access_token",
"checkout": "https://checkout.example.com/:order_id?accessToken=:access_token",
"identity": "https://example.com/login",
"microstore": "https://example.com/microstore/?accessToken=:access_token",
"my_account": "https://example.com/my-custom-account?accessToken=:access_token"
},
"checkout": {
"optional_billing_info": false,
"thankyou_page": "https://example.com/thanks/:lang/:order_id",
"billing_countries": [
{
"value": "ES",
"label": "Espana"
},
{
"value": "IT",
"label": "Italia"
},
{
"value": "US",
"label": "Unites States of America"
}
],
"shipping_countries": [
{
"value": "ES",
"label": "Espana"
},
{
"value": "IT",
"label": "Italia"
},
{
"value": "US",
"label": "Unites States of America"
}
],
"billing_states": {
"FR": [
{
"value": "PA",
"label": "Paris"
},
{
"value": "LY",
"label": "Lyon"
},
{
"value": "NI",
"label": "Nice"
},
{
"value": "MA",
"label": "Marseille"
},
{
"value": "BO",
"label": "Bordeaux"
}
]
},
"shipping_states": {
"FR": [
{
"value": "PA",
"label": "Paris"
},
{
"value": "LY",
"label": "Lyon"
},
{
"value": "NI",
"label": "Nice"
},
{
"value": "MA",
"label": "Marseille"
},
{
"value": "BO",
"label": "Bordeaux"
}
]
},
"default_country": "US"
},
"urls": {
"privacy": "https://example.com/privacy/:lang",
"terms": "https://example.com/terms/:lang"
}
},
"market:id:ZKcv13rT": {
"links": {
"cart": "https://example.com/custom-cart/:order_id?accessToken=:access_token"
},
"checkout": {
"thankyou_page": "https://example.com/thanks/:order_id"
}
}
}
},
"reference": "ANY-EXTERNAL-REFEFERNCE",
"reference_origin": "ANY-EXTERNAL-REFEFERNCE-ORIGIN",
"metadata": {
"foo": "bar"
}
}
}
}Response
The created organization object
Changes
No recorded changes to this operation across all 1 revision of this API.