{"section":"known-issues","requestedLocale":"en","requestedSlug":"orderplaced-page-returns-404-for-orders-with-no-payment-null-payment-id","locale":"en","slug":"orderplaced-page-returns-404-for-orders-with-no-payment-null-payment-id","path":"docs/en/known-issues/Checkout/orderplaced-page-returns-404-for-orders-with-no-payment-null-payment-id.md","branch":"main","content":"## Summary\n\nThe `orderPlaced` page returns a 404 error when an order has a total value of $0, such as orders containing only gift or freebie items. In this scenario, the platform creates a dummy transaction identified as `\"NO-PAYMENT\"` with no associated payment record, meaning the `paymentId` of the order is null.\n\nWhen the `orderPlaced` page loads, it triggers a `getOrderGroup` GraphQL query. Since the `Payment.id` field in the `order-placed-graphql` schema is defined as non-nullable; returning a null value for this field causes the entire query to fail with the following error:\n\n> `Cannot return null for non-nullable field Payment.id.`\n\nThis results in the `orderPlaced` page being unable to render, returning a 404 to the customer.\n\nNote: the transaction and payment statuses are not affected, the order itself is created and processed correctly. The issue is isolated to the `orderPlaced` confirmation page.\n\n## Simulation\n\nAny order with a total value of $0, where no actual payment is required, for example, an order composed entirely of products with a 100% discount or freebie items.\n\n## Workaround\n\nThere is no workaround available."}