Shift4 Payments · Example Payload

Shift4 Api Create Refund Example

PaymentsFintechCommerceCheckout

Shift4 Api Create Refund Example is an example object payload from Shift4 Payments, with 3 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

operationIdrequestresponse

Example Payload

Raw ↑
{
  "operationId": "createRefund",
  "request": {
    "method": "POST",
    "url": "https://api.shift4.com/refunds",
    "headers": {
      "Content-Type": "application/json",
      "Authorization": "Basic <base64(secret_key:)>"
    },
    "body": {
      "chargeId": "char_8a4cb45e8a2c4adcb6d23f72b3b3a5d2",
      "amount": 1000,
      "reason": "requested_by_customer"
    }
  },
  "response": {
    "status": 200,
    "body": {
      "id": "rfd_3c2a1b0f9e8d7c6b5a49382716054f3e",
      "created": 1746497600,
      "amount": 1000,
      "currency": "USD",
      "charge": "char_8a4cb45e8a2c4adcb6d23f72b3b3a5d2",
      "reason": "REQUESTED_BY_CUSTOMER",
      "status": "SUCCESSFUL"
    }
  }
}

Work with this as data

Every example here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for examples

4 MCP tools reach this
  • find_examplesBrowse and filter every example in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This example
curl "https://apis.io/api/v1/examples/shift4-api-create-refund-example"
All examples
curl "https://apis.io/api/v1/examples?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.