Update async orders

Update an Async order under a specific Account


🚧

Closed Release:

This feature is available for a limited number of customers with specific use cases only.

This endpoint in the Tango API is designed to allow updates to asynchronous orders that have already been created.

Use the following endpoint to update async orders placed under your platform:

EndpointPurpose
PATCH {URI}/asyncOrders/customers/{customerIdentifier}/ accounts/{accountIdentifier}/{externalRefID}Update an async order under a specific Account

Benefits

  • Ability to update or correct metadata like campaign names, purchase order numbers, or notes associated with the order, which is useful for tracking and reporting.
  • Ensures accurate records for compliance, auditing, and reconciliation.

Use case

Acme Health offers a wellness program, where patients who complete annual check-ups receive a $25 digital gift card. Orders are created asynchronously in batches at the end of each week. An order was made, but it had incorrect metadata.

The following path parameter indicates which specific async order the request is acting upon:

Path paramsData typeRequirementDescription
customerIdentifierstringrequiredSpecify the customer to be queried
accountIdentifierstringrequiredSpecify the account to be queried.
externalRefIDstringrequiredAn idempotent field that can be used for your order cross-reference and to prevent accidental order duplication. This value is returned in the order response, order details, and order history. The string has a maximum of 100 alphanumeric characters.

The following body params can be modified using PATCH endpoint:

Body paramsData typeRequirementDescription
campaignstringoptionalThe campaign field can be used to categorize a specific order administratively. Must be between 0 and 1024 characters in length.
purchaseOrderNumberstringoptionalThe Purchase Order Number associated with this order.
notesstringoptionalOrder notes up to 150 characters.

The following example shows the payload for when you use this endpoint with a successful response:

{
  "externalRefID": "string",
  "status": "string",
  "totalLineItems": 0,
  "createdAt": "2025-10-23T21:52:43.041Z",
  "failedLineItems": [
    {
      "lineItemId": "string",
      "externalRefLineItemID": "string",
      "utid": "string",
      "errors": [
        {
          "field": "string",
          "errorCodeValue": 0,
          "errorCodeName": "string",
          "message": "string"
        }
      ]
    }
  ],
  "duplicateLineItemRefIds": {
    "additionalProp": 0
  }
}

The possible response codes for this endpoint are as follows. For details, see i18nkey codes and their error messages:

Response codeMeaning
200The request was successful.
400The server could not understand the request due to invalid syntax.
401Authentication is required and has either not been provided or failed.
429Exceeded the allowable TPS rate limit. It indicates that the user has sent too many requests in a given amount of time, and the server is rate-limiting further requests
500Something went wrong on the server, but the server cannot be more specific about the exact problem.
503The server is currently unable to handle the request due to temporary overload or maintenance.

© 2025 Tango API are provided by Tango, a division of BHN, Inc.