---
sourceDocument: Australia Sales and Order Management
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/de-DE/order-management

 Release :

    - australia

ft:locale :

    - de-DE

ft:publication_title :

    - Australia Sales and Order Management

ft:clusterId :

    - omgmt

bundleId :

    - omgmt

workflow :

    - Customer and Industry


---

# Create ATP API calls

# Configure ATP API for the manage order operations agent {#ariaid-title1}

* Freigeben Version: Australia
* 
* Aktualisiert 12. März 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 Minute Lesedauer

Create an Available-to-Promise (ATP) API call that enables the manage order operations agent to check product availability and determine the earliest possible delivery date when customers request expedited
shipping.

## Vorbereitungen

Application scope must be set to Order Exception AI Agents.

Role required: admin

## Warum und wann dieser Vorgang ausgeführt wird

The demo data for the manage order operations agent includes a sample implementation called orderExpeditionCheckDemo as part of the sn_ord_ops_aias.orderExpeditionCheckEP extension point. To enable real-world functionality
such as checking on-hand quantities and delivery dates from external Enterprise Resource Planning (ERP) systems like SAP or Oracle, you should replace the demo data implementation with your custom ATP API.

## Prozedur

1. Log in to the ServiceNow instance.
2. Navigate to AllScripted Extension PointsScripted Extension Points.
3. Search for the sn_ord_ops_aias.orderExpeditionCheckEP scripted extension point in the API Name field.
4. Select sn_ord_ops_aias.orderExpeditionCheckEP to view the sample script included in the demo data.
5. Select the Create implementation related link to create your own implementation of the sn_ord_ops_aias.orderExpeditionCheckEP extension point.
6. On the Script Include orderExpeditionCheckEP form, fill in the fields.  
   For description of the Script Include form fields, see [Script includes](https://www.servicenow.com/docs/access?context=c_ScriptIncludes&version=australia&pubname=australia-api-reference&ft:locale=en-US).
7. Edit the getAvailability function in the script to implementation your own logic for checking product availability and delivery dates.  
   {#create-atp-api-call__table_nvf_4d5_2hc__entry__3}

   | Function name | Description | Input and output |
   |-|-|-|
   | getAvailability | Placeholder function meant to be overridden. This is where you would implement the logic to: * Query external inventory or ERP systems. * Determine if the product is available. * Calculate the earliest delivery date based on requested date and stock levels. {#create-atp-api-call__ul_pz1_rd5_2hc} | Input: The getAvailability function takes order number of the Customer order record and the revised date requested by the customer as input. Output: { "isAvailaible": <true/false -- denotes if stock is available>, "earliestDelivery": <earliest delivery date in yyyy-MM-dd format>, "isError": <true/false -- denotes if there is any failure in the API call>, "errorMessage": <error message string in case of failure> } |
   [ ]

   {#create-atp-api-call__table_nvf_4d5_2hc}
8. Select Update.
9. **Wahlweise:** Validate your implementation by requesting order changes from the Business Portal using the Now Assist Virtual Assistant.  
   For more information, see [Request order changes using Now Assist for Order Management](https://servicenow-prod.fluidtopics.net/MQLtO~ExcdgMYZYJCzWduQ "Request expedited delivery for your order in natural language using the Now Assist Virtual Assistant on Business Portal.").
**Zugehörige Informationen**   

* [Using extension points to extend application functionality](https://www.servicenow.com/docs/access?context=extension-points&version=australia&pubname=australia-api-reference&ft:locale=en-US)
* [Creating and adding a scripted extension point](https://www.servicenow.com/docs/access?context=impl-scripted-ext-pts-base-code&version=australia&pubname=australia-api-reference&ft:locale=en-US)

