---
title: "AddContactsToGroups"
description: "Add one or more SMS contacts to one or more groups in a single call by sending arrays of group and contact identifiers, authenticated with API and secret keys."
source: https://docs.payplus.co.il/en/payplus/latest/post-sms-addcontactstogroups
language: en
product: payplus
version: v1
updated: 2025-05-28
---

# AddContactsToGroups

**POST** `/SMS/AddContactsToGroups`

- Production: `https://restapi.payplus.co.il/api/v1.0/`
- Staging: `https://restapidev.payplus.co.il/api/v1.0/`

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `api-key` | header | string | yes | API Key |
| `secret-key` | header | string | yes | Secret Key |

**Request body** (application/json)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `groups_uid` | array |  | Array of groups_uid |
| `contacts_uid` | array |  | Array of contacts_uid |

```json
{
  "groups_uid": [
    "string"
  ],
  "contacts_uid": [
    "string"
  ]
}
```

**Response 200** — 200

```json
{
  "barcode": "472819632332439",
  "brand": {
    "name": "Company Name",
    "uuid": "67a8cc93-75ac-4832-8386-3eb5b24bf3d0"
  },
  "copyDocAddress": "https://restapi.payplus.co.il/getdoc/s/c/1fa79282-61d1-4898-b7b9-afa67f46d34a.pdf",
  "currency_code": "ILS",
  "customer": {
    "customer_name": "John Doe",
    "email": "johndoe@example.com",
    "phone": "123456789",
    "subject_code": "987654321",
    "uuid": "faa6280f-dba5-4889-9b15-de60e1527bdc",
    "vat_number": "1231231"
  },
  "customer_uuid": "faa6280f-dba5-4889-9b15-de60e1527bdc",
  "docUID": "1fa79282-61d1-4898-b7b9-afa67f46d34a",
  "doc_date": "2022-11-15",
  "doc_type": "inv_tax",
  "more_info": null,
  "number": "SCP/50042",
  "originalDocAddress": "https://restapi.payplus.co.il/getdoc/s/o/1fa79282-61d1-4898-b7b9-afa67f46d34a.pdf",
  "total_items_base_currency": 150,
  "validDocumentGenerated": true
}
```

**Response 400** — 400

```json
{}
```
