RECENT UPDATES:
15-May-2026 | v7.10.7 | All new article

Change Log

  • 15-May-2026 | v7.10.7 | All new article

Contributors:

{
  "id": 2418,
  "name": "Adam Wilson",
  "url": "/adam-wilson"
}
Adam Wilson - Logo Pogo

CRM Order Trash API

Retrieve CRM Orders in trash via the public API endpoint using "where" filtering.

GET CRM Order Trash List

Retrieves a list of Orders Trashed as a JSON response based on your provided query parameters.

/api/v2/admin/orders/trash

Data / Response:

{
    "Where" : {},
    "Order_By" : "Id",
    "Semantic_Query": "string",
    "Min_Score": 0.0,
    "Offset" : 0,
    "Limit" : 100,
}
{
  "Items": [
    {
      "MovedToTrashDateTime": "2026-05-15T07:47:32.518Z",
      "Id": 0,
      "AWBNumber": "string",
      "CurrencyCountry": "string",
      "Currency": "string",
      "Country": "string",
      "InvoiceDate": "2026-05-15T07:47:32.518Z",
      "InvoiceNumber": 0,
      "VATInvoiceNumber": 0,
      "InvoiceCode": "string",
      "IsDeleted": true,
      "IsRecurring": true,
      "MainOrderId": 0,
      "MemberId": 0,
      "OrderName": "string",
      "PaymentState": "None",
      "StatusId": 0,
      "TotalCost": 0,
      "CreatedDateTime": "2026-05-15T07:47:32.518Z",
      "HasSubscriptions": true,
      "HasPaidSubscription": true,
      "TrackingURL": "string",
      "TransactionId": "string",
      "AmountPaid": 0,
      "AmountPending": 0,
      "OrderCaseType": "FormCase",
      "StatusShort": {
        "Id": 0,
        "Name": "string",
        "Type": "string"
      },
      "Discount": {
        "Code": "string",
        "Cost": 0
      },
      "GiftVoucher": {
        "Name": "string",
        "Cost": 0
      },
      "Tax": {
        "Code": "string",
        "Rate": 0
      },
      "ShippingInfo": {
        "Name": "string",
        "Cost": 0,
        "Address": "string",
        "City": "string",
        "State": "string",
        "Zipcode": "string",
        "Country": "string"
      },
      "Member": {
        "Id": 0,
        "Email": "string",
        "FirstName": "string",
        "LastName": "string"
      },
      "MemberSnapshot": {
        "Email": "string",
        "FirstName": "string",
        "LastName": "string",
        "BillingAddress": "string",
        "BillingCity": "string",
        "BillingState": "string",
        "BillingZipCode": "string",
        "BillingCountry": "string",
        "ShippingAddress": "string",
        "ShippingCity": "string",
        "ShippingState": "string",
        "ShippingZipCode": "string",
        "ShippingCountry": "string"
      },
      "OrderLines": [
        {
          "Id": 0,
          "EntityType": "Form",
          "ProductId": 0,
          "ModuleId": 0,
          "ProductName": "string",
          "Quantity": 0,
          "TaxRate": 0,
          "UnitPrice": 0,
          "TotalPrice": 0,
          "FileName": "string",
          "IsDownload": true,
          "Attributes": [
            {
              "AttributeId": 0,
              "OptionsIds": [
                "string"
              ]
            }
          ]
        }
      ],
      "Payments": [
        {
          "Id": 0,
          "Amount": 0,
          "AmountCaptured": 0,
          "GatewayReason": "string",
          "TransactionId": "string",
          "Status": "string",
          "PaymentType": "CreditCard",
          "PaymentGatewayType": "stripe",
          "Notes": "string",
          "CreatedDateTime": "2026-05-15T07:47:32.518Z"
        }
      ],
      "CustomCrmGroups": {
        "<GroupAlias1>": {
          "<FieldAlias1>": "<value>",
          "<FieldAlias2>": false,
          "<FieldAlias3>": 0
        }
      }
    }
  ],
  "TotalItemsCount": 0
}

DELETE CRM Order Trash Delete

Deletes a single Order from the Trash based on the ID passed in the endpoint URL.

/api/v2/admin/orders/trash/{id}

Data / Response:

N/A
Status 204

PUT CRM Order Trash Restore

Restores a single Order from Trash based on the form data provided.

/api/v2/admin/orders/trash/{id}/restore

Data / Response:

N/A
Status 200 OK