Open API v2 / CRM & Orders / CRM Order Lines

CRM Order Lines

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

POST/api/v2/admin/orders/{id}/order-lines#

Creates a new order line

Parameters
idinteger · pathrequired
Resource identifier.
Body parameters
ProductIdintegerrequired
Unique system identifier of the product. Used to synchronize inventory balances.
ProductNamestring · nullable
Product name that will be displayed in the order.
Quantityintegerrequired
The number of units of a product that the customer purchases.
UnitPricenumber
Price per unit of product at the time of order placement.
Attributesarray of objects
An array of additional characteristics (variations) of the selected product.
Response
Idinteger
'Member' a unique user identifier in the system. Read-only.
EntityTypeenum
Entity type. Possible values: Form, ModuleItem, SecureZoneSubscription.Possible values: FormModuleItemSecureZoneSubscription
ProductIdinteger
Unique system identifier of the product. Used to synchronize inventory balances.
ModuleIdinteger
The ID of the module or plugin responsible for this product type.
ProductNamestring · nullable
Product name that will be displayed in the order.
Quantityinteger
The number of units of a product that the customer purchases.
TaxRatenumber
The percentage tax rate that applies to this specific product.
UnitPricenumber
Price per unit of product at the time of order placement.
TotalPricenumber
Total cost of the linece per unit of product at the time of order placement.
FileNamestring · nullable
File name, if this line applies to a digital product.
IsDownloadboolean
A flag indicating whether this item is a downloadable file.
Attributesarray of objects
An array of additional characteristics (variations) of the selected product.
curl -X POST "https://your-site.webinone.com/api/v2/admin/orders/1/order-lines" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{"ProductId":1,"ProductName":"Example","Quantity":0,"UnitPrice":0,"Attributes":[{"AttributeId":1,"OptionsIds":["string"]}]}'
Response · 200
{
  "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": [
        "string"
      ]
    }
  ]
}
GET/api/v2/admin/orders/order-lines/{id}#

Retrieves a single order line

Parameters
idinteger · pathrequired
Order line id.
Response
Idinteger
'Member' a unique user identifier in the system. Read-only.
EntityTypeenum
Entity type. Possible values: Form, ModuleItem, SecureZoneSubscription.Possible values: FormModuleItemSecureZoneSubscription
ProductIdinteger
Unique system identifier of the product. Used to synchronize inventory balances.
ModuleIdinteger
The ID of the module or plugin responsible for this product type.
ProductNamestring · nullable
Product name that will be displayed in the order.
Quantityinteger
The number of units of a product that the customer purchases.
TaxRatenumber
The percentage tax rate that applies to this specific product.
UnitPricenumber
Price per unit of product at the time of order placement.
TotalPricenumber
Total cost of the linece per unit of product at the time of order placement.
FileNamestring · nullable
File name, if this line applies to a digital product.
IsDownloadboolean
A flag indicating whether this item is a downloadable file.
Attributesarray of objects
An array of additional characteristics (variations) of the selected product.
curl "https://your-site.webinone.com/api/v2/admin/orders/order-lines/1" \
  -H "Authorization: Bearer <token>"
Response · 200
{
  "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": [
        "string"
      ]
    }
  ]
}
PUT/api/v2/admin/orders/order-lines/{id}#

Updates an existing order line

Parameters
idinteger · pathrequired
Resource identifier.
Body parameters
ProductIdstringrequired
Unique system identifier of the product. Used to synchronize inventory balances.
ProductNamestring · nullable
Product name that will be displayed in the order.
Quantityinteger
The number of units of a product that the customer purchases.
UnitPricenumber
Price per unit of product at the time of order placement.
Response
Idinteger
'Member' a unique user identifier in the system. Read-only.
AWBNumberstring · nullable
Intended for the Air Waybill (or any other shipment tracking/consignment number) from your freight provider.
CurrencyCountrystring · nullable
The Currency/Country pair used for the payment processing (this field is not editable).
Currencystring · nullable
Order currency code.
Countrystring · nullable
'ShippingInfo' the contact's shipping country as entered during the checkout process.
InvoiceDatestring · date-time
Date-time - the date and time the invoice was generated.
InvoiceNumberinteger · nullable
A number assigned incrementally to each order.
VATInvoiceNumberinteger · nullable
The VAT invoice number assigned to the order for tax reporting.
InvoiceCodestring · nullable
Formatted identifier.
IsDeletedboolean
Soft delete flag for the order.
IsRecurringboolean
Indicates whether this order is a recurring payment (auto-renewal or subscription).
MainOrderIdinteger
Identifier of the related main order.
MemberIdinteger
The CRM Contact who submitted the Order (this field is not editable).
OrderNamestring · nullable
The Order name is generally constructed by the name of the Form used for taking the Order then appended with the Order date.
PaymentStateenum
Current payment status. Possible values: None, Succeeded, RequiresCapture, RequiresAction, Canceled, Processing, Pending.Possible values: NoneSucceededRequiresCaptureRequiresActionCanceledProcessingPending
StatusIdinteger
The current status of the Order. See eCommerce Settings / Manage Status for more details.
TotalCostnumber
The total amount or the Order (this field is not editable).
CreatedDateTimestring · date-time
Date-time - the date and time the Order was created in the CRM (this field is not editable). Read-only.
HasSubscriptionsboolean
Indicates whether the order contains at least one product that is a subscription (for example, access to a service for a month).
HasPaidSubscriptionboolean
Indicates whether this order was successfully paid for as part of a subscription.
TrackingURLstring · nullable
Intended for the URL used for consignment tracking by your freight provider.
TransactionIdstring · nullable
Unique transaction identifier from the payment gateway.
AmountPaidnumber
The amount that has already been actually received by the system. When it equals TotalCost, the order is considered fully paid.
AmountPendingnumber
An amount that is pending (for example, a bank transfer that has not yet been confirmed or a card hold).
OrderCaseTypeenum
Order category for internal processing. Possible values: FormCase, EventCase, None.Possible values: FormCaseEventCaseNone
StatusShortobject
This is a mapping object that decodes the system StatusId.
Discountobject
Discount amount (promotional codes, promotions).
GiftVoucherobject
Amount paid with a gift certificate.
Taxobject
Tax amount. May be included in the price or added on top depending on the region.
ShippingInfoobject
This is an object that contains detailed information about logistics and delivery address.
Memberobject
Contains basic information about the customer who placed the order.
MemberSnapshotobject
A frozen copy of the customer's details as they were when the order was placed, preserved even if the contact later changes.
OrderLinesarray of objects
List of product items in the order.
Paymentsarray of objects
Transaction history for this order. Allows you to track multiple payment attempts (for example, if the first was declined and the second was successful). Contains payment details and dates.
CustomCrmGroupsarray of objects
JSON object for custom CRM metadata. Used to group customers or orders by specific marketing tags (e.g. "VIP", "Black Friday Hunter").
curl -X PUT "https://your-site.webinone.com/api/v2/admin/orders/order-lines/1" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{"ProductId":"string","ProductName":"Example","Quantity":0,"UnitPrice":0}'
Response · 200
{
  "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": [
            "string"
          ]
        }
      ]
    }
  ],
  "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"
        }
      ]
    }
  ]
}
DELETE/api/v2/admin/orders/order-lines/{id}#

Deletes an existing order line

Parameters
idinteger · pathrequired
Existent order line id.
curl -X DELETE "https://your-site.webinone.com/api/v2/admin/orders/order-lines/1" \
  -H "Authorization: Bearer <token>"