# Inspect Callouts to Zuora

Limio allows you to inspect the callouts to Zuora generated when order is processed. This allows you to debug interactions and understand the flow of data between Limio and Zuora.

## Where can I view callouts?

1\. When looking at an event, click on the process\_event object in the first table.

<figure><img src="https://1300169839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuIDPIax6CqUDQFXyhCN5%2Fuploads%2Fry2aOVQazZr2FYwlY9tq%2Fimage.png?alt=media&#x26;token=3c5e6f2e-e1cc-4690-b3bc-488468fc509c" alt=""><figcaption></figcaption></figure>

2\. When looking at a process\_event look in the Callout table to find the callout you want to view and click on Details.

<figure><img src="https://1300169839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuIDPIax6CqUDQFXyhCN5%2Fuploads%2FN4WKCAAEe26caj4m4EXy%2Fimage.png?alt=media&#x26;token=500e313e-2ffd-416b-8030-7dab0f69b6a0" alt=""><figcaption></figcaption></figure>

3\. You're presented with a JSON view of the callout including details like errors, request timings and order details

<figure><img src="https://1300169839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuIDPIax6CqUDQFXyhCN5%2Fuploads%2FiKrrXDkJcFR5bmmSqhib%2Fimage.png?alt=media&#x26;token=28dfbf04-ee18-4eed-8e4e-7df8ec506cc7" alt=""><figcaption></figcaption></figure>

Callouts will vary depending on the original event. Generally, the most important callout will be the POST callout to <https://rest.apisandbox.zuora.com/v1/orders>. By inspecting this callout, you will be able to send the payload provided to Zuora Orders, for example for a New Order, a Cancellation, an Add/Remove Product, an Update product etc... Learn more about how Limio processes different customer events in Zuora in: [https://docs.limio.com/integrations/keeping-zuora-and-limio-in-sync/how-limio-events-updates-zuora-for-commerce](https://docs.limio.com/integrations/keeping-zuora-and-limio-in-sync/how-limio-events-updates-zuora-for-commerce "mention")

## Understanding Zuora Errors

When there is an error in the order process, the callouts can provide some extra details about the reasoning for the error.

Here's an example of a Zuora payment error:

<figure><img src="https://1300169839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuIDPIax6CqUDQFXyhCN5%2Fuploads%2FJzgJKGS5tsDTQ06UputF%2Fimage.png?alt=media&#x26;token=218c7e88-8314-40e0-b42b-1a70eceacea1" alt=""><figcaption></figcaption></figure>

To get an understanding of the Error and how this can be resolved, you can follow these steps below:

1. Select the "v1/orders" POST request in the callouts table<br>

   <figure><img src="https://1300169839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuIDPIax6CqUDQFXyhCN5%2Fuploads%2F5vpFfVrMhOBSKiZ2AD94%2Fimage.png?alt=media&#x26;token=c7bc9fd9-120d-47fb-8fe4-681658c5cd12" alt=""><figcaption></figcaption></figure>
2. Expand the response object and copy the "code" value<br>

   <figure><img src="https://1300169839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuIDPIax6CqUDQFXyhCN5%2Fuploads%2FEY4hRc6tU9457MeQxQbk%2Fimage.png?alt=media&#x26;token=f2a23789-c29f-4be3-9e23-e65c4bbf91bd" alt=""><figcaption></figcaption></figure>
3. Refer to this Zuora Error Code Documentation below for a description of the error code and any suggested resolutions.\
   <https://developer.zuora.com/docs/guides/error-codes/>
