New and improved partner docs available here
Gupshup

Partner APIs

Template Apis 6

Description

here you can create a template for a particular app. you will need below details to start using this api. 1. app Id 2. app token

Headers
Key Value Description
Connection keep-alive
token {{PARTNER_APP_TOKEN}}
URL Variables
Key Value Description
appId 9e97650d-add3-4557-9535-4cdf47c3fa68
Body
Key Value Description
elementName ticket_check_url_334 The name of a template. Element name is unique for a WABAs namespace.
languageCode en_US Language code for the template. Refer to all the language codes here.
category MARKETING The category of your template. Possible Values: AUTHENTICATION, MARKETING and UTILITY.
If you submit the templates with the any other categories, you will receive an error Invalid category provided, kindly use category from these option AUTHENTICATION, MARKETING, UTILITY.
templateType

TEXT

Carousel

--data-urlencode 'cards'

LTO


--data-urlencode 'limitedOfferText={{limited offer text}}' 
--data-urlencode 'hasExpiration={{true/false}}' 
--data-urlencode 'isLTO=true

The type of template: TEXT, IMAGE, LOCATION, PRODUCT, CATALOG, LTO, CAROUSEL, VIDEO & DOCUMENT

CATALOG, LTO, CAROUSEL templates are not available with the On-premises API

CATALOG, LTO, CAROUSEL and PRODUCT templates are available for MARKETING & UTILITY category only.

Cards to be cards only to be passed if template type is CAROUSEL

isLTO LTO creation param Needs to be true in order to create LTO templates
limitedOfferText LTO text Limited offer text can have Maximum 16 characters
hasExpiration Set true to add expiration to LTO templates Copy code button component required if "has_expiration" is set to true
Cards card list

Either of mediaUrl, mediaId or exampleMedia is required. If exampleMedia is not provided, the handleId / exampleMedia will be generated in the backend using the mediaUrl / mediaId.


    [
        {
            "headerType": "<IMAGE/VIDEO>",
            "mediaUrl": "<image/video url>",
            "mediaId": "<image/video id>",
            "exampleMedia": "<image/video handle id>",
            "body": "<card 1 body>",
            "sampleText": "<card 1 example>",
            "buttons": <button_list>
        }
    ]
vertical TEXT Character limit: 180
content your ticket has been confirmed for {{1}} persons on date {{2}}. The body of the template. Character limit: 1028. For "Authentication" category the first line should be - {{1}} is your verification code.
header This is the header. Header of the template. Applicable for templateType = Text Character limit: 60. Not applicable for "Authentication" category.
footer This is the footer Footer of the template. Character limit: 60. Not applicable for "Authentication" category, only set based on code_expiration_minutes value
buttons

Copy code example

[
    {"type":"PHONE_NUMBER","text":"Call Us","phone_number":"+919872329959"},
    {"type":"URL","text":"Book A Demo","url":"https://bookins.gupshup.io/{{1}}","example":["https://bookins.gupshup.io/abc"]},
    {"type":"URL","text":"test","url":"https://www.google.co.uk/","buttonValue":"https://www.google.co.uk/","suffix":""},
    {"type":"QUICK_REPLY","text":"Yes"}, {"type": "COPY_CODE","example": "250FF"}
]

Authentication category example

[
    {"type":"OTP","otp_type":"COPY_CODE","text":"Copy OTP"},
    {"type":"OTP", "otp-type": "ONE_TAP", "text":"Book A Demo", "autofill_text": "Autofill", #One-tap buttons only "package_name": "com.example.myapplication" #One-tap buttons only, "signature_hash": "K8a%2FAINcGX7", #One-tap buttons only},
]

Button list example

{
    "type":"BUTTONS",
    "buttons": [
        {
            "type": "QUICK_REPLY",
            "text": "Unsubscribe from Promos"
        },
        {
            "type":"QUICK_REPLY",
            "text": "Unsubscribe from All"
        }
    ]
  }
  
Used only if your template has a CTA. An example is also submitted if a URL button has variable parameter. For "Authentication" category OTP button type is supported with two otp_type:
  1. COPY_CODE
  2. ONE_TAP

If otp_type is set to ONE_TAP, three additional parameters are required:

  1. autofill_text
  2. package_name
  3. signature_hash

UTILITY templates cannot use COPY_CODE


Marketing template now have support for

  1. Copy Code
  2. Button List

Copy Code - Allows users to copy the code from the message. Only one copy code button is allowed in one template


Marketing and Utility templates have support for Button list

Button List - Allows upto 10 buttons to be embedded in the template.

Sublimits

  1. Maximum of 2 URL buttons are permitted
  2. Maximum of 1 button of type PHONE_NUMBER is permitted
  3. Maximum of 10 buttons of type QUICK_REPLY is permitted
example your ticket has been confirmed for 4 persons on date 2020-05-04. An example of the template.
enableSample true Required for creating all types of templates.
allowTemplateCategoryChange false Boolean value. If True, Meta will automatically update the category of the template as per the template content. Default value is False. If the category gets updated, you can view the oldCategory from the Get Templates API
exampleHeader This is the header
addSecurityRecommendation true Optionally for "Authentication" category a security disclaimer is added to content - For your security, do not share this code
codeExpirationMinutes integer Optionally for "Authentication" category the following text is added to footer - This code expires in <NUM_MINUTES> minutes. Code expiry time should be between 1 and 90 minutes.
Sample Response

                {
                    "status": "success",
                    "template": {
                        "appId": "8372f7-a233-4aad-8f267-c232d81263",
                        "category": "MARKETING",
                        "createdOn": 1652768999707,
                        "data": "Hi, you Welcome to Header.\nHi, {{1}}. This is the template for header testing.\nHi, Welcome to Footer. | [call,917676767676] | [ur,https://www.fb.com]",
                        "elementName": "test_template12332",
                        "id": "fc05da-f2135-45e2-8sad4-dc4410ea",
                        "languageCode": "en",
                        "languagePolicy": "deterministic",
                        "master": true,
                        "meta": "{\"example\":\"Hi, [john]. This is the template for header testing.\"}",
                        "modifiedOn": 1652768999707,
                        "namespace": "efbf3_e5c4_42de_9803_2090d81b",
                        "status": "PENDING",
                        "templateType": "TEXT",
                        "vertical": "Header",
                        "allowTemplateCategoryChange": "false"
                    }
                }
            
Description

Using this API, you can create and submit a template along with a Sample Media. You will need below details to start using this API.

  1. App Id
  2. Partner App Token
  3. Handle Id

Headers
Key Value Description
token {{PARTNER_APP_TOKEN}}
URL Variables
Key Value Description
appId 9e97650d-add3-4557-9535-4cdf47c3fa68
Body
Key Value Description
elementName ticket_check_url_334
languageCode en_US
content Your verification code is {{1}}.
footer This is the footer Footer of the template. Character limit: 60
category MARKETING The category of your template. Possible Values: AUTHENTICATION, MARKETING and UTILITY.
If you submit the templates with the any other categories, you will receive an error Invalid category provided, kindly use category from these option AUTHENTICATION, MARKETING, UTILITY.
templateType IMAGE
vertical Ticket update
appId 9e97650d-add3-4557-9535-4cdf47c3fa68
example Your verification code is 213.
exampleMedia
4::aW1hZ2UvcadG5n:ARYaMMMA2QvIXuQZdPjWVXTOqfoBU3n0L1Ftyg4w57yxi9nD105yQDvW2nu3-HNo9HGefxZ-Ig-HAi3YSsckwIsOEUwxSPatsxT0Niob30E63A:e:1634884682:2281283925530161:100033655335566:ARaBAxW-1L-ZRu6SMSg
This is the handleId.
enableSample true Required when submitting CTA template with variables.
allowTemplateCategoryChange false Boolean value. If True, Meta will automatically update the category of the template as per the template content. Default value is False. If the category gets updated, you can view the oldCategory from the Get Templates API
Sample Response

        {
        "status": "success",
        "template": {
            "category": "TICKET_UPDATE",
            "createdOn": 1634624637136,
            "data": "Your verification code is {{1}}.",
            "elementName": "verification_code_with_image_3",
            "id": "ae7ae44e-710c-495a-b011-648a775b2063",
            "languageCode": "en",
            "languagePolicy": "deterministic",
            "master": true,
            "meta": "{\"example\":\"Your verification code is 123.\"}",
            "modifiedOn": 1634624637136,
            "status": "PENDING",
            "templateType": "IMAGE",
            "vertical": "TICKET_UPDATE",
            "allowTemplateCategoryChange": "false"
        }
        }
                                                            
Description

Using this API, you can upload your sample media and generate a handleId for it. Using the handleId, you can create and submit a template along with a sample media. The handleId is passed in the exampleMedia parameter of the Apply for templates with sample media API. You will need below details to start using this API.

  1. App Id
  2. Partner App Token

Headers
Key Value Description
Authorization {{PARTNER_APP_TOKEN}}
URL Variables
Key Value Description
appId 9e97650d-add3-4557-9535-4cdf47c3fa68
Body
Key Value Description
file @"/C:/Users/Pictures/sample.png" Upload a file from your local machine.
file_type image/png
Sample Response

        {
        "handleId": {
        "message": "4::aW1hZ2UvcG5n:ARYY-6d3Nol2fC0RG7nG1d-Rie7-q4SeLZ0M_Fcffdkv7glkYgGa0IxKLc9DqlyuVIQD18KxYmgaEfuiUuQSdbYMpjce0jPgI59Q7hZVws5e5Q:e:1634970144:2281283925530161:100033655335566:ARYj6TLlB5Nu6A5KJaI"
        },
        "status": "success"
        }
                                                            
Description

Using this API you can get the list of templates for a an app. You will get the rejection reason for templates.
The following details are required to start using this API.

  1. app Id
  2. Partner app token

Note: Starting from 29th March 2023, Meta will migrate your templates to the new categories. Once we get the new category for your template, the old template category will be associated with the parameter oldCategory, and the new category will be associated with the parameter category. You will not see the oldCategory parameter until the new category is received. You will also receive a template category-update event on your callback URL notifying of the change. Learn more about it here.


Headers
Key Value Description
Connection keep-alive
token {{PARTNER_APP_TOKEN}}
URL Variables
Key Value Description
appId 9e97650d-add3-4557-9535-4cdf47c3fa68
Sample Response

{
  "status": "success",
  "templates": [
    {
      "appId": "24840ba3-f488-4c10-9ef2-ba23e3jn63d9",
      "category": "MARKETING",
      "createdOn": 1671619377053,
      "data": "Happiness & Growth is all we wish for you this Holiday season.\nHappy Holidays & a happy New Year 2023.",
      "elementName": "mrry_chis",
      "externalId": "703981077764591",
      "id": "00b298d7-5c63-4788-9b66-b821i3ae5ccd",
      "internalCategory": 0,
      "internalType": 0,
      "languageCode": "en",
      "languagePolicy": "deterministic",
      "meta": "{\"example\":\"Happiness & Growth is all we wish for you this Holiday season.\\nHappy Holidays & a happy New Year 2023.\"}",
      "modifiedOn": 1678794041479,
      "namespace": "ef160bf3_e5c4_42de_9803_209f1n90d81b",
      "priority": 1,
      "quality": "UNKNOWN",
      "retry": 0,
      "stage": "NONE",
      "status": "APPROVED",
      "templateType": "VIDEO",
      "vertical": "account update",
      "wabaId": "1577800082372507"
    },
    {
      "appId": "24840ba3-f488-4c10-9ef2-ba23e3jn63d9",
      "category": "UTILITY",
      "createdOn": 1657531748839,
      "data": "Hi {{1}}\n\nYou have received {{1}} catalog from {{2}} which will expire in {{3}} hours.\n\nSelect your designs before its too late. | [View Catalog,https://app.tanika.tech/{{1}}]",
      "elementName": "tanika_supplier_ts_gs_7",
      "id": "00e1ee5a-b815-4aa3-874d-292nu36c54b1",
      "internalCategory": 0,
      "internalType": 0,
      "languageCode": "en",
      "languagePolicy": "deterministic",
      "meta": "{\"example\":\"Hi [*User*]\\n\\nYou have received [*1234*] catalog from [*5678*] which will expire in [*1800*] hours.\\n\\nSelect your designs before its too late.\"}",
      "modifiedOn": 1657531749100,
      "namespace": "ef160bf3_e5c4_42de_9803_209f1n90d81b",
      "priority": 1,
      "quality": "UNKNOWN",
      "reason": "component of type BODY is missing expected field(s) (example)",
      "retry": 0,
      "stage": "NONE",
      "status": "REJECTED",
      "templateType": "TEXT",
      "vertical": "ACCOUNT_UPDATE",
      "wabaId": "1577800082372507"
    }
    ]
}
                                                            
Headers
KeyValueDescription
Connection keep-alive
Authorization {{PARTNER_APP_TOKEN}}
URL Variables
KeyValueDescription
appId 9e97650d-add3-4557-9535-4cdf47c3fa68
Body
KeyValueDescription
source 918910567700
sandbox false
destination 918286836492
template
  1. When TemplateType is CATALOG
    • Template Params should contain the productId which will be sent as thumbnail for the catalog (Must be the last element in templateParams list)
    •                                                                                     
              {
                  "id": "8985923d-682d-4bb7-b037-66b61c8c7877",
                  "params": ["a2py9opgpp"]
              }
                                                                                      
                                                                                  
  2. When TemplateType is PRODUCT
    • Template Params should contain the productId which will be sent as thumbnail (last in the list)
    • Sections param must be provided with valid ids
                                                                                          
              {
                  "id":"3b9bf65b-979c-44d3-a269-dec2f20c4e52",
                  "params":[
                      "zqc2qfz5fm"
                  ],
                  "mpm":{
                      "sections":[
                          {
                              "title":"Products",
                              "products":[
                              "zqc2qfz5fm"
                              ]
                          },
                          {
                              "title":"Products2",
                              "products":[
                              "xyli96fcbn"
                              ]
                          }
                      ]
                  }
              }
                                                                                          
                                                                                      
    •                                                                             
      {
          "id": "007b7c0e-fc8d-4698-a9a8-3938151dd5da",
          "params": ["monday","2020-12-20","apps", "a2py9opgpp"]
      }
                                                                                  
                                                                              
    • When TemplateType is Carousel

      Carousel Template when created with mediaUrl

      {
          "type":"carousel",
          "cardHeaderType":"IMAGE",
          "cards":[
          {"link":"https://fastly.picsum.photos/id/13/2500/1667.jpg?hmac=SoX9UoHhN8HyklRA4A3vcCWJMVtiBXUg0W4ljWTor7s"},
          {"link":"https://fastly.picsum.photos/id/25/5000/3333.jpg?hmac=yCz9LeSs-i72Ru0YvvpsoECnCTxZjzGde805gWrAHkM"},
          {"link":"https://fastly.picsum.photos/id/28/4928/3264.jpg?hmac=GnYF-RnBUg44PFfU5pcw_Qs0ReOyStdnZ8MtQWJqTfA"},
          {"link":"https://fastly.picsum.photos/id/27/3264/1836.jpg?hmac=p3BVIgKKQpHhfGRRCbsi2MCAzw8mWBCayBsKxxtWO8g"}
      ]}

      Carousel Template when created with mediaId

      {
          "type":"carousel",
          "cardHeaderType":"IMAGE",
          "cards":[
          {"id":"1055910955598003"},
          {"id":"1055910955598003"},
          {"id":"1055910955598003"},
          {"id":"1055910955598003"}]
      }
    • When TemplateType is LTO

      Send message template:

      {"id":"667237b0-0e4f-42f7-ae70-4603bae593ff","params":["250FF"],"expiration":1714694865000}

MPM Template

  • For MPM template, params must include all params including a product id (which is to be used as thumbnail (last in the list))
  • For MPM template messages template section must be provided with valid Ids template={ "id":"3b9bf65b-979c-44d3-a269-dec2f20c4e52", "params":[ "zqc2qfz5fm" ], "mpm":{ "sections":[{ "title":"Products", "products":[ "zqc2qfz5fm" ] }, { "title":"Products2", "products":[ "xyli96fcbn" ] }] } }

Catalog Template

  • Catalog template supported only on CAPI
  • For catalog template Params should contain the productId which will be sent as thumbnail for the catalog (Must be the last element in templateParams list).
src.name GupshupDevAssistant01
message

Location

{"type":"location","location":{"name":"1513 Farnum Road","address":"New York 10019","longitude":-79.0896492,"latitude":42.5950661}}

LTO


    {
        "type": "image",
        "image": {
            "link": "",
            "id": ""
        }                                                                   
    }

Required when templateType is 'LOCATION'

Add video or image id/link for media LTO templates

Body


Sample Response
                                                                
        {
            "status": "submitted",
            "messageId": "bc856acb-3ca3-4ed3-9822-6443f52ea9ce"
        }
                                                                
                                                            
Description


Using this API, you can edit a template using the templateId.

You will need below details to start using this API.

  1. App Id
  2. Template Id

Headers
Key Value Description
Connection keep-alive
Authorization {{PARTNER_APP_TOKEN}}
Body
Key Value Description
content This is the content TEXT: The body of the template. Character limit: 1028
templateType TEXT The type of template: TEXT, IMAGE, LOCATION, PRODUCT, CATALOG, VIDEO & DOCUMENT
example your ticket has been confirmed for 4 persons on date 2020-05-04 TEXT - An example of the template.
enableSample true BOOLEAN: True or False. Required for creating all types of templates.
header This is the header Header of the template. Applicable for templateType = Text Character limit: 60
footer This is the footer Footer of the template. Character limit: 60
buttons [{"type":"PHONE_NUMBER","text":"Call Us","phone_number":"+xxxxxxxxxxx"},{"type":"URL","text":"Book A Demo","url":"https://bookins.gupshup.io/{{1}}","example":["https://bookins.gupshup.io/abc"]}] Used only if your template has a CTA. An example is also submitted if a URL button has variable parameter.
exampleMedia
4::aW1hZ2UvcadG5n:ARYaMMMA2QvIXuQZdPjWVXTOqfoBU3n0L1Ftyg4w57yxi9nD105yQDvW2nu3-HNo9HGefxZ-Ig-HAi3YSsckwIsOEUwxSPatsxT0Niob30E63A:e:1634884682:2281283925530161:100033655335566:ARaBAxW-1L-ZRu6SMSg
Get handleId from here
mediaId TEXT Media ID
mediaUrl TEXT Media URL
category AUTHENTICATION Use category from these option AUTHENTICATION, MARKETING, UTILITY in description.
Sample Response

        {
            "status": "success"
        }
                                                            
Description

Using this API, you can delete a template using the elementName for it. You will need below details to start using this API.
NOTE: This action is irreversible. Once a template has been deleted, it cannot be restored.

  1. App Id
  2. Partner App Token
  3. Element Name

Headers
Key Value Description
Authorization {{PARTNER_APP_TOKEN}}
URL Variables
Key Value Description
appId 9e97650d-add3-4557-9535-4cdf47c3fa68
elementName order_update
Sample Response

        {
            "status": "success"
        }
                                                            

Token Apis 2

Description

this api will provide the access token for accessing particular app. you can use this token to get app’s templates , submit templates, send messages etc. you will need below details to start using this api. 1. partner token

Headers
Key Value Description
token {{PARTNER_TOKEN}}
URL Variables
Key Value Description
appId 9e97650d-add3-4557-9535-4cdf47c3fa68
Body


Sample Response

            {
                "status": "success",
                "token": {
                    "active": true,
                    "authoriserId": "9e97650d-add3-4557-9535-4cdf47c3fa68",
                    "createdOn": 1607490531782,
                    "expiresOn": 0,
                    "modifiedOn": 1607490531782,
                    "requestorId": "1",
                    "token": "sk_61b3021c97214370b341f8baaae07b5a"
                }
            }
                                                            
Description

You have to first use this api to get the token, this will help you in accessing other apis. currently expirey for the token is 24 hours.

Body
Key Value Description
email shahsharad1111@gmail.com
password sharad
Sample Response

                {
                    "name": "Partner_Name",
                    "terms_read": true,
                    "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwYXlsb2FkIjoiMSIsImlzwiZXhwIjoxNjA3Njc4MjUyLCJpYXQiOjE2MDc1OTE4NTJ9.EKQdBq4GLvV9adInkVgKgA30JE4ME0aA5Dyjs55rF6g"
                }
                                                            

Useful Apis 17

Headers
Key Value Description
Connection keep-alive
token {{PARTNER_APP_TOKEN}}
URL Variables
Key Value Description
appId 9e97650d-add3-4557-9535-4cdf47c3fa68
Body
Key Value Description
phone 918286836492
isBlocked true
Sample Response

    {
        "status": "success"
    }
    
Description

Using this API, you can enable or disable template messaging for an App. You will need below details to start using this API.

  1. App Id
  2. Partner App Token
Headers
Key Value Description
Content-Type application/x-www-form-urlencoded
Connection keep-alive
token {{PARTNER_APP_TOKEN}}
URL Variables
Key Value Description
appId 9e97650d-add3-4557-9535-4cdf47c3fa68
Body
Key Value Description
isHSMEnabled true Possible values: true or false
Sample Response
Status: 202 Accepted
Headers
KeyValueDescription
Connection keep-alive
Authorization {{PARTNER_APP_TOKEN}}
URL Variables
KeyValueDescription
appId 9e97650d-add3-4557-9535-4cdf47c3fa68
Body
KeyValueDescription
phone 918286836492
isBlocked true
Sample Response

    {
        "healthy": "true"
    }
    
Headers
Key Value Description
Connection keep-alive
token {{PARTNER_APP_TOKEN}}
Query
Key Value Description
phone 918286831212
URL Variables
Key Value Description
appId 9e97650d-add3-4557-9535-4cdf47c3fa68
Body


Sample Response

    {
        "userStatus": {
            "active": false,
            "appId": "9e97650d-add3-4557-9535-4cdf47c3fa68",
            "blocked": true,
            "countryCode": "91",
            "dialCode": "8286836412",
            "phone": "918286836412",
            "status": "OPT_IN"
        }
    }
    
Headers
Key Value Description
Connection keep-alive
token {{PARTNER_APP_TOKEN}}
URL Variables
Key Value Description
appId 9e97650d-add3-4557-9535-4cdf47c3fa68
Body


Sample Response

    {
        "walletResponse": {
            "currency": "USD",
            "currentBalance": 295.6172,
            "overDraftLimit": 0
        }
    }
    
Description

This api will provide you the list of Apps which are linked to your account. Required parameter is only ‘partner token’. you will need app id and app access token in order to access app related apis and this api will help you get the id for the app.

Headers
Key Value Description
token {{PARTNER_TOKEN}}


Sample Response

    {
        "partnerAppsList": [
            {
                "createdOn": 1600398419731,
                "healthy": true,
                "id": "9e97650d-add3-4557-9535-4cdf47c3fa68",
                "live": true,
                "modifiedOn": 1602051341986,
                "name": "GupshupDevAssistant01",
                "partnerId": 0,
                "phone": "918910567700",
                "stopped": false
            }
        ]
    }
    
Description

Using this API, you can update the gupshup fee cap for an app


Headers
Key Value Description
Connection keep-alive
token {{PARTNER_APP_TOKEN}}
Path Variables
Key Value Description
appId 9e97650d-add3-4557-9535-4cdf47c3fa68
Body
Key Value Description
cap 100 Values supported between: 50 to 750
Sample Response

        {
            "status": "success"
        }
        
Description

Using this API you can get the daily usage breakdown for a particular app ranging between two dates.

Headers
Key Value Description
token sk_19eew348befyg27057fa1ff999869f Partner app token
Query parameters
KeyValueDescription
from 2022-03-01 date in YYYY-MM-DD format.
to 2022-04-01 date in YYYY-MM-DD format.
Path Variables
KeyValueDescription
appId 832a9f7-aa33-4aad-8b67-c23d81263


Sample Response

        {
            "partnerAppUsageList": [
                {
                    "appId": "eea57ae3-0260-4596-8469-a5e1fbad2dde",
                    "appName": "testthursday",
                    "authentication": 0, # applicable from 1st June 2023
                    "bic": 230, # deprecated from 1st June 2023
                    "cumulativeBill": 20.45,
                    "date": "2023-05-29",
                    "discount": 10.0,
                    "fep": 279,
                    "ftc": 16,
                    "gsCap": 500.0,
                    "gsFees": 143,
                    "incomingMsg": 72,
                    "marketing": 0, # applicable from 1st June 2023
                    "outgoingMediaMsgSKU": 332,
                    "outgoingMsg": 27,
                    "service": 0, # applicable from 1st June 2023
                    "templateMediaMsgSKU": 26,
                    "templateMsg": 343,
                    "totalFees": 287,
                    "totalMsg": 15,
                    "uic": 21, # deprecated from 1st June 2023
                    "utility": 0, # applicable from 1st June 2023
                    "waFees": 144
                },
                {
                    "appId": "eea57ae3-0260-4596-8469-a5e1fbad2dde",
                    "appName": "testthursday",
                    "authentication": 2, # applicable from 1st June 2023
                    "cumulativeBill": 20.45,
                    "date": "2023-06-01",
                    "discount": 10.0,
                    "fep": 270,
                    "ftc": 16,
                    "gsCap": 500.0,
                    "gsFees": 43,
                    "incomingMsg": 172,
                    "marketing": 34, # applicable from 1st June 2023
                    "outgoingMediaMsgSKU": 32,
                    "outgoingMsg": 277,
                    "service": 23, # applicable from 1st June 2023
                    "templateMediaMsgSKU": 265,
                    "templateMsg": 143,
                    "totalFees": 87,
                    "totalMsg": 150,
                    "utility": 100, # applicable from 1st June 2023
                    "waFees": 44
                }
            ]
        }
    

Note: cumulativeBill, discount, gsCap not applicable for postpaid apps

Description

Using this API you can get the daily discount, daily bill, and the cumulative bill for a particular app ranging a month.

Headers
Key Value Description
token sk_19eew348befyg27057fa1ff999869f Partner app token
Query parameters
KeyValueDescription
year 2022 Year in YYYY format.
month 04 Month in MM format.
Path Variables
KeyValueDescription
appId 832a9f7-aa33-4aad-8b67-c23d81263


Sample Response

        {
            "dailyAppDiscountList":[
            {
                "appId":"8372adj7-a233-4aad-8b67-c23938247bf263",
                "cumulativeBill":0,
                "dailyBill":0,
                "day":2,
                "discount":0,
                "gsCap":75,
                "gsFees":0,
                "month":4,
                "partnerId":15,
                "year":2022
            },
            {
                "appId":"8372adj7-a233-4aad-8b67-c23938247bf263",
                "cumulativeBill":0.014,
                "dailyBill":0.014,
                "day":4,
                "discount":0,
                "gsCap":75,
                "gsFees":0.014,
                "month":4,
                "partnerId":15,
                "year":2022
            }
            ]
        }
    

Business Profile 7

Headers
KeyValueDescription
Authorization {{PARTNER_APP_TOKEN}}
Sample Response

        {
            "profile": {
                "address": "<address>",
                "profileEmail": "<emailId>",
                "desc": "<description>",
                "vertical": "<vertical>",
                "website1": "<website1>",
                "website2": "<website2>"
            },
            "status": "success"
        }
        
Headers
KeyValueDescription
Authorization {{PARTNER_APP_TOKEN}}
Sample Response

        {
            "about": {
                "message": "<about>"
            },
            "status": "success"
        }
        
Headers
KeyValueDescription
Authorization {{PARTNER_APP_TOKEN}}
Body
Key Value Description
addLine1 123
addLine2 panvel
city mumbai
state maharastra
pinCode 123
country india
vertical saloon
website1 123.com
website2 123.com
desc see desc
profileEmail 123@gmail.com
Sample Response

        {
            "profile": {
                "address": "<address>",
                "profileEmail": "<emailId>",
                "desc": "<description>",
                "vertical": "<vertical>",
                "website1": "<website1>",
                "website2": "<website2>"
            },
            "status": "success"
        }
        
Headers
KeyValueDescription
Authorization {{PARTNER_APP_TOKEN}}
Body
Key Value Description
about Whatsapp Business
Sample Response

        {
            "about": {
                "message": "<about>"
            },
            "status": "success"
        }
        
Headers
KeyValueDescription
Authorization {{PARTNER_APP_TOKEN}}
Sample Response

        {
            "message": "<link>",
            "status": "success"
        }
        
Headers
KeyValueDescription
Authorization {{PARTNER_APP_TOKEN}}
Body
Key Value Description
image /path/to/file
Sample Response

        {
            "message": "profile picture updated successfully",
            "status": "success"
        }
        
Headers
KeyValueDescription
Authorization {{PARTNER_APP_TOKEN}}
Sample Response

        {
            "message": "profile photo deleted successfully",
            "status": "success"
        }