Create group

POST https://staging.billeasy.in/api/customers/groups

Headers

Name
Type
Description

Content-Type

string

x-customer-number

string

x-customer-token

string

x-api-access

string

x-api-secret

string

Authentication token to track down who is emptying our stocks.

Request:
{
  "group": {
    "group_participants_attributes": [
      {
        "name": "Kiran Billeasy",
        "phone": "7588296316"
      }
    ],
    "name": "Test"
  }
}

Response:
{
  "success": true,
  "msg": "success msg.",
  "data": {
    "id": "15",
    "type": "groups",
    "attributes": {
      "name": "Test",
      "group_participants": [
        {
          "id": 43,
          "group_id": 15,
          "customer_id": 720,
          "phone": "7588296316",
          "name": "Kiran Billeasy",
          "is_admin": null,
          "status": null,
          "created_at": "2019-12-16T18:04:16.703+05:30",
          "updated_at": "2019-12-16T18:04:16.703+05:30"
        },
        {
          "id": 44,
          "group_id": 15,
          "customer_id": 551,
          "phone": "9892228599",
          "name": "Yash Thakur",
          "is_admin": true,
          "status": "accepted",
          "created_at": "2019-12-16T18:04:16.707+05:30",
          "updated_at": "2019-12-16T18:04:16.707+05:30"
        }
      ]
    }
  }
}

Last updated