openapi: 3.0.0
info:
  title: Fax
  description: Everything about FAX Delivery Receipt Automations
servers:
  - url: https://rest.clicksend.com
components:
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
  schemas:
    pagination:
      type: object
      properties:
        total:
          type: integer
          description: The total number of items available for viewing.
          example: 2
        per_page:
          type: integer
          description: >-
            The number of items returned per page. This is specified in the
            limit parameter. You can have 100 items at maximum, and 15 at
            minimum.
          example: 15
        current_page:
          type: integer
          description: The current page number.
          example: 1
        last_page:
          type: integer
          description: The last page number.
          example: 1
        next_page_url:
          type: string
          nullable: true
          description: >-
            A URL of the next page. It will return **null** if there’s no next
            page.
          example: null
        prev_page_url:
          type: string
          nullable: true
          description: >-
            A URL of the previous page. It will return **null** if there’s no
            previous page.
          example: null
        from:
          type: integer
          description: The number of the first result in the current page.
          example: 1
        to:
          type: integer
          description: The number of the last result in the current page.
          example: 2
    inbound_fax_rule:
      type: object
      properties:
        inbound_rule_id:
          type: integer
          example: 1
          description: The ID of the inbound rule
        dedicated_number:
          type: string
          example: '19'
          description: The dedicated number
        rule_name:
          type: string
          example: Email
          description: The name of the inbound rule
        user_id:
          type: integer
          example: 1
          description: The ID of the user
        action:
          type: string
          example: EMAIL_FIXED
          description: The action
        action_address:
          type: string
          example: test@test.com
          description: The address associated with the action
        enabled:
          type: integer
          example: 1
          description: Indicates whether the rule is enabled
    view-fax-inbound-rules:
      type: object
      properties:
        http_code:
          type: integer
          description: The HTTP status code of the response.
          example: 200
        response_code:
          type: string
          description: The response code indicating the status of the operation.
          example: SUCCESS
        response_msg:
          type: string
          description: A message describing the outcome of the operation.
          example: Your inbound fax.
        data:
          allOf:
            - $ref: '#/components/schemas/pagination'
            - type: object
              properties:
                data:
                  type: array
                  items:
                    $ref: '#/components/schemas/inbound_fax_rule'
                  example:
                    - inbound_rule_id: 1
                      dedicated_number: 19
                      rule_name: Email
                      user_id: '1'
                      action: EMAIL_FIXED
                      action_address: test@test.com
                      enabled: '1'
                    - inbound_rule_id: 2
                      dedicated_number: 19
                      rule_name: URL
                      user_id: '1'
                      action: URL
                      action_address: http://yourdomain.com
                      enabled: '0'
    create-fax-inbound-rule:
      type: object
      properties:
        http_code:
          type: integer
          description: The HTTP status code of the response.
          example: 200
        response_code:
          type: string
          description: The response code indicating the status of the operation.
          example: SUCCESS
        response_msg:
          type: string
          description: A message describing the outcome of the operation.
          example: New rule has been added.
        data:
          $ref: '#/components/schemas/inbound_fax_rule'
    view-fax-inbound-rule:
      type: object
      properties:
        http_code:
          type: integer
          description: The HTTP status code of the response.
          example: 200
        response_code:
          type: string
          description: The response code indicating the status of the operation.
          example: SUCCESS
        response_msg:
          type: string
          description: A message describing the outcome of the operation.
          example: Your inbound fax.
        data:
          $ref: '#/components/schemas/inbound_fax_rule'
    update-fax-inbound-rule:
      type: object
      properties:
        http_code:
          type: integer
          description: The HTTP status code of the response.
          example: 200
        response_code:
          type: string
          description: The response code indicating the status of the operation.
          example: SUCCESS
        response_msg:
          type: string
          description: A message describing the outcome of the operation.
          example: Your inbound fax.
        data:
          $ref: '#/components/schemas/inbound_fax_rule'
    delete-fax-inbound-rule:
      type: object
      properties:
        http_code:
          type: integer
          description: The HTTP status code of the response.
          example: 200
        response_code:
          type: string
          description: The response code indicating the status of the operation.
          example: SUCCESS
        response_msg:
          type: string
          description: A message describing the outcome of the operation.
          example: Your fax inbound rule has been deleted.
        data:
          type: array
          items: []
          example: []
    fax_delivery_receipt_rule:
      type: object
      properties:
        receipt_rule_id:
          type: integer
          description: The ID of the receipt rule.
          example: 1
        rule_name:
          type: string
          description: The name of the receipt rule.
          example: Email Test Rule
        match_type:
          type: integer
          description: The type of match.
          example: 0
        action:
          type: string
          description: The action triggered by the rule.
          example: URL
        action_address:
          type: string
          description: The address associated with the action.
          example: http://yourdomain.com
        enabled:
          type: integer
          description: Indicates whether the rule is enabled.
          example: 1
    view-fax-delivery-receipt-rules:
      type: object
      properties:
        http_code:
          type: integer
          description: The HTTP status code of the response.
          example: 200
        response_code:
          type: string
          description: The response code indicating the status of the operation.
          example: SUCCESS
        response_msg:
          type: string
          description: A message describing the outcome of the operation.
          example: Here is your result.
        data:
          allOf:
            - $ref: '#/components/schemas/pagination'
            - type: object
              properties:
                data:
                  type: array
                  items:
                    $ref: '#/components/schemas/fax_delivery_receipt_rule'
                  example:
                    - receipt_rule_id: 1
                      rule_name: Email Test Rule
                      match_type: 0
                      action: URL
                      action_address: http://yourdomain.com
                      enabled: 1
                    - receipt_rule_id: 2
                      rule_name: test
                      match_type: 0
                      action: URL
                      action_address: http://yourdomain.com
                      enabled: 1
    create-fax-delivery-receipt-rule:
      type: object
      properties:
        http_code:
          type: integer
          description: The HTTP status code of the response.
          example: 200
        response_code:
          type: string
          description: The response code indicating the status of the operation.
          example: SUCCESS
        response_msg:
          type: string
          description: A message describing the outcome of the operation.
          example: Your new Fax receipt has been added.
        data:
          $ref: '#/components/schemas/fax_delivery_receipt_rule'
    view-fax-delivery-receipt-rule:
      type: object
      properties:
        http_code:
          type: integer
          description: The HTTP status code of the response.
          example: 200
        response_code:
          type: string
          description: The response code indicating the status of the operation.
          example: SUCCESS
        response_msg:
          type: string
          description: A message describing the outcome of the operation.
          example: Your rule incoming fax receipt.
        data:
          $ref: '#/components/schemas/fax_delivery_receipt_rule'
    update-fax-delivery-receipt-rule:
      type: object
      properties:
        http_code:
          type: integer
          description: The HTTP status code of the response.
          example: 200
        response_code:
          type: string
          description: The response code indicating the status of the operation.
          example: SUCCESS
        response_msg:
          type: string
          description: A message describing the outcome of the operation.
          example: Your rule incoming fax receipt has been updated.
        data:
          $ref: '#/components/schemas/fax_delivery_receipt_rule'
    delete-fax-delivery-receipt-rule:
      type: object
      properties:
        http_code:
          type: integer
          description: The HTTP status code of the response.
          example: 200
        response_code:
          type: string
          description: The response code indicating the status of the operation.
          example: SUCCESS
        response_msg:
          type: string
          description: A message describing the outcome of the operation.
          example: Your rule incoming fax receipt has been deleted.
        data:
          type: object
          nullable: true
          example: null
paths:
  /v3/automations/fax/inbound:
    get:
      summary: View Fax Inbound Rules
      operationId: view-fax-inbound-rules
      description: >-
        _Get all inbound fax automations_


        Get all inbound fax automations


        ### Parameters


        | Parameter | In | Type | Required | Description |

        | --- | --- | --- | --- | --- |

        | page | query | integer(int32) | false | Page number |

        | limit | query | integer(int32) | false | Number of records per page |



        Refer to [Status Codes](/#status-codes) for definitions of HTTP status
        code responses.



        <div style="background-color: #FF6A4B; padding: 10px; border-radius:
        8px;">
          <span style="color: white;">This endpoint requires authentication,</span> 
          <a href="/#authentication" style="color: white; text-decoration: underline;">more info...</a>
        </div>
      security:
        - basicAuth: []
      parameters:
        - name: Content-Type
          in: header
          schema:
            type: string
          example: application/json
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/view-fax-inbound-rules'
      x-codeSamples:
        - lang: curl
          source: |-
            curl --include \
                 --header "Authorization: Basic YXBpLXVzZXJuYW1lOmFwaS1wYXNzd29yZA=="  \
            'https://rest.clicksend.com/v3/automations/fax/inbound'
        - lang: PHP
          source: >-
            <?php

            require_once(__DIR__ . '/vendor/autoload.php');


            // Configure HTTP basic authorization: BasicAuth

            $config = ClickSend\Configuration::getDefaultConfiguration()
                          ->setUsername('USERNAME')
                          ->setPassword('API_KEY');

            $apiInstance = new ClickSend\Api\InboundFAXRulesApi(new
            GuzzleHttp\Client(),$config);

            $q = "q_example"; // string | Your keyword or query.

            $page = 1; // int | Page number

            $limit = 10; // int | Number of records per page


            try {
                $result = $apiInstance->faxInboundAutomationsGet($q, $page, $limit);
                print_r($result);
            } catch (Exception $e) {
                echo 'Exception when calling InboundFAXRulesApi->faxInboundAutomationsGet: ', $e->getMessage(), PHP_EOL;
            }

            ?>
        - lang: C#
          source: |-
            using IO.ClickSend.ClickSend.Api;
            using IO.ClickSend.Client;
            using IO.ClickSend.ClickSend.Model;

            var configuration = new Configuration()
            {
                Username = USERNAME, 
                Password = API_KEY  
            };
            var inboundFAXRulesApi = new InboundFAXRulesApi(configuration);
            var response = inboundFAXRulesApi.FaxInboundAutomationsGet();
        - lang: Java
          source: |
            package ClickSend;

            import ClickSend.Api.InboundFaxRulesApi;

            public class view_all_fax_inbound_rule {
              public static void main(String[] args) {
                ApiClient defaultClient = new ApiClient();
                defaultClient.setUsername("USERNAME");
                defaultClient.setPassword("BCE1D523-8C58-92FB-462B-42BF578C55B2");
                InboundFaxRulesApi apiInstance = new InboundFaxRulesApi(defaultClient);
                Integer page = 1; // Integer | Page number
                Integer limit = 10; // Integer | Number of records per page
                String q = "q_example"; // String | Your keyword or query.
                try {
                  String result = apiInstance.faxInboundAutomationsGet(q, page, limit);
                    System.out.println(result);
                } catch (ApiException e) {
                    System.err.println("Exception when calling InboundFaxRulesApi#faxInboundAutomationsGet");
                    e.printStackTrace();
                }
              }
            }
        - lang: Node.js
          source: >-
            var api = require('./api.js');


            var inboundFaxRuleApi = new api.InboundFAXRulesApi("USERNAME",
            "API_KEY");


            var q = "q_example";

            var page = 1;

            var limit = 10;


            inboundFaxRuleApi.faxInboundAutomationsGet(q, page,
            limit).then(function(response) {
              console.log(response.body);
            }).catch(function(err){
              console.error(err.body);
            });
        - lang: Ruby
          source: |-
            # load the gem
            require 'clicksend_client'
            require 'json'

            # setup authorization
            ClickSendClient.configure do |config|
              # Configure HTTP basic authorization: BasicAuth
              config.username = 'USERNAME'
              config.password = 'API_KEY'
            end

            api_instance = ClickSendClient::InboundFAXRulesApi.new

            opts = {
              page: 1, # Integer | Page number
              limit: 10 # Integer | Number of records per page
            }

            begin
              # Get all inbound fax automations
              result = api_instance.fax_inbound_automations_get(opts)
              p JSON.parse(result)
            rescue ClickSendClient::ApiError => e
              puts "Exception when calling InboundFAXRulesApi->fax_inbound_automations_get: #{e.response_body}"
            end
        - lang: Python
          source: >-
            from __future__ import print_function

            import clicksend_client

            from clicksend_client.rest import ApiException


            # Configure HTTP basic authorization: BasicAuth

            configuration = clicksend_client.Configuration()

            configuration.username = 'USERNAME'

            configuration.password = 'API_KEY'


            # create an instance of the API class

            api_instance =
            clicksend_client.InboundFAXRulesApi(clicksend_client.ApiClient(configuration))

            page = 1 # int | Page number (optional) (default to 1)

            limit = 10 # int | Number of records per page (optional) (default to
            10)


            try:
                # Get all inbound fax automations
                api_response = api_instance.fax_inbound_automations_get(page=page, limit=limit)
                print(api_response)
            except ApiException as e:
                print("Exception when calling InboundFAXRulesApi->fax_inbound_automations_get: %s\n" % e)
        - lang: perl
          source: >-
            use WWW::ClickSendClient::InboundFAXRulesApi;


            my $username = 'YOUR_API_USER_NAME';

            my $password = 'YOUR_API_PASSWORD';


            my $api = WWW::ClickSendClient::InboundFAXRulesApi->new(username =>
            $username, password => $password);


            my $json_output = $api->fax_inbound_automations_get('page' =>
            '1','limit' => '10');


            print $json_output;
        - lang: objc
          source: >-
            #import "CSInboundFaxRulesApi.h"


            CSDefaultConfiguration *apiConfig = [CSDefaultConfiguration
            sharedConfig];

            [apiConfig setUsername:@"USERNAME"];

            [apiConfig setPassword:@"PASSWORD"];


            NSNumber *page = [[NSNumber alloc] initWithInt:1];

            NSNumber *limit = [[NSNumber alloc] initWithInt:15];


            CSInboundFAXRulesApi *inboundFAXRulesApiInstance =
            [[CSInboundFAXRulesApi alloc] init];

            [inboundFAXRulesApiInstance faxInboundAutomationsGetWithQ:@"q"
            page:page limit:limit completionHandler:^(NSString *output, NSError
            *error) {
                if (error) {
                    NSLog(@"Error: %@", error);
                } else {
                    NSLog(@"%@", output);
                }
            }];
        - lang: swift
          source: >-
            import Alamofire


            if let authHeader = Request.authorizationHeader(user: "USERNAME",
            password: "PASSWORD") {
                ClickSendClientAPI.customHeaders = [authHeader.key : authHeader.value]
            }


            InboundFAXRulesAPI.faxInboundAutomationsGet(q: nil, page: 1, limit:
            15) { (dataString, error) in
                guard let dataString = dataString else {
                    print(error!)
                    return
                }
                if let data = dataString.data(using: String.Encoding.utf8) {
                    do {
                        if let dictonary = try (JSONSerialization.jsonObject(with: data, options: []) as? NSDictionary) {
                            print(dictonary)
                        } else {
                            print("Cannot convert the String value to JSON")
                        }
                    } catch let error as NSError {
                        print(error)
                    }
                }
            }
    post:
      summary: Create Fax Inbound Rule
      operationId: create-fax-inbound-rule
      description: >-
        _Create new inbound fax automation_


        Create new inbound fax automation


        ### Properties


        | Name | Type | Required | Restrictions | Description |

        | --- | --- | --- | --- | --- |

        | dedicated_number | string | true | none | Dedicated Number. Can be
        '\*' to apply to all numbers. |

        | rule_name | string | true | none | Rule Name. |

        | action | string | true | none | Action to be taken (AUTO_REPLY,
        EMAIL_USER, EMAIL_FIXED, URL, SMS, POLL, GROUP_SMS, MOVE_CONTACT,
        CREATE_CONTACT, CREATE_CONTACT_PLUS_EMAIL,
        CREATE_CONTACT_PLUS_NAME_EMAIL CREATE_CONTACT_PLUS_NAME, SMPP, NONE). |

        | action_address | string | true | none | Action address. |

        | enabled | number | true | none | Enabled: Disabled=0 or Enabled=1. |



        Refer to [Status Codes](/#status-codes) for definitions of HTTP status
        code responses.



        <div style="background-color: #FF6A4B; padding: 10px; border-radius:
        8px;">
          <span style="color: white;">This endpoint requires authentication,</span> 
          <a href="/#authentication" style="color: white; text-decoration: underline;">more info...</a>
        </div>
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                dedicated_number:
                  type: string
                rule_name:
                  type: string
                action:
                  type: string
                action_address:
                  type: string
                enabled:
                  type: integer
              example:
                dedicated_number: '*'
                rule_name: test rule
                action: URL
                action_address: https://testzzz.com
                enabled: 1
      security:
        - basicAuth: []
      parameters:
        - name: Content-Type
          in: header
          schema:
            type: string
          example: application/json
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/create-fax-inbound-rule'
      x-codeSamples:
        - lang: curl
          source: |-
            curl --include \
                 --header "Authorization: Basic YXBpLXVzZXJuYW1lOmFwaS1wYXNzd29yZA=="  \
                 --request POST \
                 --header "Content-Type: application/json" \
                 --data-binary "    {
                    \"dedicated_number\":\"+61298441484\",
                    \"rule_name\":\"Rule Name\",
                    \"action\":\"EMAIL_FIXED\",
                    \"action_address\":\"email@domain.com\",
                    \"enabled\":1
                }" \
            'https://rest.clicksend.com/v3/automations/fax/inbound'
        - lang: PHP
          source: >-
            <?php

            require_once(__DIR__ . '/vendor/autoload.php');


            // Configure HTTP basic authorization: BasicAuth

            $config = ClickSend\Configuration::getDefaultConfiguration()
                          ->setUsername('USERNAME')
                          ->setPassword('API_KEY');

            $apiInstance = new ClickSend\Api\InboundFAXRulesApi(new
            GuzzleHttp\Client(),$config);
             // \ClickSend\Model\InboundFaxRule | Inbound fax rule model
            $inbound_fax_rule = new \ClickSend\Model\InboundFaxRule();

            $inbound_fax_rule->setDedicatedNumber("*");

            $inbound_fax_rule->setRuleName("rule name");

            $inbound_fax_rule->setAction("EMAIL_FIXED");

            $inbound_fax_rule->setActionAddress("email@domain.com");

            $inbound_fax_rule->setEnabled(1);


            try {
                $result = $apiInstance->faxInboundAutomationPost($inbound_fax_rule);
                print_r($result);
            } catch (Exception $e) {
                echo 'Exception when calling InboundFAXRulesApi->faxInboundAutomationPost: ', $e->getMessage(), PHP_EOL;
            }

            ?>
        - lang: C#
          source: >-
            using IO.ClickSend.ClickSend.Api;

            using IO.ClickSend.Client;

            using IO.ClickSend.ClickSend.Model;


            var configuration = new Configuration()

            {
                Username = USERNAME, 
                Password = API_KEY  
            };

            var inboundFAXRulesApi = new InboundFAXRulesApi(configuration);

            var response = inboundFAXRulesApi.FaxInboundAutomationPost(new
            InboundFaxRule(
                dedicatedNumber: "+11231231234",
                ruleName: "New Rule",
                action: "EMAIL_FIXED",
                actionAddress: "email@domain.com",
                enabled: 1
            ));
        - lang: Java
          source: |-
            package ClickSend;

            import java.math.BigDecimal;
            import ClickSend.Api.InboundFaxRulesApi;
            import ClickSend.Model.InboundFaxRule;

            public class create_fax_inbound_rule {
              public static void main(String[] args) {
                ApiClient defaultClient = new ApiClient();
                defaultClient.setUsername("USERNAME");
                defaultClient.setPassword("API_KEY");
                InboundFaxRulesApi apiInstance = new InboundFaxRulesApi(defaultClient);
                // InboundFaxRule | Inbound fax rule model
                InboundFaxRule inboundFaxRule = new InboundFaxRule(); 
                inboundFaxRule.dedicatedNumber("*");
                inboundFaxRule.ruleName("rulename");
                inboundFaxRule.action("EMAIL_FIXED");
                inboundFaxRule.actionAddress("john@doe.com");
                inboundFaxRule.enabled(new BigDecimal(1));
                try {
                    String result = apiInstance.faxInboundAutomationPost(inboundFaxRule);
                    System.out.println(result);
                } catch (ApiException e) {
                    System.err.println("Exception when calling InboundFaxRulesApi#faxInboundAutomationPost");
                    e.printStackTrace();
                }
              }
            }
        - lang: Node.js
          source: >-
            var api = require('./api.js');


            var inboundFaxRuleApi = new api.InboundFAXRulesApi("USERNAME",
            "API_KEY");


            var inboundFaxRule = new api.InboundFaxRule();


            inboundFaxRule.dedicatedNumber = "*";

            inboundFaxRule.ruleName = "Rule Name";

            inboundFaxRule.action = "EMAIL_FIXED";

            inboundFaxRule.actionAddress = "abc@gmail.com";

            inboundFaxRule.enabled = 1;


            inboundFaxRuleApi.faxInboundAutomationPost(inboundFaxRule).then(function(response)
            {
              console.log(response.body);
            }).catch(function(err){
              console.error(err.body);
            });
        - lang: Ruby
          source: |-
            # load the gem
            require 'clicksend_client'
            require 'json'

            # setup authorization
            ClickSendClient.configure do |config|
              # Configure HTTP basic authorization: BasicAuth
              config.username = 'USERNAME'
              config.password = 'API_KEY'
            end

            api_instance = ClickSendClient::InboundFAXRulesApi.new

            # InboundFAXRule | Inbound fax rule model
            inbound_fax_rule = ClickSendClient::InboundFAXRule.new(
              "action_address": "action_address",
              "dedicated_number": "dedicated_number",
              "rule_name": "rule_name",
              "action": "action",
              "enabled": 1
            )

            begin
              # Create new inbound fax automation
              result = api_instance.fax_inbound_automation_post(inbound_fax_rule)
              p JSON.parse(result)
            rescue ClickSendClient::ApiError => e
              puts "Exception when calling InboundFAXRulesApi->fax_inbound_automation_post: #{e.response_body}"
            end
        - lang: Python
          source: >-
            from __future__ import print_function

            import clicksend_client

            from clicksend_client.rest import ApiException


            # Configure HTTP basic authorization: BasicAuth

            configuration = clicksend_client.Configuration()

            configuration.username = 'USERNAME'

            configuration.password = 'API_KEY'


            # create an instance of the API class

            api_instance =
            clicksend_client.InboundFAXRulesApi(clicksend_client.ApiClient(configuration))

            inbound_fax_rule = clicksend_client.InboundFAXRule(
                              dedicated_number="121",
                              rule_name="Rule Name",
                              action="EMAIL_FIXED",
                              action_address="email@domain.com",
                              enabled=1) # InboundFAXRule | Inbound fax rule model

            try:
                # Create new inbound fax automation
                api_response = api_instance.fax_inbound_automation_post(inbound_fax_rule)
                print(api_response)
            except ApiException as e:
                print("Exception when calling InboundFAXRulesApi->fax_inbound_automation_post: %s\n" % e)
        - lang: perl
          source: >-
            use WWW::ClickSendClient::InboundFAXRulesApi;

            use WWW::ClickSendClient::Object::InboundFAXRule;


            my $username = 'YOUR_API_USER_NAME';

            my $password = 'YOUR_API_PASSWORD';


            my $api = WWW::ClickSendClient::InboundFAXRulesApi->new(username =>
            $username, password => $password);


            my %params = (
                'action_address'   => 'action_address',
                'dedicated_number' => 'dedicated_number',
                'rule_name'        => 'rule_name',
                'action'           => 'action',
                'enabled'          => 1
            );


            my $inbound_fax_rule_obj =
            WWW::ClickSendClient::Object::InboundFAXRule->new(%params);

            my $json_output =
            $api->fax_inbound_automation_post('inbound_fax_rule' =>
            $inbound_fax_rule_obj);


            print $json_output;
        - lang: objc
          source: >-
            #import "CSInboundFaxRulesApi.h"


            CSDefaultConfiguration *apiConfig = [CSDefaultConfiguration
            sharedConfig];

            [apiConfig setUsername:@"USERNAME"];

            [apiConfig setPassword:@"PASSWORD"];


            CSInboundFaxRule *inboundFaxRule = [[CSInboundFaxRule alloc] init];

            inboundFaxRule.dedicatedNumber = @"dedicated_number";

            inboundFaxRule.ruleName = @"rule_name";

            inboundFaxRule.action = @"action";

            inboundFaxRule.actionAddress = @"action_address";

            inboundFaxRule.enabled = 0;


            CSInboundFAXRulesApi *inboundFAXRulesApiInstance =
            [[CSInboundFAXRulesApi alloc] init];

            [inboundFAXRulesApiInstance
            faxInboundAutomationPostWithInboundFaxRule:inboundFaxRule
            completionHandler:^(NSString *output, NSError *error) {
                if (error) {
                    NSLog(@"Error: %@", error);
                } else {
                    NSLog(@"%@", output);
                }
            }];
        - lang: swift
          source: >-
            import Alamofire


            if let authHeader = Request.authorizationHeader(user: "USERNAME",
            password: "PASSWORD") {

            ClickSendClientAPI.customHeaders = [authHeader.key :
            authHeader.value]

            }


            let inboundFaxRule = InboundFaxRule(
                                        dedicatedNumber: "dedicate_number",
                                        ruleName: "rule_name",
                                        action: "action",
                                        actionAddress: "action_address",
                                        enabled: 0
                                    )

            InboundFAXRulesAPI.faxInboundAutomationPost(inboundFaxRule:
            inboundFaxRule) { (dataString, error) in
                guard let dataString = dataString else {
                    print(error!)
                    return
                }
                if let data = dataString.data(using: String.Encoding.utf8) {
                    do {
                        if let dictonary = try (JSONSerialization.jsonObject(with: data, options: []) as? NSDictionary) {
                            print(dictonary)
                        } else {
                            print("Cannot convert the String value to JSON")
                        }
                    } catch let error as NSError {
                        print(error)
                    }
                }
            }
  /v3/automations/fax/inbound/{inbound_rule_id}:
    get:
      summary: View Fax Inbound Rule
      operationId: view-fax-inbound-rule
      description: >-
        _Get specific inbound fax automation_


        Get specific inbound fax automation


        ### Parameters


        | Parameter | In | Type | Required | Description |

        | --- | --- | --- | --- | --- |

        | inbound_rule_id | path | integer(int32) | true | Inbound rule id |



        Refer to [Status Codes](/#status-codes) for definitions of HTTP status
        code responses.



        <div style="background-color: #FF6A4B; padding: 10px; border-radius:
        8px;">
          <span style="color: white;">This endpoint requires authentication,</span> 
          <a href="/#authentication" style="color: white; text-decoration: underline;">more info...</a>
        </div>
      security:
        - basicAuth: []
      parameters:
        - name: Content-Type
          in: header
          schema:
            type: string
          example: application/json
        - name: inbound_rule_id
          in: path
          schema:
            type: string
          required: true
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/view-fax-inbound-rule'
      x-codeSamples:
        - lang: curl
          source: >-
            curl --include \
                 --header "Authorization: Basic YXBpLXVzZXJuYW1lOmFwaS1wYXNzd29yZA=="  \
            'https://rest.clicksend.com/v3/automations/fax/inbound/{inbound_rule_id}'
        - lang: PHP
          source: >-
            <?php

            require_once(__DIR__ . '/vendor/autoload.php');


            // Configure HTTP basic authorization: BasicAuth

            $config = ClickSend\Configuration::getDefaultConfiguration()
                          ->setUsername('USERNAME')
                          ->setPassword('API_KEY');

            $apiInstance = new ClickSend\Api\InboundFAXRulesApi(new
            GuzzleHttp\Client(),$config);

            $inbound_rule_id = 64733; // int | Inbound rule id


            try {
                $result = $apiInstance->faxInboundAutomationGet($inbound_rule_id);
                print_r($result);
            } catch (Exception $e) {
                echo 'Exception when calling InboundFAXRulesApi->faxInboundAutomationGet: ', $e->getMessage(), PHP_EOL;
            }

            ?>
        - lang: C#
          source: |-
            using IO.ClickSend.ClickSend.Api;
            using IO.ClickSend.Client;
            using IO.ClickSend.ClickSend.Model;

            var configuration = new Configuration()
            {
                Username = USERNAME, 
                Password = API_KEY  
            };
            var inboundFAXRulesApi = new InboundFAXRulesApi(configuration);
            var response = inboundFAXRulesApi.FaxInboundAutomationGet(RULE_ID);
        - lang: Java
          source: |
            package ClickSend;

            import ClickSend.Api.InboundFaxRulesApi;

            public class view_specific_fax_inbound_rule {
              public static void main(String[] args) {
                ApiClient defaultClient = new ApiClient();
                defaultClient.setUsername("USERNAME");
                defaultClient.setPassword("API_KEY");
                InboundFaxRulesApi apiInstance = new InboundFaxRulesApi(defaultClient);
                Integer inboundRuleId = 60319; // Integer | Inbound rule id
                try {
                    String result = apiInstance.faxInboundAutomationGet(inboundRuleId);
                    System.out.println(result);
                } catch (ApiException e) {
                    System.err.println("Exception when calling InboundFaxRulesApi#faxInboundAutomationGet");
                    e.printStackTrace();
                }
              }
            }
        - lang: Node.js
          source: >-
            var api = require('./api.js');


            var inboundFaxRuleApi = new api.InboundFAXRulesApi("USERNAME",
            "API_KEY");


            var inboundRuleId = 62850;


            inboundFaxRuleApi.faxInboundAutomationGet(inboundRuleId).then(function(response)
            {
              console.log(response.body);
            }).catch(function(err){
              console.error(err.body);
            });
        - lang: Ruby
          source: |-
            # load the gem
            require 'clicksend_client'
            require 'json'

            # setup authorization
            ClickSendClient.configure do |config|
              # Configure HTTP basic authorization: BasicAuth
              config.username = 'USERNAME'
              config.password = 'API_KEY'
            end

            api_instance = ClickSendClient::InboundFAXRulesApi.new

            inbound_rule_id = 56 # Integer | Inbound rule id

            begin
              # Get specific inbound fax automation
              result = api_instance.fax_inbound_automation_get(inbound_rule_id)
              p JSON.parse(result)
            rescue ClickSendClient::ApiError => e
              puts "Exception when calling InboundFAXRulesApi->fax_inbound_automation_get: #{e.response_body}"
            end
        - lang: Python
          source: >-
            from __future__ import print_function

            import clicksend_client

            from clicksend_client.rest import ApiException


            # Configure HTTP basic authorization: BasicAuth

            configuration = clicksend_client.Configuration()

            configuration.username = 'USERNAME'

            configuration.password = 'API_KEY'


            # create an instance of the API class

            api_instance =
            clicksend_client.InboundFAXRulesApi(clicksend_client.ApiClient(configuration))

            inbound_rule_id = 58108 # int | Inbound rule id


            try:
                # Get specific inbound fax automation
                api_response = api_instance.fax_inbound_automation_get(inbound_rule_id)
                print(api_response)
            except ApiException as e:
                print("Exception when calling InboundFAXRulesApi->fax_inbound_automation_get: %s\n" % e)
        - lang: perl
          source: >-
            use WWW::ClickSendClient::InboundFAXRulesApi;


            my $username = 'YOUR_API_USER_NAME';

            my $password = 'YOUR_API_PASSWORD';


            my $api = WWW::ClickSendClient::InboundFAXRulesApi->new(username =>
            $username, password => $password);


            my $json_output = $api->fax_inbound_automation_get('inbound_rule_id'
            => '12345');


            print $json_output;
        - lang: objc
          source: >-
            #import "CSInboundFaxRulesApi.h"


            CSDefaultConfiguration *apiConfig = [CSDefaultConfiguration
            sharedConfig];

            [apiConfig setUsername:@"USERNAME"];

            [apiConfig setPassword:@"PASSWORD"];


            NSNumber *ruleId = [[NSNumber alloc] initWithInt:1];


            CSInboundFAXRulesApi *inboundFAXRulesApiInstance =
            [[CSInboundFAXRulesApi alloc] init];

            [inboundFAXRulesApiInstance
            faxInboundAutomationGetWithInboundRuleId:ruleId
            completionHandler:^(NSString *output, NSError *error) {
                if (error) {
                    NSLog(@"Error: %@", error);
                } else {
                    NSLog(@"%@", output);
                }
            }];
        - lang: swift
          source: >-
            import Alamofire


            if let authHeader = Request.authorizationHeader(user: "USERNAME",
            password: "PASSWORD") {
                ClickSendClientAPI.customHeaders = [authHeader.key : authHeader.value]
            }


            InboundFAXRulesAPI.faxInboundAutomationGet(inboundRuleId: 1) {
            (dataString, error) in
                guard let dataString = dataString else {
                    print(error!)
                    return
                }
                if let data = dataString.data(using: String.Encoding.utf8) {
                    do {
                        if let dictonary = try (JSONSerialization.jsonObject(with: data, options: []) as? NSDictionary) {
                            print(dictonary)
                        } else {
                            print("Cannot convert the String value to JSON")
                        }
                    } catch let error as NSError {
                        print(error)
                    }
                }
            }
    put:
      summary: Update Fax Inbound Rule
      operationId: update-fax-inbound-rule
      description: >-
        _Update inbound fax automation_


        Update inbound fax automation


        ### Parameters


        | Parameter | In | Type | Required | Description |

        | --- | --- | --- | --- | --- |

        | inbound_rule_id | path | integer(int32) | true | Inbound rule id |


        ### Properties


        | Name | Type | Required | Restrictions | Description |

        | --- | --- | --- | --- | --- |

        | dedicated_number | string | true | none | Dedicated Number. Can be
        '\*' to apply to all numbers. |

        | rule_name | string | true | none | Rule Name. |

        | action | string | true | none | Action to be taken (AUTO_REPLY,
        EMAIL_USER, EMAIL_FIXED, URL, SMS, POLL, GROUP_SMS, MOVE_CONTACT,
        CREATE_CONTACT, CREATE_CONTACT_PLUS_EMAIL,
        CREATE_CONTACT_PLUS_NAME_EMAIL CREATE_CONTACT_PLUS_NAME, SMPP, NONE). |

        | action_address | string | true | none | Action address. |

        | enabled | number | true | none | Enabled: Disabled=0 or Enabled=1. |



        Refer to [Status Codes](/#status-codes) for definitions of HTTP status
        code responses.



        <div style="background-color: #FF6A4B; padding: 10px; border-radius:
        8px;">
          <span style="color: white;">This endpoint requires authentication,</span> 
          <a href="/#authentication" style="color: white; text-decoration: underline;">more info...</a>
        </div>
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                dedicated_number:
                  type: string
                rule_name:
                  type: string
                action:
                  type: string
                action_address:
                  type: string
                enabled:
                  type: integer
              example:
                dedicated_number: '+61411111111'
                rule_name: test rule
                action: URL
                action_address: https://testzzz.com
                enabled: 1
      security:
        - basicAuth: []
      parameters:
        - name: Content-Type
          in: header
          schema:
            type: string
          example: application/json
        - name: inbound_rule_id
          in: path
          schema:
            type: string
          required: true
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/update-fax-inbound-rule'
      x-codeSamples:
        - lang: curl
          source: >-
            curl --include \
                 --header "Authorization: Basic YXBpLXVzZXJuYW1lOmFwaS1wYXNzd29yZA=="  \
                 --request PUT \
                 --header "Content-Type: application/json" \
                 --data-binary "    {
                    \"dedicated_number\":\"+61298441484\",
                    \"rule_name\":\"Rule Name\",
                    \"action\":\"EMAIL_FIXED\",
                    \"action_address\":\"email@domain.com\",
                    \"enabled\":1
                }" \
            'https://rest.clicksend.com/v3/automations/fax/inbound/{inbound_rule_id}'
        - lang: PHP
          source: >-
            <?php

            require_once(__DIR__ . '/vendor/autoload.php');


            // Configure HTTP basic authorization: BasicAuth

            $config = ClickSend\Configuration::getDefaultConfiguration()
                          ->setUsername('USERNAME')
                          ->setPassword('API_KEY');

            $apiInstance = new ClickSend\Api\InboundFAXRulesApi(new
            GuzzleHttp\Client(),$config);

            $inbound_rule_id = 64733; // int | Inbound rule id

            // \ClickSend\Model\InboundFaxRule | Inbound fax rule model

            $inbound_fax_rule = new \ClickSend\Model\InboundFaxRule(); 

            $inbound_fax_rule->setDedicatedNumber("*");

            $inbound_fax_rule->setRuleName("rule name");

            $inbound_fax_rule->setAction("EMAIL_FIXED");

            $inbound_fax_rule->setActionAddress("email@domain.com");

            $inbound_fax_rule->setEnabled(1);


            try {
                $result = $apiInstance->faxInboundAutomationPut($inbound_rule_id, $inbound_fax_rule);
                print_r($result);
            } catch (Exception $e) {
                echo 'Exception when calling InboundFAXRulesApi->faxInboundAutomationPut: ', $e->getMessage(), PHP_EOL;
            }

            ?>
        - lang: C#
          source: >-
            using IO.ClickSend.ClickSend.Api;

            using IO.ClickSend.Client;

            using IO.ClickSend.ClickSend.Model;


            var configuration = new Configuration()

            {
                Username = USERNAME, 
                Password = API_KEY  
            };

            var inboundFAXRulesApi = new InboundFAXRulesApi(configuration);

            var response =
            inboundFAXRulesApi.FaxInboundAutomationPut(RULE_ID,new
            InboundFaxRule(
                dedicatedNumber: "+11231231234",
                ruleName: "New Rule",
                action: "EMAIL_FIXED",
                actionAddress: "email@domain.com",
                enabled: 1
            ));
        - lang: Java
          source: |-
            package ClickSend;

            import java.math.BigDecimal;
            import ClickSend.Api.InboundFaxRulesApi;
            import ClickSend.Model.InboundFaxRule;

            public class update_fax_inbound_rule {
              public static void main(String[] args) {
                ApiClient defaultClient = new ApiClient();
                defaultClient.setUsername("USERNAME");
                defaultClient.setPassword("API_KEY");
                InboundFaxRulesApi apiInstance = new InboundFaxRulesApi(defaultClient);
                Integer inboundRuleId = 60791; // Integer | Inbound rule id
                 // InboundFaxRule | Inbound fax rule model
                InboundFaxRule inboundFaxRule = new InboundFaxRule();
                inboundFaxRule.dedicatedNumber("*");
                inboundFaxRule.ruleName("rulename");
                inboundFaxRule.action("EMAIL_FIXED");
                inboundFaxRule.actionAddress("john@doe.com");
                inboundFaxRule.enabled(new BigDecimal(1));
                try {
                    String result = apiInstance.faxInboundAutomationPut(inboundRuleId, inboundFaxRule);
                    System.out.println(result);
                } catch (ApiException e) {
                    System.err.println("Exception when calling InboundFaxRulesApi#faxInboundAutomationPut");
                    e.printStackTrace();
                }
              }
            }
        - lang: Node.js
          source: >-
            var api = require('./api.js');


            var inboundFaxRuleApi = new api.InboundFAXRulesApi("USERNAME",
            "API_KEY");


            var inboundRuleId = 62850;


            var inboundFaxRule = new api.InboundFaxRule();


            inboundFaxRule.dedicatedNumber = "*";

            inboundFaxRule.ruleName = "Rule Name";

            inboundFaxRule.action = "EMAIL_FIXED";

            inboundFaxRule.actionAddress = "abc@gmail.com";

            inboundFaxRule.enabled = 1;


            inboundFaxRuleApi.faxInboundAutomationPut(inboundRuleId,
            inboundFaxRule).then(function(response) {
              console.log(response.body);
            }).catch(function(err){
              console.error(err.body);
            });
        - lang: Ruby
          source: |-
            # load the gem
            require 'clicksend_client'
            require 'json'

            # setup authorization
            ClickSendClient.configure do |config|
              # Configure HTTP basic authorization: BasicAuth
              config.username = 'USERNAME'
              config.password = 'API_KEY'
            end

            api_instance = ClickSendClient::InboundFAXRulesApi.new

            inbound_rule_id = 56 # Integer | Inbound rule id

            # InboundFAXRule | Inbound fax rule model
            inbound_fax_rule = ClickSendClient::InboundFAXRule.new(
              "action_address": "action_address",
              "dedicated_number": "dedicated_number",
              "rule_name": "rule_name",
              "action": "action",
              "enabled": 1
            )

            begin
              # Update inbound fax automation
              result = api_instance.fax_inbound_automation_put(inbound_rule_id, inbound_fax_rule)
              p JSON.parse(result)
            rescue ClickSendClient::ApiError => e
              puts "Exception when calling InboundFAXRulesApi->fax_inbound_automation_put: #{e.response_body}"
            end
        - lang: Python
          source: >-
            from __future__ import print_function

            import clicksend_client

            from clicksend_client.rest import ApiException


            # Configure HTTP basic authorization: BasicAuth

            configuration = clicksend_client.Configuration()

            configuration.username = 'USERNAME'

            configuration.password = 'API_KEY'


            # create an instance of the API class

            api_instance =
            clicksend_client.InboundFAXRulesApi(clicksend_client.ApiClient(configuration))

            inbound_rule_id = 10 # int | Inbound rule id

            inbound_fax_rule = clicksend_client.InboundFAXRule(
                              dedicated_number="121",
                              rule_name="Rule Name",
                              action="EMAIL_FIXED",
                              action_address="email@domain.com",
                              enabled=1) # InboundFAXRule | Inbound fax rule model

            try:
                # Update inbound fax automation
                api_response = api_instance.fax_inbound_automation_put(inbound_rule_id, inbound_fax_rule)
                print(api_response)
            except ApiException as e:
                print("Exception when calling InboundFAXRulesApi->fax_inbound_automation_put: %s\n" % e)
        - lang: perl
          source: >-
            use WWW::ClickSendClient::InboundFAXRulesApi;

            use WWW::ClickSendClient::Object::InboundFAXRule;


            my $username = 'YOUR_API_USER_NAME';

            my $password = 'YOUR_API_PASSWORD';


            my $api = WWW::ClickSendClient::InboundFAXRulesApi->new(username =>
            $username, password => $password);


            my %params = (
                'action_address'   => 'test1@test.com',
                'dedicated_number' => '+6111111111',
                'rule_name'        => 'rule_name',
                'action'           => 'EMAIL_FIXED',
                'enabled'          => 1
            );


            my $inbound_fax_rule_obj =
            WWW::ClickSendClient::Object::InboundFAXRule->new(%params);

            my $json_output = $api->fax_inbound_automation_put('inbound_rule_id'
            => '1234' ,'inbound_fax_rule' => $inbound_fax_rule_obj);


            print $json_output;
        - lang: objc
          source: >-
            #import "CSInboundFaxRulesApi.h"


            CSDefaultConfiguration *apiConfig = [CSDefaultConfiguration
            sharedConfig];

            [apiConfig setUsername:@"USERNAME"];

            [apiConfig setPassword:@"PASSWORD"];


            NSNumber *inboundRuleId = [[NSNumber alloc] initWithInt:1];

            CSInboundFaxRule *inboundFaxRule = [[CSInboundFaxRule alloc] init];

            inboundFaxRule.dedicatedNumber =@"dedicated_number";

            inboundFaxRule.ruleName = @"rule_name";

            inboundFaxRule.action = @"action";

            inboundFaxRule.actionAddress = @"action_Address";

            inboundFaxRule.enabled = 0;


            CSInboundFAXRulesApi *inboundFAXRulesApiInstance =
            [[CSInboundFAXRulesApi alloc] init];

            [inboundFAXRulesApiInstance
            faxInboundAutomationPutWithInboundRuleId:inboundRuleId
            inboundFaxRule:inboundFaxRule completionHandler:^(NSString *output,
            NSError *error) {
                if (error) {
                    NSLog(@"Error: %@", error);
                } else {
                    NSLog(@"%@", output);
                }
            }];
        - lang: swift
          source: >-
            import Alamofire


            if let authHeader = Request.authorizationHeader(user: "USERNAME",
            password: "PASSWORD") {

            ClickSendClientAPI.customHeaders = [authHeader.key :
            authHeader.value]

            }


            let inboundFaxRule = InboundFaxRule(dedicatedNumber:
            "dedicated_number",

            ruleName: "rule_name",

            action: "action",

            actionAddress: "action_address",

            enabled: 0)


            InboundFAXRulesAPI.faxInboundAutomationPut(inboundRuleId: 1,
            inboundFaxRule: inboundFaxRule) { (dataString, error) in
                guard let dataString = dataString else {
                    print(error!)
                    return
                }
                if let data = dataString.data(using: String.Encoding.utf8) {
                    do {
                        if let dictonary = try (JSONSerialization.jsonObject(with: data, options: []) as? NSDictionary) {
                            print(dictonary)
                        } else {
                            print("Cannot convert the String value to JSON")
                        }
                    } catch let error as NSError {
                        print(error)
                    }
                }
            }
    delete:
      summary: Delete Fax Inbound Rule
      operationId: delete-fax-inbound-rule
      description: >-
        _Delete inbound fax automation_


        Delete inbound fax automation


        ### Parameters


        | Parameter | In | Type | Required | Description |

        | --- | --- | --- | --- | --- |

        | inbound_rule_id | path | integer(int32) | true | Inbound rule id |



        Refer to [Status Codes](/#status-codes) for definitions of HTTP status
        code responses.



        <div style="background-color: #FF6A4B; padding: 10px; border-radius:
        8px;">
          <span style="color: white;">This endpoint requires authentication,</span> 
          <a href="/#authentication" style="color: white; text-decoration: underline;">more info...</a>
        </div>
      security:
        - basicAuth: []
      parameters:
        - name: Content-Type
          in: header
          schema:
            type: string
          example: application/json
        - name: inbound_rule_id
          in: path
          schema:
            type: string
          required: true
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/delete-fax-inbound-rule'
      x-codeSamples:
        - lang: curl
          source: >-
            curl --include \
                 --header "Authorization: Basic YXBpLXVzZXJuYW1lOmFwaS1wYXNzd29yZA=="  \
                 --request DELETE \
            'https://rest.clicksend.com/v3/automations/fax/inbound/{inbound_rule_id}'
        - lang: PHP
          source: >-
            <?php

            require_once(__DIR__ . '/vendor/autoload.php');


            // Configure HTTP basic authorization: BasicAuth

            $config = ClickSend\Configuration::getDefaultConfiguration()
                          ->setUsername('USERNAME')
                          ->setPassword('API_KEY');

            $apiInstance = new ClickSend\Api\InboundFAXRulesApi(new
            GuzzleHttp\Client(),$config);

            $inbound_rule_id = 64733; // int | Inbound rule id


            try {
                $result = $apiInstance->faxInboundAutomationDelete($inbound_rule_id);
                print_r($result);
            } catch (Exception $e) {
                echo 'Exception when calling InboundFAXRulesApi->faxInboundAutomationDelete: ', $e->getMessage(), PHP_EOL;
            }

            ?>
        - lang: C#
          source: >-
            using IO.ClickSend.ClickSend.Api;

            using IO.ClickSend.Client;

            using IO.ClickSend.ClickSend.Model;


            var configuration = new Configuration()

            {
                Username = USERNAME, 
                Password = API_KEY  
            };

            var inboundFAXRulesApi = new InboundFAXRulesApi(configuration);

            var response =
            inboundFAXRulesApi.FaxInboundAutomationDelete(RULE_ID);
        - lang: Java
          source: |
            package ClickSend;

            import ClickSend.Api.InboundFaxRulesApi;

            public class delete_fax_inbound_rule {
              public static void main(String[] args) {
                ApiClient defaultClient = new ApiClient();
                defaultClient.setUsername("USERNAME");
                defaultClient.setPassword("API_KEY");
                InboundFaxRulesApi apiInstance = new InboundFaxRulesApi(defaultClient);
                Integer inboundRuleId = 60319; // Integer | Inbound rule id
                try {
                    String result = apiInstance.faxInboundAutomationDelete(inboundRuleId);
                    System.out.println(result);
                } catch (ApiException e) {
                    System.err.println("Exception when calling InboundFaxRulesApi#faxInboundAutomationDelete");
                    e.printStackTrace();
                }
              }
            }
        - lang: Node.js
          source: >-
            var api = require('./api.js');


            var inboundFaxRuleApi = new api.InboundFAXRulesApi("USERNAME",
            "API_KEY");


            var inboundRuleId = 62850;


            inboundFaxRuleApi.faxInboundAutomationDelete(inboundRuleId).then(function(response)
            {
              console.log(response.body);
            }).catch(function(err){
              console.error(err.body);
            });
        - lang: Ruby
          source: |-
            # load the gem
            require 'clicksend_client'
            require 'json'

            # setup authorization
            ClickSendClient.configure do |config|
              # Configure HTTP basic authorization: BasicAuth
              config.username = 'USERNAME'
              config.password = 'API_KEY'
            end

            api_instance = ClickSendClient::InboundFAXRulesApi.new

            inbound_rule_id = 56 # Integer | Inbound rule id

            begin
              # Delete inbound fax automation
              result = api_instance.fax_inbound_automation_delete(inbound_rule_id)
              p JSON.parse(result)
            rescue ClickSendClient::ApiError => e
              puts "Exception when calling InboundFAXRulesApi->fax_inbound_automation_delete: #{e.response_body}"
            end
        - lang: Python
          source: >-
            from __future__ import print_function

            import clicksend_client

            from clicksend_client.rest import ApiException


            # Configure HTTP basic authorization: BasicAuth

            configuration = clicksend_client.Configuration()

            configuration.username = 'USERNAME'

            configuration.password = 'API_KEY'


            # create an instance of the API class

            api_instance =
            clicksend_client.InboundFAXRulesApi(clicksend_client.ApiClient(configuration))

            inbound_rule_id = 58108 # int | Inbound rule id


            try:
                # Delete inbound fax automation
                api_response = api_instance.fax_inbound_automation_delete(inbound_rule_id)
                print(api_response)
            except ApiException as e:
                print("Exception when calling InboundFAXRulesApi->fax_inbound_automation_delete: %s\n" % e)
        - lang: perl
          source: >-
            use WWW::ClickSendClient::InboundFAXRulesApi;


            my $username = 'YOUR_API_USER_NAME';

            my $password = 'YOUR_API_PASSWORD';


            my $api = WWW::ClickSendClient::InboundFAXRulesApi->new(username =>
            $username, password => $password);


            my $json_output =
            $api->fax_inbound_automation_delete('inbound_rule_id' => '1234');


            print $json_output;
        - lang: objc
          source: >-
            #import "CSInboundFaxRulesApi.h"


            CSDefaultConfiguration *apiConfig = [CSDefaultConfiguration
            sharedConfig];

            [apiConfig setUsername:@"USERNAME"];

            [apiConfig setPassword:@"PASSWORD"];


            NSNumber *ruleId =[[NSNumber alloc] initWithInt:1];


            CSInboundFAXRulesApi *inboundFAXRulesApiInstance =
            [[CSInboundFAXRulesApi alloc] init];

            [inboundFAXRulesApiInstance
            faxInboundAutomationDeleteWithInboundRuleId:ruleId
            completionHandler:^(NSString *output, NSError *error) {
                if (error) {
                    NSLog(@"Error: %@", error);
                } else {
                    NSLog(@"%@", output);
                }
            }];
        - lang: swift
          source: >-
            import Alamofire


            if let authHeader = Request.authorizationHeader(user: "USERNAME",
            password: "PASSWORD") {
                ClickSendClientAPI.customHeaders = [authHeader.key : authHeader.value]
            }


            InboundFAXRulesAPI.faxInboundAutomationDelete(inboundRuleId: 1) {
            (dataString, error) in
                guard let dataString = dataString else {
                    print(error!)
                    return
                }
                if let data = dataString.data(using: String.Encoding.utf8) {
                    do {
                        if let dictonary = try (JSONSerialization.jsonObject(with: data, options: []) as? NSDictionary) {
                            print(dictonary)
                        } else {
                            print("Cannot convert the String value to JSON")
                        }
                    } catch let error as NSError {
                    print(error)
                    }
                }
            }
  /v3/automations/fax/receipts:
    get:
      summary: View FAX Delivery Receipt Rules
      operationId: view-fax-delivery-receipt-rules
      description: >-
        _Get all fax delivery receipt automations_


        Get all fax delivery receipt automations


        ### Parameters


        | Parameter | In | Type | Required | Description |

        | --- | --- | --- | --- | --- |

        | page | query | integer(int32) | false | Page number |

        | limit | query | integer(int32) | false | Number of records per page |



        Refer to [Status Codes](/#status-codes) for definitions of HTTP status
        code responses.



        <div style="background-color: #FF6A4B; padding: 10px; border-radius:
        8px;">
          <span style="color: white;">This endpoint requires authentication,</span> 
          <a href="/#authentication" style="color: white; text-decoration: underline;">more info...</a>
        </div>
      security:
        - basicAuth: []
      parameters:
        - name: Content-Type
          in: header
          schema:
            type: string
          example: application/json
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/view-fax-delivery-receipt-rules'
      x-codeSamples:
        - lang: curl
          source: |-
            curl --include \
                 --header "Authorization: Basic YXBpLXVzZXJuYW1lOmFwaS1wYXNzd29yZA=="  \
            'https://rest.clicksend.com/v3/automations/email/receipt'
        - lang: PHP
          source: >-
            <?php

            require_once(__DIR__ . '/vendor/autoload.php');


            // Configure HTTP basic authorization: BasicAuth

            $config = ClickSend\Configuration::getDefaultConfiguration()
                          ->setUsername('USERNAME')
                          ->setPassword('API_KEY');

            $apiInstance = new ClickSend\Api\FAXDeliveryReceiptRulesApi(new
            GuzzleHttp\Client(),$config);

            $q = "q_example"; // string | Your keyword or query.

            $page = 1; // int | Page number

            $limit = 10; // int | Number of records per page


            try {
                $result = $apiInstance->faxDeliveryReceiptAutomationsGet($q, $page, $limit);
                print_r($result);
            } catch (Exception $e) {
                echo 'Exception when calling FAXDeliveryReceiptRulesApi->faxDeliveryReceiptAutomationsGet: ', $e->getMessage(), PHP_EOL;
            }

            ?>
        - lang: C#
          source: >-
            using IO.ClickSend.ClickSend.Api;

            using IO.ClickSend.Client;

            using IO.ClickSend.ClickSend.Model;


            var configuration = new Configuration()

            {
                Username = USERNAME, 
                Password = API_KEY  
            };

            var faxDeliveryReceiptRulesApi = new
            FAXDeliveryReceiptRulesApi(configuration);

            var response =
            faxDeliveryReceiptRulesApi.FaxDeliveryReceiptAutomationsGet();
        - lang: Java
          source: |
            package ClickSend;

            import ClickSend.Api.FaxDeliveryReceiptRulesApi;

            public class view_all_fax_delivery_receipt_rule {
              public static void main(String[] args) {
                ApiClient defaultClient = new ApiClient();
                defaultClient.setUsername("USERNAME");
                defaultClient.setPassword("API_KEY");
                FaxDeliveryReceiptRulesApi apiInstance = new FaxDeliveryReceiptRulesApi(defaultClient);
                String q = "q_example"; // String | Your keyword or query.
                Integer page = 1; // Integer | Page number
                Integer limit = 10; // Integer | Number of records per page
                try {
                  String result = apiInstance.faxDeliveryReceiptAutomationsGet(q, page, limit);
                    System.out.println(result);
                } catch (ApiException e) {
                    System.err.println("Exception when calling FaxDeliveryReceiptRulesApi#faxDeliveryReceiptAutomationsGet");
                    e.printStackTrace();
                }
              }
            }
        - lang: Node.js
          source: >-
            var api = require('./api.js');


            var faxDeliveryReceiptApi = new
            api.FAXDeliveryReceiptRulesApi("USERNAME", "API_KEY");


            var q = "q_example";

            var page = 1;

            var limit = 10;


            faxDeliveryReceiptApi.faxDeliveryReceiptAutomationsGet(q, page,
            limit).then(function(response) {
              console.log(response.body);
            }).catch(function(err){
              console.error(err.body);
            });
        - lang: Ruby
          source: |-
            # load the gem
            require 'clicksend_client'
            require 'json'

            # setup authorization
            ClickSendClient.configure do |config|
              # Configure HTTP basic authorization: BasicAuth
              config.username = 'USERNAME'
              config.password = 'API_KEY'
            end

            api_instance = ClickSendClient::FAXDeliveryReceiptRulesApi.new

            opts = {
              page: 1,  # Integer | Page number
              limit: 10 # Integer | Number of records per page
            }

            begin
              # Get all fax delivery receipt automations
              result = api_instance.fax_delivery_receipt_automations_get(opts)
              p JSON.parse(result)
            rescue ClickSendClient::ApiError => e
              puts "Exception when calling FAXDeliveryReceiptRulesApi->fax_delivery_receipt_automations_get: #{e.response_body}"
            end
        - lang: Python
          source: >-
            from __future__ import print_function

            import clicksend_client

            from clicksend_client.rest import ApiException


            # Configure HTTP basic authorization: BasicAuth

            configuration = clicksend_client.Configuration()

            configuration.username = 'USERNAME'

            configuration.password = 'API_KEY'


            # create an instance of the API class

            api_instance =
            clicksend_client.FAXDeliveryReceiptRulesApi(clicksend_client.ApiClient(configuration))

            page = 1 # int | Page number (optional) (default to 1)

            limit = 10 # int | Number of records per page (optional) (default to
            10)


            try:
                # Get all fax delivery receipt automations
                api_response = api_instance.fax_delivery_receipt_automations_get(page=page, limit=limit)
                print(api_response)
            except ApiException as e:
                print("Exception when calling FAXDeliveryReceiptRulesApi->fax_delivery_receipt_automations_get: %s\n" % e)
        - lang: perl
          source: >-
            use WWW::ClickSendClient::FAXDeliveryReceiptRulesApi;


            my $username = 'YOUR_API_USER_NAME';

            my $password = 'YOUR_API_PASSWORD';


            my $api =
            WWW::ClickSendClient::FAXDeliveryReceiptRulesApi->new(username =>
            $username, password => $password);


            my $json_output = $api->fax_delivery_receipt_automations_get('page'
            => '1', 'limit' => '10');


            print $json_output;
        - lang: objc
          source: >-
            #import "CSFaxDeliveryReceiptRulesApi.h"

            #import "CSDefaultConfiguration.h"


            CSDefaultConfiguration *apiConfig = [CSDefaultConfiguration
            sharedConfig];

            // Configure HTTP basic authorization (authentication scheme:
            BasicAuth)

            [apiConfig setUsername:@"USERNAME"];

            [apiConfig setPassword:@"PASSWORD"];


            CSFaxDeliveryReceiptRulesApi *faxDeliveryRecieptRules =
            [[CSFaxDeliveryReceiptRulesApi alloc] init];

            [faxDeliveryRecieptRules faxDeliveryReceiptAutomationsGetWithQ:@"q"
            page:@(1) limit:@(15) completionHandler:^(NSString *output, NSError
            *error) {
                if (error) {
                    NSLog(@"Error: %@", error);
                } else {
                    NSLog(@"%@", output);
                }
            }];
        - lang: swift
          source: >-
            import Alamofire

            if let authHeader = Request.authorizationHeader(user: "USERNAME",
            password: "PASSWORD") {
                ClickSendClientAPI.customHeaders = [authHeader.key : authHeader.value]
            }


            FAXDeliveryReceiptRulesAPI.faxDeliveryReceiptAutomationsGet {
            (dataString, error) in
                if let error = error {
                    print(error)
                } else {
                    if let data = dataString!.data(using: String.Encoding.utf8) {
                        do {
                            if let dictonary = try (JSONSerialization.jsonObject(with: data, options: []) as? NSDictionary) {
                                print(dictonary)
                            } else {
                                print("Cannot convert the String value to JSON")
                            }
                        } catch let error as NSError {
                            print(error)
                        }
                    }
                }
            }
    post:
      summary: Create FAX Delivery Receipt Rule
      operationId: create-fax-delivery-receipt-rule
      description: >-
        _Create fax delivery receipt automations_


        Create fax delivery receipt automations


        ### Properties


        | Name | Type | Required | Restrictions | Description |

        | --- | --- | --- | --- | --- |

        | rule_name | string | true | none | Rule Name. |

        | match_type | number | true | none | Match Type. 0=All reports. |

        | action | string | true | none | Action to be taken (AUTO_REPLY,
        EMAIL_USER, EMAIL_FIXED, URL, SMS, POLL, GROUP_SMS, MOVE_CONTACT,
        CREATE_CONTACT, CREATE_CONTACT_PLUS_EMAIL,
        CREATE_CONTACT_PLUS_NAME_EMAIL CREATE_CONTACT_PLUS_NAME, SMPP, NONE). |

        | action_address | string | true | none | Action address. |

        | enabled | number | true | none | Enabled: Disabled=0 or Enabled=1. |



        Refer to [Status Codes](/#status-codes) for definitions of HTTP status
        code responses.



        <div style="background-color: #FF6A4B; padding: 10px; border-radius:
        8px;">
          <span style="color: white;">This endpoint requires authentication,</span> 
          <a href="/#authentication" style="color: white; text-decoration: underline;">more info...</a>
        </div>
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                rule_name:
                  type: string
                match_type:
                  type: integer
                action:
                  type: string
                action_address:
                  type: string
                enabled:
                  type: integer
                url:
                  type: string
              example:
                rule_name: test
                match_type: 0
                action: URL
                action_address: https://testzzz.com
                enabled: 1
                url: http://yourUrl.com
      security:
        - basicAuth: []
      parameters:
        - name: Content-Type
          in: header
          schema:
            type: string
          example: application/json
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/create-fax-delivery-receipt-rule'
      x-codeSamples:
        - lang: curl
          source: |-
            curl --include \
                 --header "Authorization: Basic YXBpLXVzZXJuYW1lOmFwaS1wYXNzd29yZA=="  \
                 --request POST \
                 --header "Content-Type: application/json" \
                 --data-binary "    {
                    \"rule_name\":\"My Rule\",
                    \"match_type\": 0,
                    \"action\":\"URL\",
                    \"action_address\":\"http://yourdomain.com\",
                    \"enabled\":1
                }" \
            'https://rest.clicksend.com/v3/automations/email/receipt'
        - lang: PHP
          source: >-
            <?php

            require_once(__DIR__ . '/vendor/autoload.php');


            // Configure HTTP basic authorization: BasicAuth

            $config = ClickSend\Configuration::getDefaultConfiguration()
                          ->setUsername('USERNAME')
                          ->setPassword('API_KEY');

            $apiInstance = new ClickSend\Api\FAXDeliveryReceiptRulesApi(new
            GuzzleHttp\Client(),$config);

            // \ClickSend\Model\DeliveryReceiptRule | fax delivery receipt rule
            model

            $delivery_receipt_rule = new \ClickSend\Model\DeliveryReceiptRule();

            $delivery_receipt_rule->setRuleName("rule name");

            $delivery_receipt_rule->setMatchType(0);

            $delivery_receipt_rule->setAction("URL");

            $delivery_receipt_rule->setActionAddress("http://example.com");

            $delivery_receipt_rule->setEnabled(1);


            try {
                $result = $apiInstance->faxDeliveryReceiptAutomationPost($delivery_receipt_rule);
                print_r($result);
            } catch (Exception $e) {
                echo 'Exception when calling FAXDeliveryReceiptRulesApi->faxDeliveryReceiptAutomationPost: ', $e->getMessage(), PHP_EOL;
            }

            ?>
        - lang: C#
          source: >-
            using IO.ClickSend.ClickSend.Api;

            using IO.ClickSend.Client;

            using IO.ClickSend.ClickSend.Model;


            var configuration = new Configuration()

            {
                Username = USERNAME, 
                Password = API_KEY  
            };

            var faxDeliveryReceiptRulesApi = new
            FAXDeliveryReceiptRulesApi(configuration);

            var response =
            faxDeliveryReceiptRulesApi.FaxDeliveryReceiptAutomationPost(new
            DeliveryReceiptRule(
                ruleName: "NEW RULE",
                matchType: 0,
                action: "URL",
                actionAddress: "http://yourdomain.com",
                enabled: 1
            ));
        - lang: Java
          source: |-
            package ClickSend;

            import java.math.BigDecimal;
            import ClickSend.Api.FaxDeliveryReceiptRulesApi;
            import ClickSend.Model.DeliveryReceiptRule;

            public class create_fax_delivery_receipt_rule {
              public static void main(String[] args) {
                ApiClient defaultClient = new ApiClient();
                defaultClient.setUsername("USERNAME");
                defaultClient.setPassword("API_KEY");
                FaxDeliveryReceiptRulesApi apiInstance = new FaxDeliveryReceiptRulesApi(defaultClient);
                // DeliveryReceiptRule | fax delivery receipt rule model
                DeliveryReceiptRule deliveryReceiptRule = new DeliveryReceiptRule();
                deliveryReceiptRule.ruleName("rulename");
                deliveryReceiptRule.matchType(new BigDecimal(0));
                deliveryReceiptRule.action("URL");
                deliveryReceiptRule.actionAddress("http://yourdomain.com");
                deliveryReceiptRule.enabled(new BigDecimal(1));
                try {
                    String result = apiInstance.faxDeliveryReceiptAutomationPost(deliveryReceiptRule);
                    System.out.println(result);
                } catch (ApiException e) {
                    System.err.println("Exception when calling FaxDeliveryReceiptRulesApi#faxDeliveryReceiptAutomationPost");
                    e.printStackTrace();
                }
              }
            }
        - lang: Node.js
          source: >-
            var api = require('./api.js');


            var faxDeliveryReceiptApi = new
            api.FAXDeliveryReceiptRulesApi("USERNAME", "API_KEY");


            var deliveryReceiptRule = new api.DeliveryReceiptRule();


            deliveryReceiptRule.ruleName = "My Rule";

            deliveryReceiptRule.matchType = 0;

            deliveryReceiptRule.action = "URL";

            deliveryReceiptRule.actionAddress = "http://example.com";

            deliveryReceiptRule.enabled = 1;


            faxDeliveryReceiptApi.faxDeliveryReceiptAutomationPost(deliveryReceiptRule).then(function(response)
            {
              console.log(response.body);
            }).catch(function(err){
              console.error(err.body);
            });
        - lang: Ruby
          source: |-
            # load the gem
            require 'clicksend_client'
            require 'json'

            # setup authorization
            ClickSendClient.configure do |config|
              # Configure HTTP basic authorization: BasicAuth
              config.username = 'USERNAME'
              config.password = 'API_KEY'
            end

            api_instance = ClickSendClient::FAXDeliveryReceiptRulesApi.new

            # DeliveryReceiptRule | fax delivery receipt rule model
            delivery_receipt_rule = ClickSendClient::DeliveryReceiptRule.new(
              "rule_name": "rule_name",
              "match_type": 0,
              "action": "EMAIL_FIXED",
              "action_address": "action_address",
              "enabled": 1
            )

            begin
              # Create fax delivery receipt automations
              result = api_instance.fax_delivery_receipt_automation_post(delivery_receipt_rule)
              p JSON.parse(result)
            rescue ClickSendClient::ApiError => e
              puts "Exception when calling FAXDeliveryReceiptRulesApi->fax_delivery_receipt_automation_post: #{e.response_body}"
            end
        - lang: Python
          source: >-
            from __future__ import print_function

            import clicksend_client

            from clicksend_client.rest import ApiException


            # Configure HTTP basic authorization: BasicAuth

            configuration = clicksend_client.Configuration()

            configuration.username = 'USERNAME'

            configuration.password = 'API_KEY'


            # create an instance of the API class

            api_instance =
            clicksend_client.FAXDeliveryReceiptRulesApi(clicksend_client.ApiClient(configuration))

            # DeliveryReceiptRule | fax delivery receipt rule model

            delivery_receipt_rule = clicksend_client.DeliveryReceiptRule(
                                    rule_name="My Rule",
                                    match_type= 0,
                                    action="URL",
                                    action_address="http://yourdomain.com",
                                    enabled=1) 

            try:
                # Create fax delivery receipt automations
                api_response = api_instance.fax_delivery_receipt_automation_post(delivery_receipt_rule)
                print(api_response)
            except ApiException as e:
                print("Exception when calling FAXDeliveryReceiptRulesApi->fax_delivery_receipt_automation_post: %s\n" % e)
        - lang: perl
          source: >-
            use WWW::ClickSendClient::FAXDeliveryReceiptRulesApi;

            use WWW::ClickSendClient::Object::DeliveryReceiptRule;


            my $username = 'YOUR_API_USER_NAME';

            my $password = 'YOUR_API_PASSWORD';


            my $api =
            WWW::ClickSendClient::FAXDeliveryReceiptRulesApi->new(username =>
            $username, password => $password);


            my %params = (
                'rule_name'      => 'rule_name',
                'match_type'     => '2',
                'action'         => 'EMAIL_FIXED',
                'action_address' => 'test1@test.com',
                'enabled'        => '1'
            );


            my $delivery_receipt_rule_obj =
            WWW::ClickSendClient::Object::DeliveryReceiptRule->new(%params);


            my $json_output =
            $api->fax_delivery_receipt_automation_post('delivery_receipt_rule'
            => $delivery_receipt_rule_obj);


            print $json_output;
        - lang: objc
          source: >-
            #import "CSFaxDeliveryReceiptRulesApi.h"

            #import "CSDefaultConfiguration.h"


            CSDefaultConfiguration *apiConfig = [CSDefaultConfiguration
            sharedConfig];

            // Configure HTTP basic authorization (authentication scheme:
            BasicAuth)

            [apiConfig setUsername:@"USERNAME"];

            [apiConfig setPassword:@"PASSWORD"];


            CSDeliveryReceiptRule *deliveryRule = [[CSDeliveryReceiptRule alloc]
            init];

            deliveryRule.ruleName = @"rule_name";

            deliveryRule.matchType = @(0);

            deliveryRule.action = @"action";

            deliveryRule.actionAddress = @"action_address";

            deliveryRule.enabled = @(1);


            CSFAXDeliveryReceiptRulesApi *faxDeliveryRecieptRules =
            [[CSFAXDeliveryReceiptRulesApi alloc] init];

            [faxDeliveryRecieptRules
            faxDeliveryReceiptAutomationPostWithDeliveryReceiptRule:deliveryRule
            completionHandler:^(NSString *output, NSError *error) {
                if (error) {
                    NSLog(@"Error: %@", error);
                } else {
                    NSLog(@"%@", output);
                }
            }];
        - lang: swift
          source: >-
            import Alamofire

            if let authHeader = Request.authorizationHeader(user: "USERNAME",
            password: "PASSWORD") {
                ClickSendClientAPI.customHeaders = [authHeader.key : authHeader.value]
            }


            let deliveryReceiptRule = DeliveryReceiptRule(
                                        ruleName: "rule_name", 
                                        matchType: 1, 
                                        action: "action", 
                                        actionAddress: "action_address", 
                                        enabled: 1
                                    )

            FAXDeliveryReceiptRulesAPI.faxDeliveryReceiptAutomationPost(deliveryReceiptRule:
            deliveryReceiptRule) { (dataString, error) in
                if let error = error {
                    print(error)
                } else {
                    if let data = dataString!.data(using: String.Encoding.utf8) {
                        do {
                            if let dictonary = try (JSONSerialization.jsonObject(with: data, options: []) as? NSDictionary) {
                                print(dictonary)
                            } else {
                                print("Cannot convert the String value to JSON")
                            }
                        } catch let error as NSError {
                            print(error)
                        }
                    }
                }
            }
  /v3/automations/fax/receipts/{receipt_rule_id}:
    get:
      summary: View FAX Delivery Receipt Rule
      operationId: view-fax-delivery-receipt-rule
      description: >-
        _Get specific fax delivery receipt automation_


        Get specific fax delivery receipt automation


        ### Parameters


        | Parameter | In | Type | Required | Description |

        | --- | --- | --- | --- | --- |

        | receipt_rule_id | path | integer(int32) | true | Receipt rule id |



        Refer to [Status Codes](/#status-codes) for definitions of HTTP status
        code responses.



        <div style="background-color: #FF6A4B; padding: 10px; border-radius:
        8px;">
          <span style="color: white;">This endpoint requires authentication,</span> 
          <a href="/#authentication" style="color: white; text-decoration: underline;">more info...</a>
        </div>
      security:
        - basicAuth: []
      parameters:
        - name: Content-Type
          in: header
          schema:
            type: string
          example: application/json
        - name: receipt_rule_id
          in: path
          schema:
            type: string
          required: true
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/view-fax-delivery-receipt-rule'
      x-codeSamples:
        - lang: curl
          source: |-
            curl --include \
                 --header "Authorization: Basic YXBpLXVzZXJuYW1lOmFwaS1wYXNzd29yZA=="  \
            'https://rest.clicksend.com/v3/automations/email/receipt/{rule_id}'
        - lang: PHP
          source: >-
            <?php

            require_once(__DIR__ . '/vendor/autoload.php');


            // Configure HTTP basic authorization: BasicAuth

            $config = ClickSend\Configuration::getDefaultConfiguration()
                          ->setUsername('USERNAME')
                          ->setPassword('API_KEY');

            $apiInstance = new ClickSend\Api\FAXDeliveryReceiptRulesApi(new
            GuzzleHttp\Client(),$config);

            $receipt_rule_id = 139; // int | Receipt rule id


            try {
                $result = $apiInstance->faxDeliveryReceiptAutomationGet($receipt_rule_id);
                print_r($result);
            } catch (Exception $e) {
                echo 'Exception when calling FAXDeliveryReceiptRulesApi->faxDeliveryReceiptAutomationGet: ', $e->getMessage(), PHP_EOL;
            }

            ?>
        - lang: C#
          source: >-
            using IO.ClickSend.ClickSend.Api;

            using IO.ClickSend.Client;

            using IO.ClickSend.ClickSend.Model;


            var configuration = new Configuration()

            {
                Username = USERNAME, 
                Password = API_KEY  
            };

            var faxDeliveryReceiptRulesApi = new
            FAXDeliveryReceiptRulesApi(configuration);

            var response =
            faxDeliveryReceiptRulesApi.FaxDeliveryReceiptAutomationGet(RULE_ID);
        - lang: Java
          source: |-
            package ClickSend;

            import ClickSend.Api.FaxDeliveryReceiptRulesApi;

            public class view_specific_fax_delivery_receipt_rule {
              public static void main(String[] args) {
                ApiClient defaultClient = new ApiClient();
                defaultClient.setUsername("USERNAME");
                defaultClient.setPassword("API_KEY");
                FaxDeliveryReceiptRulesApi apiInstance = new FaxDeliveryReceiptRulesApi(defaultClient);
                Integer receiptRuleId = 130; // Integer | Receipt rule id
                try {
                    String result = apiInstance.faxDeliveryReceiptAutomationGet(receiptRuleId);
                    System.out.println(result);
                } catch (ApiException e) {
                    System.err.println("Exception when calling FaxDeliveryReceiptRulesApi#faxDeliveryReceiptAutomationGet");
                    e.printStackTrace();
                }
              }
            }
        - lang: Node.js
          source: >-
            var api = require('./api.js');


            var faxDeliveryReceiptApi = new
            api.FAXDeliveryReceiptRulesApi("USERNAME", "API_KEY");


            var receiptRuleId = 136;


            faxDeliveryReceiptApi.faxDeliveryReceiptAutomationGet(receiptRuleId).then(function(response)
            {
              console.log(response.body);
            }).catch(function(err){
              console.error(err.body);
            });
        - lang: Ruby
          source: |-
            # load the gem
            require 'clicksend_client'
            require 'json'

            # setup authorization
            ClickSendClient.configure do |config|
              # Configure HTTP basic authorization: BasicAuth
              config.username = 'USERNAME'
              config.password = 'API_KEY'
            end

            api_instance = ClickSendClient::FAXDeliveryReceiptRulesApi.new

            receipt_rule_id = 56 # Integer | Receipt rule id

            begin
              # Get specific fax delivery receipt automation
              result = api_instance.fax_delivery_receipt_automation_get(receipt_rule_id)
              p JSON.parse(result)
            rescue ClickSendClient::ApiError => e
              puts "Exception when calling FAXDeliveryReceiptRulesApi->fax_delivery_receipt_automation_get: #{e.response_body}"
            end
        - lang: Python
          source: >-
            from __future__ import print_function

            import clicksend_client

            from clicksend_client.rest import ApiException


            # Configure HTTP basic authorization: BasicAuth

            configuration = clicksend_client.Configuration()

            configuration.username = 'USERNAME'

            configuration.password = 'API_KEY'


            # create an instance of the API class

            api_instance =
            clicksend_client.FAXDeliveryReceiptRulesApi(clicksend_client.ApiClient(configuration))

            receipt_rule_id = 130 # int | Receipt rule id


            try:
                # Get specific fax delivery receipt automation
                api_response = api_instance.fax_delivery_receipt_automation_get(receipt_rule_id)
                print(api_response)
            except ApiException as e:
                print("Exception when calling FAXDeliveryReceiptRulesApi->fax_delivery_receipt_automation_get: %s\n" % e)
        - lang: perl
          source: >-
            use WWW::ClickSendClient::FAXDeliveryReceiptRulesApi;


            my $username = 'YOUR_API_USER_NAME';

            my $password = 'YOUR_API_PASSWORD';


            my $api =
            WWW::ClickSendClient::FAXDeliveryReceiptRulesApi->new(username =>
            $username, password => $password);


            my $json_output =
            $api->fax_delivery_receipt_automation_get('receipt_rule_id' =>
            '12345');


            print $json_output;
        - lang: objc
          source: >-
            #import "CSFaxDeliveryReceiptRulesApi.h"

            #import "CSDefaultConfiguration.h"



            CSFAXDeliveryReceiptRulesApi *faxDeliveryRecieptRules =
            [[CSFAXDeliveryReceiptRulesApi alloc] init];

            [faxDeliveryRecieptRules 
            faxDeliveryReceiptAutomationGetWithReceiptRuleId:@(1)
            completionHandler:^(NSString *output, NSError *error) {
                if (error) {
                    NSLog(@"Error: %@", error);
                } else {
                    NSLog(@"%@", output);
                }
            }];
        - lang: swift
          source: >-
            import Alamofire

            if let authHeader = Request.authorizationHeader(user: "USERNAME",
            password: "PASSWORD") {
                ClickSendClientAPI.customHeaders = [authHeader.key : authHeader.value]
            }


            FAXDeliveryReceiptRulesAPI.faxDeliveryReceiptAutomationGet(receiptRuleId:
            1) { (dataString, error) in
                if let error = error {
                    print(error)
                } else {
                    if let data = dataString!.data(using: String.Encoding.utf8) {
                        do {
                            if let dictonary = try (JSONSerialization.jsonObject(with: data, options: []) as? NSDictionary) {
                                print(dictonary)
                            } else {
                                print("Cannot convert the String value to JSON")
                            }
                        } catch let error as NSError {
                            print(error)
                        }
                    }
                }
            }
    put:
      summary: Update FAX Delivery Receipt Rule
      operationId: update-fax-delivery-receipt-rule
      description: >-
        _Update fax delivery receipt automation_


        Update fax delivery receipt automation


        ### Parameters


        | Parameter | In | Type | Required | Description |

        | --- | --- | --- | --- | --- |

        | receipt_rule_id | path | integer(int32) | true | Receipt rule id |


        ### Properties


        | Name | Type | Required | Restrictions | Description |

        | --- | --- | --- | --- | --- |

        | rule_name | string | true | none | Rule Name. |

        | match_type | number | true | none | Match Type. 0=All reports. |

        | action | string | true | none | Action to be taken (AUTO_REPLY,
        EMAIL_USER, EMAIL_FIXED, URL, SMS, POLL, GROUP_SMS, MOVE_CONTACT,
        CREATE_CONTACT, CREATE_CONTACT_PLUS_EMAIL,
        CREATE_CONTACT_PLUS_NAME_EMAIL CREATE_CONTACT_PLUS_NAME, SMPP, NONE). |

        | action_address | string | true | none | Action address. |

        | enabled | number | true | none | Enabled: Disabled=0 or Enabled=1. |



        Refer to [Status Codes](/#status-codes) for definitions of HTTP status
        code responses.



        <div style="background-color: #FF6A4B; padding: 10px; border-radius:
        8px;">
          <span style="color: white;">This endpoint requires authentication,</span> 
          <a href="/#authentication" style="color: white; text-decoration: underline;">more info...</a>
        </div>
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                action_address:
                  type: string
              example:
                action_address: test.com
      security:
        - basicAuth: []
      parameters:
        - name: Content-Type
          in: header
          schema:
            type: string
          example: application/json
        - name: receipt_rule_id
          in: path
          schema:
            type: string
          required: true
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/update-fax-delivery-receipt-rule'
      x-codeSamples:
        - lang: curl
          source: |-
            curl --include \
                 --header "Authorization: Basic YXBpLXVzZXJuYW1lOmFwaS1wYXNzd29yZA=="  \
                 --request PUT \
                 --header "Content-Type: application/json" \
                 --data-binary "    {
                    \"rule_name\":\"My Rule\",
                    \"match_type\": 0,
                    \"action\":\"URL\",
                    \"action_address\":\"http://yourdomain.com\",
                    \"enabled\":1
                }" \
            'https://rest.clicksend.com/v3/automations/email/receipt/{rule_id}'
        - lang: PHP
          source: >-
            <?php

            require_once(__DIR__ . '/vendor/autoload.php');


            // Configure HTTP basic authorization: BasicAuth

            $config = ClickSend\Configuration::getDefaultConfiguration()
                          ->setUsername('USERNAME')
                          ->setPassword('API_KEY');

            $apiInstance = new ClickSend\Api\FAXDeliveryReceiptRulesApi(new
            GuzzleHttp\Client(),$config);

            $receipt_rule_id = 139; // int | Receipt rule id
             // \ClickSend\Model\DeliveryReceiptRule | Delivery receipt rule model
            $delivery_receipt_rule = new \ClickSend\Model\DeliveryReceiptRule();

            $delivery_receipt_rule->setRuleName("rule name");

            $delivery_receipt_rule->setMatchType(0);

            $delivery_receipt_rule->setAction("URL");

            $delivery_receipt_rule->setActionAddress("http://example.com");

            $delivery_receipt_rule->setEnabled(1);


            try {
                $result = $apiInstance->faxDeliveryReceiptAutomationPut($receipt_rule_id, $delivery_receipt_rule);
                print_r($result);
            } catch (Exception $e) {
                echo 'Exception when calling FAXDeliveryReceiptRulesApi->faxDeliveryReceiptAutomationPut: ', $e->getMessage(), PHP_EOL;
            }

            ?>
        - lang: C#
          source: >-
            using IO.ClickSend.ClickSend.Api;

            using IO.ClickSend.Client;

            using IO.ClickSend.ClickSend.Model;


            var configuration = new Configuration()

            {
                Username = USERNAME, 
                Password = API_KEY  
            };

            var faxDeliveryReceiptRulesApi = new
            FAXDeliveryReceiptRulesApi(configuration);

            var response =
            faxDeliveryReceiptRulesApi.FaxDeliveryReceiptAutomationPut(128, new
            DeliveryReceiptRule(
                ruleName: "NEW RULE",
                matchType: 0,
                action: "URL",
                actionAddress: "http://yourdomain.com",
                enabled: 1
            ));
        - lang: Java
          source: |-
            package ClickSend;

            import java.math.BigDecimal;
            import ClickSend.Api.FaxDeliveryReceiptRulesApi;
            import ClickSend.Model.DeliveryReceiptRule;

            public class update_fax_delivery_receipt_rule {
              public static void main(String[] args) {
                ApiClient defaultClient = new ApiClient();
                defaultClient.setUsername("USERNAME");
                defaultClient.setPassword("API_KEY");
                FaxDeliveryReceiptRulesApi apiInstance = new FaxDeliveryReceiptRulesApi(defaultClient);
                Integer receiptRuleId = 133; // Integer | Receipt rule id
                // DeliveryReceiptRule | Delivery receipt rule model
                DeliveryReceiptRule deliveryReceiptRule = new DeliveryReceiptRule(); 
                deliveryReceiptRule.ruleName("rulename");
                deliveryReceiptRule.matchType(new BigDecimal(0));
                deliveryReceiptRule.action("URL");
                deliveryReceiptRule.actionAddress("http://yourdomain.com");
                deliveryReceiptRule.enabled(new BigDecimal(1));
                try {
                    String result = apiInstance.faxDeliveryReceiptAutomationPut(receiptRuleId, deliveryReceiptRule);
                    System.out.println(result);
                } catch (ApiException e) {
                    System.err.println("Exception when calling FaxDeliveryReceiptRulesApi#faxDeliveryReceiptAutomationPut");
                    e.printStackTrace();
                }
              }
            }
        - lang: Node.js
          source: >-
            var api = require('./api.js');


            var faxDeliveryReceiptApi = new
            api.FAXDeliveryReceiptRulesApi("USERNAME", "API_KEY");


            var receiptRuleId = 136;


            var deliveryReceiptRule = new api.DeliveryReceiptRule();


            deliveryReceiptRule.ruleName = "My Rule";

            deliveryReceiptRule.matchType = 0;

            deliveryReceiptRule.action = "URL";

            deliveryReceiptRule.actionAddress = "http://example.com";

            deliveryReceiptRule.enabled = 1;


            faxDeliveryReceiptApi.faxDeliveryReceiptAutomationPut(receiptRuleId,deliveryReceiptRule).then(function(response)
            {
              console.log(response.body);
            }).catch(function(err){
              console.error(err.body);
            });
        - lang: Ruby
          source: |-
            # load the gem
            require 'clicksend_client'
            require 'json'

            # setup authorization
            ClickSendClient.configure do |config|
              # Configure HTTP basic authorization: BasicAuth
              config.username = 'USERNAME'
              config.password = 'API_KEY'
            end

            api_instance = ClickSendClient::FAXDeliveryReceiptRulesApi.new

            receipt_rule_id = 56 # Integer | Receipt rule id

            # DeliveryReceiptRule | fax delivery receipt rule model
            delivery_receipt_rule = ClickSendClient::DeliveryReceiptRule.new(
              "rule_name": "rule_name",
              "match_type": 0,
              "action": "EMAIL_FIXED",
              "action_address": "action_address",
              "enabled": 1
            )

            begin
              # Update fax delivery receipt automation
              result = api_instance.fax_delivery_receipt_automation_put(receipt_rule_id, delivery_receipt_rule)
              p JSON.parse(result)
            rescue ClickSendClient::ApiError => e
              puts "Exception when calling FAXDeliveryReceiptRulesApi->fax_delivery_receipt_automation_put: #{e.response_body}"
            end
        - lang: Python
          source: >-
            from __future__ import print_function

            import clicksend_client

            from clicksend_client.rest import ApiException


            # Configure HTTP basic authorization: BasicAuth

            configuration = clicksend_client.Configuration()

            configuration.username = 'USERNAME'

            configuration.password = 'API_KEY'


            # create an instance of the API class

            api_instance =
            clicksend_client.FAXDeliveryReceiptRulesApi(clicksend_client.ApiClient(configuration))

            receipt_rule_id = 130 # int | Receipt rule id

            # DeliveryReceiptRule | Delivery receipt rule model

            delivery_receipt_rule = clicksend_client.DeliveryReceiptRule(
                                    rule_name="My Updated Rule",
                                    match_type= 0,
                                    action="URL",
                                    action_address="http://yourdomain.com",
                                    enabled=1)

            try:
                # Update fax delivery receipt automation
                api_response = api_instance.fax_delivery_receipt_automation_put(receipt_rule_id, delivery_receipt_rule)
                print(api_response)
            except ApiException as e:
                print("Exception when calling FAXDeliveryReceiptRulesApi->fax_delivery_receipt_automation_put: %s\n" % e)
        - lang: perl
          source: >-
            use WWW::ClickSendClient::FAXDeliveryReceiptRulesApi;

            use WWW::ClickSendClient::Object::DeliveryReceiptRule;


            my $username = 'YOUR_API_USER_NAME';

            my $password = 'YOUR_API_PASSWORD';


            my $api =
            WWW::ClickSendClient::FAXDeliveryReceiptRulesApi->new(username =>
            $username, password => $password);


            my %params = (
                'rule_name'      => 'rule_name',
                'match_type'     => '2',
                'action'         => 'EMAIL_FIXED',
                'action_address' => 'test1@test.com',
                'enabled'        => '1'
            );


            my $delivery_receipt_rule_obj =
            WWW::ClickSendClient::Object::DeliveryReceiptRule->new(%params);

            my $json_output =
            $api->fax_delivery_receipt_automation_put('receipt_rule_id' =>
            '1234' , 'delivery_receipt_rule' => $delivery_receipt_rule_obj);


            print $json_output;
        - lang: objc
          source: >-
            #import "CSFaxDeliveryReceiptRulesApi.h"

            #import "CSDefaultConfiguration.h"


            CSDefaultConfiguration *apiConfig = [CSDefaultConfiguration
            sharedConfig];

            // Configure HTTP basic authorization (authentication scheme:
            BasicAuth)

            [apiConfig setUsername:@"USERNAME"];

            [apiConfig setPassword:@"PASSWORD"];


            CSDeliveryReceiptRule *deliveryRule = [[CSDeliveryReceiptRule alloc]
            init];

            deliveryRule.ruleName = @"rule_name";

            deliveryRule.matchType = @(0);

            deliveryRule.action = @"action";

            deliveryRule.actionAddress = @"action_address";

            deliveryRule.enabled = @(1);


            CSFAXDeliveryReceiptRulesApi *faxDeliveryRecieptRules =
            [[CSFAXDeliveryReceiptRulesApi alloc] init];

            [faxDeliveryRecieptRules 
            faxDeliveryReceiptAutomationPutWithReceiptRuleId:@(1)
            deliveryReceiptRule:faxDeliveryRecieptRules
            completionHandler:^(NSString *output, NSError *error) {
                if (error) {
                    NSLog(@"Error: %@", error);
                } else {
                    NSLog(@"%@", output);
                }
            }];
        - lang: swift
          source: >-
            import Alamofire

            if let authHeader = Request.authorizationHeader(user: "USERNAME",
            password: "PASSWORD") {
                ClickSendClientAPI.customHeaders = [authHeader.key : authHeader.value]
            }


            let deliveryReceiptRule = DeliveryReceiptRule(
                                            ruleName: "rule_name", 
                                            matchType: 1, 
                                            action: "action", 
                                            actionAddress: "action_address", 
                                            enabled: 1
                                        )

            FAXDeliveryReceiptRulesAPI.faxDeliveryReceiptAutomationPut(receiptRuleId:
            1, deliveryReceiptRule: deliveryReceiptRule) { (datString, error) in
                if let error = error {
                    print(error)
                } else {
                    if let data = datString!.data(using: String.Encoding.utf8) {
                        do {
                            if let dictonary = try (JSONSerialization.jsonObject(with: data, options: []) as? NSDictionary) {
                                print(dictonary)
                            } else {
                                print("bad json")
                            }
                        } catch let error as NSError {
                            print(error)
                        }
                    }
                }
            }
    delete:
      summary: Delete FAX Delivery Receipt Rule
      operationId: delete-fax-delivery-receipt-rule
      description: >-
        _Delete fax delivery receipt automation_


        Delete fax delivery receipt automation


        ### Parameters


        | Parameter | In | Type | Required | Description |

        | --- | --- | --- | --- | --- |

        | receipt_rule_id | path | integer(int32) | true | Receipt rule id |



        Refer to [Status Codes](/#status-codes) for definitions of HTTP status
        code responses.



        <div style="background-color: #FF6A4B; padding: 10px; border-radius:
        8px;">
          <span style="color: white;">This endpoint requires authentication,</span> 
          <a href="/#authentication" style="color: white; text-decoration: underline;">more info...</a>
        </div>
      security:
        - basicAuth: []
      parameters:
        - name: Content-Type
          in: header
          schema:
            type: string
          example: application/json
        - name: receipt_rule_id
          in: path
          schema:
            type: string
          required: true
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/delete-fax-delivery-receipt-rule'
      x-codeSamples:
        - lang: curl
          source: |-
            curl --include \
                 --header "Authorization: Basic YXBpLXVzZXJuYW1lOmFwaS1wYXNzd29yZA=="  \
                 --request DELETE \
            'https://rest.clicksend.com/v3/automations/email/receipt/{rule_id}'
        - lang: PHP
          source: >-
            <?php

            require_once(__DIR__ . '/vendor/autoload.php');


            // Configure HTTP basic authorization: BasicAuth

            $config = ClickSend\Configuration::getDefaultConfiguration()
                          ->setUsername('USERNAME')
                          ->setPassword('API_KEY');

            $apiInstance = new ClickSend\Api\FAXDeliveryReceiptRulesApi(new
            GuzzleHttp\Client(),$config);

            $receipt_rule_id = 139; // int | Receipt rule id


            try {
                $result = $apiInstance->faxDeliveryReceiptAutomationDelete($receipt_rule_id);
                print_r($result);
            } catch (Exception $e) {
                echo 'Exception when calling FAXDeliveryReceiptRulesApi->faxDeliveryReceiptAutomationDelete: ', $e->getMessage(), PHP_EOL;
            }

            ?>
        - lang: C#
          source: >-
            using IO.ClickSend.ClickSend.Api;

            using IO.ClickSend.Client;

            using IO.ClickSend.ClickSend.Model;


            var configuration = new Configuration()

            {
                Username = USERNAME, 
                Password = API_KEY  
            };

            var faxDeliveryReceiptRulesApi = new
            FAXDeliveryReceiptRulesApi(configuration);

            var response =
            faxDeliveryReceiptRulesApi.FaxDeliveryReceiptAutomationDelete(RULE_ID);
        - lang: Java
          source: |-
            package ClickSend;

            import ClickSend.Api.FaxDeliveryReceiptRulesApi;

            public class delete_fax_delivery_receipt_rule {
              public static void main(String[] args) {
                ApiClient defaultClient = new ApiClient();
                defaultClient.setUsername("USERNAME");
                defaultClient.setPassword("API_KEY");
                FaxDeliveryReceiptRulesApi apiInstance = new FaxDeliveryReceiptRulesApi(defaultClient);
                Integer receiptRuleId = 130; // Integer | Receipt rule id
                try {
                    String result = apiInstance.faxDeliveryReceiptAutomationDelete(receiptRuleId);
                    System.out.println(result);
                } catch (ApiException e) {
                    System.err.println("Exception when calling FaxDeliveryReceiptRulesApi#faxDeliveryReceiptAutomationDelete");
                    e.printStackTrace();
                }
              }
            }
        - lang: Node.js
          source: >-
            var api = require('./api.js');


            var faxDeliveryReceiptApi = new
            api.FAXDeliveryReceiptRulesApi("USERNAME", "API_KEY");


            var receiptRuleId = 136;


            faxDeliveryReceiptApi.faxDeliveryReceiptAutomationDelete(receiptRuleId).then(function(response)
            {
              console.log(response.body);
            }).catch(function(err){
              console.error(err.body);
            });
        - lang: Ruby
          source: |-
            # load the gem
            require 'clicksend_client'
            require 'json'

            # setup authorization
            ClickSendClient.configure do |config|
              # Configure HTTP basic authorization: BasicAuth
              config.username = 'USERNAME'
              config.password = 'API_KEY'
            end

            api_instance = ClickSendClient::FAXDeliveryReceiptRulesApi.new

            receipt_rule_id = 56 # Integer | Receipt rule id

            begin
              # Delete fax delivery receipt automation
              result = api_instance.fax_delivery_receipt_automation_delete(receipt_rule_id)
              p JSON.parse(result)
            rescue ClickSendClient::ApiError => e
              puts "Exception when calling FAXDeliveryReceiptRulesApi->fax_delivery_receipt_automation_delete: #{e.response_body}"
            end
        - lang: Python
          source: >-
            from __future__ import print_function

            import clicksend_client

            from clicksend_client.rest import ApiException


            # Configure HTTP basic authorization: BasicAuth

            configuration = clicksend_client.Configuration()

            configuration.username = 'USERNAME'

            configuration.password = 'API_KEY'


            # create an instance of the API class

            api_instance =
            clicksend_client.FAXDeliveryReceiptRulesApi(clicksend_client.ApiClient(configuration))

            receipt_rule_id = 130 # int | Receipt rule id


            try:
                # Delete fax delivery receipt automation
                api_response = api_instance.fax_delivery_receipt_automation_delete(receipt_rule_id)
                print(api_response)
            except ApiException as e:
                print("Exception when calling FAXDeliveryReceiptRulesApi->fax_delivery_receipt_automation_delete: %s\n" % e)
        - lang: perl
          source: >-
            use WWW::ClickSendClient::FAXDeliveryReceiptRulesApi;


            my $username = 'YOUR_API_USER_NAME';

            my $password = 'YOUR_API_PASSWORD';


            my $api =
            WWW::ClickSendClient::FAXDeliveryReceiptRulesApi->new(username =>
            $username, password => $password);


            my $json_output =
            $api->fax_delivery_receipt_automation_delete('receipt_rule_id' =>
            '123456');


            print $json_output;
        - lang: objc
          source: >-
            #import "CSFaxDeliveryReceiptRulesApi.h"

            #import "CSDefaultConfiguration.h"


            CSDefaultConfiguration *apiConfig = [CSDefaultConfiguration
            sharedConfig];

            // Configure HTTP basic authorization (authentication scheme:
            BasicAuth)

            [apiConfig setUsername:@"USERNAME"];

            [apiConfig setPassword:@"PASSWORD"];


            CSFAXDeliveryReceiptRulesApi *faxDeliveryRecieptRules =
            [[CSFAXDeliveryReceiptRulesApi alloc] init];

            [faxDeliveryRecieptRules 
            faxDeliveryReceiptAutomationDeleteWithReceiptRuleId:@(1)
            completionHandler:^(NSString *output, NSError *error) {
                if (error) {
                    NSLog(@"Error: %@", error);
                } else {
                    NSLog(@"%@", output);
                }
            }];
        - lang: swift
          source: >-
            import Alamofire

            if let authHeader = Request.authorizationHeader(user: "USERNAME",
            password: "PASSWORD") {

            ClickSendClientAPI.customHeaders = [authHeader.key :
            authHeader.value]

            }


            let deliveryReceiptRule = DeliveryReceiptRule(ruleName: "rule_name",
            matchType: 1, action: "action", actionAddress: "action_address",
            enabled: 1)


            FAXDeliveryReceiptRulesAPI.faxDeliveryReceiptAutomationDelete(receiptRuleId:
            1) { (dataString, error) in
                if let error = error {
                    print(error)
                } else {
                    if let data = datString!.data(using: String.Encoding.utf8) {
                        do {
                            if let dictonary = try (JSONSerialization.jsonObject(with: data, options: []) as? NSDictionary) {
                                print(dictonary)
                            } else {
                                print("bad json")
                            }
                        } catch let error as NSError {
                            print(error)
                        }
                    }
                }
            }
