try {constresult=awaithat.dataDebits().getAllDefault();if (result.parsedBody) {// result.parsedBody contains an array of Data Debits. }} catch (error) {// Failed to fetch Data Debits.}
// In custom options you can specify the following parameters: "ordering", "orderBy", "take", "skip"constoptions= { ordering:"descending", orderBy:"name"};try {constresult=awaithat.dataDebits().getAll(options);if (result.parsedBody) {// result.parsedBody contains an array of Data Debits. }} catch (error) {// Failed to fetch Data Debits.}
try {constresult=awaithat.dataDebits().getById("your-data-debit-id");if (result.parsedBody) {// result.parsedBody contains the data debit. }} catch (e) {// Failed to get Data Debit by ID...}
try {constresult=awaithat.dataDebits().getDataDebitValues("your-data-debit-id");if (result.parsedBody) {// result.parsedBody contains the bundle. }} catch (error) {// Failed to get Data Debit values...}