Customers

Replace a customer

put/customers/{customerId}

Request

  • Base URL
    https://api.c1st.com/api
  • URL
    https://api.c1st.com/api/customers/{customerId}
  • Auth
    HTTP bearer

Path parameters

customerIdinteger required

The customer ID

Request body

synctoeconomicboolean nullable

Whether or not it should be synced to economic, default is false

Example request

{
  "content": {
    "id": 1,
    "storeid": 1,
    "createddate": "2019-01-02 01:02:03",
    "name": "John Doe",
    "phone": "+4533608586",
    "phone_e164": "+4533608586",
    "country": "dk",
    "email": "johndoe@example.com",
    "barcode": "1234567890",
    "address": "Andebyvej 1",
    "city": "Odense",
    "zipcode": "5000",
    "addr_country": "dk",
    "birthdate": "1993-12-31",
    "ean": "12345678",
    "vat": "12345678",
    "customerno": "19181715",
    "economic_customernumber": 12345678,
    "balance": 123.45,
    "note": "Pays on time.",
    "tags": [
      {
        "color": "#4baf4f"
      }
    ],
    "permission_marketing": "2022-03-10 00:00:00",
    "updated_at": "2022-03-10 00:00:00",
    "deleted_at": "2022-03-10 00:00:00",
    "store": {
      "id": 1
    }
  }
}

Response

Ok

Example response

{
  "content": {
    "id": 1,
    "storeid": 1,
    "createddate": "2019-01-02 01:02:03",
    "name": "John Doe",
    "phone": "+4533608586",
    "phone_e164": "+4533608586",
    "country": "dk",
    "email": "johndoe@example.com",
    "barcode": "1234567890",
    "address": "Andebyvej 1",
    "city": "Odense",
    "zipcode": "5000",
    "addr_country": "dk",
    "birthdate": "1993-12-31",
    "ean": "12345678",
    "vat": "12345678",
    "customerno": "19181715",
    "economic_customernumber": 12345678,
    "balance": 123.45,
    "note": "Pays on time.",
    "tags": [
      {
        "color": "#4baf4f"
      }
    ],
    "permission_marketing": "2022-03-10 00:00:00",
    "updated_at": "2022-03-10 00:00:00",
    "deleted_at": "2022-03-10 00:00:00",
    "store": {
      "id": 1
    }
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.