Customer

api/customer endpoint documentation


New customer

Description Creates new customer for a store.
Endpoint url api/customer/create
Method POST
Params
Required
Headers
Name Type Value Description
token string - The token obtained during the account creation call.
Data params
Name Type Value Description
session_uuid string - Existing for a given account and not expired session identifier
name string - -
surname string - -
email string A proper email address format. -
address string - -
postcode string - -
city string - -
mobile number - -
Success response

{
    "code": 200,
    "body": {
        "data": {
            "uuid": "d6439a44-662a-9384-7285-97b7d169efcc",
            "store": {
                "uuid": "fdab1d05-6dc0-575d-8916-78e84ce8ccc2"
            },
            "cart": {
                "uuid": "e03954e5-cf59-7d9e-25d0-fc65e9a19c46"
            }
        }
    }
}
Error response If wrong/non-existing session_uuid given:

{
    "code": 422,
    "body": {
        "data": [],
        "errors": {
            "session_uuid": [
                "The given session uuid could not be found."
            ]
        }
    }
}

https://clickstore.pl © 2018 / Wyklikaj Sklep Bez Pomocy Innych / Przycisk "Kup Teraz" z Koszykiem & Kreator Landing Page w Jednym.