Skip to main content

Order Notifications

You can receive notifications whenever your order status changes. See the details of the order processing here.

Event list

Below is a list of order-related notifications which you can subscribe to:

  • Order created
  • Order payment failed (usually internal technical issue)
  • Order payment refused (by payment gateway)
  • Order completed
  • Order completed with error
  • Order fulfillment failed
  • Order cancelled

List of fields

The notification payload will include an 'order' object containing the following details:

NameDescriptionR/O
idOrder unique identifierR
statusOrder status corresponds to the event type.R
sourceOrder source: PURCHASE, SUBSCRIPTION, OFFER, MANUAL_RENEWAL, etcR
creationDateCreation date in ISO 8601 format, ex.: 2024-01-01T01:02:03ZR
currencyOrder's Currency, ex.: EURR
totalPriceIncVATOrder total price, including sales taxR
totalPriceExclVATOrder total price, excluding sales taxR
salesFlagSales flags is an array of strings provided in the cart. Similar to external context, but unencoded.O
consentFlagsConsent flags given by the end userO
consentFlags.newsletterOptinMarketing newsletter consent flagO
externalContextBased64 encoded string of cart parametersO
decodedExternalContextDecoded map of cart string parameters if they were provided in the json formatO
paymentPayment objectO
payment.idPayment idR
payment.methodPayment method id (visa, mastercard, sepa, visa_electron, visa_inst4, diners, pix, boleto etc.)O
payment.statusPayment status (COMPLETED, FAILED)R
userBuyer's details objectO
user.idBuyer's idO
user.emailBuyer's emailR
user.firstNameBuyer's first nameO
user.lastNameBuyer's last nameO
user.languageBuyer's language alpha-2 code, ex "pt"O
user.countryBuyer's country alpha-3 code, ex "BRA"O
user.streetBuyer's street addressO
user.zipcodeBuyer's postal codeO
user.cityBuyer's cityO
items[]List of items purchased (products, services, etc.)R
items[].idUnique ID for order line itemR
items[].product.nameProduct nameR
items[].product.uniqueReferenceA unique ID for identifying your product on the Nexway Monetize platformR
items[].product.publisherReferenceA unique ID for identifying your product in your information system, if definedO
items[].fulfillmentIdFulfillment process identifierO
items[].quantityProduct quantityR
items[].activationCodeProduct activation codeO
items[].unitPriceIncVATProduct unit price, including sales taxR
items[].unitPriceExclVATProduct unit price, excluding sales taxR
items[].VATRateSold product applied sales tax rateR
items[].discountRateDiscount rate applied to productO
items[].subscriptionIdSubscriptionId if the line item has oneO
items[].discountPlanSubscription discount plan node will exist in case if discount plan is applied to subscriptionO
items[].discountPlan.tagSubscription discount plan tagR
items[].discountPlan.discountStepSubscription discount plan step is used on acquisitionR
items[].discountPlan.ignorePurchaseDiscountOnly in case if this flag was set on acquisitionO

If you need to get additional data, which is not available in the event, please refer to the REST API methods to get order or other entities.

Example

{
"subject" : "order",
"type" : "completed",
"objectId" : "42WRNTVCTVJ",
"eventDate" : "2025-02-07T07:00:20Z",
"order" : {
"id" : "42WRNTVCTVJ",
"status" : "COMPLETED",
"source" : "PURCHASE",
"creationDate" : "2025-02-07T07:00:00Z",
"payment" : {
"id" : "42WRNTVCTVJ0",
"method" : "visa",
"amount" : 55.0,
"status" : "COMPLETED",
"transitionPaymentDate" : "2025-02-07T07:00:08Z",
"automaticBilling" : false
},
"payments" : [ {
"id" : "42WRNTVCTVJ0",
"method" : "visa",
"amount" : 55.0,
"status" : "COMPLETED",
"transitionPaymentDate" : "2025-02-07T07:00:08Z",
"automaticBilling" : false
} ],
"currency" : "AUD",
"totalPriceIncVAT" : 55.0,
"totalPriceExclVAT" : 50.0,
"externalContext" : "e30=",
"decodedExternalContext" : { },
"salesFlag" : [ ],
"consentFlags" : {
"newsletterOptin" : false
},
"user" : {
"id" : "b8dccf29-6f3b-4551-8ebf-98d3ef47f40a",
"email" : "[email protected]",
"firstName" : "Billy",
"lastName" : "Joe",
"language" : "en",
"country" : "AUS",
"zipcode" : "3249",
"city" : "Gerangamete"
},
"items" : [ {
"id" : "f4fc4d98-30f1-427e-9953-6a6966654d71",
"product" : {
"name" : "Acme Standard",
"uniqueReference" : "a7c55bec-b1b1-401e-b6cb-d6121ca1f66b",
"publisherReference" : "ACME_XYZ"
},
"quantity" : 1,
"expirationDate" : "2026-05-07T06:59:54Z",
"unitPriceExclVAT" : 50.0,
"unitPriceIncVAT" : 55.0,
"trial" : false,
"trialDuration" : 7,
"subscriptionId" : "c37570f9-ebc3-4817-8da6-a77339224739",
"fulfillmentId" : "6c0edf3e-b73e-46b7-944b-f424708d5b2f",
"activationCode" : "XXXX-YYYY-ZZZZ-JSJSK",
"subscription" : {
"id" : "c37570f9-ebc3-4817-8da6-a77339224739",
"createDate" : "2025-02-07T07:00:10Z",
"modelId" : "NEXWAY_1Y",
"name" : "Acme Standard",
"storeId" : "59409482-9719-4d76-97ad-c679acc7d14a",
"lifecycle" : {
"id" : "9141850",
"anniversaryDate" : "2026-05-07T06:59:54Z"
},
"products" : [ {
"id" : "a7c55bec-b1b1-401e-b6cb-d6121ca1f66b",
"lineItemId" : "93c9b6a3-e33e-4b88-bb1b-75134f23e298"
} ]
},
"subItems" : [ ],
"discountPlan" : {
"tag" : "newtyptag",
"discountStep" : 0,
"ignorePurchaseDiscount" : false
},
"VATRate" : 0.1
} ]
}
}

Additional fields for 'Order Completed With Content Including Subscription Data' notification

Certain notification types, like 'Order Completed with Subscription Data' and 'Order Cancelled with Subscription Data' include details about the subscription. Although, subscriptions are a separate domain with their own set of events.

NameDescriptionR/O
items[].subscriptionSubscription objectO
items[].subscription.idSubscriptionIdR
items[].subscription.createDateCreation date in ISO 8601 formatR
items[].subscription.modelIdSubscription modelR
items[].subscription.storeIdSelling store idR
items[].subscription.lifecycleLifecycle dataR
items[].subscription.lifecycle.idLifecycle id stringO
items[].subscription.lifecycle.anniversaryDateSubscription anniversary (expiration) date in ISO 8601 formatR