Open API v2 / CRM & Orders / CRM Orders Trash

CRM Orders Trash

Every request needs a bearer token: Authorization: Bearer <token>. Base URL https://your-site.webinone.com. New to field types? See the type reference.

GET/api/v2/admin/orders/trash#

Retrieves a list of trashed orders by using a "where" filtering

Parameters
Wherestring · query
JSON filter expression. Combine operators ($eq, $contains, $gt, $in, …) with $and / $or.
Order_Bystring · query
Sort field. Prefix with - for descending; comma-separate for tie-breakers.
Semantic_Querystring · query
Natural-language search, ranked by relevance.
Min_Scorenumber · query
Lowest relevance score to include when using Semantic_Query.
Offsetinteger · query
Number of items to skip before returning results. Defaults to 0.
Limitinteger · query
Maximum number of items to return. Defaults to 100.
Response
MovedToTrashDateTimestring · date-time
Moved to trash timestamp (ISO 8601).
Idinteger
Unique identifier assigned by the platform.
AWBNumberstring · nullable
The Air Waybill or shipment tracking number from the freight provider, preserved on the trashed order.
CurrencyCountrystring · nullable
The currency and country pair used for payment processing on this order.
Currencystring · nullable
Currency code (e.g. USD).
Countrystring · nullable
Country (it is recommended to use ISO codes).
InvoiceDatestring · date-time
The date and time the invoice was generated for this order.
InvoiceNumberinteger · nullable
The invoice number assigned incrementally to this order.
VATInvoiceNumberinteger · nullable
The VAT invoice number assigned to this order for tax reporting.
InvoiceCodestring · nullable
The formatted invoice identifier for this order.
IsDeletedboolean
Whether the order is soft-deleted.
IsRecurringboolean
Whether the order is a recurring payment, such as an auto-renewal or subscription. True means the system created it automatically from a previous order. False means the customer placed it directly.
MainOrderIdinteger
Identifier of the related main order.
MemberIdinteger
Identifier of the related member.
OrderNamestring · nullable
The order name, usually built from the form used to place it plus the order date.
PaymentStateenum
The current payment status of the order. Possible values: None, Succeeded, RequiresCapture, RequiresAction, Canceled, Processing, Pending.Possible values: NoneSucceededRequiresCaptureRequiresActionCanceledProcessingPending
StatusIdinteger
Identifier of the related status.
TotalCostnumber
The total amount of the order.
CreatedDateTimestring · date-time
When the record was created (ISO 8601). Read-only.
HasSubscriptionsboolean
Whether the order contains at least one subscription product, such as timed access to a service.
HasPaidSubscriptionboolean
Whether a subscription in this order was successfully paid for.
TrackingURLstring · nullable
The consignment tracking URL from the freight provider, for use in order and invoice emails.
TransactionIdstring · nullable
Identifier of the related transaction.
AmountPaidnumber
Identifier of the related amount pa.
AmountPendingnumber
The amount still awaiting confirmation, such as an unconfirmed bank transfer or a card hold.
OrderCaseTypeenum
The category of the order for internal processing. Possible values: FormCase, EventCase, None.Possible values: FormCaseEventCaseNone
StatusShortobject
A compact object that decodes the numeric StatusId into a readable status name and technical key.
Discountobject
Discount amount (promotional codes, promotions).
GiftVoucherobject
The gift voucher applied to the order, including the amount paid with it.
Taxobject
The tax applied to the order, which may be included in the price or added on top depending on the region.
ShippingInfoobject
The logistics and delivery details for the order, including recipient name, shipping cost, and address.
Memberobject
Basic details of the customer who placed the order.
MemberSnapshotobject
A frozen copy of the customer's details as they were when the order was placed.
OrderLinesarray of objects
The list of product line items in the order.
Paymentsarray of objects
The transaction history for the order, tracking each payment attempt with its details and date.
CustomCrmGroupsarray of objects
Custom CRM metadata attached to the order, used to group orders or customers by tags such as VIP or Black Friday Hunter.
curl "https://your-site.webinone.com/api/v2/admin/orders/trash" \
  -H "Authorization: Bearer <token>"
Response · 200
{
  "Items": [
    {
      "MovedToTrashDateTime": "2026-07-01T00: 00: 00Z",
      "Id": 1,
      "AWBNumber": "string",
      "CurrencyCountry": "USD",
      "Currency": "USD",
      "Country": "string",
      "InvoiceDate": "2026-07-01T00: 00: 00Z",
      "InvoiceNumber": 0,
      "VATInvoiceNumber": 0,
      "InvoiceCode": "string",
      "IsDeleted": false,
      "IsRecurring": false,
      "MainOrderId": 1,
      "MemberId": 1,
      "OrderName": "Example",
      "PaymentState": "None",
      "StatusId": 1,
      "TotalCost": 0,
      "CreatedDateTime": "2026-07-01T00: 00: 00Z",
      "HasSubscriptions": false,
      "HasPaidSubscription": false,
      "TrackingURL": "https://example.com",
      "TransactionId": "string",
      "AmountPaid": 1,
      "AmountPending": 0,
      "OrderCaseType": "FormCase",
      "StatusShort": {
        "Id": 1,
        "Name": "Example",
        "Type": "string"
      },
      "Discount": {
        "Code": "string",
        "Cost": 0
      },
      "GiftVoucher": {
        "Name": "Example",
        "Cost": 0
      },
      "Tax": {
        "Code": "string",
        "Rate": 0
      },
      "ShippingInfo": {
        "Name": "Example",
        "Cost": 0,
        "Address": "string",
        "City": "string",
        "State": "string",
        "Zipcode": "string",
        "Country": "string"
      },
      "Member": {
        "Id": 1,
        "Email": "user@example.com",
        "FirstName": "Example",
        "LastName": "Example"
      },
      "MemberSnapshot": {
        "Email": "user@example.com",
        "FirstName": "Example",
        "LastName": "Example",
        "BillingAddress": "string",
        "BillingCity": "string",
        "BillingState": "string",
        "BillingZipCode": "string",
        "BillingCountry": "string"
      },
      "OrderLines": [
        {
          "Id": 1,
          "EntityType": "Form",
          "ProductId": 1,
          "ModuleId": 1,
          "ProductName": "Example",
          "Quantity": 0,
          "TaxRate": 0,
          "UnitPrice": 0,
          "TotalPrice": 0,
          "FileName": "Example",
          "IsDownload": false,
          "Attributes": [
            {
              "AttributeId": 1,
              "OptionsIds": null
            }
          ]
        }
      ],
      "Payments": [
        {
          "Id": 1,
          "Amount": 0,
          "AmountCaptured": 0,
          "GatewayReason": "string",
          "TransactionId": "string",
          "Status": "string",
          "PaymentType": "CreditCard",
          "PaymentGatewayType": "stripe",
          "Notes": "string",
          "CreatedDateTime": "2026-07-01T00: 00: 00Z"
        }
      ],
      "CustomCrmGroups": [
        {
          "Alias": "string",
          "Fields": [
            {
              "Alias": "string",
              "Value": "string",
              "Type": "DateTime"
            }
          ]
        }
      ]
    }
  ],
  "TotalItemsCount": 0
}
DELETE/api/v2/admin/orders/trash/{id}#

Permanently deletes an order from trash

Parameters
idinteger · pathrequired
Order id to permanently delete.
curl -X DELETE "https://your-site.webinone.com/api/v2/admin/orders/trash/1" \
  -H "Authorization: Bearer <token>"
PUT/api/v2/admin/orders/trash/{id}/restore#

Restores an order from trash

Parameters
idinteger · pathrequired
Order id to restore.
curl -X PUT "https://your-site.webinone.com/api/v2/admin/orders/trash/1/restore" \
  -H "Authorization: Bearer <token>"