Create Order Tracking Input

June 5, 2026 ยท View on GitHub

Input structure for the method CreateOrderTrackingAsync

Structure

CreateOrderTrackingInput

Fields

NameTypeTagsDescriptionGetterSetter
IdStringRequiredThe ID of the order that the tracking information is associated with.

Constraints: Minimum Length: 1, Maximum Length: 36, Pattern: ^[A-Z0-9]+$
String getId()setId(String id)
ContentTypeStringRequired, ConstantValue: "application/json"String getContentType()setContentType(String contentType)
BodyOrderTrackerRequestRequired-OrderTrackerRequest getBody()setBody(OrderTrackerRequest body)
PaypalAuthAssertionStringOptionalAn API-caller-provided JSON Web Token (JWT) assertion that identifies the merchant. For details, see PayPal-Auth-Assertion.String getPaypalAuthAssertion()setPaypalAuthAssertion(String paypalAuthAssertion)

Example

import com.paypal.sdk.models.CreateOrderTrackingInput;
import com.paypal.sdk.models.OrderTrackerItem;
import com.paypal.sdk.models.OrderTrackerRequest;
import com.paypal.sdk.models.ShipmentCarrier;
import java.util.Arrays;

CreateOrderTrackingInput createOrderTrackingInput = new CreateOrderTrackingInput.Builder(
    "id0",
    "application/json",
    new OrderTrackerRequest.Builder(
        "capture_id8"
    )
    .trackingNumber("tracking_number4")
    .carrier(ShipmentCarrier.PIGGYSHIP)
    .carrierNameOther("carrier_name_other8")
    .notifyPayer(false)
    .items(Arrays.asList(
            new OrderTrackerItem.Builder()
                .name("name8")
                .quantity("quantity4")
                .sku("sku6")
                .url("url2")
                .imageUrl("image_url4")
                .build(),
            new OrderTrackerItem.Builder()
                .name("name8")
                .quantity("quantity4")
                .sku("sku6")
                .url("url2")
                .imageUrl("image_url4")
                .build(),
            new OrderTrackerItem.Builder()
                .name("name8")
                .quantity("quantity4")
                .sku("sku6")
                .url("url2")
                .imageUrl("image_url4")
                .build()
        ))
    .build()
)
.paypalAuthAssertion("PayPal-Auth-Assertion0")
.build();