OrderAddressesModificationUpdated
v0.0.1

OrderAddressesModificationUpdated

This event is triggered when an order addresses modification has been updated, this will include when the operation is e.g. started, restarted, completed, or failed.

If only the final outcome event is desired, we recommend listening for OrderAddressesModified.

OrderAddressesModificationUpdated Schema (json)
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "title": "OrderAddressesModificationChanged",
  "required": ["detail-type", "resources", "detail", "id", "source", "time", "region", "version", "account"],
  "type": "object",
  "properties": {
    "account": {
      "type": "string"
    },
    "detail": {
      "$ref": "#/definitions/Detail"
    },
    "detail-type": {
      "type": "string"
    },
    "id": {
      "type": "string"
    },
    "region": {
      "type": "string"
    },
    "resources": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "source": {
      "type": "string"
    },
    "time": {
      "format": "date-time",
      "type": "string"
    },
    "version": {
      "type": "string"
    }
  },
  "definitions": {
    "Detail": {
      "properties": {
        "data": {
          "$ref": "#/definitions/Data"
        },
        "metadata": {
          "$ref": "#/definitions/Metadata"
        }
      },
      "required": ["metadata", "data"],
      "type": "object"
    },
    "Metadata": {
      "type": "object",
      "required": ["awsRequestId"],
      "properties": {
        "awsRequestId": {
          "type": "string"
        },
        "isTruncated": {
          "type": "boolean"
        }
      }
    },
    "Data": {
      "$ref": "#/definitions/OrderAddressesModification"
    },
    "OrderAddressesModification": {
      "type": "object",
      "required": [
        "id",
        "orderId",
        "orderReference",
        "paymentProvider",
        "addresses",
        "created",
        "updated",
        "restarts",
        "revision"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "The modification id"
        },
        "orderId": {
          "type": "string",
          "description": "The order id"
        },
        "orderReference": {
          "type": "string",
          "description": "The order short reference"
        },
        "paymentProvider": {
          "$ref": "#/definitions/ProviderStatus"
        },
        "shippingProvider": {
          "$ref": "#/definitions/ProviderStatus"
        },
        "giftCardProvider": {
          "$ref": "#/definitions/ProviderStatus"
        },
        "giftCardProductProvider": {
          "$ref": "#/definitions/ProviderStatus"
        },
        "voucherProvider": {
          "$ref": "#/definitions/ProviderStatus"
        },
        "promotionProvider": {
          "$ref": "#/definitions/ProviderStatus"
        },
        "bonusProvider": {
          "$ref": "#/definitions/ProviderStatus"
        },
        "addresses": {
          "$ref": "#/definitions/AddressesModification"
        },
        "reason": {
          "$ref": "#/definitions/Reason"
        },
        "created": {
          "type": "string",
          "format": "date-time",
          "description": "Created date for the modification"
        },
        "updated": {
          "type": "string",
          "format": "date-time",
          "description": "Updated date for the modification"
        },
        "started": {
          "type": "string",
          "format": "date-time",
          "description": "Started date for the modification"
        },
        "completed": {
          "type": "string",
          "format": "date-time",
          "description": "Completed date for the modification"
        },
        "failed": {
          "type": "string",
          "format": "date-time",
          "description": "Failed date for the modification"
        },
        "restarted": {
          "type": "string",
          "format": "date-time",
          "description": "Restarted date for the modification"
        },
        "restarts": {
          "description": "The number of restarts",
          "type": "integer"
        },
        "revision": {
          "description": "The revision number of the modification",
          "type": "integer"
        }
      }
    },
    "ProviderStatus": {
      "type": "object",
      "required": ["providerId", "providerName"],
      "properties": {
        "providerId": {
          "type": "string",
          "description": "The id for the provider"
        },
        "providerName": {
          "type": "string",
          "description": "The name of the provider"
        },
        "status": {
          "$ref": "#/definitions/ProviderStatusLog"
        }
      }
    },
    "ProviderStatusLog": {
      "type": "object",
      "required": ["current", "history"],
      "properties": {
        "current": {
          "type": "string",
          "description": "The latest status for the provider"
        },
        "history": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/ProviderStatusLogEntry"
          }
        }
      }
    },
    "ProviderStatusLogEntry": {
      "type": "object",
      "required": ["status", "timestamp", "type"],
      "properties": {
        "message": {
          "type": "string",
          "description": "Optional message for the status"
        },
        "errorMessage": {
          "type": "string",
          "description": "Optional error message from the provider"
        },
        "status": {
          "type": "string",
          "description": "The actual status"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time",
          "description": "Timestamp for the status"
        },
        "type": {
          "type": "string",
          "description": "Status type"
        }
      }
    },
    "Reason": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "description": "Optional code for the reason, useful for BI tracking"
        },
        "cause": {
          "type": "string",
          "description": "Optional human readable cause for the reason"
        }
      }
    },
    "ModificationType": {
      "title": "ModificationType",
      "type": "string",
      "enum": ["UPDATE"]
    },
    "AddressesModification": {
      "type": "object",
      "required": ["modificationType", "data"],
      "properties": {
        "modificationType": {
          "$ref": "#/definitions/ModificationType"
        },
        "data": {
          "oneOf": [
            {
              "$ref": "#/definitions/AddressesModificationUpdate"
            }
          ]
        },
        "prev": {
          "$ref": "#/definitions/AddressesModificationUpdatePrevious"
        }
      },
      "additionalProperties": false
    },
    "AddressesModificationUpdatePrevious": {
      "allOf": [
        {
          "$ref": "#/definitions/AddressesModificationUpdate"
        }
      ],
      "description": "Read only field containing the previous data"
    },
    "AddressesModificationUpdate": {
      "type": "object",
      "minProperties": 1,
      "properties": {
        "billingAddress": {
          "$ref": "#/definitions/AddressesModificationUpdateAddress"
        },
        "shippingAddress": {
          "$ref": "#/definitions/AddressesModificationUpdateAddress"
        }
      },
      "additionalProperties": false
    },
    "AddressesModificationUpdateAddress": {
      "type": "object",
      "minProperties": 1,
      "properties": {
        "country": {
          "$ref": "#/definitions/CountryCode"
        },
        "stateOrProvince": {
          "type": "string"
        },
        "streetAddress": {
          "type": "string"
        },
        "city": {
          "type": "string"
        },
        "givenName": {
          "type": "string"
        },
        "familyName": {
          "type": "string"
        },
        "email": {
          "type": "string"
        },
        "telephoneNumber": {
          "type": "string"
        },
        "postalCode": {
          "type": "string"
        },
        "streetAddress2": {
          "type": "string"
        },
        "pcc": {
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "CountryCode": {
      "title": "CountryCode",
      "maxLength": 2,
      "minLength": 2,
      "pattern": "^[A-Z]{2}$",
      "type": "string",
      "description": "ISO 3166-1 alpha-2 country code"
    }
  }
}
Last updated on 2026/3/3