The order `xxxxxxxx` is owned by another application.",

The customer for a subscription order keeps getting payment requests
cutomer’s original subscriiption card expired and was updated
Order tenders keep trying to charge expired card
I tried to fix this manually with a payment using the new ccof
Got this message:
{
“errors”: [
{
“code”: “FORBIDDEN”,
“detail”: “The order `xxxxxxxx` is owned by another application.”,
“category”: “AUTHENTICATION_ERROR”
}
],
I have collected all the info including ids which I can forward to you.

Heya @NemoNoman ,

Could you supply the application ID so I can take a look in the logs please?

Thanks.
App ID: sq0idp-xxxxxxxxxxxxxis -wNg8w

Some records I found that confuse me:

Cust: xxxxxxxxxxxxxis

Customer’s CARD UIPDATES:
Customer did 2 Card update> from 2026 exp to 2030 expire
One on 10-17 ( “created_at”: “2026-10-17T14:56:35Z”)
and another on 11-16 ( “created_at”: “2026-11-16T03:03:54Z”,)

Current card:
ccof:xxxxxxxxxxxxxis
“created_at”: “2026-11-16T03:03:54Z”,

Problem ORDER:
xxxxxxxxxxxxxis

Problem Invoice:
inv:0-xxxxxxxxxxxxxis
“due_date”: “2026-11-13”,

ORDER TENDERS
FIRST TENDER on 11-13 ( “created_at”: “2026-11-13T16:09:20.972Z”,)
SECOND “created_at”: “2026-11-16T16:09:20.603Z”,
THIRD “created_at”: “2026-11-19T16:09:20.460Z”,
ALL FAILED trying to charge OLD card (“exp_month”: 9, “exp_year”: 2026,)
INSTEAD OF EITHER NEW updated card (updated before the invoices, see above)

As I said when I tried to use the API explorer to create a payment for the order using the current saved card I got:

I tried to fix this manually with a payment using the new ccof
Got this message:
{
“errors”: [
{
“code”: “FORBIDDEN”,
“detail”: “The order xxxxxxxxxxxxxis owned by another application.”,
“category”: “AUTHENTICATION_ERROR”
}
],

I’ve taken a look and this is mostly behavior as intended. Orders behind subscription invoices are created and owned by Square Invoices, so no third‑party application can add a payment to them with CreatePayment. This is by design: “after an order is associated with an invoice, Square APIs cannot be used to pay the order directly” (Pay or refund invoices). Payment for those invoices happens either via Square’s automatic card‑on‑file charge, the customer paying the invoice link, or the seller recording/charging it in the Dashboard.

Regarding the specific errors you’re seeing

JfChuJXgEc04o6NL25LU6668pSLZYt this is the October invoice (#003307), and it was actually paid on Oct 19 with the updated card after its three automatic attempts failed, so there’s nothing left to pay on it.

inv:0-ChASKUG5FHzoNSNGmFcyfbc4ELsJ this is an open invoice from November invoice (#003372) , whose three attempts on Nov 13, 16 and 19 were declined.

It probably keeps charging the old card because a subscription charges the specific card_id stored on the Subscription object, not the customer’s newest card. Adding a new card to the customer (which is what happened on Oct 17 and Nov 16) doesn’t change the subscription. Its card_id still points at the exp‑09/2026 record, so each invoice was attempted against that card and declined.

What I’d recommend doing:

  1. Point the subscription at the new card with UpdateSubscription:

    PUT /v2/subscriptions/b5de4c82-087c-4b8d-862f-5d34b874f2d6{ "subscription": { "card_id": "ccof:CA4SEEcXlj9196xQ1FTEKzXAW1koAQ" } }
    

    All future invoices will then charge the new card.

  2. For the already‑open November invoice, Square has stopped auto‑retrying after the third failure and switched it to a pay‑by‑email invoice. Either have the customer pay via the invoice link they received, or have the seller open Invoices → #003372 in the Square Dashboard and charge the card on file, selecting the new card.
    Don’t try to pay the order via the Payments API — that’s the FORBIDDEN you saw.

Going forward, whenever your app saves a replacement card for a subscriber, call UpdateSubscription with the new card_id in the same flow. You can also watch invoice.payment_made / payment.updated (status FAILED) webhooks to catch declines early.

If after updating the card_id the next invoice still fails, DM me the new payment ID and I’ll check the decline reason.