Open Invoices Web Service

A. Duie Pyle provides information on all open invoices for each account linked to your MyPyle login via a web service that returns either a JSON object or an XML document. A summarized or detailed version can be provided by adjusting the 'detailed' boolean parameter in the URL.


Summarized Invoices

This returns a summarized version of each invoice. Requesting summarized invoices is faster and returns smaller results.

Example cURL Request

GET
/1/billing/invoices
curl -G https://api.aduiepyle.com/1/billing/invoices \
  -H "Content-Type:application/json" \
  -d user="MyPyleID" \
  -d accountCode="account" \
  -d detailed=0

Detailed Invoices

This returns a detailed version of each invoice. This includes the billing lines in each invoice. Requesting detailed invoices is slower and returns larger results.

Example cURL Request

GET
/1/billing/invoices
curl -G https://api.aduiepyle.com/1/billing/invoices \
  -H "Content-Type:application/json" \
  -d user="MyPyleID" \
  -d accountCode="account" \
  -d detailed=1

Request Parameters

  • Name
    user
    Description

    The MyPyle login email address.

  • Name
    accountCode
    Description

    The account code. The account code always starts with a P1 and is eight characters long.

  • Name
    detailed
    Description

    For summarized invoices, set this to 0. For detailed invoices, set this to 1.


Examples

The following example will request a transit time XML document from Exton, PA (19341) to Montpelier, VT (05602).

Example cURL Request

GET
/1/billing/invoices
curl -G https://api.aduiepyle.com/1/billing/invoices \
  -H "Content-Type:application/json" \
  -d user="duie@pyleco.com" \
  -d accountCode="P1ADWE65" \
  -d detailed=1

Example Response

{
  "result": {
    "accountCode": "PABA1A",
    "invoices": {
      "invoice": [
        {
          "pro": "671831022",
          "statementNumber": "12348765",
          "invoiceDate": "2022-05-02",
          "billOfLadingNumber": {
            "data": ["NS"]
          },
          "purchaseOrder": {
            "data": ["000004305"]
          },
          "amountDue": 564.2,
          "totalCharge": 564.2,
          "weight": 4950,
          "pieces": 9,
          "paymentMethod": "PREPAID",
          "entities": {
            "entity": [
              {
                "type": "consignee",
                "code": "DACE1C",
                "name": "DAVIDS COOKIES",
                "address1": "11 CLIFFSIDE DR",
                "address2": "",
                "city": "CEDAR GROVE",
                "state": "NJ",
                "zip": "07009"
              },
              {
                "type": "shipper",
                "code": "PABA1A",
                "name": "PARKER FLAVORS INC",
                "address1": "1801 A PORTAL ST",
                "address2": "",
                "city": "BALTIMORE",
                "state": "MD",
                "zip": "21224"
              },
              {
                "type": "bill_to",
                "code": "PABA1A",
                "name": "PARKER FLAVORS INC",
                "address1": "1801 A PORTAL ST",
                "address2": "",
                "city": "BALTIMORE",
                "state": "MD",
                "zip": "21224"
              }
            ]
          },
          "pickup": {
            "arrival": "2022-04-29T15:29",
            "trailer": "6404R",
            "truck": "1036"
          },
          "delivery": {
            "arrival": "2022-05-02T10:44",
            "trailer": "4283H",
            "truck": "10155"
          },
          "details": {
            "detail": [
              {
                "description": "46.9% FUEL SURCHARGE",
                "pieces": 0,
                "weight": 0,
                "container": "",
                "class": 0,
                "rate": 0.469,
                "rateQualifier": "CT",
                "specialChargeCode": "FUE",
                "charge": 119.03
              }
            ]
          }
        }
      ]
    }
  }
}

Response Properties

  • Name
    accountCode
    Description
    the company’s account code
  • Name
    invoice
    Description
    list of invoice details
  • Name
    pro
    Description
    pro number of the invoice
  • Name
    statementNumber
    Description
    statement number
  • Name
    invoiceDate
    Description
    invoice date
  • Name
    billOfLadingNumber
    Description
    contains list of BOL numbers
  • Name
    purchaseOrder
    Description

    contains list of purchase order numbers

  • Name
    amountDue
    Description
    amount due
  • Name
    totalCharge
    Description
    total amount charge
  • Name
    weight
    Description
    weight of pro
  • Name
    pieces
    Description
    pieces of pro
  • Name
    paymentMethod
    Description
    payment method for this transaction
  • Name
    entity
    Description

    list of the pro shipper, consignee, and bill to details

  • Name
    type
    Description

    type of account which is either shipper, consignee or bill to

  • Name
    code
    Description
    account code
  • Name
    name
    Description
    account name
  • Name
    address1
    Description
    account address 1
  • Name
    address2
    Description
    account address 2
  • Name
    city
    Description
    account city
  • Name
    state
    Description
    account state
  • Name
    zip
    Description
    account zip code
  • Name
    pickup
    Description
    pickup details
  • Name
    arrival
    Description
    pickup arrival date time
  • Name
    trailer
    Description
    pickup trailer unit code
  • Name
    truck
    Description
    pickup truck unit code
  • Name
    delivery
    Description
    delivery details
  • Name
    arrival
    Description
    delivery arrival date time
  • Name
    trailer
    Description
    delivery trailer unit code
  • Name
    truck
    Description
    delivery truck unit code

For a detailed result

  • Name
    details
    Description
    list of billing lines
  • Name
    description
    Description
    description of the item
  • Name
    pieces
    Description
    pieces
  • Name
    weight
    Description
    weight
  • Name
    container
    Description
    type of container
  • Name
    class
    Description
    commodity class
  • Name
    rate
    Description
    rate code
  • Name
    rateQualifier
    Description
    rate qualifier
  • Name
    specialChargeCode
    Description
    special charge code
  • Name
    charge
    Description
    amount charge

Detailed Invoice Codes

Rate Qualifier Codes

CodeDescription
FRFlat Rate
MNMinimum
PFPer Cubic Foot
PGPer Gallon
PHPer Hundred(of Basic Unit)
PLPer Load
PMPer Mile
PPPer Piece
PSPer Shipment
PUPer Unit
SYSquare Yard

Special Codes

CodeDescription
020Address Correction
045Advance Fee
105Acknowledgement of Delivery Fee (AOD)
140Call Tag
275Discount – Incentive
300Distribution Fee
405Fuel Surcharge
455Insurance Premium
520Oversized Premium
675Security Signature Service
705Stamp Fee
735Tracing Inbound Via Other Carriers
ADHAdvance Charges Handling
AFBAdditional Copies of Freight Bill
APTAppointment (Notification)
ARBArbitrary (In Addition to Through Rates and Charges)
BEYBeyond Freight Charges
BLKBlocking and Bracing Charge
BNDBond Charges
CLNCleaning Charge
CNSConsolidation
CODCOD Amount
COLFee for Collecting COD Charge
COMCombination
DELDelivery Charge
DERDerrick Charge
DETDetention of Trailers
DISDistribution Service
DIVDiversion and Reconsignment
DMCDeadhead Mileage Charge
DSCDiscount
DTLDetention Loading
DTUDetention Unloading
DTVDetention (Vehicle)
EICExport/Import Charge
ELSExtra Lights
EMTEmpty Movement
ENSEnergy Surcharge (Fuel Adjustment Factor)
ERSEmpty Return
EVCExcessive Value Charge
EXCExclusive Use Charge
EXMExcess Mileage Charge
EXWExcess Weight
FUEFuel Charge
GSTGoods and Services Tax Charge
HANHandling Charges on Distribution Freight Forwarded Beyond
HOLSunday or Holiday Pick-up or Delivery
HOSHose Charge
IDLInside Delivery
IPUInside Pick-up
LABExtra Labor (Helper Service)
LAYLayover Charges
LFTLift Gate (Truck) or Forklift Service at Pick-up/Delivery
LOALoading (Labor Charges)
MENEscort Service with Overnight Subsistence
METEscort Service (Telephone)
MINMinimum Guarantee
MNCNotify Consignee
MRKMarking or Tagging Charge
MSCOther Accessorial Service Charge
MSGMiscellaneous Charge
OVROver Dimension
PBEPermits Bonds Escort Attendant
PECPallet Exchange Charge
PERPermit Charge
PIRPier Pick-up and/or Delivery
PMUNormal Pump Charge
PODProof of Delivery
PCSProtective Service – Cold
PSGProtective Service Security with Armed Guards
PUCPick-up Charge
PUDPick-up and Delivery
RCCReconsignment Charge
RCLRedelivery
REPResidential Pick-up
RESResidential Delivery
SCLScale Charge
SDLSplit Delivery
SEGSegregating (Sorting)
SERService Charge
SOCStop-off Charge
SPCSpecial Permits
SPTSpotting of Trailer
SPUSplit Pick-up
SRGStorage
SSCStripping, Sorting, and Consolidation
SSFSingle Shipment Fee
STRStorage in Transit
SUFSufferance Warehouse Charge (Export or Import)
SURSurcharge
TAXTax Charge
TRATravel Charge
TRCTrailer Rental Charge
UNDUnloading
UNLUnloading (Labor Charges)
URCUnloading/Reloading Charge
VORVehicle Ordered but Not Used
WRCLoad Weighing Charge
WTVWeight Verification Charge

If you are not obtaining the invoices that you're expecting it's probably because the account isn't linked to your MyPyle login. Please contact us at 800−523−5020 x34236 or email the AFM Department.

Revision 2 – 04/14/2023