Payments - REST API Barclays
Payments - REST API Barclays
REST API
Barclays
Developer Guide
Cybersource Contact Information
For general information about our company, products, and services, go to https://www.cybersource.com.
For sales questions about any Cybersource service, email [email protected] or call 650-432-7350 or 888-330-2300 (toll free in
the United States).
For support information about any Cybersource service, visit the Support Center: https://www.cybersource.com/support
Copyright
© 2020. Cybersource Corporation. All rights reserved. Cybersource Corporation (“Cybersource”) furnishes this document and the
software described in this document under the applicable agreement between the reader of this document (“You”) and Cybersource
(“Agreement”). You may use this document and/or software only in accordance with the terms of the Agreement. Except as expressly
set forth in the Agreement, the information contained in this document is subject to change without notice and therefore should not
be interpreted in any way as a guarantee or warranty by Cybersource. Cybersource assumes no responsibility or liability for any errors
that may appear in this document. The copyrighted software that accompanies this document is licensed to You for use only in strict
accordance with the Agreement. You should read the Agreement carefully before using the software. Except as permitted by the
Agreement, You may not reproduce any part of this document, store this document in a retrieval system, or transmit this document, in
any form or by any means, electronic, mechanical, recording, or otherwise, without the prior written consent of Cybersource.
For civilian agencies: Use, reproduction, or disclosure is subject to restrictions set forth in suparagraphs (a) through (d) of the
Commercial Computer Software Restricted Rights clause at 52.227-19 and the limitations set forth in Cybersource Corporation's
standard commercial agreement for this software. Unpublished rights reserved under the copyright laws of the United States.
Trademarks
Authorize.Net, eCheck.Net, and The Power of Payment are registered trademarks of Cybersource Corporation. Cybersource,
Cybersource Payment Manager, Cybersource Risk Manager, Cybersource Decision Manager, and Cybersource Connect are trademarks
and/or service marks of Cybersource Corporation. Visa, Visa International, Cybersource, the Visa logo, and the Cybersource logo
are the registered trademarks of Visa International in the United States and other countries. All other trademarks, service marks,
registered marks, or registered service marks are the property of their respective owners.
Condentiality Notice
This document is furnished to you solely in your capacity as a client of Cybersource and as a participant in the Visa payments system.
By accepting this document, you acknowledge that the information contained herein (the “Information”) is condential and subject
to the condentiality restrictions contained in Visa's operating regulations and/or other condentiality agreements, which limity our
use of the Information. You agree to keep the Information condential and not to use the Information for any purpose other than its
intended purpose and in your capacity as a customer of Cybersource or as a participant in the Visa payments system. The Information
may only be disseminated within your organization on a need-to-know basis to enable your participation in the Visa payments system.
Please be advised that the Information may constitute material non-public information under U.S. federal securities laws and that
purchasing or selling securities of Visa Inc. while being aware of material non-public information would constitute a violation of
applicable U.S. federal securities laws.
Revision
Version: 23.01
Contents
Contents
Cybersource Contents 3
Contents
Cybersource Contents 4
Contents
Required Fields for an Authorization with Visa Secure Using REST APIs............ 54
Example: Authorization with Visa Secure Using the REST API.............................. 55
JCB J/Secure.......................................................................................................................... 57
Required Fields for an Authorization using JCB J/Secure Authentication
with the REST API..................................................................................................57
Authorizing a JCB J/Secure Transaction Using REST APIs................................... 58
Example: Authorization with JCB J/Secure Using the REST API.......................... 58
Mastercard Identity Check.................................................................................................. 60
Required Fields for an Authorization with Mastercard Identity Check Using
REST APIs................................................................................................................ 61
Authorizing a Mastercard Identity Check Transaction Using REST APIs............. 62
Example: Authorizing Mastercard Identity Check Using the REST API................ 62
ProtectBuy...............................................................................................................................64
Authorizing a ProtectBuy Transaction..................................................................... 65
Example: Authorization with ProtectBuy Using the REST API............................... 65
Authorization with an SCA Exemption................................................................................ 67
Required Fields for an Authorization with an SCA Exemption Using the REST
API............................................................................................................................68
REST Example: Authorization with an SCA Exemption for Low Value
Transactions.......................................................................................................... 69
Credentialed Transactions............................................................................................................. 72
Customer-Initiated Transactions with Credentials on File............................................. 72
Storing Customer Credentials with a Customer-Initiated Transaction.............. 72
Using Stored Customer Credentials During a Customer-Initiated
Transaction.............................................................................................................75
Merchant-Initiated Transactions......................................................................................... 78
Debit and Prepaid Card Processing..............................................................................................79
Processing Debit and Prepaid Authorizations...................................................................79
Required Fields for Debit and Prepaid Authorizations Using REST APIs.............. 79
Optional Field for Debit and Prepaid Authorizations Using REST APIs................ 80
REST Example: Debit and Prepaid Authorizations...................................................80
Enabling Debit and Prepaid Partial Authorizations...........................................................82
Required Field for Enabling Debit and Prepaid Partial Authorizations Using
REST APIs................................................................................................................82
Optional Field for Enabling Debit and Prepaid Partial Authorizations Using
REST APIs................................................................................................................83
Enabling Partial Authorizations.................................................................................. 83
Example: Enabling Debit and Prepaid Partial Authorizations Using the REST
API............................................................................................................................83
Disabling Debit and Prepaid Partial Authorizations..........................................................85
Required Field for Disabling Debit and Prepaid Partial Authorizations Using
REST APIs............................................................................................................... 85
Optional Field for Disabling Debit and Prepaid Partial Authorizations Using
REST APIs............................................................................................................... 85
Disabling Partial Authorizations................................................................................. 85
Cybersource Contents 5
Example: Disabling Debit and Prepaid Partial Authorizations Using the REST
API............................................................................................................................86
Recent Revisions to This Document
23.01
Multiple Partial Captures Added the section Multiple Partial
Captures on page 22.
Authorizations with a Card Verication Added the section Authorizations with Card
Number Verication Numbers on page 12.
22.02
Authorization with an SCA Exemption Use Added an Authorization with an SCA
Case exemption use case to the Basic
Authorization section of the Payment
Guide. See Authorization with an SCA
Exemption on page 37.
Basic Authorization Reversals Use Case Added a basic authorization reversal use
case. SeeAuthorization Reversals on page
44.
22.01
New Payment Guide This new payment guide, replaces the now
deprecated Credit Card Guide is re-written
to better align with customer requirements.
This section describes the audience and purpose of this guide as well as conventions and
related documentation. See below for information about how to use this guide and where
to nd further information.
Conventions
These special statements are used in this document:
Important
An Important statement contains information essential to successfully completing
a task or learning a concept.
Warning
A Warning contains information or instructions, which, if not heeded, can result in a
security risk, irreversible loss of data, or signicant cost in time or revenue or both.
Related Documentation
Refer to the Technical Documentation Portal for complete technical documentation:
https://docs.cybersource.com/en/index.html
Customer Support
For support information about any service, visit the Support Center:
http://www.cybersource.com/support
Introduction to Payments
This introduction provides the basic information that you will need to successfully process
payment transactions. It also provides an overview of the payments industry and provides
workows for each process.
Payment Services
With Cybersource payment services, you can process payment cards (tokenized or
non-tokenized), digital payments, such as Apple Pay and Google Pay, and customer ID
transactions. You can process payments across the globe and across multiple channels
with scalability and security. Cybersource supports a large number of payment cards and
offers a wide choice of gateways and nancial institutions, all through one connection.
These charges can be bundled (combined into a single charge) or unbundled (charged
separately).
• Interchange fees—payment networks, such as Visa or Mastercard, each have a base
fee, called the interchange fee, for each type of transaction. Your acquirer and
processor can show you ways to reduce this fee.
• Chargebacks—when cardholders dispute charges, you can incur chargebacks. A
chargeback occurs when a charge on a customer’s account is reversed. Your acquirer
removes the money from your account and could charge you a fee for processing the
chargeback.
Take these precautions to prevent chargebacks:
• Use accurate merchant descriptors, so that customers can recognize the transactions
on their statements.
• Provide good customer support.
• Ensure rapid problem resolution.
• Maintain a high level of customer satisfaction.
• Minimize fraudulent transactions.
If excessive chargebacks or fraudulant changes occur, these actions may be taken:
• You may be required to change your business processes to reduce the number
chargebacks and/or fraud.
• Your acquiring institution might increase your discount rate.
• Your acquiring institution might revoke your merchant account.
Contact your sales representative for information about products that can help prevent
fraud.
Payment Networks
Payment networks manage communications between acquiring nancial institutions and
issuing nancial institutions. They also develop industry standards, support their brands,
and establish fees for acquiring institutions.
Some payment networks, such as Visa and Mastercard, are trade associations that do
not issue cards. Issuers are members of these associations, and they issue cards under
license from the association.
Other networks, such as Discover and American Express, issue their own cards. Before
you process cards from these companies, you must sign agreements with them.
Payment Processors
Payment processors connect with acquirers. Before you can accept payments, you
must register with a payment processor.An acquirer may require you to use a payment
processor with an existing relationship with the acquirer.
Your payment processor assigns one or more merchant IDs (MIDs) to your business. These
unique codes identify your business during payment transactions.
Payment Types
You can make payments with these payment types:
• Co-badged cards
• Co-branded cards
• Credit cards
• Debit cards
• Prepaid cards
• Private label cards
• Quasi-cash
Co-Badged Cards
Co-badged cards are credit cards that integrate two or more payment networks.
Co-Branded Cards
Co-branded cards are credit cards that are branded with a merchant's logo, brand, or
other identier as well as the payment network logo. These cards are not limited for use at
the branded merchant and can be used at any merchant that accepts credit cards.
Credit Cards
Cardholders use credit cards to borrow money from issuing banks to pay for goods and
services offered by merchants that accept credit cards.
Debit Cards
A Debit card is linked to a cardholder's checking account. A merchant who accepts the
debit card can deduct funds directly from the linked cardholder's account.
Prepaid Cards
Prepaid cards allow cardholders to pay for goods and services using money stored directly
on the card.
Quasi-Cash
Quasi-cash transactions involve instruments that are directly convertible to cash such as
web wallets, travelers checks, cryptocurrency, and lottery tickets.
Transaction Types
This topic provides information about card-present, card-not-present, and international
transactions.
Card-Not-Present Transactions
When a customer provides a card number, but the card and the customer is not physically
present at the merchant's location, the purchase is known as a card-not-present
transaction. Typical card-not-present transactions are internet and phone transactions.
Card-not-present transactions pose an additional level of risk to your business because
the customer’s identication cannot be veried. You can reduce that risk by using
features such as, the Address Verication System (AVS) and Card Verication Numbers
(CVNs). The AVS and CVNs provide additional protection from fraud. AVS validates the
cardholder’s entered address in relation to the known customer's address. CVN requires
the cardholder to include the card's CVN number during a transaction.
Card-Present Transactions
When a customer uses a card that is physically present in a retail environment, the
purchase is known as a card-present transaction.
Important
In Europe, Visa mandates that you not include a CVN for mail-order transactions
and not record a CVN on any physical format such as a mail-order form.
Endpoint
POST https://api.cybersource.com/pts/v2/payments
CVN Locations
Each payment card company has its own name for the CVN value:
• American Express and Discover call it the Card Identication Number (CID).
• JCB calls it the Card Authentication Value (CAV2).
• Mastercard calls it the Card Validation Code (CVC2).
• Visa calls it the Card Verication Value (CVV2).
International Transactions
Consider these issues when processing international transactions.
Merchant Remittance Funding
You can request that the transaction proceeds be converted to another currency.
Currency conversion uses a foreign exchange rate to calculate the conversion to the
requested currency. The foreign exchange rate might be explicitly stated as a rate or
implicitly stated as a transaction amount. The funded amount and can vary from day to
day. The foreign exchange rate might also include a mark-up for the foreign exchange risk,
sales commissions, and handling costs.
TMS simplies your PCI DSS compliance. TMS passes back to you tokens that represent
this data. You then store these tokens in your environment and databases instead of
customer payment details.
TMS Token Types
• Customer — Stores the buyer’s email address and the merchant's account ID for that
buyer plus any other custom elds.
• Shipping Address — Stores a shipping address for a specic customer.
• Instrument Identier — An Instrument Identier object stores either:
• Payment card number
• [or] ACH bank account and routing number
This resource creates either:
• An Instrument Identier token using details of a payment card or an ACH bank
account.
• A payment network token using the details of a payment card; also uses the card
expiration date and billing address, which are pass-through only elds.
• Payment Instrument — Stores a Payment Instrument using an Instrument Identier
token. It does not store the card number and cannot exist without an associated
Instrument Identier. It stores:
• Card expiration date
• Billing address
You can also choose to store this information yourself instead and store only the card
number or bank account and routing number in an Instrument Identier object.
• Customer Payment Instrument — Creates and stores a payment instrument for a
specic customer ID and an Instrument Identier token.
TMS Features
• Create, retrieve, update, and delete tokens.
• Set a default payment instrument and shipping address for a customer.
• Process follow-on payment transactions with token IDs.
• Create and update tokens through bundled payment transactions.
Payment Processing
The various services used to process payments are at the heart of payment processing.
These services enable customers to purchase goods and services, merchants receive
payments from the customer's accounts, merchants to provide refunds, and merchants to
void transactions.
Authorizations
An authorization conrms that a payment card account holds enough funds to pay for a
purchase. Authorizations fall into two categories: online and ofine.
Online Authorizations
Online authorizations provide immediate funds availability conrmations. The customer's
nancial institution also reduces the amount of credit available in the customer's
account, setting aside the authorized funds for the merchant to capture a later time.
Authorizations for most payment cards are processed online. Typically, it is safe to start
fullling the order once you receive an authorization conrmation.
An online authorization conrmation and the subsequent hold on funds expires after a
specic length of time. Thus it is important to capture funds in a timely manner. The issuing
bank sets the expiration time interval but most authorizations expire within ve to seven
days.
The issuing bank does not inform Cybersource when an authorization conrmation
expires. By default, the authorization information for each transaction remains in
the Cybersource database for 60 days after the authorization date. To capture an
authorization that expired with the issuing bank, you can resubmit the authorization
request.
Ofine Authorizations
Online transactions require an internet connection. In situations where the internet is
not available, for example, due to an outage, merchants can continue to take credit card
payments using ofine transactions. An ofine authorization is an authorization request
for which you do not receive an immediate conrmation about the availability of funds.
Ofine authorizations have a higher level of risk than online transactions because they do
not provide fund availability conrmations or set aside the funds for later capture. Further,
it can take up to ve days to receive payment conrmations for ofine transactions. To
mitigate this risk, merchants may choose to fulll orders only after receiving payment
conrmations.
Incremental Authorizations
Incremental authorizations are useful when a customer adds products and services
to a purchase. After a successful initial authorization, you can request subsequent
authorizations and request one capture for the initial authorization and the incremental
authorizations.
The incremental authorization service is not the same as the incremental authorization
scenario for a merchant-initiated transaction.
Example
1. The customer reserves a hotel room for two nights at a cost of 200.00 per night. You
request an authorization for 400.00. The authorization request is approved.
2. The customer orders dinner through room service the rst night. You request an
incremental authorization of 50.00 for the dinner.
3. The customer decides to stay an extra night. You request an incremental authorization
of 200.00 for the additional night.
4. The customer uses items from the mini-bar. The cost of the mini-bar items is 50.00. You
request an incremental authorization of 50.00.
5. When the customer checks out, they sign a receipt for 700.00, which is the total of all
costs incurred.
Authorization Workow
1. The customer purchases goods or service from the merchant using a payment card.
2. The merchant sends an authorization request to the acquiring (merchant) bank.
3. The acquiring (merchant) bank forwards the authorization request to the payment
network.
4. The payment network forwards the authorization request to the issuer (customer)
bank.
5. If funds are available, the issuer (customer) bank reserves the amount of the
authorization request and returns an authorization approval to the payment network. If
the issuer (customer) bank denies the request, it returns an authorization denial.
6. The payment network forwards the message to the acquiring (merchant) bank.
7. The acquiring (merchant) bank forwards the message to the merchant.
Sales
A sale is a bundled authorization and capture. Some processors and acquirers require a
sale transaction instead of using separate authorization and capture requests. For other
processors and acquirers, you can request a sale instead of a separate authorization and
capture when you provide the goods or services immediately after taking an order.
There are two types of sale processing: Dual-Message Processing and Single-Message
Processing.
When partial authorization is enabled, the issuing nancial institution can approve a partial
amount when the balance on the card is less than the requested amount. When a partial
amount is authorized, the capture is not processed. This enables the merchant to use a
second card to cover the balance, adjust the total cost, or void the transaction.
Authorization Reversals
An authorization reversal releases the hold that an authorization placed on the customer’s
payment card funds.
Each card-issuing nancial institution has its own rules for deciding whether an
authorization reversal succeeds or fails. When a reversal fails, contact the card-issuing
nancial institution to learn whether there is a different way to reverse the authorization.
If your processor supports authorization reversal after void (ARAV), you can reverse an
authorization after you void the associated capture. If your processor does not support
ARAV, you can use the authorization reversal service only for an authorization that has not
been captured and settled.
An authorization reversal is a follow-on transaction that uses the request ID returned
from an authorization. The main purpose of a follow-on transaction is to link two
transactions. The request ID links the follow-on transaction to the original transaction.
The authorization request ID is used to look up the customer’s billing and account
information in the Cybersource database. You are not required to include those elds in
the full authorization reversal request. The original transaction and follow-on transaction
are linked in the database and in the Business Center.
For processors that support debit cards and prepaid cards, authorization reversal works
for debit cards and prepaid cards in addition to credit cards.
Important
You cannot perform an authorization reversal if a transaction is in a review state,
which can occur if you use a fraud management service. You must reject the
transaction prior to authorization reversal. For more information, see the fraud
management documentation in the Business Center.
Credits
Credits are cash refunds from a merchant to the cardholder after a cardholder pays for a
product or service and that payment is captured by the merchant. When a credit request
is successful, the issuing bank transfers funds from the merchant bank (acquirers)
account to the customer's account. It typically takes two to four days for your acquiring
bank to transfer funds from your merchant's account.
Warning
You should carefully control access to the credit service. Do not request this
service directly from your customer interface. Instead, incorporate this service
as part of your customer service process. This process reduces the potential for
fraudulent transactions.
There are two basic types of credits:
• Refunds
• Stand-Alone Credits
Refunds
Refunds, also known as follow-on credits, use the capture request ID to link the refund
to a specic transaction. This request ID is returned during the capture request (also
known as a settlement) and is used in all subsequent refunds associated with the original
capture. The request ID links the transaction to the customer’s billing and account
information, so you are not required to include those elds in the credit request. However,
when you combine a request for a refund with a request for another service, such as the
tax calculation service, you must provide the customer’s billing and account information.
Unless otherwise specied, refunds must be requested within 60 days of a settlement.
You can request multiple refunds against a single capture. To perform multiple refunds,
use the same request ID in each request.
Stand-Alone Credits
Stand-alone credits are not tied to an original transaction. Stand-alone credits do not
have a time restriction, and they can be used to issue refunds more than 60 days after a
transaction settlement.
Credit Workow
A credit does not happen in real time. All of the credit requests for a day are typically
placed in a batch le and sent to the processor as a single batch transaction. In most
cases, the batch transaction is settled overnight.
Capture
A capture is a follow-on transaction to an authorization. It is used to transfer the
authorized funds from the customer's account to the merchant account. To link the
authentication transaction to the capture transaction, you include a request ID in your
capture request. This request ID is returned to you during the authentication response.
Capture are typically not performed in real time. They are placed in a batch le and sent
to the processor and the processor settles all of the captures at one time. In most cases,
these batch les are sent and processed outside of the merchant's business hours. It
usually takes two to four days for the acquiring nancial institution to deposit the funds
into the merchant account.
When fullling only part of a customer’s order, do not capture the full amount of the
authorization. Capture only the cost of the delivered items. When you deliver the
remaining items, request a new authorization, and then capture the new authorization.
Important
It is not possible to perform a capture if a transaction is in a review state, which
can occur if you use a fraud management service. You must accept the transaction
prior to capture. For more information, see the fraud management documentation
in the Business Center.
Capture Workow
1. The merchant sends one or more transaction capture requests to the merchant bank
(acquirer).
2. The merchant bank sends the capture package to the payment network.
3. The payment network forwards the capture package to correct the customer bank
(issuer).
4. The customer bank settles the transactions and transfers the money to the merchant
bank (acquirer).
Important
The payment processor does not notify Cybersource that the money has been
transferred. To ensure that all captures are processed correctly, you should
reconcile your capture requests with the capture reports from your processor.
Basic Processing
This section provides the minimum requirements for successfully processing the standard
payment services.
Captures
This section shows you how to capture an authorized transaction.
Endpoint
POST https://api.cybersource.com/pts/v2/payments/{id}/captures
id is the transaction ID returned in the authorization response.
{
"orderInformation": {
"amountDetails": {
"totalAmount": "100.00"
}
}
Response
{
"_links": {
"void": {
"method": "POST",
"href": "/pts/v2/captures/6662994431376681303954/voids"
},
"self": {
"method": "GET",
"href": "/pts/v2/captures/6662994431376681303954"
}
},
"clientReferenceInformation": {
"code": "1666299443215"
},
"id": "6662994431376681303954",
"orderInformation": {
"amountDetails": {
"totalAmount": "100.00",
"currency": "EUR"
}
},
"reconciliationId": "66535942B9CGT52U",
"status": "PENDING",
"submitTimeUtc": "2022-10-20T20:57:23Z"
}
Endpoint
POST https://api.cybersource.com/pts/v2/payments/{id}/captures
id is the transaction ID returned in the authorization response.
processingInformation.captureOptions.captureSequenceNumber
processingInformation.captureOptions.totalCaptureCount
When you do not know the total number
of captures that you are going to request,
set the capture total count to an estimated
value or 99 for all capture requests except
the nal one. For the nal capture request,
set the capture total count and the capture
sequence to the same value.
Related information
API Field Reference for the REST API
{
{
"clientReferenceInformation": {
"code": "TC50171_3"
},
"processingInformation": {
"captureOptions": {
"captureSequenceNumber": null,
"totalCaptureCount": null
}
},
"orderInformation": {
"amountDetails": {
"totalAmount": "102.21",
"currency": "USD"
}
}
}
Response
{
"_links": {
"void": {
"method": "POST",
"href": "/pts/v2/captures/6742496815656503003954/voids"
},
"self": {
"method": "GET",
"href": "/pts/v2/captures/6742496815656503003954"
}
},
"clientReferenceInformation": {
"code": "TC50171_3"
},
"id": "6742496815656503003954",
"orderInformation": {
"amountDetails": {
"totalAmount": "102.21",
"currency": "USD"
}
},
"reconciliationId": "67332020GD2G1OO1",
"status": "PENDING",
"submitTimeUtc": "2023-01-20T21:21:21Z"
}
Basic Authorizations
This section provides the minimal set of information required to perform a successful
authorization.
Endpoint
POST https://api.cybersource.com/pts/v2/payments
Declined Authorizations
If an authorization is declined, you can use response categories to help decide if you
should retry or block a declined transaction. These response elds provide additional
information:
• paymentInsightsInformation.responseInsights.category
• paymentInsightsInformation.responseInsights.categoryCode
Category codes have possible values (such as 01) that correspond to a category, which
contains a description. These are the possible values:
• You cannot retry the following category code and category:
• 01 ISSUER_WILL_NEVER_APPROVE
• For the following values, you can retry the transaction a maximum of 15 times over a
period of 30 days:
• 02 ISSUER_CANNOT_APPROVE_AT_THIS_TIME
• 03 ISSUER_CANNOT_APPROVE_WITH_THESE_DETAILS: Data quality issue. Revalidate data
prior to retrying the transaction.
• 04 GENERIC_ERROR
• 97 PAYMENT_INSIGHTS_INTERNAL_ERROR
• 98 OTHERS
• 99 PAYMENT_INSIGHTS_RESPONSE_CATEGORY_MATCH_NOT_FOUND
{
"orderInformation": {
"billTo": {
"country": "US",
"lastName": "Kim",
"address1": "201 S. Division St.",
"postalCode": "48104-2201",
"locality": "Ann Arbor",
"administrativeArea": "MI",
"rstName": "Kyong-Jin",
"email": "[email protected]"
},
"amountDetails": {
"totalAmount": "100.00",
"currency": "usd"
}
},
"paymentInformation": {
"card": {
"expirationYear": "2031",
"number": "4111111111111111",
"expirationMonth": "12",
"type": "001"
}
}
}
{
"_links" : {
"authReversal" : {
"method" : "POST",
"href" : "/pts/v2/payments/6461731521426399003473/reversals"
},
"self" : {
"method" : "GET",
"href" : "/pts/v2/payments/6461731521426399003473"
},
"capture" : {
"method" : "POST",
"href" : "/pts/v2/payments/6461731521426399003473/captures"
}
},
"clientReferenceInformation" : {
"code" : "1646173152047"
},
"id" : "6461731521426399003473",
"orderInformation" : {
"amountDetails" : {
"authorizedAmount" : "100.00",
"currency" : "usd"
}
},
"paymentAccountInformation" : {
"card" : {
"type" : "001"
}
},
"paymentInformation" : {
"tokenizedCard" : {
"type" : "001"
},
"card" : {
"type" : "001"
}
},
"paymentInsightsInformation" : {
"responseInsights" : {
"categoryCode" : "01"
}
},
"processorInformation" : {
"systemTraceAuditNumber" : "862481",
"approvalCode" : "831000",
"merchantAdvice" : {
"code" : "01",
"codeRaw" : "M001"
},
"responseDetails" : "ABC",
"networkTransactionId" : "016153570198200",
"consumerAuthenticationResponse" : {
"code" : "2",
"codeRaw" : "2"
},
"transactionId" : "016153570198200",
"responseCode" : "00",
"avs" : {
"code" : "Y",
"codeRaw" : "Y"
}
},
"reconciliationId" : "6461731521426399003473",
"status" : "AUTHORIZED",
"submitTimeUtc" : "2022-03-01T22:19:12Z"
}
{
"clientReferenceInformation": {
"code": "TC50171_3"
},
"errorInformation": {
"reason": "PROCESSOR_ERROR",
"message": "Invalid account"
},
"id": "6583553837826789303954",
"paymentInsightsInformation": {
"responseInsights": {
"categoryCode": "01",
"category": "ISSUER_WILL_NEVER_APPROVE"
}
},
"pointOfSaleInformation": {
"amexCapnData": "1009S0600100"
},
"processorInformation": {
"systemTraceAuditNumber": "004544",
"merchantNumber": "1231231222",
"networkTransactionId": "431736869536459",
"transactionId": "431736869536459",
"responseCode": "111",
"avs": {
"code": "Y",
"codeRaw": "Y"
}
},
"status": "DECLINED"
}
"orderInformation": {
"lineItems": [
{
"unitPrice": "10.00"
},
{
"unitPrice": "5.99",
"quantity": "3",
"productCode": "shipping_only"
},
{
"unitPrice": "29.99",
"quantity": "3",
"productCode": "electronic_good",
"productSku": "12384569",
"productName": "receiver"
}
]
}
Endpoint
POST https://api.cybersource.com/pts/v2/payments
Required Fields
orderInformation.amountDetails.currency
orderInformation.amountDetails.totalAmount
orderInformation.billTo.address1
orderInformation.billTo.administrativeArea
orderInformation.billTo.country
orderInformation.billTo.email
orderInformation.billTo.rstName
orderInformation.billTo.lastName
orderInformation.billTo.locality
orderInformation.billTo.postalCode
paymentInformation.card.expirationMonth
paymentInformation.card.expirationYear
paymentInformation.card.number
{
"currencyConversion": {
"indicator": "Y"
},
"paymentInformation": {
"card": {
"number": "4111111111111111",
"expirationMonth": "12",
"expirationYear": "2031"
}
},
"orderInformation": {
"amountDetails": {
"currency": "USD",
"exchangeRate": ".91",
"originalAmount": "107.33",
"originalCurrency": "eur"
},
"billTo": {
"rstName": "John",
"lastName": "Doe",
"address1": "1 Market St",
"locality": "san francisco",
"administrativeArea": "CA",
"postalCode": "94105",
"country": "US",
"email": "[email protected]"
},
"lineItems": [
{
"unitPrice": "10.00"
},
{
"unitPrice": "5.99",
"quantity": "3",
"productCode": "shipping_only"
},
{
"unitPrice": "29.99",
"quantity": "3",
"productCode": "electronic_good",
"productSku": "12384569",
"productName": "receiver"
}
]
}
}
Response
{
"_links": {
"authReversal": {
"method": "POST",
"href": "/pts/v2/payments/6482385519226028804003/reversals"
},
"self": {
"method": "GET",
"href": "/pts/v2/payments/6482385519226028804003"
},
"capture": {
"method": "POST",
"href": "/pts/v2/payments/6482385519226028804003/captures"
}
},
"clientReferenceInformation": {
"code": "1648238551902"
},
"id": "6482385519226028804003",
"orderInformation": {
"amountDetails": {
"authorizedAmount": "117.94",
"currency": "USD"
}
},
"paymentAccountInformation": {
"card": {
"type": "001"
}
},
"paymentInformation": {
"tokenizedCard": {
"type": "001"
},
"card": {
"type": "001"
}
},
"processorInformation": {
"systemTraceAuditNumber": "191521",
"approvalCode": "831000",
"merchantAdvice": {
"code": "01",
"codeRaw": "M001"
},
"responseDetails": "ABC",
"networkTransactionId": "016153570198200",
"consumerAuthenticationResponse": {
"code": "2",
"codeRaw": "2"
},
"transactionId": "016153570198200",
"responseCode": "00",
"avs": {
"code": "Y",
"codeRaw": "Y"
}
},
"reconciliationId": "6482385519226028804003",
"status": "AUTHORIZED",
"submitTimeUtc": "2022-03-25T20:02:32Z"
}
CVN Results
The response includes a raw response code and a mapped response code:
• The raw response code is the value returned by the processor. This value is returned in
the processorInformation.cardVerication.resultCodeRaw eld. Use this value only for
debugging purposes; do not use it to determine the card verication response.
• The mapped response code is the pre-dened value that
corresponds to the raw response code. This value is returned in the
processorInformation.cardVerication.resultCode eld.
Even when the CVN does not match the expected value, the issuing bank might still
authorize the transaction. You will receive a CVN decline, but you can still capture the
transaction because it has been authorized by the bank. However, you must review the
order to ensure that it is legitimate.
Settling authorizations that fail the CVN check might have an impact on the fees charged
by your bank. Contact your bank for details about how card verication management
might affect your discount rate.
When a CVN decline is received for the authorization in a sale
request, the capture request is not processed unless you set the
processingInformation.authorizationOptions.ignoreCvResult eld to true.
CVN Results for American Express
A value of 1 in the processorInformation.cardVerication.resultCode eld indicates that
your account is not congured to use card verication. Contact customer support to
have your account enabled for this feature.
CVN Results for Discover
CVN Results for Visa and Mastercard
A CVN code of D or N causes the request to be declined with a reason code value of 230.
You can still capture the transaction, but you must review the order to ensure that it is
legitimate.
Cybersource, not the issuer, assigns the CVN decline to the authorization. You can
capture any authorization that has a valid authorization code from the issuer, even when
the request receives a CVN decline.
When the issuer does not authorize the transaction and the CVN does not match, the
request is declined because the card is refused. You cannot capture the transaction.
Endpoint
POST https://api.cybersource.com/pts/v2/payments
orderInformation.amountDetails.currency
orderInformation.amountDetails.totalAmount
orderInformation.billTo.address1
orderInformation.billTo.administrativeArea
orderInformation.billTo.country
orderInformation.billTo.email
orderInformation.billTo.rstName
orderInformation.billTo.lastName
orderInformation.billTo.locality
orderInformation.billTo.postalCode
paymentInformation.card.expirationMonth
paymentInformation.card.expirationYear
paymentInformation.card.number
paymentInformation.card.securityCode
paymentInformation.card.type
paymentInformation.card.securityCode
{
"paymentInformation": {
"card": {
"number": "4111111111111111",
"expirationMonth": "12",
"expirationYear": "2031",
"type": "001",
"securityCode": "999"
}
},
"orderInformation": {
"amountDetails": {
"totalAmount": "49.95",
"currency": "USD"
},
"billTo": {
"rstName": "John",
"lastName": "Doe",
"address1": "1295 Charleston Rd.",
"locality": "Mountain View",
"administrativeArea": "CA",
"postalCode": "94043",
"country": "US",
"email": "[email protected]",
"phoneNumber": "650-965-6000"
}
}
}
Response
{
"_links": {
"authReversal": {
"method": "POST",
"href": "/pts/v2/payments/6554147587216874903954/reversals"
},
"self": {
"method": "GET",
"href": "/pts/v2/payments/6554147587216874903954"
},
"capture": {
"method": "POST",
"href": "/pts/v2/payments/6554147587216874903954/captures"
}
},
"clientReferenceInformation": {
"code": "1655414758839"
},
"id": "6554147587216874903954",
"orderInformation": {
"amountDetails": {
"authorizedAmount": "49.95",
"currency": "USD"
}
},
"paymentAccountInformation": {
"card": {
"type": "001"
}
},
"paymentInformation": {
"tokenizedCard": {
"type": "001"
},
"card": {
"type": "001"
}
},
"pointOfSaleInformation": {
"terminalId": "111111"
},
"processorInformation": {
"approvalCode": "888888",
"networkTransactionId": "123456789619999",
"transactionId": "123456789619999",
"responseCode": "100",
"avs": {
"code": "X",
"codeRaw": "I1"
}
},
"reconciliationId": "67546603C43Z6JWN",
"status": "AUTHORIZED",
"submitTimeUtc": "2022-06-16T21:25:58Z"
}
Endpoint
POST https://api.cybersource.com/pts/v2/payments
orderInformation.billTo.postalCode
paymentInformation.card.expirationMonth
paymentInformation.card.expirationYear
paymentInformation.card.number
{
"orderInformation" : {
"billTo" : {
"country" : "US",
"lastName" : "Kim",
"address1" : "201 S. Division St.",
"postalCode" : "48104-2201",
"locality" : "Ann Arbor",
"administrativeArea" : "MI",
"rstName" : "Kyong-Jin",
"email" : "[email protected]"
},
"amountDetails" : {
"totalAmount" : "0.00",
"currency" : "usd"
}
},
"paymentInformation" : {
"card" : {
"expirationYear" : "2031",
"number" : "4111111111111111",
"expirationMonth" : "12"
}
}
}
Response
{
"_links" : {
"authReversal" : {
"method" : "POST",
"href" : "/pts/v2/payments/6461731521426399003473/reversals"
},
"self" : {
"method" : "GET",
"href" : "/pts/v2/payments/6461731521426399003473"
},
"capture" : {
"method" : "POST",
"href" : "/pts/v2/payments/6461731521426399003473/captures"
}
},
"clientReferenceInformation" : {
"code" : "1646173152047"
},
"id" : "6461731521426399003473",
"orderInformation" : {
"amountDetails" : {
"authorizedAmount" : "0",
"currency" : "usd"
}
},
"paymentAccountInformation" : {
"card" : {
"type" : "001"
}
},
"paymentInformation" : {
"tokenizedCard" : {
"type" : "001"
},
"card" : {
"type" : "001"
}
},
"processorInformation" : {
"systemTraceAuditNumber" : "862481",
"approvalCode" : "831000",
"merchantAdvice" : {
"code" : "01",
"codeRaw" : "M001"
},
"responseDetails" : "ABC",
"networkTransactionId" : "016153570198200",
"consumerAuthenticationResponse" : {
"code" : "2",
"codeRaw" : "2"
},
"transactionId" : "016153570198200",
"responseCode" : "00",
"avs" : {
"code" : "Y",
"codeRaw" : "Y"
}
},
"reconciliationId" : "6461731521426399003473",
"status" : "AUTHORIZED",
"submitTimeUtc" : "2022-03-01T22:19:12Z"
}
Important
If you send more than one SCA exemption eld with a single authentication, the
transaction will be denied.
• Authentication Outage: Payer authentication is not available for this transaction due to
a system outage.
• B2B Corporate Card: Payment cards specically for business-to-business transactions
are exempt.
• Delegated Authentication: Payer authentication was performed outside of the
authorization workow.
• Follow-On Installment Payment: Installment payments of a xed amount are exempt
after the rst transaction.
• Follow-On Recurring Payment: Recurring payments of a xed amount are exempt after
the rst transaction.
• Low Risk: The average fraud levels associated with this transaction are considered low.
• Low Value: The transaction value does not warrant SCA.
• Merchant Initiated Transactions: As follow-on transactions, merchant-initiated
transactions are exempt.
• Stored Credential Transaction: Credentials are authenticated before storing, so stored
credential transactions are exempt.
• Trusted Merchant: Merchants registered as trusted beneciaries.
Country-Specic Requirements
These elds are specic to certain countries and regions.
Endpoint
POST https://api.cybersource.com/pts/v2/payments
{
"consumerAutenticationInformation" : {
"strongAuthentication" : {
"lowValueExemptionIndicator" : "1"
}
},
"orderInformation" : {
"billTo" : {
"country" : "US",
"lastName" : "Kim",
"address1" : "201 S. Division St.",
"postalCode" : "48104-2201",
"locality" : "Ann Arbor",
"administrativeArea" : "MI",
"rstName" : "Kyong-Jin",
"email" : "[email protected]"
},
"amountDetails" : {
"totalAmount" : "100.00",
"currency" : "eur"
}
},
"paymentInformation" : {
"card" : {
"expirationYear" : "2031",
"number" : "4111111111111111",
"expirationMonth" : "12"
}
}
}
Response
{
"_links": {
"authReversal": {
"method": "POST",
"href": "/pts/v2/payments/6709780221406171803955/reversals"
},
"self": {
"method": "GET",
"href": "/pts/v2/payments/6709780221406171803955"
},
"capture": {
"method": "POST",
"href": "/pts/v2/payments/6709780221406171803955/captures"
}
},
"clientReferenceInformation": {
"code": "1670978022258"
},
"id": "6709780221406171803955",
"orderInformation": {
"amountDetails": {
"authorizedAmount": "100.00",
"currency": "eur"
}
},
"paymentAccountInformation": {
"card": {
"type": "001"
}
},
"paymentInformation": {
"tokenizedCard": {
"type": "001"
},
"card": {
"type": "001"
}
},
"pointOfSaleInformation": {
"terminalId": "123456"
},
"processorInformation": {
"approvalCode": "888888",
"networkTransactionId": "123456789619999",
"transactionId": "123456789619999",
"responseCode": "100",
"avs": {
"code": "X",
"codeRaw": "I1"
}
},
"reconciliationId": "62859554PBDEMI43",
"status": "AUTHORIZED",
"submitTimeUtc": "2022-12-14T00:33:42Z"
}
Sales
This section shows you how to process a sale transaction.
A sale transaction combines and authorization and a capture into a single transaction.
Endpoint
POST https://api.cybersource.com/pts/v2/payments
orderInformation.amountDetails.currency
orderInformation.amountDetails.totalAmount
orderInformation.billTo.address1
orderInformation.billTo.administrativeArea
orderInformation.billTo.country
orderInformation.billTo.email
orderInformation.billTo.rstName
orderInformation.billTo.LastName
orderInformation.billTo.locality
orderInformation.billTo.postalCode
paymentInformation.card.expirationMonth
paymentInformation.card.expirationYear
paymentInformation.card.number
paymentInformation.card.type
{
"processingInformation": {
"capture": true
},
"orderInformation" : {
"billTo" : {
"country" : "US",
"lastName" : "VDP",
"address1" : "201 S. Division St.",
"postalCode" : "48104-2201",
"locality" : "Ann Arbor",
"administrativeArea" : "MI",
"rstName" : "RTS",
"email" : "[email protected]"
},
"amountDetails" : {
"totalAmount" : "100.00",
"currency" : "usd"
}
},
"paymentInformation" : {
"card" : {
"expirationYear" : "2031",
"number" : "4111111111111111",
"expirationMonth" : "12",
"type" : "001"
}
}
}
Response
Most processors do not return all of the elds shown in this example.
{
"_links" : {
"void" : {
"method" : "POST",
"href" : "/pts/v2/payments/6485004068966546103093/voids"
},
"self" : {
"method" : "GET",
"href" : "/pts/v2/payments/6485004068966546103093"
}
},
"clientReferenceInformation" : {
"code" : "RTS-Auth"
},
"id" : "6485004068966546103093",
"orderInformation" : {
"amountDetails" : {
"totalAmount" : "100.00",
"authorizedAmount" : "100.00",
"currency" : "usd"
}
},
"paymentAccountInformation" : {
"card" : {
"type" : "001"
}
},
"paymentInformation" : {
"tokenizedCard" : {
"type" : "001"
},
"card" : {
"type" : "001"
}
},
"processorInformation" : {
"systemTraceAuditNumber" : "841109",
"approvalCode" : "831000",
"merchantAdvice" : {
"code" : "01",
"codeRaw" : "M001"
},
"responseDetails" : "ABC",
"networkTransactionId" : "016153570198200",
"retrievalReferenceNumber" : "208720841109",
"consumerAuthenticationResponse" : {
"code" : "2",
"codeRaw" : "2"
},
"transactionId" : "016153570198200",
"responseCode" : "00",
"avs" : {
"code" : "Y",
"codeRaw" : "Y"
}
},
"reconciliationId" : "6485004068966546103093",
"status" : "AUTHORIZED",
"submitTimeUtc" : "2022-03-28T20:46:47Z"
}
Authorization Reversals
Reversing an authorization releases the hold on the customer’s payment card funds that
the issuing bank placed when processing the authorization.
Each card-issuing nancial institution has its own rules for deciding whether an
authorization reversal succeeds or fails. When a reversal fails, contact the card-issuing
nancial institution to learn whether there is a different way to reverse the authorization.
If your processor supports authorization reversal after void (ARAV), you can reverse an
authorization after you void the associated capture. If your processor does not support
ARAV, you can use the full authorization reversal service only for an authorization that has
not been captured and settled.
An authorization reversal is a follow-on transaction that uses the request ID returned
from an authorization transaction to link the transactions together. The authorization
request ID is used to look up the customer’s billing and account information in
the Cybersource database. You are not required to include those elds in the full
authorization reversal request. The original transaction and follow-on transaction are
linked in the database and in the Business Center.
For processors that support debit cards and prepaid cards, the full authorization reversal
service works for debit cards and prepaid cards in addition to credit cards.
Endpoint
POST https://api.cybersource.com/pts/v2/payments/{id}/reversals
Related information
API Field Reference for the REST API
{
"reversalInformation" : {
"amountDetails" : {
"totalAmount" : "100.00"
}
}
}
Response
{
"_links" : {
"self" : {
"method" : "GET",
"href" : "/pts/v2/reversals/6522010713906068903093"
}
},
"authorizationInformation" : {
"approvalCode" : "100"
},
"clientReferenceInformation" : {
"code" : "1652201071257"
},
"id" : "6522010713906068903093",
"orderInformation" : {
"amountDetails" : {
"currency" : "USD"
}
},
"processorInformation" : {
"responseCode" : "0"
},
"reversalAmountDetails" : {
"reversedAmount" : "100.00",
"currency" : "USD"
},
"status" : "REVERSED",
"submitTimeUtc" : "2022-05-10T16:44:31Z"
}
Refunds
This section shows you how to process a refund. You must request a refund within 60 days
of the authorization.
Endpoint
POST https://api.cybersource.com/pts/v2/payments/{id}/refunds
id is the transaction ID returned during the authorization request.
{
"orderInformation" : {
"billTo" : {
"country" : "US",
"lastName" : "Kim",
"address1" : "201 S. Division St.",
"postalCode" : "48104-2201",
"locality" : "Ann Arbor",
"administrativeArea" : "MI",
"rstName" : "Kyong-Jin",
"email" : "[email protected]"
},
"amountDetails" : {
"totalAmount" : "100.00",
"currency" : "eur"
}
},
"paymentInformation" : {
"card" : {
"expirationYear" : "2031",
"number" : "4111111111111111",
"expirationMonth" : "12"
}
}
}
Response
{
"_links": {
"void": {
"method": "POST",
"href": "/pts/v2/credits/6699964581696622603955/voids"
},
"self": {
"method": "GET",
"href": "/pts/v2/credits/6699964581696622603955"
}
},
"clientReferenceInformation": {
"code": "1669996458298"
},
"creditAmountDetails": {
"currency": "eur",
"creditAmount": "100.00"
},
"id": "6699964581696622603955",
"orderInformation": {
"amountDetails": {
"currency": "eur"
}
},
"paymentAccountInformation": {
"card": {
"type": "001"
}
},
"paymentInformation": {
"tokenizedCard": {
"type": "001"
},
"card": {
"type": "001"
}
},
"processorInformation": {
"approvalCode": "888888",
"responseCode": "100"
},
"reconciliationId": "61873329OAILG3Q6",
"status": "PENDING",
"submitTimeUtc": "2022-12-02T15:54:18Z"
}
Credits
This topic shows you how to process a credit.
Endpoint
POST https://api.cybersource.com/pts/v2/credits/
orderInformation.amountDetails.currency
orderInformation.amountDetails.totalAmount
orderInformation.billTo.address1
orderInformation.billTo.administrationArea
orderInformation.billTo.country
orderInformation.billTo.email
orderInformation.billTo.rstName
orderInformation.billTo.lastName
orderInformation.billTo.locality
orderInformation.billTo.postalCode
paymentInformation.card.expirationMonth
paymentInformation.card.expirationYear
paymentInformation.card.number
{
"orderInformation" : {
"billTo" : {
"country" : "US",
"lastName" : "Kim",
"address1" : "201 S. Division St.",
"postalCode" : "48104-2201",
"locality" : "Ann Arbor",
"administrativeArea" : "MI",
"rstName" : "Kyong-Jin",
"email" : "[email protected]"
},
"amountDetails" : {
"totalAmount" : "100.00",
"currency" : "eur"
}
},
"paymentInformation" : {
"card" : {
"expirationYear" : "2031",
"number" : "4111111111111111",
"expirationMonth" : "12"
}
}
}
Response
{
"_links": {
"void": {
"method": "POST",
"href": "/pts/v2/credits/6663069906146706403954/voids"
},
"self": {
"method": "GET",
"href": "/pts/v2/credits/6663069906146706403954"
}
},
"clientReferenceInformation": {
"code": "1666306990717"
},
"creditAmountDetails": {
"currency": "eur",
"creditAmount": "100.00"
},
"id": "6663069906146706403954",
"orderInformation": {
"amountDetails": {
"currency": "eur"
}
},
"paymentAccountInformation": {
"card": {
"type": "001"
}
},
"paymentInformation": {
"tokenizedCard": {
"type": "001"
},
"card": {
"type": "001"
}
},
"processorInformation": {
"approvalCode": "888888",
"responseCode": "100"
},
"reconciliationId": "66490108K9CLFJPN",
"status": "PENDING",
"submitTimeUtc": "2022-10-20T23:03:10Z"
}
Voids
This section shows you how to successfully process a void.
Endpoint
POST https://api.cybersource.com/pts/v2/captures/{id}/voids
POST https://api.cybersource.com/pts/v2/credits/{id}/voids
id is the transaction ID returned during the request to void.
Important
POST requests for voids require a body. If you have no elds to pass, use empty
braces as shown below.
{
}
Response
{
"_links": {
"self": {
"method": "GET",
"href": "/pts/v2/voids/6541933390746728203005"
}
},
"clientReferenceInformation": {
"code": "1654193339056"
},
"id": "6541933390746728203005",
"orderInformation": {
"amountDetails": {
"currency": "USD"
}
},
"status": "VOIDED",
"submitTimeUtc": "2022-06-02T18:08:59Z",
"voidAmountDetails": {
"currency": "usd",
"voidAmount": "100.00"
}
}
Card-Present
Authorizations
Payer Authentication
Processing
Payer Authorization uses a two-step verication process to add an extra layer of fraud
protection during the payment process. This two-step process uses customer data from
two of the three categories:
• Something you have: A payment card or a payment card number
• Something you know: A password or pin
• Something you are: Facial recognition or ngerprint
Each payment card company has its own payer authentication product.
• American Express: SafeKey
• Discover: ProtectBuy
• JCB: J/Secure
• Mastercard: Identity Check
• Visa: 3D Secure
Payer Authentication can be used to satisfy the Strong Customer Authentication (SCA)
requirement of the Payment Services Directive (PSD2). SCA applies to the European
Economic Area (EEA) and the United Kingdom. It requires banks to perform additional
checks when consumers make payments to conrm their identity.
For more information on Payer Authentication, see: Payer Authentication Feature Guide.
Visa Secure
Visa Secure enables the exchange of data between the merchant, card issuer and, when
necessary, the consumer, to validate that the transaction is being initiated by the rightful
owner of the account. It is a two-step process. First the cardholder is authenticated
by 3D Secure. Then the transaction is authorized based on the 3D-Secure evaluation.
In this section, you will learn how to authorize a card payment based on the 3D-Secure
evaluation.
Prerequisite
Before you implement Visa Secure, you must contact customer support to have your
account congured for this feature.
Endpoint
POST https://api.cybersource.com/pts/v2/payments
clientReferenceInformation.code
consumerAuthenticationInformation.cavv
consumerAuthenticationInformation.xid
orderInformation.amountDetails.totalAmount
orderInformation.billTo.address1
orderInformation.billTo.administrativeArea
orderInformation.billTo.country
orderInformation.billTo.email
orderInformation.billTo.rstName
orderInformation.billTo.lastName
orderInformation.billTo.locality
orderInformation.billTo.postalCode
paymentInformation.card.expirationMonth
paymentInformation.card.expirationYear
paymentInformation.card.number
paymentInformation.card.type
processingInformation.commerceIndicator Set this eld to vbv for a successful
authentication or vbv_attempted if
Related information
API Field Reference for the REST API
{
"clientReferenceInformation": {
"code": "TC50171_3"
},
"processingInformation": {
"commerceIndicator": "vbv"
},
"paymentInformation": {
"card": {
"number": "4111111111111111",
"expirationMonth": "01",
"expirationYear": "2023"
}
},
"orderInformation": {
"amountDetails": {
"totalAmount": "100",
"currency": "USD"
},
"billTo": {
"rstName": "John",
"lastName": "Smith",
"address1": "201 S. Division St._1",
"locality": "Foster City",
"administrativeArea": "CA",
"postalCode": "94404",
"country": "US",
"email": "[email protected]",
"phoneNumber": "6504327113"
}
},
"consumerAuthenticationInformation": {
"cavv": "AceY+igABPs3jdwNaDg3MAACAAA=",
"xid": "1234567890987654321ABCDEFabcdefABCDEF123"
}
}
Response
{
"_links" : {
"authReversal" : {
"method" : "POST",
"href" : "/pts/v2/payments/6510049442466278803211/reversals"
},
"self" : {
"method" : "GET",
"href" : "/pts/v2/payments/6510049442466278803211"
},
"capture" : {
"method" : "POST",
"href" : "/pts/v2/payments/6510049442466278803211/captures"
}
},
"clientReferenceInformation" : {
"code" : "TC50171_3"
},
"id" : "6510049442466278803211",
"orderInformation" : {
"amountDetails" : {
"authorizedAmount" : "100.00",
"currency" : "USD"
}
},
"paymentAccountInformation" : {
"card" : {
"brandName" : "VISA",
"type" : "001"
}
},
"paymentInformation" : {
"tokenizedCard" : {
"type" : "001"
},
"card" : {
"type" : "001"
}
},
"processorInformation" : {
"systemTraceAuditNumber" : "819194",
"approvalCode" : "831000",
"merchantAdvice" : {
"code" : "01",
"codeRaw" : "M001"
},
"responseDetails" : "ABC",
"networkTransactionId" : "016153570198200",
"retrievalReferenceNumber" : "211620819194",
"consumerAuthenticationResponse" : {
"code" : "2",
"codeRaw" : "2"
},
"transactionId" : "016153570198200",
"responseCode" : "00",
"avs" : {
"code" : "Y",
"codeRaw" : "Y"
}
},
"reconciliationId" : "6510049442466278803211",
"status" : "AUTHORIZED",
"submitTimeUtc" : "2022-04-26T20:29:04Z"
}
JCB J/Secure
JCB J/Secure reduces the risk of unauthorized use of a payment card account by adding a
password identication step to the online shopping process.
Prerequisite
Before you implement payer authentication for JCB J/Secure, you must contact customer
support to have your account congured for this feature.
Endpoint
POST https://api.cybersource.com/pts/v2/payments
Related information
Payer Authentication Using the REST API
clientReferenceInformation.code
consumerAuthenticationInformation.cavv
consumerAuthenticationInformation.xid
orderInformation.amountDetails.currency
orderInformation.amountDetails.totalAmount
orderInformation.billTo.address1
orderInformation.billTo.administrativeArea
orderInformation.billTo.country
orderInformation.billTo.email
orderInformation.billTo.rstName
orderInformation.billTo.lastName
orderInformation.billTo.locality
orderInformation.billTo.postalCode
paymentInformation.card.expirationMonth
paymentInformation.card.expirationYear
paymentInformation.card.number
paymentInformation.card.type
processingInformation.commerceIndicator Set this eld to js for a successful
authentication or js_attempted if
authentication was attempted but did not
succeed.
{
"clientReferenceInformation": {
"code": "TC50171_3"
},
"processingInformation": {
"commerceIndicator": "js"
},
"paymentInformation": {
"card": {
"number": "3566111111111113",
"expirationMonth": "01",
"expirationYear": "2023"
}
},
"orderInformation": {
"amountDetails": {
"totalAmount": "100",
"currency": "USD"
},
"billTo": {
"rstName": "John",
"lastName": "Smith",
"address1": "201 S. Division St._1",
"address2": "",
"locality": "Foster City",
"administrativeArea": "CA",
"postalCode": "94404",
"country": "US",
"email": "[email protected]",
"phoneNumber": "6504327113"
}
},
"consumerAuthenticationInformation": {
"cavv": "AceY+igABPs3jdwNaDg3MAACAAA=",
"xid": "1234567890987654321ABCDEFabcdefABCDEF123"
}
}
Response
{
"_links" : {
"authReversal" : {
"method" : "POST",
"href" : "/pts/v2/payments/6510052001736280203211/reversals"
},
"self" : {
"method" : "GET",
"href" : "/pts/v2/payments/6510052001736280203211"
},
"capture" : {
"method" : "POST",
"href" : "/pts/v2/payments/6510052001736280203211/captures"
}
},
"clientReferenceInformation" : {
"code" : "TC50171_3"
},
"id" : "6510052001736280203211",
"orderInformation" : {
"amountDetails" : {
"authorizedAmount" : "100.00",
"currency" : "USD"
}
},
"paymentAccountInformation" : {
"card" : {
"brandName" : "JCB",
"type" : "007"
}
},
"paymentInformation" : {
"tokenizedCard" : {
"type" : "007"
},
"card" : {
"type" : "007"
}
},
"processorInformation" : {
"systemTraceAuditNumber" : "819199",
"approvalCode" : "831000",
"merchantAdvice" : {
"code" : "01",
"codeRaw" : "M001"
},
"responseDetails" : "ABC",
"networkTransactionId" : "016153570198200",
"retrievalReferenceNumber" : "211620819199",
"consumerAuthenticationResponse" : {
"code" : "2",
"codeRaw" : "2"
},
"transactionId" : "016153570198200",
"responseCode" : "00",
"avs" : {
"code" : "Y",
"codeRaw" : "Y"
}
},
"reconciliationId" : "6510052001736280203211",
"status" : "AUTHORIZED",
"submitTimeUtc" : "2022-04-26T20:33:20Z"
}
Prerequisite
Before you implement payer authentication for Mastercard Identity Check, you must
contact customer support to have your account congured for this feature.
Endpoint
POST https://api.cybersource.com/pts/v2/payments
consumerAuthenticationInformation.authenticationTransactionId
consumerAuthenticationInformation.paSpecicationVersion
consumerAuthenticationInformation.ucafCollectionIndicator
orderInformation.amountDetails.currency
orderInformation.amountDetails.totalAmount
orderInformation.billTo.address1
orderInformation.billTo.administrativeArea
orderInformation.billTo.country
orderInformation.billTo.email
orderInformation.billTo.rstName
orderInformation.billTo.lastName
orderInformation.billTo.locality
orderInformation.billTo.postalCode
paymentInformation.card.expirationMonth
paymentInformation.card.expirationYear
paymentInformation.card.number
processingInformation.commerceIndicator Set this eld to spa for an authentication
that was successful or was attempted but
did not succeed.
Related information
API Field Reference for the REST API
Important
A value of 0 for the UCAF collection indicator response eld for a Mastercard
transaction indicates that Mastercard downgraded the transaction. When
Mastercard approves an authorization and downgrades it, you are responsible
for the transaction. To conrm the downgrade, look at the e-commerce
indicator for the transaction in the Business Center. You can proceed with
the transaction if you want to accept responsibility. If you do not want to
accept responsibility, reverse the authorization, attempt to authenticate the
customer again, and request another authorization.
{
"clientReferenceInformation": {
"code": "TC50171_3"
},
"processingInformation": {
"commerceIndicator": "spa"
},
"paymentInformation": {
"card": {
"number": "5555555555554444",
"expirationMonth": "01",
"expirationYear": "2023"
}
},
"orderInformation": {
"amountDetails": {
"totalAmount": "100",
"currency": "USD"
},
"billTo": {
"rstName": "John",
"lastName": "Smith",
"address1": "201 S. Division St._1",
"locality": "Foster City",
"administrativeArea": "CA",
"postalCode": "94404",
"country": "US",
"email": "[email protected]",
"phoneNumber": "6504327113"
}
},
"consumerAuthenticationInformation": {
"ucafCollectionIndicator": "1",
"paSpecicationVersion": "1",
"authenticationTransactionId": "OiCtXA1j1AxtSNDh5lt1"
}
}
Response
{
"_links" : {
"authReversal" : {
"method" : "POST",
"href" : "/pts/v2/payments/6506578204516496503211/reversals"
},
"self" : {
"method" : "GET",
"href" : "/pts/v2/payments/6506578204516496503211"
},
"capture" : {
"method" : "POST",
"href" : "/pts/v2/payments/6506578204516496503211/captures"
}
},
"clientReferenceInformation" : {
"code" : "TC50171_3"
},
"id" : "6506578204516496503211",
"orderInformation" : {
"amountDetails" : {
"authorizedAmount" : "100.00",
"currency" : "USD"
}
},
"paymentAccountInformation" : {
"card" : {
"type" : "002"
}
},
"paymentInformation" : {
"tokenizedCard" : {
"type" : "002"
},
"card" : {
"type" : "002"
}
},
"processorInformation" : {
"approvalCode" : "100",
"responseCode" : "0",
"avs" : {
"code" : "U",
"codeRaw" : "00"
}
},
"status" : "AUTHORIZED",
"submitTimeUtc" : "2022-04-22T20:03:40Z"
}
ProtectBuy
Discover provides ProtectBuy to reduce the risk of unauthorized use of a payment card
account.
When you request an authorization using a supported card type and a supported
processor, you can include payer authentication data in the request. The payer
authentication services enable you to add payer authentication support to your website
without running additional software on your server.
ProtectBuy authenticates the customer by adding a password identication step to the
online shopping process. For details about signing up for and using ProtectBuy, contact
your acquiring bank or see the security and authentication information on the Discover
website.
Supported Service
Authorization
Prerequisite
Before you implement payer authentication for ProtectBuy, you must contact customer
support to have your account congured for this feature.
Endpoint
POST https://api.cybersource.com/pts/v2/payments
Related information
www.discoverglobalnetwork.com/solutions/fraud-security/security-and-
authentication
Payer Authentication Using the REST API
{
"clientReferenceInformation": {
"code": "TC50171_3"
},
"processingInformation": {
"commerceIndicator": "vbv"
},
"paymentInformation": {
"card": {
"number": "4111111111111111",
"expirationMonth": "01",
"expirationYear": "2023"
}
},
"orderInformation": {
"amountDetails": {
"totalAmount": "100",
"currency": "USD"
},
"billTo": {
"rstName": "John",
"lastName": "Smith",
"address1": "201 S. Division St._1",
"locality": "Foster City",
"administrativeArea": "CA",
"postalCode": "94404",
"country": "US",
"email": "[email protected]",
"phoneNumber": "6504327113"
}
},
"consumerAuthenticationInformation": {
"cavv": "AceY+igABPs3jdwNaDg3MAACAAA=",
"xid": "1234567890987654321ABCDEFabcdefABCDEF123"
}
}
Response
{
"_links" : {
"authReversal" : {
"method" : "POST",
"href" : "/pts/v2/payments/6510049442466278803211/reversals"
},
"self" : {
"method" : "GET",
"href" : "/pts/v2/payments/6510049442466278803211"
},
"capture" : {
"method" : "POST",
"href" : "/pts/v2/payments/6510049442466278803211/captures"
}
},
"clientReferenceInformation" : {
"code" : "TC50171_3"
},
"id" : "6510049442466278803211",
"orderInformation" : {
"amountDetails" : {
"authorizedAmount" : "100.00",
"currency" : "USD"
}
},
"paymentAccountInformation" : {
"card" : {
"brandName" : "VISA",
"type" : "001"
}
},
"paymentInformation" : {
"tokenizedCard" : {
"type" : "001"
},
"card" : {
"type" : "001"
}
},
"processorInformation" : {
"systemTraceAuditNumber" : "819194",
"approvalCode" : "831000",
"merchantAdvice" : {
"code" : "01",
"codeRaw" : "M001"
},
"responseDetails" : "ABC",
"networkTransactionId" : "016153570198200",
"retrievalReferenceNumber" : "211620819194",
"consumerAuthenticationResponse" : {
"code" : "2",
"codeRaw" : "2"
},
"transactionId" : "016153570198200",
"responseCode" : "00",
"avs" : {
"code" : "Y",
"codeRaw" : "Y"
}
},
"reconciliationId" : "6510049442466278803211",
"status" : "AUTHORIZED",
"submitTimeUtc" : "2022-04-26T20:29:04Z"
}
Important
If you send more than one SCA exemption eld with a single authentication, the
transaction will be denied.
• Authentication Outage: Payer authentication is not available for this transaction due to
a system outage.
• B2B Corporate Card: Payment cards specically for business-to-business transactions
are exempt.
• Delegated Authentication: Payer authentication was performed outside of the
authorization workow.
• Follow-On Installment Payment: Installment payments of a xed amount are exempt
after the rst transaction.
• Follow-On Recurring Payment: Recurring payments of a xed amount are exempt after
the rst transaction.
• Low Risk: The average fraud levels associated with this transaction are considered low.
• Low Value: The transaction value does not warrant SCA.
• Merchant Initiated Transactions: As follow-on transactions, merchant-initiated
transactions are exempt.
• Stored Credential Transaction: Credentials are authenticated before storing, so stored
credential transactions are exempt.
• Trusted Merchant: Merchants registered as trusted beneciaries.
Country-Specic Requirements
These elds are specic to certain countries and regions.
Endpoint
POST https://api.cybersource.com/pts/v2/payments
orderInformation.billTo.administrativeArea
orderInformation.billTo.country
orderInformation.billTo.email
orderInformation.billTo.rstName
orderInformation.billTo.lastName
orderInformation.billTo.locality
orderInformation.billTo.postalCode
paymentInformation.card.expirationMonth
paymentInformation.card.expirationYear
paymentInformation.card.number
paymentInformation.card.type
{
"consumerAutenticationInformation" : {
"strongAuthentication" : {
"lowValueExemptionIndicator" : "1"
}
},
"orderInformation" : {
"billTo" : {
"country" : "US",
"lastName" : "Kim",
"address1" : "201 S. Division St.",
"postalCode" : "48104-2201",
"locality" : "Ann Arbor",
"administrativeArea" : "MI",
"rstName" : "Kyong-Jin",
"email" : "[email protected]"
},
"amountDetails" : {
"totalAmount" : "100.00",
"currency" : "eur"
}
},
"paymentInformation" : {
"card" : {
"expirationYear" : "2031",
"number" : "4111111111111111",
"expirationMonth" : "12"
}
}
Response
{
"_links": {
"authReversal": {
"method": "POST",
"href": "/pts/v2/payments/6709780221406171803955/reversals"
},
"self": {
"method": "GET",
"href": "/pts/v2/payments/6709780221406171803955"
},
"capture": {
"method": "POST",
"href": "/pts/v2/payments/6709780221406171803955/captures"
}
},
"clientReferenceInformation": {
"code": "1670978022258"
},
"id": "6709780221406171803955",
"orderInformation": {
"amountDetails": {
"authorizedAmount": "100.00",
"currency": "eur"
}
},
"paymentAccountInformation": {
"card": {
"type": "001"
}
},
"paymentInformation": {
"tokenizedCard": {
"type": "001"
},
"card": {
"type": "001"
}
},
"pointOfSaleInformation": {
"terminalId": "123456"
},
"processorInformation": {
"approvalCode": "888888",
"networkTransactionId": "123456789619999",
"transactionId": "123456789619999",
"responseCode": "100",
"avs": {
"code": "X",
"codeRaw": "I1"
}
},
"reconciliationId": "62859554PBDEMI43",
"status": "AUTHORIZED",
"submitTimeUtc": "2022-12-14T00:33:42Z"
}
Credentialed Transactions
Endpoint
POST https://api.cybersource.com/pts/v2/payments
Required Fields
orderInformation.amountDetails.currency
orderInformation.amountDetails.totalAmount
orderInformation.billTo.address1
orderInformation.billTo.administrativeArea
orderInformation.billTo.country
orderInformation.billTo.email
orderInformation.billTo.rstName
orderInformation.billTo.lastName
orderInformation.billTo.locality
orderInformation.billTo.phoneNumber
orderInformation.billTo.postalCode
paymentInformation.card.expirationMonth
paymentInformation.card.expirationYear
paymentInformation.card.number
processingInformation.authorizationOptions.initiator.credentialStoredOnFile
Set to true.
{
"processingInformation": {
"authorizationOptions": {
"initiator": {
"credentialStoredOnFile": "true"
}
}
},
"orderInformation": {
"billTo": {
"rstName": "John",
"lastName": "Deo",
"address1": "201 S. Division St.",
"postalCode": "48104-2201",
"locality": "Ann Arbor",
"administrativeArea": "MI",
"country": "US",
"email": "[email protected]",
"phoneNumber": "6504327113"
},
"amountDetails": {
"totalAmount": "100.00",
"currency": "USD"
}
},
"paymentInformation": {
"card": {
"expirationYear": "2031",
"number": "4111xxxxxxxxxxxx",
"expirationMonth": "12"
}
}
}
Response
{
"_links": {
"authReversal": {
"method": "POST",
"href": "/pts/v2/payments/6528187198946076303004/reversals"
},
"self": {
"method": "GET",
"href": "/pts/v2/payments/6528187198946076303004"
},
"capture": {
"method": "POST",
"href": "/pts/v2/payments/6528187198946076303004/captures"
}
},
"clientReferenceInformation": {
"code": "1652818719876"
},
"id": "6528187198946076303004",
"orderInformation": {
"amountDetails": {
"authorizedAmount": "100.00",
"currency": "USD"
}
},
"paymentAccountInformation": {
"card": {
"type": "001"
}
},
"paymentInformation": {
"tokenizedCard": {
"type": "001"
},
"card": {
"type": "001"
}
},
"pointOfSaleInformation": {
"terminalId": "111111"
},
"processorInformation": {
"approvalCode": "888888",
"networkTransactionId": "123456789619999",
"transactionId": "123456789619999",
"responseCode": "100",
"avs": {
"code": "X",
"codeRaw": "I1"
}
},
"reconciliationId": "63165088Z3AHV91G",
"status": "AUTHORIZED",
"submitTimeUtc": "2022-05-17T20:18:40Z"
}
Endpoint
POST https://api.cybersource.com/pts/v2/payments
Card-Specic Requirements
Some card companies require additional information when making authorizations with
stored credentials.
Discover
Discover requires the authorization amount from the original transaction when sending a
request:
• processingInformation.authorizationOptions.initiator.merchantInitiatedTransaction.
originalAuthorizedAmount
Required Fields
orderInformation.amountDetails.currency
orderInformation.amountDetails.totalAmount
orderInformation.billTo.address1
orderInformation.billTo.administrativeArea
orderInformation.billTo.country
orderInformation.billTo.email
orderInformation.billTo.lastName
orderInformation.billTo.locality
orderInformation.billTo.phoneNumber
orderInformation.billTo.postalCode
paymentInformation.card.expirationMonth
paymentInformation.card.expirationYear
paymentInformation.card.number
processingInformation.authorizationOptions.initiator.storedCredentialUsed
Set eld to true.
{
"processingInformation": {
"authorizationOptions": {
"initiator": {
"storedCredentialUsed": "true"
}
}
},
"orderInformation": {
"billTo": {
"rstName": "John",
"lastName": "Deo",
"address1": "201 S. Division St.",
"postalCode": "48104-2201",
"locality": "Ann Arbor",
"administrativeArea": "MI",
"country": "US",
"email": "[email protected]",
"phoneNumber": "6504327113"
},
"amountDetails": {
"totalAmount": "100.00",
"currency": "USD",
"originalAmount": "100"
// Discover card Only
}
},
"paymentInformation": {
"card": {
"expirationYear": "2031",
"number": "4111xxxxxxxxxxxx",
"expirationMonth": "12"
}
},
"processorInformation": {
"transactionId": "12345678961000"
}
}
Response
},
"paymentAccountInformation": {
"card": {
"type": "002"
}
},
"paymentInformation": {
"tokenizedCard": {
"type": "002"
},
"card": {
"type": "002"
}
},
"pointOfSaleInformation": {
"terminalId": "111111"
},
"processorInformation": {
"approvalCode": "888888",
"authIndicator": "1",
"networkTransactionId": "123456789619999",
"transactionId": "123456789619999",
"responseCode": "100",
"avs": {
"code": "X",
"codeRaw": "I1"
}
},
"reconciliationId": "63740353A3AJ2NSH",
"status": "AUTHORIZED",
"submitTimeUtc": "2022-05-20T19:13:06Z"
}
Merchant-Initiated Transactions
Merchants can initiate a payment on the behalf of a customer. This type of transaction is
called a merchant-initiated transaction (MIT). When initiating a MIT, the customer is not
present. However, customers must authorize the storage of their credentials and the use
of these credentials for future payments.
There are two types of MITs:
• Industry Practice transactions: Follow-on transactions to a customer-initiated
transaction.
• Standing Instruction transactions: Agreed upon standing instructions from the
cardholder for the provision of goods or services. For example, a subscription to an
internet music service may involve an agreed upon standing instruction allowing the
merchant to bill a customer monthly for their subscription.
A Debit cards is linked to a cardholder's checking account. A merchant who accepts the
debit card can deduct funds directly from the linked cardholder's account.
You can process debit cards using these services:
• Credit card services
• PIN debit services
In Canada, to process domestic debit transactions on Visa Platform Connect with
Mastercard, you must contact customer support to have your account congured for this
feature.
Endpoint
POST https://api.cybersource.com/pts/v2/payments
orderInformation.billTo.country
orderInformation.billTo.email
orderInformation.billTo.rstName
orderInformation.billTo.lastName
orderInformation.billTo.locality
orderInformation.billTo.postalCode
paymentInformation.card.expirationMonth
paymentInformation.card.expirationYear
paymentInformation.card.number
paymentInformation.card.type
Optional Field for Debit and Prepaid Authorizations Using REST APIs
{
"orderInformation" : {
"billTo" : {
"country" : "US",
"rstName" : "John",
"lastName" : "Deo",
"address1" : "901 Metro Center Blvd",
"postalCode" : "40500",
"locality" : "Foster City",
"administrativeArea" : "CA",
"email" : "[email protected]"
},
"amountDetails" : {
"totalAmount" : "100.00",
"currency" : "USD"
}
},
"paymentInformation" : {
"card" : {
"expirationYear" : "2031",
"number" : "4111111111111111",
"securityCode" : "123",
"expirationMonth" : "12",
"type" : "001"
}
}
}
Response
{
"_links" : {
"authReversal" : {
"method" : "POST",
"href" : "/pts/v2/payments/6595482584316313203494/reversals"
},
"self" : {
"method" : "GET",
"href" : "/pts/v2/payments/6595482584316313203494"
},
"capture" : {
"method" : "POST",
"href" : "/pts/v2/payments/6595482584316313203494/captures"
}
},
"clientReferenceInformation" : {
"code" : "RTS-Auth"
},
"consumerAuthenticationInformation" : {
"token" : "Axj/7wSTZYq1MhJBMfMmAEQs2auWrRwyauGjNi2ZsWbJgzaOWiaVA
+JbKAU0qB8S2VpA6cQIp4ZNvG2YbC9eM4E5NlirUyEkEx8yYAAA4A1c"
},
"id" : "6595482584316313203494",
"orderInformation" : {
"amountDetails" : {
"authorizedAmount" : "100.00",
"currency" : "USD"
}
},
"paymentAccountInformation" : {
"card" : {
"type" : "001"
}
},
"paymentInformation" : {
"tokenizedCard" : {
"type" : "001"
},
"card" : {
"type" : "001"
}
},
"processorInformation" : {
"systemTraceAuditNumber" : "853428",
"approvalCode" : "831000",
"cardVerication" : {
"resultCodeRaw" : "M",
"resultCode" : "M"
},
"merchantAdvice" : {
"code" : "01",
"codeRaw" : "M001"
},
"responseDetails" : "ABC",
"networkTransactionId" : "016153570198200",
"retrievalReferenceNumber" : "221517853428",
"consumerAuthenticationResponse" : {
"code" : "2",
"codeRaw" : "2"
},
"transactionId" : "016153570198200",
"responseCode" : "00",
"avs" : {
"code" : "Y",
"codeRaw" : "Y"
}
}
}
orderInformation.billTo.rstName
orderInformation.billTo.lastName
orderInformation.billTo.locality
orderInformation.billTo.postalCode
paymentInformation.card.expirationMonth
paymentInformation.card.expirationYear
paymentInformation.card.number
paymentInformation.card.type
processingInformation.authorizationOptions.partialAuthIndicator
Set this eld to true.
{
"clientReferenceInformation" : {
"code" : "TC50171_3"
},
"orderInformation" : {
"billTo" : {
"country" : "US",
"lastName" : "Deo",
"address2" : "Address 2",
"address1" : "201 S. Division St.",
"postalCode" : "48104-2201",
"locality" : "Ann Arbor",
"administrativeArea" : "MI",
"rstName" : "John",
"phoneNumber" : "999999999",
"district" : "MI",
"buildingNumber" : "123",
"company" : "Visa",
"email" : "[email protected]"
},
"amountDetails" : {
"totalAmount" : "1000.00",
"currency" : "USD"
}
},
"paymentInformation" : {
"card" : {
"expirationYear" : "2031",
"number" : "5555555555554444",
"securityCode" : "123",
"expirationMonth" : "12",
"type" : "002"
}
},
"processingInformation" : {
"authorizationOptions" : {
"partialAuthIndicator" : "true"
}
}
}
Response
{
"_links" : {
"self" : {
"method" : "GET",
"href" : "/pts/v2/payments/6595549144566655003494"
}
},
"clientReferenceInformation" : {
"code" : "TC50171_3"
},
"id" : "6595549144566655003494",
"orderInformation" : {
"amountDetails" : {
"totalAmount" : "1000.00",
"authorizedAmount" : "499.01",
"currency" : "USD"
}
},
"paymentInformation" : {
"accountFeatures" : {
"currency" : "usd",
"balanceAmount" : "0.00"
}
},
"pointOfSaleInformation" : {
"terminalId" : "261996"
},
"processorInformation" : {
"merchantNumber" : "000000092345678",
"approvalCode" : "888888",
"cardVerication" : {
"resultCode" : ""
},
"networkTransactionId" : "123456789619999",
"transactionId" : "123456789619999",
"responseCode" : "100",
"avs" : {
"code" : "X",
"codeRaw" : "I1"
}
},
"reconciliationId" : "56059417N6C86KTJ",
"status" : "PARTIAL_AUTHORIZED",
"submitTimeUtc" : "2022-08-03T19:28:34Z"
}
{
"processingInformation":{
"authorizationOptions":{
"partialAuthIndicator": "false"
}
},
"clientReferenceInformation" : {
"code" : "TC50171_3"
},
"orderInformation" : {
"billTo" : {
"country" : "US",
"lastName" : "Deo",
"address2" : "Address 2",
"address1" : "201 S. Division St.",
"postalCode" : "48104-2201",
"locality" : "Ann Arbor",
"administrativeArea" : "MI",
"rstName" : "John",
"phoneNumber" : "999999999",
"district" : "MI",
"buildingNumber" : "123",
"company" : "Visa",
"email" : "[email protected]"
},
"amountDetails" : {
"totalAmount" : "501.00",
"currency" : "USD"
}
},
"paymentInformation" : {
"card" : {
"expirationYear" : "2031",
"number" : "5555555555554444",
"securityCode" : "123",
"expirationMonth" : "12",
"type" : "002"
}
}
}
Response
{
"_links": {
"self": {
"method": "GET",
"href": "/pts/v2/payments/6595545423896900104953"
}
},
"clientReferenceInformation": {
"code": "TC50171_3"
},
"errorInformation": {
"reason": "PROCESSOR_DECLINED",
"message": "Decline - General decline of the card. No other information provided by the issuing bank."
},
"id": "6595545423896900104953",
"pointOfSaleInformation": {
"terminalId": "111111"
},
"processorInformation": {
"networkTransactionId": "123456789619999",
"transactionId": "123456789619999",
"responseCode": "100",
"avs": {
"code": "X",
"codeRaw": "I1"
}
},
"status": "DECLINED"
}