Primer Payments 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 Payments API. The published artifact set on APIs.io includes an OpenAPI specification and API documentation.
This API exposes
9 operations
across 8 paths,
and defines 82 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.
The identity and technical contract details declared by the specification.
ProductTypeEnum
string
An enumeration
PrepaidReloadableEnum
string
An enumeration.
PaymentSummaryAPISchema
object
9 properties
7 required
KlarnaAddressAPISchema
object
12 properties
RiskDataAPISchema
object
Risk data associated with this payment.
3 properties
CardAccountNumberTypeEnum
string
An enumeration.
ThreeDSecureFailedReasonCodeEnum
string
This enum is derived from the transStatusReason on page 218 of the [EMV Co 3DS protocol specification](https://www.emvco.com/terms-of-use/?u=/wp-content/upload…
PostAuthFraudDecisionTypeEnum
string
Possible post-authorization fraud check outcomes.
PaymentStatus
string
An enumeration.
CardProductTypeEnum
string
An enumeration.
PaymentStatusTypeEnum
string
The status reason type for the payment, providing more information on the error. APPLICATIONERROR indicates something went wrong internally within primer's sys…
PaymentRequiredActionAPISchema
object
3 properties
2 required
PaymentResumeAPIRequest
object
1 property
1 required
OptionalAddressAPISchema
object
8 properties
PaymentCancelAPIRequest
object
2 properties
CardRegionRestrictionEnum
string
An enumeration.
StatusReasonAPISchema
object
9 properties
1 required
DeclineTypeEnum
string
An enumeration.
TransactionEventApiResponse
object
6 properties
3 required
PaymentCardTokenAPISchema
object
8 properties
3 required
TransactionOverviewAPISchema
object
13 properties
8 required
KlarnaCustomerTokenAPISchema
object
2 properties
2 required
PaymentSummaryProcessorAPISchema
object
2 properties
1 required
Currency
3-letter currency code in ISO 4217 format, e.g. USD for US dollars.
ThreeDSecureSkippedReasonCodeEnum
string
An enumeration.
AuthorizationTypeEnum
string
Type of authorization for the payment.
CustomerDetailsAPISchema
object
8 properties
400ErrorResponse
object
1 property
1 required
FraudCheckAPISchema
object
Results of the pre-authorization and post-authorization fraud checks.
4 properties
422ErrorResponse
object
1 property
1 required
409ErrorResponse
object
1 property
1 required
PayPalOrderTokenAPISchema
object
3 properties
1 required
PaymentListAPIResponse
object
3 properties
TransactionDeclineReasonV2Enum
string
An enumeration.
OrderDetailsAPISchema
object
5 properties
PaymentCreationAPIRequest
object
10 properties
1 required
OrderFeesAPISchema
object
3 properties
1 required
PaymentRequestPaymentMethodOptionsAPISchema
object
7 properties
KlarnaTokenDetails
object
4 properties
1 required
OrderLineItemsAPISchema
object
The details of the line items of the order. The total amount of a line item is calculated like so: totalAmount = (amount quantity) - discountAmount + taxAmount
10 properties
1 required
OrderLineItemsProductDataAPISchema
object
Details related to the product
8 properties
ThreeDSecureAuthenticationAPISchema
object
5 properties
1 required
BinDataAPISchema
object
11 properties
8 required
PaymentAuthorizationAPIRequest
object
2 properties
1 required
Expand
arraynull
A list of fields to expand, such as transactions.events.
PayPalBillingAgreementAPISchema
object
4 properties
1 required
404ErrorResponse
object
1 property
1 required
TransactionTypeEnum
string
An enumeration.
AVSRiskAssessmentValues
object
2 properties
ErrorObject
object
An object containing information about the error that occurred.
5 properties
2 required
AccountFundingTypeEnum
string
An enumeration.
ThreeDSecureAuthResponseCodeEnum
string
An enumeration.
RiskAssessmentStatusEnum
string
Possible risk assessment values for CVV and AVS checks.
GoCardlessMandateAPISchema
object
1 property
1 required
PayPalExternalPayerInfoAPISchema
object
4 properties
KlarnaSessionDetailsAPISchema
object
8 properties
5 required
CardNetworkEnum
string
The list of available card networks.
KlarnaPaymentSessionAPISchema
object
2 properties
2 required
OrderShippingAPISchema
object
4 properties
PreAuthFraudDecisionTypeEnum
string
Possible pre-authorization fraud check outcomes.
PaymentResponsePaymentMethodOptionsAPISchema
object
9 properties
CVVCheckAPISchema
object
Results of any external CVV check performed on this payment.
2 properties
RecurringTransactionTypeEnum
string
An enumeration.
AdvisedActionEnum
string
The Primer-recommended action to take based on the underlying decline reason and advice code. This advised action is unified across all supported processors an…
PaymentAPIResponse
object
18 properties
ApayaCustomerTokenAPISchema
object
3 properties
1 required
PreAuthorizationRecommendationEnum
string
Pre-authorization recommendation indicating the SCA exemption or risk assessment path taken. Only present when preAuthorizationResult is THREEDSEXEMPTION. Valu…
FirstPaymentReasonEnum
string
The reason for the first payment. This is used for informing payment processors about the specific reason a payment method is being stored. Defaults to None if…
202AcceptedResponse
object
1 property
PaymentResponseProcessorAPISchema
object
4 properties
BlockingPaymentActionTypeEnum
string
An enumeration.
CardTokenTypeEnum
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…
AddressAPISchema
object
8 properties
3 required
AVSCheckAPISchema
object
Results of any external AVS check performed on this payment.
2 properties
PaymentAdjustAuthorizationAPIRequest
object
2 properties
1 required
PaymentCaptureAPIRequest
object
5 properties
CountryCodeEnum
2-letter country code in ISO 3166-1 alpha format, e.g. FR for France and GB for the United Kingdom.
PaymentAuthorizationRequestProcessorAPISchema
object
2 properties
1 required
RecurringPaymentTypeSchema
Payment types, primarily to be used for recurring payments. See the table below for all possible values. Note: if no field is set, we will return a blank value…
PaymentRefundAPIRequest
object
5 properties
IdealPayNLTokenAPISchema
object
1 property
1 required
The full machine-readable OpenAPI contract behind this narrative.
Other APIs Primer publishes across the network.