[Zuora API reference]: The operation is atomic; if any part is unsuccessful the entire operation is rolled back. When it fails, read the gateway reason codes and messages in the error response to find whether it was a gateway decline (e.g. Orbital 05 Do Not Honor, CyberSource 202 Expired card) rather than a Zuora-side problem. Timeouts can occur on accounts with an extremely high number of subscriptions; narrow the scope and retry. Note draft credit memos created from an invoice will not be posted by this operation.

Context: 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.

## Matched source
Source: Source: https://github.com/netlify/zuora-ruby-client/blob/HEAD/docs/OperationsApi.md
Original query: "Zuora: invoice-collect operation fails atomically - gateway reason codes in error response"
Key terms: atomically, codes, collect, error, fails, gateway, invoice, operation, reason, response, zuora
