Admin API / Types

LabelPaymentMethod

Object

A saved card of the caller on District's payment account that can pay for shipping labels.

type LabelPaymentMethod

Fields

FieldTypeDescription
brandString
The card network as Stripe names it, for example visa. Null when Stripe gives none.
expMonthPositiveInt
The expiry month, 1 to 12. Null when Stripe gives none.
expYearPositiveInt
The expiry year, for example 2028. Null when Stripe gives none.
isDefaultBoolean!
True for the caller's default card. A label purchase with no card given uses it when labels bill to a card.
last4String
The last 4 digits of the card number. Null when Stripe gives none.
providerPaymentMethodIdString!
The card's ID at the payment provider. Pass it to purchaseShipmentLabel to select this card.

Returned by