import { CarrierAccountBase } from "shippo/models/components";
let value: CarrierAccountBase = {
accountId: "****",
carrier: "usps",
parameters: {
accountNumber: "94567e",
aiaCountryIso2: "US",
billingAddressCity: "San Francisco",
billingAddressCountryIso2: "US",
billingAddressState: "CA",
billingAddressStreet1: "731 Market St",
billingAddressStreet2: "STE 200",
billingAddressZip: "94103",
collecCountryIso2: "US",
collecZip: "94103",
company: "Shippo",
currencyCode: "USD",
email: "[email protected]",
fullName: "Shippo Meister",
hasInvoice: false,
invoiceControlid: "1234",
invoiceDate: "20210529",
invoiceNumber: "1112234",
invoiceValue: "11.23",
phone: "1112223333",
title: "Manager",
upsAgreements: false,
},
};
Field | Type | Required | Description | Example |
---|---|---|---|---|
accountId |
string | ✔️ | Unique identifier of the account. Please check the carrier accounts tutorial page for the account_id per carrier.To protect account information, this field will be masked in any API response. |
**** |
active |
boolean | ➖ | Determines whether the account is active. When creating a shipment, if no carrier_accounts are explicitly passed Shippo will query all carrier accounts that have this field set. By default, this is set to True. |
|
carrier |
string | ✔️ | Carrier token, see Carriers Please check the carrier accounts tutorial page for all supported carriers. |
usps |
parameters |
components.CarrierAccountBaseParameters | ➖ | N/A |