improved
API v2.1
over 2 years ago by Aladin Taleb
This version includes improvements to the Client Session API, Payments API and the Payment Methods API.
Read the full changelog
API Version
Starting API v2.1, the API Version
X-Api-Version
is a semantic version without a patch (e.g.2.1
) rather than a date 🎉Set
X-Api-Version
to2.1
to use v2.1 of the API.
Client Session API
New Fields
- Added
paymentMethod.paymentType
andpaymentMethod.descriptor
on the request and response of the client session - Added
order.lineItems[].productType
on the request and response of the client session.
New Endpoints
- Added
GET /client-session
to get the content of a client session - Added
PATCH /client-session
to update the content of a client session
Improvements
- Additional validation has been put in place to ensure that a
currencyCode
is always passed if anyamount
value is passed
Payments API
New Fields
- Added
paymentMethod.isVaulted
boolean field to indicate whether thepaymentMethod.paymentMethodToken
in the response is a vaulted token (and can therefore be used for future payments) or not. This replacesvaultedPaymentMethodToken
. - Added
order.lineItems[].productType
on the request and response.
Improvements
amount
,currencyCode
,customerId
andorderId
are now required fields when making a payment with a vaulted token (i.e. a recurring payment).- When paying with a vaulted token, additional validation has been put in place to ensure the
customerId
matches thecustomerId
associated with the vaulted token.
Payment Methods API
New Fields
- Added
verify
inPOST /payment-instruments/{paymentMethodToken}/vault
to set whether or not the payment method token should be verified before vaulting - Added
isVerified
to the payment method response