1
0
Files
PayPal-PHP-Server-SDK/doc/models/order-tracker-request.md
Dani Kirby 6b43a4225b Beta Release 0.5.0 (#3)
* Automated commit message

* Automated commit message

* Automated commit message

* Automated commit message

---------

Co-authored-by: PayPalServerSDKs <server-sdks@paypal.com>
2024-09-09 12:10:34 -05:00

2.7 KiB

Order Tracker Request

The tracking details of an order.

Structure

OrderTrackerRequest

Fields

Name Type Tags Description Getter Setter
trackingNumber ?string Optional The tracking number for the shipment. This property supports Unicode.
Constraints: Minimum Length: 1, Maximum Length: 64
getTrackingNumber(): ?string setTrackingNumber(?string trackingNumber): void
carrier ?string(ShipmentCarrier) Optional The carrier for the shipment. Some carriers have a global version as well as local subsidiaries. The subsidiaries are repeated over many countries and might also have an entry in the global list. Choose the carrier for your country. If the carrier is not available for your country, choose the global version of the carrier. If your carrier name is not in the list, set carrier to OTHER and set carrier name in carrier_name_other. For allowed values, see Carriers.
Constraints: Minimum Length: 1, Maximum Length: 64, Pattern: ^[0-9A-Z_]+$
getCarrier(): ?string setCarrier(?string carrier): void
carrierNameOther ?string Optional The name of the carrier for the shipment. Provide this value only if the carrier parameter is OTHER. This property supports Unicode.
Constraints: Minimum Length: 1, Maximum Length: 64
getCarrierNameOther(): ?string setCarrierNameOther(?string carrierNameOther): void
captureId string Required The PayPal capture ID.
Constraints: Minimum Length: 1, Maximum Length: 50, Pattern: ^[a-zA-Z0-9]*$
getCaptureId(): string setCaptureId(string captureId): void
notifyPayer ?bool Optional If true, sends an email notification to the payer of the PayPal transaction. The email contains the tracking information that was uploaded through the API.
Default: false
getNotifyPayer(): ?bool setNotifyPayer(?bool notifyPayer): void
items ?(OrderTrackerItem[]) Optional An array of details of items in the shipment. getItems(): ?array setItems(?array items): void

Example (as JSON)

{
  "capture_id": "capture_id0",
  "notify_payer": false,
  "tracking_number": "tracking_number6",
  "carrier": "SNTGLOBAL_API",
  "carrier_name_other": "carrier_name_other0",
  "items": [
    {
      "name": "name8",
      "quantity": "quantity4",
      "sku": "sku6",
      "url": "url2",
      "image_url": "image_url4"
    },
    {
      "name": "name8",
      "quantity": "quantity4",
      "sku": "sku6",
      "url": "url2",
      "image_url": "image_url4"
    }
  ]
}