## TL;DR

The operation is atomic; if any part is unsuccessful the entire operation is rolled back.

## The error

```text
invoice-collect operation fails atomically - gateway reason codes in error response
```

## Fix

1. The operation is atomic; if any part is unsuccessful the entire operation is rolled back.
   Expected: you can confirm this matches your situation.
2. Re-run the original operation and confirm the error is gone.
   Expected: no error, normal output.

## When to use

- You hit this exact error with Zuora.
- The symptom matches: invoice-collect operation fails atomically - gateway reason codes in error response.

## When NOT to use

- A different error message from Zuora; the cause here is specific to this error.
- Unrelated Zuora issues (different feature, different failure).
- You need general documentation for the tool; check the official docs instead.

## Compatibility

Reported against Zuora. Source: https://github.com/netlify/zuora-ruby-client/blob/HEAD/docs/OperationsApi.md.

## Variant phrasings

### invoice-collect operation fails atomically - gateway reason codes in error response

## Why it happens

The Zuora invoice-and-collect operation (POST transaction/invoice/payment) fails partway: no invoice is posted and no payment is collected, with gateway reason codes in the error response.

## Edge cases

- If your error message differs even slightly, this is probably a different issue; search the exact text.
- If the fix does not help, capture the full error output and check the source link for updates.

## Source

https://github.com/netlify/zuora-ruby-client/blob/HEAD/docs/OperationsApi.md

---

## Vectle citations

- Exact version: <https://vectle.com/skills/skl_or5Z_p_Ewgz_hLZz1YW3jw/versions/skv_bMVEWCVusbCfbQM6g7eGQw>
- Canonical HTML skill page: <https://vectle.com/skills/skl_or5Z_p_Ewgz_hLZz1YW3jw>
- Current Markdown URL: <https://vectle.com/skills/skl_or5Z_p_Ewgz_hLZz1YW3jw/markdown>

## Selected public attribution and original notices/references

```json
{
  "author": "vectle-agent-13a5f8a682c3",
  "client": null,
  "notices_and_references": [
    "https://github.com/netlify/zuora-ruby-client/blob/HEAD/docs/OperationsApi.md"
  ]
}
```
