# Single Product Catalogue

**POST** `/{phone_number_id}/messages`

Product: [WhatsApp](https://devdocs.pinnacle.in/docs/whatsapp.md)  
Version: [3.0](https://devdocs.pinnacle.in/docs/whatsapp/3-0.md)

This API is used to send the catalogue message for a single product.

## Request

URL: `https://partnersv1.pinbot.ai/v3/{phone_number_id}/messages`

Authentication location: `header`

Authentication name: `apikey`

### Request schema


```json
{
  "type": "object",
  "properties": {
    "to": {
      "type": "string"
    },
    "type": {
      "type": "string"
    },
    "interactive": {
      "type": "object",
      "properties": {
        "body": {
          "type": "object",
          "properties": {
            "text": {
              "type": "string"
            }
          }
        },
        "type": {
          "type": "string"
        },
        "action": {
          "type": "object",
          "properties": {
            "catalog_id": {
              "type": "string"
            },
            "product_retailer_id": {
              "type": "string"
            }
          }
        },
        "footer": {
          "type": "object",
          "properties": {
            "text": {
              "type": "string"
            }
          }
        }
      }
    },
    "recipient_type": {
      "type": "string"
    },
    "messaging_product": {
      "type": "string"
    }
  }
}
```

### Request example


```json
{
  "to": "{{Recipient number}}",
  "type": "interactive",
  "interactive": {
    "body": {
      "text": "text-body-content"
    },
    "type": "product",
    "action": {
      "catalog_id": "{{Catalogue ID}}",
      "product_retailer_id": "{{Retailer ID}}"
    },
    "footer": {
      "text": "text-footer-content"
    }
  },
  "recipient_type": "individual",
  "messaging_product": "whatsapp"
}
```

## Response schema


```json
{
  "type": "object",
  "properties": {
    "contacts": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "input": {
            "type": "string"
          },
          "wa_id": {
            "type": "string"
          }
        }
      }
    },
    "messages": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          }
        }
      }
    },
    "messaging_product": {
      "type": "string"
    }
  }
}
```

## Response examples


```json
{
  "200": {
    "contacts": [
      {
        "input": "9175XXXXXXXX",
        "wa_id": "9175XXXXXXXX"
      }
    ],
    "messages": [
      {
        "id": "wamid.HBgMOTE3OTcyODkyNzEyFQIAERgSQzAwRDEzNkQ1NDFFNkM3SLKSA=="
      }
    ],
    "messaging_product": "whatsapp"
  }
}
```

## Status codes


```json
[
  {
    "code": 200,
    "description": "The request was successful."
  },
  {
    "code": 400,
    "description": "Bad request or invalid parameters."
  },
  {
    "code": 401,
    "description": "API key is missing or invalid."
  },
  {
    "code": 403,
    "description": "The request is not authorized for this resource."
  },
  {
    "code": 404,
    "description": "The requested resource was not found."
  },
  {
    "code": 500,
    "description": "The server encountered an error."
  }
]
```
