# Issue with invoice and Payment Api

**URL:** <https://developer.squareup.com/forums/t/issue-with-invoice-and-payment-api/24381>\
**Category:** Questions\
**Created:** [November 3, 2025, 10:02am UTC](https://developer.squareup.com/forums/t/issue-with-invoice-and-payment-api/24381 "2025-11-03T10:02:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![75way](https://avatars.discourse-cdn.com/v4/letter/7/ecc23a/32.png) [@75way](https://developer.squareup.com/forums/u/75way)\
**Post date:** [November 3, 2025, 10:02am UTC](https://developer.squareup.com/forums/t/issue-with-invoice-and-payment-api/24381/1 "2025-11-03T10:02:24Z")

</div>

I’m currently working with the **Square API**. My workflow is as follows:

1. **Create an order** → `POST /v2/orders`
2. **Receive an invoice** via the **invoice.created webhook** → `POST /v2/invoices`
3. **Process payment** → `POST /v2/payments`

However, when I attempt to process the payment, I receive the following error:

> **“The order `PAUGKMfQpSNtEzRjVh9byUN53sOZY` is owned by another application.”**

### 🔍 Additional Context

- I am using the **same Square account** , **same API key** , and **same application credentials** across all requests.
- Despite that, Square reports that the order belongs to another application.

---

<div class="post-metadata">

**Author:** ![Square-Dev-AI](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/square-dev-ai/32/2513_2.png) [@Square-Dev-AI](https://developer.squareup.com/forums/u/Square-Dev-AI)\
**Post date:** [November 3, 2025, 10:02am UTC](https://developer.squareup.com/forums/t/issue-with-invoice-and-payment-api/24381/2 "2025-11-03T10:02:44Z")

</div>

👋 I’m Square Dev AI, here to help answer your question!  
Based on the information you’ve provided, the following documentation will help answer your question:

> **[Payment API: Process Online and In-Person Payments](https://developer.squareup.com/docs/payments-overview)**
>
> Process online, in-app, and in-person payments with Square payment APIs. Manage disputes and subscriptions and perform other payment-related tasks.

> **[Square Order Checkout](https://developer.squareup.com/docs/checkout-api/square-order-checkout)**
>
> Learn how to create a checkout for a Square order.

> **Additional Documentation**
>
> [https://developer.squareup.com/docs/invoices-api/overview](https://developer.squareup.com/docs/invoices-api/overview)  
> [Configure the Order-Ahead Sample Application](https://developer.squareup.com/docs/orders-api/quick-start/step-2)  
> [Develop for Japan](https://developer.squareup.com/docs/international-development/japan)

If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.  
Otherwise one of our Developer Advocates will provide additional assistance shortly.

---

<div class="post-metadata">

**Author:** ![Square-Dev-AI](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/square-dev-ai/32/2513_2.png) [@Square-Dev-AI](https://developer.squareup.com/forums/u/Square-Dev-AI)\
**Post date:** [November 3, 2025, 4:10pm UTC](https://developer.squareup.com/forums/t/issue-with-invoice-and-payment-api/24381/3 "2025-11-03T16:10:21Z")

</div>

The error message “The order `PAUGKMfQpSNtEzRjVh9byUN53sOZY` is owned by another application” typically indicates that the order was created by a different application than the one attempting to process the payment. This can happen if the order was created using a different set of application credentials or if there was a mix-up in the environment (e.g., using Sandbox credentials in a production environment or vice versa).

Here are a few steps to troubleshoot and resolve this issue:

1. **Verify Credentials** : Double-check that you are using the correct API credentials (access token and application ID) for all API requests. Ensure that these credentials match the environment (Sandbox or Production) you are working in.

2. **Consistent Environment** : Ensure that all API requests are being made in the same environment. If you created the order in the Sandbox, make sure the payment request is also being made in the Sandbox, and similarly for Production.

3. **Check Application Ownership** : Confirm that the order was indeed created by the same application. You can do this by checking the application ID associated with the order creation request.

4. **Review Webhook Configuration** : Ensure that the webhook endpoint receiving the `invoice.created` event is configured for the same application that created the order.

5. **Cross-Check Order ID** : Verify that the order ID being used in the payment request is the correct one and matches the order created by your application.

If after these checks the issue persists, it might be helpful to review the logs in the Square Developer Dashboard to see if there are any discrepancies in the application IDs or environments used.

_This answer was reviewed by @Bryan-Square._

---

<div class="post-metadata">

**Author:** ![75way](https://avatars.discourse-cdn.com/v4/letter/7/ecc23a/32.png) [@75way](https://developer.squareup.com/forums/u/75way)\
**Post date:** [November 14, 2025, 7:24am UTC](https://developer.squareup.com/forums/t/issue-with-invoice-and-payment-api/24381/4 "2025-11-14T07:24:37Z")

</div>

> [@Square-Dev-AI](#):
>
> : Confirm that the order was indeed created by the same application. You can do this by checking the application ID associated with the order creation request.

I want to clarify that i creted order-\> then created invoice with that order-\>amd then made payment by createpayment api for that order and then i am getting issue as  
“The order `PAUGKMfQpSNtEzRjVh9byUN53sOZY` is owned by another application” .Why is that? I am using same Applicaiton Id and same token as well.

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [November 14, 2025, 5:45pm UTC](https://developer.squareup.com/forums/t/issue-with-invoice-and-payment-api/24381/5 "2025-11-14T17:45:52Z")

</div>

Okay, when an order is associated to an invoice it can only be paid for through the invoice. The order won’t be able to be paid for by the Payments API. 🙂
