Payload Schemas

Order Creation Payload Schema

When an order is created, Magna sends a webhook with the following payload structure:

{
  "id": "string (UUID)",
  "key": "string",
  "externalId": "string | null",
  "userId": "string (UUID) | null",
  "projectId": "string (UUID) | null",
  "walletAddress": "string | null",
  "email": "string | null",
  "totalAmount": "decimal",
  "status": "OrderStatus",
  "createdAt": "date",
  "updatedAt": "date",
  "orderItems": [
    {
      "id": "string (UUID)",
      "orderId": "string (UUID)",
      "type": "OrderItemType",
      "amount": "decimal",
      "quantity": "number (integer)",
      "createdAt": "date",
      "updatedAt": "date",
      "nodeKey": {
        "id": "string (UUID)",
        "tierId": "string (UUID)",
        "referralCodeId": "string (UUID) | null",
        "whitelistAddressId": "string (UUID) | null",
        "orderItemId": "string (UUID)"
      }
    }
  ]
}

Last updated

Was this helpful?