Skip to main content

@wildix/classound-client > CreateNumbersOrderCommand

CreateNumbersOrderCommand class

Signature:

export declare class CreateNumbersOrderCommand extends CreateNumbersOrderCommand_base 

Extends: CreateNumbersOrderCommand_base

Example

Use a bare-bones client and the command you need to make an API call.

import { ClassoundClient, CreateNumbersOrderCommand } from "@wildix/classound-client"; // ES Modules import
// const { ClassoundClient, CreateNumbersOrderCommand } = require("@wildix/classound-client"); // CommonJS import
const client = new ClassoundClient(config);
const input = { // CreateNumbersOrderInput
companyId: "STRING_VALUE", // required
requestId: "STRING_VALUE", // required
customerOrderId: "STRING_VALUE", // required
webhookUrl: "STRING_VALUE", // required
webhookToken: "STRING_VALUE", // required
data: { // OrderSearchCriteria
country: "STRING_VALUE", // required
state: "STRING_VALUE",
quantity: Number("int"), // required
city: "STRING_VALUE",
zip: "STRING_VALUE",
},
};
const command = new CreateNumbersOrderCommand(input);
const response = await client.send(command);
// { // CreateNumbersOrderOutput
// status: "STRING_VALUE", // required
// supplierOrderId: "STRING_VALUE",
// requestId: "STRING_VALUE",
// customerOrderId: "STRING_VALUE",
// orderStatus: "STRING_VALUE",
// message: "STRING_VALUE",
// testMode: true || false,
// };