Local Pickup Delivery Option Generator API reference
The Local Pickup Delivery Option Generator API enables you to generate custom local pickup options available to buyers during checkout. The API includes two key objects: Input
and FunctionResult
.
Extension targets
Anchor link to section titled "Extension targets"The Local Pickup Delivery Option Generator API exposes the following targets:
Target | Output type | Description |
---|---|---|
purchase.local-pickup-delivery-option-generator.run |
FunctionRunResult | Outputs the list of operations to apply for local pickup delivery option generation |
The Input
object is the complete schema that your function can receive as input.
The following example shows an input query:
The following example shows the resulting input to the query:
FunctionRunResult
Anchor link to section titled "FunctionRunResult"The FunctionRunResult
object is the expected output for the purchase.local-pickup-delivery-option-generator.run
target.
The following function returns local pickup location delivery options: