Shift4 Payments · Example Payload

Shift4 Api Create Subscription Example

PaymentsFintechCommerceCheckout

Shift4 Api Create Subscription 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": "createSubscription",
  "request": {
    "method": "POST",
    "url": "https://api.shift4.com/subscriptions",
    "headers": {
      "Content-Type": "application/json",
      "Authorization": "Basic <base64(secret_key:)>"
    },
    "body": {
      "planId": "plan_basic_monthly",
      "customerId": "cust_7e8c2a47e9c14a93b5b6d99e6c2b5d4f",
      "quantity": 1
    }
  },
  "response": {
    "status": 200,
    "body": {
      "id": "sub_e1c9d2a3f4b54c6e8d7a9b0c1d2e3f40",
      "created": 1746489600,
      "deleted": false,
      "planId": "plan_basic_monthly",
      "customerId": "cust_7e8c2a47e9c14a93b5b6d99e6c2b5d4f",
      "quantity": 1,
      "captureCharges": true,
      "status": "ACTIVE",
      "start": 1746489600,
      "currentPeriodStart": 1746489600,
      "currentPeriodEnd": 1749081600,
      "cancelAtPeriodEnd": false
    }
  }
}

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-subscription-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.