Skip to content

Register new store

Sellers can to create up to 3 stores using one account, and they will also be able to switch smoothly between their stores. This will allow them to have better and easier control over their businesses and reduce their cognitive load.

Endpoint: https://api.youcan.shop/register-store

Method: POST

Required Scopes

  • register-store

Parameters

Param NameParam TypeDescriptionRequired
store_namestringthe new store slugyes
languagestringthe store language code. Supported values: ar_SA, en_US, fr_FR, es_ES, it_IT, de_DE, ms_MY, th_TH, tr_TR, zh_CN, ru_RUyes
currencystringthe store currency code can be fetched from the config endpointyes
accept_conditionbooleanthe user must read and accept YouCan conditions and privacy policyno

Response

[200]

json
{
    "id": "c03c1250-08c0-4144-ac5e-b5e5e58e4328",
    "slug": "amine-alyate",
    "is_active": false,
    "is_email_verified": true
}

[422]

json
{
    "status": 0,
    "detail": "The store name field must be at least 4 characters. (and 1 more error)",
    "meta": {
        "fields": {
            "store_name": ["The store name field must be at least 4 characters."],
            "language": ["The selected language is invalid."]
        }
    }
}