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

Primer Payment Methods API API

The Payment Methods API API from Primer — 4 operation(s) for payment methods api.

Primer Payment Methods API API is one of 5 APIs that Primer publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Payment Methods API. The published artifact set on APIs.io includes an OpenAPI specification and API documentation.

This API exposes 4 operations across 4 paths, and defines 26 schemas. It is described by OpenAPI 3.2.0, at version 2.4.

Requests are made against 2 base URLs: https://api.sandbox.primer.io, https://api.primer.io.

4 operations 4 paths 26 schemas 1 DELETE1 GET2 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
2.4
Base URL
https://api.primer.io
Authentication
API Key
Resource Areas
1

Authentication & Security 1

Primer Payment Methods API API declares 1 security scheme for authenticating requests. An API key is passed in the header as X-API-KEY (ApiKeyAuth). By default, every request must be authenticated.

Paths & Operations 4

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

Payment Methods API 4
POST
/payment-instruments/{paymentMethodToken}/vault
Save a payment method token
vault_payment_method_payment_methods__token__vault_post 2 params body → 200400422
GET
/payment-instruments
List saved payment methods
get_payment_methods_payment_methods_get 2 params → 200
DELETE
/payment-instruments/{paymentMethodToken}
Delete a saved payment method
delete_payment_method_payment_methods__token__delete 2 params → 200400
POST
/payment-instruments/{paymentMethodToken}/default
Update the default saved payment method
set_payment_method_default_payment_methods__token__default_post 2 params → 200400

Schemas 26

The contract defines 26 schemas that model the data the API accepts and returns. The most detailed are KlarnaAddressAPISchema (12 properties), BinDataAPISchema (11 properties), MerchantPaymentMethodTokenAPIResponse (11 properties), AddressAPISchema (8 properties). Each schema is shown below with its type and property counts.

KlarnaTokenDetails
object
4 properties 1 required
BinDataAPISchema
object
11 properties 8 required
PrepaidReloadableEnum
string
An enumeration.
PayPalBillingAgreementAPISchema
object
4 properties 1 required
MerchantPaymentMethodTokenListAPIResponse
object
1 property
ApayaCustomerTokenAPISchema
object
3 properties 1 required
KlarnaAddressAPISchema
object
12 properties
VaultPaymentMethodAPIRequest
object
1 property 1 required
400ErrorResponse
object
1 property 1 required
CardAccountNumberTypeEnum
string
An enumeration.
422ErrorResponse
object
1 property 1 required
MerchantPaymentMethodTokenAPIResponse
object
11 properties
CardProductTypeEnum
string
An enumeration.
ErrorObject
object
An object containing information about the error that occurred.
5 properties 2 required
AccountFundingTypeEnum
string
An enumeration.
PaymentMethodTypeEnum
string
Payment method type, where OFFSESSIONPAYMENT is used for APM (Alternative Payment Method) payments and PAYMENTCARD for traditional debit or credit cards. Pleas…
GoCardlessMandateAPISchema
object
1 property 1 required
PayPalExternalPayerInfoAPISchema
object
4 properties
CardRegionRestrictionEnum
string
An enumeration.
CardNetworkEnum
string
The list of available card networks.
KlarnaSessionDetailsAPISchema
object
8 properties 5 required
PaymentCardTokenAPISchema
object
8 properties 3 required
AddressAPISchema
object
8 properties 3 required
CountryCodeEnum
2-letter country code in ISO 3166-1 alpha format, e.g. FR for France and GB for the United Kingdom.
KlarnaCustomerTokenAPISchema
object
2 properties 2 required
Currency
3-letter currency code in ISO 4217 format, e.g. USD for US dollars.

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

primer-payment-methods-api-api-openapi.yml Raw ↑

Other APIs Primer publishes across the network.

Primer Client Session API API
Primer Dispute & Chargebacks Webhooks API
Primer Payment Webhooks API
Primer Payments API API
Where this information came from

This is an independent, third-party profile of Primer Payment Methods API 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.