Get Products (Phone)
#
Method#
/catalogs/Phone-NumberGET
https://api.z-api.io/instances/{{instanceId}}/token/{{instanceToken}}/catalogs/{{Phone-Number}}
#
HeaderKey | Value |
---|---|
Client-Token | ACCOUNT SECURITY TOKEN |
#
ConceptIn this method, you will be able to get products from a WhatsApp Business catalog of any phone number, whether it's your catalog or someone else's.
#
Attributes#
OptionalAttributes | Type | Description |
---|---|---|
nextCursor | string | Token used for pagination of records |
#
Request Params#
URL exampleMethod
#
Response#
200Attributes | Type | Description |
---|---|---|
cartEnabled | boolean | Attribute to know if the cart is active |
nextCursor | string | Token that defines the records of the next request |
availability | string | Attribute to know the product's availability |
id | string | Product ID |
retailerId | boolean | Retailer ID |
price | string | Product price |
currency | string | Currency type |
name | string | Product name |
quantity | boolean | Product quantity attribute |
images | string | Product image link |
Example
#
405In this case, ensure that you are sending the method specification correctly, i.e., check if you sent the POST or GET as specified at the beginning of this topic.
#
415If you receive a 415 error, make sure to add the "Content-Type" of the object you are sending in the request headers, in most cases, it should be "application/json".