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 The Local Pickup Delivery Option Generator API exposes the following [targets](/docs/apps/build/app-extensions/configure-app-extensions#targets): | Target | Output type | Description | | ------ | ----------- | ----------- | | `purchase.local-pickup-delivery-option-generator.run` | [FunctionRunResult](#functionrunresult) | Outputs the list of operations to apply for local pickup delivery option generation | ## Input The `Input` object is the complete schema that your function can receive as [input](/docs/apps/build/functions/input-output#input). ### Example The following example shows an input query:

The following example shows the resulting input to the query:

## FunctionRunResult The [`FunctionRunResult`](/docs/api/functions/reference/local-pickup-delivery-option-generator/graphql/functionrunresult) object is the expected [output](/docs/apps/build/functions/input-output#output) for the `purchase.local-pickup-delivery-option-generator.run` target. ### Example The following function returns local pickup location delivery options: