How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Spree Commerce Account / Credit Cards API

The Account / Credit Cards API from Spree Commerce — 3 operation(s) for account / credit cards.

Spree Commerce Account / Credit Cards API is one of 183 APIs that Spree Commerce publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Account / Credit Cards. The published artifact set on APIs.io includes an OpenAPI specification and API documentation.

This API exposes 3 operations across 3 paths, and defines 6 schemas. It is described by OpenAPI 3.2.0, at version 2.0.0.

Requests are made against 2 base URLs: https://demo.spreecommerce.org, http://localhost:3000.

3 operations 3 paths 6 schemas 1 DELETE2 GET

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
2.0.0
Base URL
https://demo.spreecommerce.org
Authentication
HTTP Bearer, API Key
Resource Areas
1

Authentication & Security 2

Spree Commerce Account / Credit Cards API declares 2 security schemes for authenticating requests. It accepts HTTP bearer tokens (bearerAuth). An API key is passed in the header as X-Spree-Order-Token (orderToken).

  • bearerAuth — User token to authorize Cart and Checkout requests. It is required to associate Cart with the User.
  • orderToken — Order token to authorize Cart and Checkout requests. [How to obtain X-Spree-Order-Token](../authenticationfor-guest-users)

Paths & Operations 3

Across 3 paths, the API surfaces 3 operations — 1 DELETE, 2 GET. Each is listed below with its method, path, parameters, and response codes.

Account / Credit Cards 3
GET
/api/v2/storefront/account/credit_cards
List all Credit Cards
credit-cards-list 3 params → 200403
DELETE
/api/v2/storefront/account/credit_cards/{id}
Remove a Credit Card
remove-credit-card 1 param → 204404
GET
/api/v2/storefront/account/credit_cards/default
Retrieve the default Credit Card
default-credit-card 2 params → 200403

Schemas 6

The contract defines 6 schemas that model the data the API accepts and returns. The most detailed are ListLinks (5 properties), CreditCard (4 properties), PaymentMethod (3 properties), ListMeta (3 properties). Each schema is shown below with its type and property counts.

CreditCardIncludes
Relation
objectnull
2 properties 2 required
ListMeta
object
3 properties
PaymentMethod
object
3 properties 3 required
ListLinks
object
5 properties
CreditCard
object
4 properties 4 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

spree-commerce-account-credit-cards-api-openapi.yml Raw ↑

Other APIs Spree Commerce publishes across the network.

Spree Webhooks
@spree/sdk (TypeScript Store API SDK)
@spree/admin-sdk (TypeScript Admin API SDK)
@spree/cli
create-spree-app
Spree Next.js Storefront
Spree Rails Storefront
spree-starter (Application Template)
spree-multi-store
Spree Stripe Integration
Spree Adyen Integration
Spree PayPal Checkout Integration
Where this information came from

This is an independent, third-party profile of Spree Commerce Account / Credit Cards API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.