Skip to content

Files

26 lines (20 loc) · 1.18 KB
·

File metadata and controls

26 lines (20 loc) · 1.18 KB
·

CreatedBy

An object with details about the user who created the Transaction (purchased the label). A value will be returned only for Transactions that can be associated with a specific user, e.g. when a logged-in user purchases a label via the Shippo Web application; but not for Transactions purchased e.g. via the API using a ShippoToken, which is associated with the account but not any specific user.

Example Usage

import { CreatedBy } from "shippo/models/components";

let value: CreatedBy = {
  firstName: "Shwan",
  lastName: "Ippotle",
  username: "shippotle@shippo.com",
};

Fields

Field Type Required Description Example
firstName string N/A Shwan
lastName string N/A Ippotle
username string N/A shippotle@shippo.com