What statuscode identifies the transactionid in a sandbox environment or a production environment?

https://developer.apple.com/documentation/appstoreserverapi/get_transaction_info

Is there a status code that can identify whether transactionid is in the sandbox or production environment?

Replies

If you call the wrong environment you will receive a 404 status code with a TransactionIdNotFoundError https://developer.apple.com/documentation/appstoreserverapi/transactionidnotfounderror. You can call the alternate environment at this time, if you didn't know before which environment the transaction id belonged to.