Skip to main content
Altcraft Docs LogoAltcraft Docs Logo
User guide iconUser guide
Developer guide iconDeveloper guide
Admin guide iconAdmin guide
English
  • Русский
  • English
Login
    User API documentationAPI interactionMatching
      Profilesarrow
    • Import profileUpdate profileImport multiple profilesUpdate multiple profilesAdd multiple profilesAdd profile to databaseQuick profile importImport profile to RabbitMQGet profile dataUploading profiles to a fileSuspend all database profilesUnsuspend all profiles in a databaseDelete profileSubscription fields functional updateDatabase fields functional updateMerging multiple profilesUnsubscribe profile from resourceProfile splitting
        Subscriptionsarrow
      • Add or edit subscriptionGet all profile subscriptionsGet all subscriptions from multiple profilesGet profile subscriptionDelete profile subscriptionRestore deleted subscriptionSuspend all subscriptionsUnsuspend all suspended subscriptions
        Action historyarrow
      • Get profile action historyGet multiple profiles action history
        Profile relationsarrow
      • Attach relationDetach relationModify relation propertiesOverwrite relation propertiesGet profile relations infoGet profile relations info
      Get data for multiple profiles
      Databasesarrow
    • Get database statisticsUpdate statistics on databaseGet database listGet database informationGet database fieldsDatabase wipe
      Resourcesarrow
    • Get resource statisticsUpdate statistics on resourceGet resources listGet resource informationGet resource subscription fields
      Segmentsarrow
    • Get statistics on resourceUpdate statistics on segmentAdd or remove profileGet profile data in a static segmentCreate segmentUpdate segmentGet segment informationGet segments listDelete segment
      Suppression listsarrow
    • Create suppression listUpdate suppression listGet suppression list infoGet the list of suppression listsDelete suppression listUpload suppression list data to file
        Suppression list actionsarrow
      • Check if email is suppressedAdd email to suppression listAdd multiple emails to suppression listRemove email from suppression listRemove all emails from suppression listCheck if domain is suppressedAdd domain to suppression listAdd multiple domains to suppression listRemove domain from suppression listRemove all domains from suppression listCheck if phone number is suppressedAdd phone number to suppression listAdd multiple phones to suppression listRemove phone number from suppression listRemove all phone numbers from suppression list
      Templates and fragmentsarrow
    • Get templates listGet template infoDelete templateAdd templateUpdate templateChannel object
      Campaignsarrow
    • Get campaign informationGet campaign listActivate campaignComplete campaignDeactivate campaignGet campaign status
      Mailingsarrow
    • Activate mailingDeactivate mailingGet mailing listGet mailing informationGet mailing logClone mailingDelete mailingGet mailing status
        Broadcast mailingsarrow
      • Get broadcasts listGet broadcast informationCreate broadcast mailingUpdate broadcast mailingLaunch a broadcast mailing
        Regular mailingsarrow
      • Get regular mailings listGet regular mailing informationCreate regular mailingUpdate regular mailingLaunch a regular mailing
        Trigger mailingsarrow
      • Get trigger mailings listGet trigger mailing informationCreate trigger mailingUpdate trigger mailingTrigger launch (API call)Profile import + trigger mailing launchTask for bulk trigger launchTask for bulk profiles import + trigger launchBulk trigger launchBulk profiles import + trigger mailing launchClone a trigger mailingData array
      Automation scenariosarrow
    • Engage profile in scenarioImport and engage profile in scenarioBatch import and engage profiles in a scenarioTask for batch import and engaging profiles in the scenarioGet scenarios listActivate scenarioDeactivate scenario
      Loyalty Programsarrow
    • Get profile tier in a loyalty programExport points transactionsExpiring points for a periodGet profile account transactionsGet trigger promotions listAccrue points to a memberRedeem member pointsCommit temporary transactionPreliminary Order CalculationOrder ConfirmationRoll back temporary transactionCancel points transactionGet points account balanceRegister member in a loyalty programRemove member from loyalty program
      Promo codesarrow
    • Import promo codesGet promo code informationActivate promo codeUpdate promo codeAttach promo codeDetach promo codeGet all promo codes
      Goalsarrow
    • Goals and goal values registration
      Application push notificationsarrow
    • Processing and adding a subscriptionAdd app push events
      Marketarrow
      • Market objectsarrow
      • Order data objectProduct data objectSKU data objectCategories arrayCustom fields array
        Ordersarrow
      • Import order and item statusesGet orders listDelete orderGet order statusUpdate order line status
        Products and SKUarrow
      • Import products, SKUs and categoriesImport SKUs and categoriesGet products listGet SKUs listDelete productsDelete SKU
      Analytic reportsarrow
    • Get summary reportGet soft bounces reportGet undeliveries report
      SendersDevarrow
    • Get senders list
        Virtual senders (Smart accounts only)arrow
      • Get virtual senders listGet virtual sender informationClone virtual senderCreate virtual senderUpdate virtual senderDelete virtual sender
      External datatables queriesarrow
      • Segmentation queriesarrow
      • Add segmentation queryUpdate segmentation queryGet segmentation query informationGet segmentation queries listDelete segmentation query
        Template queriesarrow
      • Add template queryUpdate template queryGet template query informationGet template queries listDelete template query
      Objectsarrow
    • AKMTA objectContent objectEmail rule objectFile objectProfile data objectSMS rule objectSender objectSender typesStart schedule objectSubscription objectTrigger types
      Miscellaneousarrow
    • Upload fileGet message web versionPush providersDeduplication of requestsHow to send API request with RabbitMQList of gender identificationsObtain valid values for fields: browsers, devices, tz, oses, languages
    Importing the API collection in PostmanList of API endpoints
      SDKarrow
      • mSDKarrow
        • Androidarrow
        • Quick StartSDK FunctionalitySDK ConfigurationPublic SDK API
            Provider configuration androidarrow
          • Firebase Cloud MessagingHuawei Mobile ServicesRuStore
          iOSarrow
        • Quick StartSDK FunctionalitySDK ConfigurationPublic SDK API
            Provider configurationarrow
          • Apple Push Notification ServiceFirebase Cloud MessagingHuawei Mobile Services
          React Native (Android/iOS)arrow
        • Quick StartSDK ConfigurationSDK FunctionalityPublic SDK APIProvider setup
        Managing JWT and Role Token
  • Market
  • Market objects
  • Order data object

Order data object

Description​

Order data object is used in order import requests.

ParameterTypeExampleRequiredDescription
external_idstring"123456"YesOrder additional ID
matchingstring"email"NoSubscriber search mode.
By default – email

For each type of matching, certain fields must be passed in the request body. You can learn more about these fields here.
endpointstring"website"YesTouchpoint ID
tagsarray
[
"one",
"two"
]
NoList of tags
statusstring"new"
"delivered"
"paid"
"canceled"
"part_refunded"
YesOrder status ID
delivery_coststring"200"NoCost of delivery
total_pricestring"3000"YesTotal cost of the order.

It consists of the cost of each item in the order and the cost of delivery.
currencystring"USD"YesThe currency that is used to indicate the cost of the order.

Currencies are configured in the platform interface: Market —> Settings —> Other. If the request passes a currency that is not set in the platform, an error will occur.
create_timestring"2006-01-25"
"2006-01-25 15:04:05"
NoOrder creation date (RFC 3339 format)
update_timestring"2006-01-25"
"2006-01-25 15:04:05"
NoOrder update date (RFC 3339 format)
custom_fieldsobject
{
"order_field_id_1": "data",
"order_field_id_2": 123
}
NoCustom order fields
"[field ID]": "[field value]"
regionstring"region_external_id"NoRegion additional ID.
You can create a region and get its identifier in the platform interface: Market —> Settings.
linesarray
[
{
"external_id": "7777",
"product": "product_external_id",
"base_price_per_item": "600",
"min_price_per_item": "300",
"final_price_per_item": "500",
"count": 5
}
]
YesOrder item data. At least one position.

See below.

Object structure​

  • JSON
  • XML
[
{
"external_id": "123456",
"matching": "email",
"email": "johndoe@example.com",
"endpoint": "endpoint_external_id",
"tags": [
"one",
"two"
],
"status": "new",
"delivery_cost": "100",
"total_price": "1000",
"currency": "USD",
"custom_fields": {
"order_field_id_1": "data",
"order_field_id_2": 123
},
"region": "region_external_id",
"lines": [
{
"external_id": "1234000",
"status": "new",
"sku": "sku_external_id",
"base_price_per_item": "900",
"min_price_per_item": "900",
"final_price_per_item": "900",
"count": 5,
"custom_fields": {
"line_field_id_2": "data",
"line_field_id_1": 123
}
}
]
}
]
<xml>
<row>
<external_id>123456</external_id>
<matching>email</matching>
<email>johndoe@example.com</email>
<endpoint>endpoint_external_id</endpoint>
<tags>one</tags>
<tags>two</tags>
<status>new</status>
<delivery_cost>100</delivery_cost>
<total_price>1000</total_price>
<currency>USD</currency>
<custom_fields>
<order_field_id_1>data</order_field_id_1>
<order_field_id_2>123</order_field_id_2>
</custom_fields>
<region>region_external_id</region>
<lines>
<external_id>1234000</external_id>
<status>0001</status>
<sku>sku_external_id</sku>
<base_price_per_item>900</base_price_per_item>
<min_price_per_item>900</min_price_per_item>
<final_price_per_item>900</final_price_per_item>
<count>5</count>
<custom_fields>
<line_field_id_2>data</line_field_id_2>
<line_field_id_1>123</line_field_id_1>
</custom_fields>
</lines>
</row>
</xml>

Lines object​

Description​

lines is the array of objects. It contains objects with data about order items. One object stores one order item.

ParameterTypeExampleRequiredDescription
external_idstring"1235678"YesItem additional ID
statusstring"new"NoOrder item status ID:
  • delivering
  • processing
  • new
  • refunded
  • canceled
  • delivered
  • or custom status id
skustringIPhone_Red_128GbDo not pass it in the request if you pass the product parameterSKU additional ID. If the product is represented as a product - specify the product ID, if the product is represented as its variety - specify only the SKU ID.
productstringMP3_player_BassProDo not pass it in the request if you pass the sku parameterProduct additional ID
base_price_per_itemstring"600"YesBase price
min_price_per_itemstring"300"YesMinimum price
final_price_per_itemstring"500"YesFinal price
countint5YesQuantity of products or SKUs in the order item
custom_fieldsobject
{
"line_field_id_2": 123,
"line_field_id_2": "data"
}
NoValue of custom fields for the order item

Object stucture​

  • JSON
  • XML
[
{
"external_id": "12345",
"status": "new",
"product": "MP3_player_BassPro",
"base_price_per_item": "600",
"min_price_per_item": "300",
"final_price_per_item": "500",
"count": 5,
"custom_fields": {
"lot_number": 123,
"imported": true
}
}
]

Example of SKU:

[
{
"external_id": "76543",
"status": "processing",
"sku": "IPhone_Red_128Gb",
"base_price_per_item": "1000",
"min_price_per_item": "700",
"final_price_per_item": "850",
"count": 13,
"custom_fields": {
"lot_number": 93,
"localization": "RU"
}
}
]
<xml>
<external_id>1235678</external_id>
<status>0001</status>
<sku>sku_external_id</sku>
<base_price_per_item>600</base_price_per_item>
<min_price_per_item>300</min_price_per_item>
<final_price_per_item>500</final_price_per_item>
<count>5</count>
<custom_fields>
<line_field_id_2>data</line_field_id_2>
</custom_fields>
</xml>
Last updated on Aug 16, 2024
Previous
Market objects
Next
Product data object
  • Description
  • Object structure
  • Lines object
    • Description
    • Object stucture
© 2015 - 2026 Altcraft, LLC. All rights reserved.