Criar Grupo de Clientes
POST
https://api.dooca.store/customers/groups
Body { "name": "Generic", "markup": 0.9, "min_purchase": 100, "min_quanity": 1, "active": 1, "exclude_payment_ids": [1,2], "exclude_carrier_ids": [1] }
Status: 201
Editar Grupo de Clientes
PUT
https://api.dooca.store/customers/groups/:id
Parâmetro: O ID do Grupo de clientes.
A edição do registro pode ser parcial ou total.
{ "name": "Generic Edit" }
Status: 200
Deletar Grupo de Clientes
DELETE
https://api.dooca.store/customers/groups/:id
Parâmetro: O ID do Grupo de clientes.
Response: 204
Consultar Grupo de Clientes
GET
https://api.dooca.store/customers/groups/:id
Parâmetro: O ID do Grupo de clientes.
{ "id": 186, "name": "Padrão", "markup": "1.00000", "min_purchase": "0.00", "min_quantity": 1, "is_default": true, "customers_count": 1, "exclude_payment_ids": [], "exclude_carrier_ids": [], "created_at": "2020-01-08 15:00:26", "updated_at": "2020-01-08 15:00:26" }
Listar Grupos de Clientes
GET
https://api.dooca.store/customers/groups
HTTP STATUS: 200 OK { "id": 186, "name": "Padrão", "markup": "1.00000", "min_purchase": "0.00", "min_quantity": 1, "is_default": true, "customers_count": 1, "exclude_payment_ids": [], "exclude_carrier_ids": [], "created_at": "2020-01-08 15:00:26", "updated_at": "2020-01-08 15:00:26" }