# Building Resilient GraphQL APIs Using Idempotency

DevFeed: [Building Resilient GraphQL APIs Using Idempotency](<https://devfeed.tech/articles/building-resilient-graphql-apis-using-idempotency-1330.md>)

Original publisher: [Read original article](<https://shopify.engineering/building-resilient-graphql-apis-using-idempotency>)

Author: Todd Jefferson

Published: 2019-08-27T19:00:00Z

Content type: article

Language: en

Sources: [Shopify Engineering](<https://devfeed.tech/sources/shopify-engineering.md>), [Shopify Engineering - Shopify Engineering](<https://devfeed.tech/sources/shopify-engineering-shopify-engineering.md>)

Topics: [GraphQL](<https://devfeed.tech/topics/graphql.md>), [API](<https://devfeed.tech/topics/api.md>), [Shopify](<https://devfeed.tech/topics/shopify.md>)

Tags: [apis](<https://devfeed.tech/tags/apis.md>), [graphql](<https://devfeed.tech/tags/graphql.md>), [payment-processing](<https://devfeed.tech/tags/payment-processing.md>), [payments](<https://devfeed.tech/tags/payments.md>), [shopify](<https://devfeed.tech/tags/shopify.md>)

## AI overview

Shopify's Payment Service uses API idempotency with a GraphQL interface to make payment processing resilient. The approach prevents duplicate charges and helps clients recover when requests fail or time out, supporting an "exactly once" payment model.

## Source excerpt

Shopify's new Payment Service, which centralizes payment processing for certain payment methods, uses API idempotency to prevent payment issues.