Parameters
- 
args: { 
    clientConfig: ClientConfigInit<CustomParams>; 
    options: { 
        body?: any; 
        customApiPathParameters?: { 
            apiName?: string; 
            apiVersion?: string; 
            endpointPath?: string; 
            organizationId?: string; 
            shortCode?: string; 
        }; 
        headers?: { 
            authorization?: string; 
        } & { 
            [key: string]: string; 
        }; 
        method?: string; 
        parameters?: { 
            [key: string]: string | number | boolean | string[] | number[]; 
        }; 
    }; 
    rawResponse?: boolean; 
}
- 
 
- 
options: { 
    body?: any; 
    customApiPathParameters?: { 
        apiName?: string; 
        apiVersion?: string; 
        endpointPath?: string; 
        organizationId?: string; 
        shortCode?: string; 
    }; 
    headers?: { 
        authorization?: string; 
    } & { 
        [key: string]: string; 
    }; 
    method?: string; 
    parameters?: { 
        [key: string]: string | number | boolean | string[] | number[]; 
    }; 
}
- 
Optional body?: any
 
- 
Optional customApiPathParameters?: { 
    apiName?: string; 
    apiVersion?: string; 
    endpointPath?: string; 
    organizationId?: string; 
    shortCode?: string; 
}
- 
Optional apiName?: string
 
- 
Optional apiVersion?: string
 
- 
Optional endpointPath?: string
 
- 
Optional organizationId?: string
 
- 
Optional shortCode?: string
 
 
- 
Optional headers?: { 
    authorization?: string; 
} & { 
    [key: string]: string; 
}
 
- 
Optional method?: string
 
- 
Optional parameters?: { 
    [key: string]: string | number | boolean | string[] | number[]; 
}
- 
[key: string]: string | number | boolean | string[] | number[]
 
 
 
- 
Optional rawResponse?: boolean
 
 
 
Returns Promise<unknown>
Raw response or data from response based on rawResponse argument from fetch call
 
A helper function designed to make calls to a custom API endpoint For more information about custom APIs, please refer to the API documentation