Get Transaction Reports

HTTP Request

GET /v4/ledger/developers/{developerId}/transactions/reports

Previous version: v2

Summary

This operation retrieves transactions from the last six months according to the parameters you specify. If you specify no parameters, the API returns all transactions for the last 92 days.

To retrieve transactions older than 6 months, use the Get Archived Reports API.

Things to Consider

  1. This API returns transactions for shipments where rates.carrier is equal to USPS.

  2. The report returns the following transaction types within the following time frames:

    Transaction Type
    Description
    The transaction appears in the transaction report:
    POSTAGE FUND The funding of the postage account Within 1 hour.
    POSTAGE PRINT The printing of a label
    • Within 1 hour for a delivery label.
    • The same day for a return label.
    POSTAGE REFUND A refund request or the resolution of a refund request
    • Within 1 hour for a refund-request transaction.
    • The same day as notification from USPS® for a refund-resolution transaction.
    FEE An ACH return fee. The status field indicates whether the fee is processed or waived. Within 24 hours.
    APV-POSTAGE OVERPAID An APV adjustment for an overpayment Within 24 hours of notification from USPS.
    APV-POSTAGE UNDERPAID An APV adjustment for an underpayment Within 24 hours of notification from USPS.
    APV-DISPUTE ADJUSTMENT A dispute of an APV adjustment Within 24 hours of notification from USPS.
    CREDIT ADJUSTMENT A manual credit. The same day.
    DEBIT ADJUSTMENT A manual debit. The same day.
  3. Transactions are returned in UTC/GMT time.

  4. All transactions for a given shipment use the same transactionId. Therefore, a given transaction ID can appear multiple times in a report. Each occurrence represents a different transaction for the same shipment.

    The transactionId comprises the developer ID and the shipment’s X-PB-TransactionId, separated by an underscore:

    <developer_id>_<X-PB-TransactionId>

  5. The date range specified in the query parameters cannot exceed 92 days, unless you specify a transactionId or parcelTrackingNumber, in which case there is no limit on the date range.

  6. For additional information, please see the Transaction Reports FAQs.

Request URIs

Sandbox: https://api-sandbox.pitneybowes.com/shippingservices/v4/ledger/developers/{developerId}/transactions/reports
Production: https://api.pitneybowes.com/shippingservices/v4/ledger/developers/{developerId}/transactions/reports

Path Parameter

Name Description
developerId
Required. Your Pitney Bowes developer ID.

Query Parameters

Query parameters are optional.

Name Description
fromDate

The beginning of the date range for the returned transactions. Specify this value in UTC using the ISO 8601 standard. The value must include both date and time and must end with Z to indicate the zero offset. For example:

fromDate=2019-10-05T00:00:00Z

The date range cannot exceed 92 days, unless you specify a transactionId or parcelTrackingNumber, in which case there is no limit on the date range.

Default Value: 92 days prior to the current date, with these exceptions:

  • If you specify a toDate, the default value is 92 days prior to the toDate.
  • If you specify a transactionId or parcelTrackingNumber, there is no default value an no start limit to the date range.
toDate

The end of the date range for the returned transactions. Specify this value in UTC using the ISO 8601 standard. The value must include both date and time and must end with Z to indicate a zero offset. For example:

toDate=2019-11-02T23:59:00Z

The date range cannot exceed 92 days, unless you specify a transactionId or parcelTrackingNumber, in which case there is no limit on the date range.

Default Value: The current date.

transactionId

Returns all transactions associated with a specific label. The parameter identifies the label by a string that comprises the developer ID and the shipment’s X-PB-TransactionId, separated by an underscore (_):

<developer_ID>_<X-PB-TransactionId>

For example:

44397664_ad507ef7414a78ac22b3
parcelTrackingNumber Returns all transactions associated with a specific label. The parameter identifies the label by the shipment’s tracking number.
merchantId Returns all transactions for a specific merchant. Enter the merchant’s Shipper ID. The Shipper ID is found in the postalReportingNumber field in the Merchant Object.
trackingStatus

Use this parameter to:

  • Return parcel tracking status in the API response. The API returns tracking status only if this parameter is specified. The API returns tracking status in the tracking object.
  • Return transactions based on parcel tracking status. You can choose to return all tracking statuses or return only specific tracking statuses.

Valid values:

  • ALL: Returns all tracking statuses.
  • InTransit: The parcel has an in-transit tracking status, such as OutForDelivery or DeliveryAttempt.
  • Delivered: The parcel has been delivered.
  • Manifest: The label is created, but the parcel is not yet in transit. Note that you can query on this value together with a date range to retrieve unused labels. Unused labels are labels that were never inducted into the USPS mailstream.
  • Undelivered: The label is created, but the parcel is not yet delivered. This includes parcels in transit and parcels waiting to be in transit.

Note: Transaction Reports do not record tracking events that occur 30 days or more after the transaction’s date and time. The most recent tracking event listed will always be within 30 days of the transaction’s date and time.

transactionType

Returns all transactions of a given transaction type. Valid values:

  • POSTAGE FUND: The funding of a postage account.
  • POSTAGE PRINT: The printing of a label.
  • POSTAGE REFUND: A refund request or the resolution of a refund request.
  • FEE: An ACH return fee. The status field indicates whether the fee is processed or waived.
  • APV-POSTAGE ALL: Any APV adjustment, including both overpays and underpays.
  • APV-POSTAGE OVERPAID: An APV adjustment for overpayment.
  • APV-POSTAGE UNDERPAID: An APV adjustment for underpayment.
  • APV-DISPUTE ADJUSTMENT: A dispute of an APV-POSTAGE UNDERPAID transaction.
  • CREDIT ADJUSTMENT: A manual credit.
  • DEBIT ADJUSTMENT: A manual debit.
shipDetails

Indicates whether to return the following fields for each transaction:

  • dimensionalWeightOz
  • valueOfGoods
  • specialServices
  • customMessage1
  • customMessage2

If set to 1, the fields are returned. If set to 0, the fields are not returned.

Default Value: 0

This field applies to v4.0 or higher of the API.

size

The number of transactions to return per page in the result set.

Default Value: 20

page The index number of the page to return. Page index numbering starts at 0. Specifying page=0 returns the first page of the result set.

Request Headers

Name
Description
Authorization Required. OAuth token generated using the Generate an OAuth Token API.
Accept-Language Language and country code. Default: en-US
X-PB-UnifiedErrorStructure Recommended. Set this to true to use the standard error object if an error occurs.

Response Elements

Name Data Type Description
content Array[Transaction Object]

The transactions. Each object in the array is a separate transaction. The Transaction Object is described in the next table below.

Note: Multiple transactions can share the same transactionId.

searchCriteria Object

The query parameters and the developer ID. The following is returned for a query on merchantId and transactionType:

{
    "developerId": "44397664",
    "merchantId": "9024324564",
    "transactionType": "POSTAGE PRINT",
    "fromDate": "2019-03-16T18:33:12.358+0000",
    "toDate": "2019-04-16T18:33:12.358+0000"
}

Note that the object always returns the fromDate and toDate parameters, even if you leave them out of the query.

last Boolean If true, this is the last page of the result set.
totalPages Number Total number of pages in the result set.
totalElements Number Total number of transactions in the result set for the specified query filters.
sort Array[Object] An object with information about the sort order.
numberOfElements Number Number of transactions in the current page.
first Boolean If true, this is the first page of the result set.
size Number

Number of transactions per page in the result set.

Default: 20

number Number The index number of the page being returned. Page index numbering starts at 0. If number is set to 4, this is the 5th page of the result set.

Response Elements: Transaction Object

Name Data Type Description
transactionId String

The ID used to uniquely identify the shipment associated with the transaction. The ID is a combination of the developer ID and the shipment’s X-PB-TransactionId, separated by an underscore (_):

<Developer-ID>_<X-PB-TransactionId>

transactionDateTime String The date and time of the transaction, returned in UTC/GMT using the ISO 8601 standard.
transactionType String

Type of transaction. Valid values:

  • POSTAGE FUND: The funding of a postage account.
  • POSTAGE PRINT: The printing of a label.
  • POSTAGE REFUND: A refund request or the resolution of a refund request.
  • FEE: An ACH return fee. The status field indicates whether the fee is processed or waived.
  • APV-POSTAGE OVERPAID: An APV adjustment for overpayment.
  • APV-POSTAGE UNDERPAID: An APV adjustment for underpayment.
  • APV-DISPUTE ADJUSTMENT: A dispute of an APV-POSTAGE UNDERPAID transaction.
  • CREDIT ADJUSTMENT: A manual credit.
  • DEBIT ADJUSTMENT: A manual debit.
developerName String Name of the developer account used to print the shipment label.
developerId String The developer ID used to print the shipment label.
developerPostagePaymentMethod String The developer’s PB Postage Account payment method. This is populated only for transactions that use the Bulk Postage Account payment model, as described in Merchant Enrollment Models.
developerRatePlan String Rate plan of the developer (integrator).
developerRateAmount String

Amount charged to the developer. The amount is based on the developer’s rate plan. If the merchant (shipper) has an NSA, the amount is instead based on the NSA.

APV Adjustments: If the transaction is an APV adjustment, this field is the difference between the charge that was calculated at the time of print and the charge calculated by USPS®.

developerPostagePaymentAccountBalance String This field is not currently used.
merchantName String Name of the merchant.
merchantId String The value of the postalReportingNumber field in the Merchant object. This value is also the merchant’s Shipper ID.
merchantPostageAccountPaymentMethod String The merchant’s PB Postage Account payment method. This is populated only for transactions that use the Individual Postage Account payment model, as described in Merchant Enrollment Models.
merchantRatePlan String Rate plan of the merchant (shipper).
merchantRate String

Amount charged to the merchant. This is based on the merchant’s shipper rate plan.

APV Adjustments: If the transaction is an APV adjustment, this field is the difference between the charge to the merchant calculated at the time of print and the charge calculated based on information from USPS.

shipperPostagePaymentAccountBalance String

Postage balance in the merchant’s PB Postage Account. This is the ending balance after this transaction was processed.

If the merchant’s postage balance is currently negative, the merchant must refill the postage account. See How do I fill my PB Postage Account with funds?

labelFee String Currently not used.
parcelTrackingNumber String Tracking number.
weightInOunces String Weight in ounces. In the case of an APV adjustment, this is based on the new information received from USPS.
zone String Zone. In the case of an APV adjustment this is based on the new information received from USPS.
packageLengthInInches String Package length in inches. In the case of an APV adjustment, this is based on the new information received from USPS.
packageWidthInInches String Package width in inches. In the case of an APV adjustment, this is based on the new information received from USPS.
packageHeightInInches String Package height in inches. In the case of an APV adjustment, this is based on the new information received from USPS.
packageTypeIndicator String

Indicates whether cubic pricing was used. Valid values:

  • Cubic
  • NonCubic

In the case of an APV adjustment, this is based on the new information received from USPS.

packageType String

The parcel type. For supported parcel types, see the carrier’s reference page.

In the case of an APV adjustment, this is based on the new information received from USPS.

mailClass String Mail class or service.
internationalCountryGroup String International country group code.
originationAddress String Origination address.
originZip String Origin postal code.
destinationAddress String Destination address.
destinationZip String Destination postal code.
destinationCountry String Destination country.
postageDepositAmount String Postage deposit amount.
creditCardFee String Credit card fee.
refundStatus String

Refund status. Possible values include:

  • REQUESTED
  • ACCEPTED
  • DENIED

For more information on refunds, see Refunds FAQs.

refundDenialReason String The reason for a refund denial.
printStatus String This field is not currently used.
shipmentId String The unique identifier for the shipment generated when the shipment was created.
refundRequestor String

Indicates who requested the refund.

  • Shipper Requested: The shipper requested the refund.
  • PB Claims: The request is part of the Delivery Guarantee program.
externalId String

Applies only to the following:

  • APV adjustments: The USPS Revenue Assurance ID assigned to the APV adjustment in case of a dispute.
  • PB Delivery Guarantee: This is an ID beginning with “PBD” and followed by sequence of numbers. This indicates a Delivery Guarantee credit.
adjustmentReason String

APV Only. The reason for an APV adjustment, based on information received from USPS. Possible values are:

  • weight. Incorrect weight listed when creating the label.
  • dimension: Incorrect dimensions listed when creating the label.
  • package: Incorrect parcel type listed when creating the label.
  • zone: Incorrect origin or induction postal code listed when creating the label.
  • duplicate: The label had already been inducted. The IMpb tracking barcode was entered into the USPS mailstream more than once within 120 days. The transaction report includes the charges for the additional use of the label.
  • usedRefundedLabel: The label was a refunded label that was then entered into the USPS mailstream. The transaction report includes the charges for using the label after having voided it.
meterNumber String Internal identification number for the postage meter that was used.
dimensionalWeightOz BigDecimal

The dimensional weight, if applicable.

To return this field, set the shipDetails query parameter to 1.

This field applies to API v4.0 or higher.

valueOfGoods BigDecimal

The value provided in the parcel.valueOfGoods field in the Create Shipment request, if applicable.

To return this field, set the shipDetails query parameter to 1.

This field applies to API v4.0 or higher.

specialServices Array[Special Services Object]

This array contains the shipment’s special services, including the fee paid for each service.

To return this field, set the shipDetails query parameter to 1.

This field applies to API v4.0 or higher.

status String

The transaction status for the following types of transactions:

  • ACH transaction. Possible values:
    • Pending: A POSTAGE FUND transaction is pending.
    • Processed: Either a POSTAGE FUND or a FEE transaction has been processed.
    • Returned: A POSTAGE FUND transaction failed.
    • Waived: A FEE has been waived.
  • APV dispute. Possible values:
    • REQUESTED
    • ACCEPTED
    • DENIED
  • Expedited Returns label. Possible values:
    • Printed
    • Charged

This field applies to API v4.0 or higher.

description String

Details on the status of an ACH transaction. Possible values:

  • Postage Fund Pending: A POSTAGE FUND transaction is pending.
  • Postage Fund Processed: A POSTAGE FUND transaction has been processed.
  • Postage Fund Returned: A POSTAGE FUND transaction failed.
  • ACH Return Fee Processed: A FEE has been processed.
  • ACH Return Fee waived: A FEE has been waived.

This field applies to API v4.0 or higher.

inductionPostalCode BigDecimal

The postal code where the shipment was tendered to the carrier.

To return this field, set the shipDetails query parameter to 1.

This field applies to API v4.0 or higher.

tracking Object

Applies to Transaction Reports Only. This object does not apply to Archived Reports.

For a POSTAGE PRINT transaction, this object returns the most recent tracking event within 30 days of the transaction’s date and time. To return this object, include the trackingStatus query parameter in the request.

This object applies to API v4.0 or higher.

        parcelStatus String

The most recent tracking event within 30 days of the parcel’s ship date. This is the same information returned in the status field of the Tracking API.

Note: Transaction Reports do not record tracking events that occur 30 days or more after the parcel’s ship date. In Transaction Reports, the most recent tracking event will always be within 30 days of the ship date.

This field applies to API v4.0 or higher.

        statusDate String

The local date and time where the tracking event occurred. This is the same information returned in updatedDate and updatedTime in the Tracking API.

This field applies to API v4.0 or higher.

customMessage1 String

The message specified in the PRINT_CUSTOM_MESSAGE_1 shipment option in the Create Shipment request.

To return this field, set the shipDetails query parameter to 1.

This field applies to API v4.0 or higher.

customMessage2 String

The message specified in the PRINT_CUSTOM_MESSAGE_2 shipment option in the Create Shipment request.

To return this field, set the shipDetails query parameter to 1.

This field applies to API v4.0 or higher.

Sample Requests

See the following examples:

v4.0 Transaction Reports Sample Request

Sample v4.0 Transaction Reports Request
curl -X GET .../v4/ledger/developers/44397664/transactions/reports?shipDetails=1 \
-H "Authorization: Bearer <oauth_token>" \
-H "Accept-Language:en-US" \
-H "X-PB-UnifiedErrorStructure: true"

The response below shows three transactions for the same shipment:

  • The printing of the label
  • The request for a refund
  • The approval of the refund request

The transactionType field shows the type of transaction.

Sample v4.0 Transaction Reports Response
{
    "content": [ {
        "transactionId": "44397664_a7-4bc2-a17a-02a37ad84a5d",
        "transactionDateTime": "2020-08-01T16:08:04.025+0000",
        "transactionType": "POSTAGE PRINT",
        "developerName": "PB",
        "developerId": "44397664",
        "developerPostagePaymentMethod": null,
        "developerRatePlan": null,
        "developerRateAmount": 3.5,
        "developerPostagePaymentAccountBalance": null,
        "merchantName": "Smith",
        "merchantId": "9024324564",
        "merchantPostageAccountPaymentMethod": "OTHER",
        "merchantRatePlan": null,
        "merchantRate": null,
        "shipperPostagePaymentAccountBalance": 1803.41,
        "labelFee": null,
        "parcelTrackingNumber": "0400109205168000244595",
        "weightInOunces": 10,
        "zone": "",
        "packageLengthInInches": 6,
        "packageWidthInInches": 2,
        "packageHeightInInches": 4,
        "packageTypeIndicator": "NonCubic",
        "packageType": "PKG",
        "mailClass": "First-Class Mail",
        "internationalCountryPriceGroup": null,
        "originationAddress": "27 Waterview Dr,Shelton,CT,06484",
        "originZip": "06484",
        "destinationAddress": "625 S Main St,Greenville,SC,29601",
        "destinationZip": "29601250431",
        "destinationCountry": "US",
        "postageDepositAmount": null,
        "creditCardFee": null,
        "refundStatus": null,
        "refundDenialReason": null,
        "printStatus": null,
        "shipmentId": "USPS2200487400865080",
        "refundRequestor": null,
        "externalId": null,
        "adjustmentReason": null,
        "meterNumber": "0001259113",
        "dimensionalWeightOz": null,
        "valueOfGoods": 0,
        "specialServices": [ {
            "specialServiceId": "DelCon",
            "fee": 0,
            "inputParameters": [ {
                "name": "INPUT_VALUE",
                "value": "0"
            } ]
        } ],
        "status": "",
        "description": null,
        "inductionPostalCode": "06484",
        "tracking": {
            "parcelStatus": "Acceptance",
            "statusDate": "2020-08-01T18:54:26.033
        "customMessage1": null,
        "customMessage2": null
    },
    {
        "transactionId": "44397664_a7-4bc2-a17a-02a37ad84a5d",
        "transactionDateTime": "2020-08-02T00:00:00.000+0000",
        "transactionType": "POSTAGE REFUND",
        "developerName": "PB",
        "developerId": "44397664",
        "developerPostagePaymentMethod": null,
        "developerRatePlan": null,
        "developerRateAmount": 3.5,
        "developerPostagePaymentAccountBalance": null,
        "merchantName": "Smith",
        "merchantId": "9024324564",
        "merchantPostageAccountPaymentMethod": "OTHER",
        "merchantRatePlan": null,
        "merchantRate": null,
        "shipperPostagePaymentAccountBalance": 1547.53,
        "labelFee": null,
        "parcelTrackingNumber": "0400109205168000244595",
        "weightInOunces": 10,
        "zone": "",
        "packageLengthInInches": 6,
        "packageWidthInInches": 2,
        "packageHeightInInches": 4,
        "packageTypeIndicator": "NonCubic",
        "packageType": "PKG",
        "mailClass": "First-Class Mail",
        "internationalCountryPriceGroup": null,
        "originationAddress": "27 Waterview Dr,Shelton,CT,06484",
        "originZip": "06484",
        "destinationAddress": "625 S Main St,Greenville,SC,29601",
        "destinationZip": "29601250431",
        "destinationCountry": "US",
        "postageDepositAmount": null,
        "creditCardFee": null,
        "refundStatus": "REQUESTED",
        "refundDenialReason": null,
        "printStatus": null,
        "shipmentId": "USPS2200487400865080",
        "refundRequestor": "Shipper Requested",
        "externalId": null,
        "adjustmentReason": null,
        "meterNumber": "0001259113",
        "dimensionalWeightOz": null,
        "valueOfGoods": 0,
        "specialServices": [ {
            "specialServiceId": "DelCon",
            "fee": 0,
            "inputParameters": [ {
                "name": "INPUT_VALUE",
                "value": "0"
            } ]
        } ],
        "status": "",
        "description": null,
        "inductionPostalCode": "06484",
        "customMessage1": null,
        "customMessage2": null
    },
    {
        "transactionId": "44397664_a7-4bc2-a17a-02a37ad84a5d",
        "transactionDateTime": "2020-08-14T11:19:20.864+0000",
        "transactionType": "POSTAGE REFUND",
        "developerName": "PB",
        "developerId": "44397664",
        "developerPostagePaymentMethod": null,
        "developerRatePlan": null,
        "developerRateAmount": 3.5,
        "developerPostagePaymentAccountBalance": null,
        "merchantName": "Smith",
        "merchantId": "9024324564",
        "merchantPostageAccountPaymentMethod": "OTHER",
        "merchantRatePlan": null,
        "merchantRate": 3.5,
        "shipperPostagePaymentAccountBalance": 1700.97,
        "labelFee": null,
        "parcelTrackingNumber": "0400109205168000244595",
        "weightInOunces": 10,
        "zone": "",
        "packageLengthInInches": 6,
        "packageWidthInInches": 2,
        "packageHeightInInches": 4,
        "packageTypeIndicator": "NonCubic",
        "packageType": "PKG",
        "mailClass": "First-Class Mail",
        "internationalCountryPriceGroup": null,
        "originationAddress": "27 Waterview Dr,Shelton,CT,06484",
        "originZip": "06484",
        "destinationAddress": "625 S Main St,Greenville,SC,29601",
        "destinationZip": "29601250431",
        "destinationCountry": "US",
        "postageDepositAmount": null,
        "creditCardFee": null,
        "refundStatus": "ACCEPTED",
        "refundDenialReason": null,
        "printStatus": null,
        "shipmentId": "USPS2200487400865080",
        "refundRequestor": "Shipper Requested",
        "externalId": null,
        "adjustmentReason": null,
        "meterNumber": "0001259113",
        "dimensionalWeightOz": null,
        "valueOfGoods": 0,
        "specialServices": [ {
            "specialServiceId": "DelCon",
            "fee": 0,
            "inputParameters": [ {
                "name": "INPUT_VALUE",
                "value": "0"
            } ]
        } ],
        "status": "",
        "description": null,
        "inductionPostalCode": "06484",
        "customMessage1": null,
        "customMessage2": null
    }, ... ],
    "searchCriteria": {
        "developerId": "44397664",
        "fromDate": "2020-08-01T00:00:00.000+0000",
        "toDate": "2020-08-30T23:59:59.000+0000"
    },
    "last": false,
    "totalElements": 27,
    "totalPages": 2,
    "first": true,
    "numberOfElements": 20,
    "sort": [ {
        "direction": "ASC",
        "property": "transactionDateTime",
        "ignoreCase": false,
        "nullHandling": "NATIVE",
        "descending": false,
        "ascending": true
    } ],
    "size": 20,
    "number": 0
}

v2.0 Transaction Reports Sample Request

Sample v2.0 Transaction Reports Request
curl -X GET .../v2/ledger/developers/44397664/transactions/reports?fromDate=2019-03-01T00:00:00Z&toDate=2019-03-31T23:59:59Z \
-H "Authorization: Bearer <oauth_token>" \
-H "Accept-Language:en-US" \
-H "X-PB-UnifiedErrorStructure: true"

The response below shows three transactions for the same shipment:

  • The printing of the label
  • The request for a refund
  • The approval of the refund request

The transactionType field shows the type of transaction.

Sample v2.0 Transaction Reports Response
{
    "content": [ {
        "transactionId": "44397664_a7-4bc2-a17a-02a37ad84a5d",
        "transactionDateTime": "2019-03-01T02:30:04.025+0000",
        "transactionType": "POSTAGE PRINT",
        "developerName": "PB",
        "developerId": "44397664",
        "developerPostagePaymentMethod": null,
        "developerRatePlan": null,
        "developerRateAmount": 3.5,
        "developerPostagePaymentAccountBalance": null,
        "merchantName": "Smith",
        "merchantId": "9024324564",
        "merchantPostageAccountPaymentMethod": "OTHER",
        "merchantRatePlan": null,
        "merchantRate": null,
        "shipperPostagePaymentAccountBalance": 1803.41,
        "labelFee": null,
        "parcelTrackingNumber": "0400109205168000244595",
        "weightInOunces": 10,
        "zone": "",
        "packageLengthInInches": 6,
        "packageWidthInInches": 2,
        "packageHeightInInches": 4,
        "packageTypeIndicator": "NonCubic",
        "packageType": "PKG",
        "mailClass": "First-Class Mail",
        "internationalCountryPriceGroup": null,
        "originationAddress": "27 Waterview Dr,Shelton,CT,06484",
        "originZip": "06484",
        "destinationAddress": "625 S Main St,Greenville,SC,29601",
        "destinationZip": "29601250431",
        "destinationCountry": "US",
        "postageDepositAmount": null,
        "creditCardFee": null,
        "refundStatus": null,
        "refundDenialReason": null,
        "printStatus": null,
        "shipmentId": "USPS2200487400865080",
        "refundRequestor": null,
        "externalId": null,
        "adjustmentReason": null,
        "meterNumber": "0001259113"
    },
    {
        "transactionId": "44397664_a7-4bc2-a17a-02a37ad84a5d",
        "transactionDateTime": "2019-03-02T00:00:00.000+0000",
        "transactionType": "POSTAGE REFUND",
        "developerName": "PB",
        "developerId": "44397664",
        "developerPostagePaymentMethod": null,
        "developerRatePlan": null,
        "developerRateAmount": 3.5,
        "developerPostagePaymentAccountBalance": null,
        "merchantName": "Smith",
        "merchantId": "9024324564",
        "merchantPostageAccountPaymentMethod": "OTHER",
        "merchantRatePlan": null,
        "merchantRate": null,
        "shipperPostagePaymentAccountBalance": 1547.53,
        "labelFee": null,
        "parcelTrackingNumber": "0400109205168000244595",
        "weightInOunces": 10,
        "zone": "",
        "packageLengthInInches": 6,
        "packageWidthInInches": 2,
        "packageHeightInInches": 4,
        "packageTypeIndicator": "NonCubic",
        "packageType": "PKG",
        "mailClass": "First-Class Mail",
        "internationalCountryPriceGroup": null,
        "originationAddress": "27 Waterview Dr,Shelton,CT,06484",
        "originZip": "06484",
        "destinationAddress": "625 S Main St,Greenville,SC,29601",
        "destinationZip": "29601250431",
        "destinationCountry": "US",
        "postageDepositAmount": null,
        "creditCardFee": null,
        "refundStatus": "REQUESTED",
        "refundDenialReason": null,
        "printStatus": null,
        "shipmentId": "USPS2200487400865080",
        "refundRequestor": "Shipper Requested",
        "externalId": null,
        "adjustmentReason": null,
        "meterNumber": "0001259113"
    },
    {
        "transactionId": "44397664_a7-4bc2-a17a-02a37ad84a5d",
        "transactionDateTime": "2019-03-14T11:19:20.864+0000",
        "transactionType": "POSTAGE REFUND",
        "developerName": "PB",
        "developerId": "44397664",
        "developerPostagePaymentMethod": null,
        "developerRatePlan": null,
        "developerRateAmount": 3.5,
        "developerPostagePaymentAccountBalance": null,
        "merchantName": "Smith",
        "merchantId": "9024324564",
        "merchantPostageAccountPaymentMethod": "OTHER",
        "merchantRatePlan": null,
        "merchantRate": 3.5,
        "shipperPostagePaymentAccountBalance": 1700.97,
        "labelFee": null,
        "parcelTrackingNumber": "0400109205168000244595",
        "weightInOunces": 10,
        "zone": "",
        "packageLengthInInches": 6,
        "packageWidthInInches": 2,
        "packageHeightInInches": 4,
        "packageTypeIndicator": "NonCubic",
        "packageType": "PKG",
        "mailClass": "First-Class Mail",
        "internationalCountryPriceGroup": null,
        "originationAddress": "27 Waterview Dr,Shelton,CT,06484",
        "originZip": "06484",
        "destinationAddress": "625 S Main St,Greenville,SC,29601",
        "destinationZip": "29601250431",
        "destinationCountry": "US",
        "postageDepositAmount": null,
        "creditCardFee": null,
        "refundStatus": "ACCEPTED",
        "refundDenialReason": null,
        "printStatus": null,
        "shipmentId": "USPS2200487400865080",
        "refundRequestor": "Shipper Requested",
        "externalId": null,
        "adjustmentReason": null,
        "meterNumber": "0001259113"
    }, ... ],
    "searchCriteria": {
        "developerId": "44397664",
        "fromDate": "2019-03-01T00:13:49.313+0000",
        "toDate": "2019-04-01T00:13:49.313+0000"
    },
    "last": false,
    "totalPages": 2,
    "totalElements": 27,
    "sort": [ {
        "direction": "ASC",
        "property": "transactionDateTime",
        "ignoreCase": false,
        "nullHandling": "NATIVE",
        "descending": false,
        "ascending": true
    } ],
    "numberOfElements": 20,
    "first": true,
    "size": 20,
    "number": 0
}

Error Codes

The following error codes are specific to Transaction Reports. For a list of all Shipping APIs error codes, see Error Codes.

Error Code Error Message Solution
invalid.date.time Date range can not exceed 3 months. From date: ___ To date: ___ See Query Parameters for allowed range.
invalid.date.time Provided Date/time ___ is invalid, valid format is YYYY-MM-DDThh:mm:ss.sZ See Query Parameters for correct format.