Skip to content
Status

Get capabilities

GEThttps://app.shuttleglobal.com/c/api/instances/{instance_key}/capabilities

GET
/capabilities

Retrieve the payment capabilities of an instance: whether it is ready to take payments, in which currencies, and what each payment method type supports. On the Platform API you name the instance in the path (GET /instances/{instance_id}/capabilities); within a merchant instance, GET /capabilities returns the capabilities of the current instance, with no instance ID in the path.

payment_method_types lists what the instance can do when the customer is paying themselves (online checkout). payment_method_types_moto lists what it can do when a member of staff takes the payment for the customer (mail order / telephone order). payment_method_types_moto is always returned, as an empty object when the instance takes no MOTO payments. A payment method type can support fewer features for MOTO, or be missing there (for example a type that needs the customer, or one the merchant has not enabled for MOTO).

Features

Each payment method type has a features list saying what it supports and what a payment with it needs. The list below is the set of features in use today. Shuttle adds features from time to time, so ignore any you don’t recognise, and check for the ones your integration relies on rather than expecting a fixed list. Check a type’s features for what you need rather than relying on the type being present: a type can be listed with fewer features, or none.

Taking payments

  • PAYMENT: take a payment (authorise and capture in one step).
  • AUTHORISE: authorise a payment now and capture it later.
  • CAPTURE: capture an authorised payment.
  • MULTI_CAPTURE: capture an authorised payment in more than one part.
  • VOID: cancel an authorised payment before it is captured.
  • OFFLINE_PAYMENT: the customer pays outside the checkout (for example by bank transfer or voucher), and the payment stays pending until the money arrives.
  • CANCEL_PENDING: an unpaid offline payment can be cancelled, for example when it is not paid within the time allowed.

Refunds

  • FULL_REFUND: refund the whole payment.
  • PARTIAL_REFUND: refund part of the payment.
  • MULTI_REFUND: refund the payment in more than one part.

Saved payment methods

  • SAVE_CARD: save the payment method on its own, outside a payment. With Opayo this is done with a small payment that is refunded straight away (see SAVE_CARD_REQUIRES_PAYMENT).
  • SAVE_CARD_REQUIRES_PAYMENT: Opayo only. Saving the payment method takes a small payment, which is refunded straight away; Opayo needs a completed payment as the reference for later recurring charges.
  • CREATE_TOKEN: set up a saved payment method, such as a Direct Debit mandate, without taking a payment.
  • PAYMENT_AND_SAVE_TOKEN, AUTHORISE_AND_SAVE_TOKEN: save the payment method while paying or authorising.
  • PAYMENT_ON_SAVED_TOKEN, AUTHORISE_ON_SAVED_TOKEN: pay or authorise with a saved payment method.

Network tokens (Apple Pay, Google Pay and card network tokens)

  • PAYMENT_ON_NETWORK_TOKEN, AUTHORISE_ON_NETWORK_TOKEN: pay or authorise with a network token.
  • PAYMENT_AND_SAVE_NETWORK_TOKEN, AUTHORISE_AND_SAVE_NETWORK_TOKEN: save the network token while paying or authorising.
  • SAVE_NETWORK_TOKEN: save a network token without taking a payment.
  • RAW_PAN: the processor accepts the card number a wallet such as Google Pay provides.
  • RAW_PAN_3DS: the processor can also run 3-D Secure on that card number.

Results that arrive later

  • REQUIRE_PAYMENT_PENDING: payments can be pending at first and complete later; use webhooks to learn the outcome.
  • REQUIRE_CAPTURE_PENDING: captures can be pending at first and complete later.
  • REQUIRE_REFUND_PENDING: refunds can be pending at first and complete later.

Details a payment needs

  • REQUIRE_AVS: billing address.
  • REQUIRE_ZIP: billing postcode / ZIP code.
  • REQUIRE_CVC: card security code.
  • REQUIRE_ACCOUNT_NAME: account holder’s name.
  • REQUIRE_FIRSTNAME, REQUIRE_LASTNAME: customer’s first and last name.
  • REQUIRE_EMAIL: customer’s email address.
  • REQUIRE_PHONE: customer’s phone number.
  • REQUIRE_COUNTRY: customer’s country.
  • REQUIRE_IP: customer’s IP address.
  • REQUIRE_SHIPPING_ADDRESS: shipping address.
  • REQUIRE_LINE_ITEMS: the items being bought.
  • REQUIRE_AMOUNT: the amount must be known before the customer chooses this payment method.

Fraud

  • FRAUD_DETECTION: a fraud-screening workflow is attached to at least one processor serving this payment method type.

Checkout handling

These tell Shuttle’s checkout how to present the payment method; you don’t need to act on them: HOSTED_PAYMENT, HOSTED_AUTH, HOSTED_PAYMENT_AND_SAVE_TOKEN, HOSTED_PAYMENT_TOKENISATION, HOSTED_PAYMENT_CAPTURED, REQUIRES_JSWRAPPER, JSWRAPPER, REQUIRES_CONFIRMATION, TOKENISE_SKIP_CONFIRMATION, REQUIRES_APPLEPAY_BUTTON, REQUIRE_3DS_WINDOW, REQUIRE_RECAPTCHA, CARD_FORM_ON_PAYMENT_READY, SKIP_ACH_FORM, REQUIRES_REQUEST_DATA.

Legacy

  • COMPLETE_AUTHORISATION: legacy, no longer in use.
currency
string

Filter capabilities by currency

Successful operation

Media typeapplication/json
object
capabilities
object
object
id
string

The ID of the capabilities record

payments_ready
boolean

Whether the instance is ready to process payments

currencies
Array<string>

List of supported currencies

token_gateways
Array<string>

List of token gateways

payment_method_types
object

What the instance can do when the customer is paying themselves (online checkout), keyed by payment method type. Card types are keyed by brand (VISA, MASTERCARD, AMEX, DISCOVER, DINERS, JCB, MAESTRO, UNIONPAY); other keys include ACH, SEPA, BACS, WALLET, PAYPAL, BANKTRANSFER, MULTIBANCO and PAYBYBANK. More types are added as processors are added. When several processors serve the same payment method type, its features are the combined features of all of them.

object
key
additional properties
object
object
features
Array<string>

What this payment method type supports, and what a payment with it needs. The features are listed in the description at the top of this page.

payment_method_types_moto
object

What the instance can do when a member of staff takes the payment for the customer (mail order / telephone order), keyed by payment method type. Same shape and features as payment_method_types; always returned, as an empty object when the instance takes no MOTO payments. A payment method type can support fewer features here, or be missing (for example a type that needs the customer, or one the merchant has not enabled for MOTO).

object
key
additional properties
object
object
features
Array<string>

The same features as payment_method_types, listed in the description at the top of this page.

Examples

Card processor with network tokens (currency list shortened)

{
"capabilities": {
"id": "11842_10002",
"payments_ready": true,
"currencies": [
"AUD",
"CAD",
"EUR",
"GBP",
"NZD",
"USD"
],
"token_gateways": [
"11842_10021"
],
"payment_method_types": {
"UNIONPAY": {
"features": [
"PAYMENT_ON_SAVED_TOKEN",
"FULL_REFUND",
"PARTIAL_REFUND",
"MULTI_REFUND",
"RAW_PAN",
"AUTHORISE_ON_SAVED_TOKEN",
"CAPTURE",
"VOID",
"PAYMENT_ON_NETWORK_TOKEN",
"PAYMENT_AND_SAVE_NETWORK_TOKEN",
"AUTHORISE_ON_NETWORK_TOKEN",
"AUTHORISE_AND_SAVE_NETWORK_TOKEN",
"SAVE_NETWORK_TOKEN",
"PAYMENT",
"PAYMENT_AND_SAVE_TOKEN",
"SAVE_CARD",
"AUTHORISE",
"AUTHORISE_AND_SAVE_TOKEN"
]
},
"AMEX": {
"features": [
"PAYMENT_ON_SAVED_TOKEN",
"FULL_REFUND",
"PARTIAL_REFUND",
"MULTI_REFUND",
"RAW_PAN",
"AUTHORISE_ON_SAVED_TOKEN",
"CAPTURE",
"VOID",
"PAYMENT_ON_NETWORK_TOKEN",
"PAYMENT_AND_SAVE_NETWORK_TOKEN",
"AUTHORISE_ON_NETWORK_TOKEN",
"AUTHORISE_AND_SAVE_NETWORK_TOKEN",
"SAVE_NETWORK_TOKEN",
"PAYMENT",
"PAYMENT_AND_SAVE_TOKEN",
"SAVE_CARD",
"AUTHORISE",
"AUTHORISE_AND_SAVE_TOKEN"
]
},
"MASTERCARD": {
"features": [
"PAYMENT_ON_SAVED_TOKEN",
"FULL_REFUND",
"PARTIAL_REFUND",
"MULTI_REFUND",
"RAW_PAN",
"AUTHORISE_ON_SAVED_TOKEN",
"CAPTURE",
"VOID",
"PAYMENT_ON_NETWORK_TOKEN",
"PAYMENT_AND_SAVE_NETWORK_TOKEN",
"AUTHORISE_ON_NETWORK_TOKEN",
"AUTHORISE_AND_SAVE_NETWORK_TOKEN",
"SAVE_NETWORK_TOKEN",
"PAYMENT",
"PAYMENT_AND_SAVE_TOKEN",
"SAVE_CARD",
"AUTHORISE",
"AUTHORISE_AND_SAVE_TOKEN"
]
},
"DISCOVER": {
"features": [
"PAYMENT_ON_SAVED_TOKEN",
"FULL_REFUND",
"PARTIAL_REFUND",
"MULTI_REFUND",
"RAW_PAN",
"AUTHORISE_ON_SAVED_TOKEN",
"CAPTURE",
"VOID",
"PAYMENT_ON_NETWORK_TOKEN",
"PAYMENT_AND_SAVE_NETWORK_TOKEN",
"AUTHORISE_ON_NETWORK_TOKEN",
"AUTHORISE_AND_SAVE_NETWORK_TOKEN",
"SAVE_NETWORK_TOKEN",
"PAYMENT",
"PAYMENT_AND_SAVE_TOKEN",
"SAVE_CARD",
"AUTHORISE",
"AUTHORISE_AND_SAVE_TOKEN"
]
},
"JCB": {
"features": [
"PAYMENT_ON_SAVED_TOKEN",
"FULL_REFUND",
"PARTIAL_REFUND",
"MULTI_REFUND",
"RAW_PAN",
"AUTHORISE_ON_SAVED_TOKEN",
"CAPTURE",
"VOID",
"PAYMENT_ON_NETWORK_TOKEN",
"PAYMENT_AND_SAVE_NETWORK_TOKEN",
"AUTHORISE_ON_NETWORK_TOKEN",
"AUTHORISE_AND_SAVE_NETWORK_TOKEN",
"SAVE_NETWORK_TOKEN",
"PAYMENT",
"PAYMENT_AND_SAVE_TOKEN",
"SAVE_CARD",
"AUTHORISE",
"AUTHORISE_AND_SAVE_TOKEN"
]
},
"VISA": {
"features": [
"PAYMENT_ON_SAVED_TOKEN",
"FULL_REFUND",
"PARTIAL_REFUND",
"MULTI_REFUND",
"RAW_PAN",
"AUTHORISE_ON_SAVED_TOKEN",
"CAPTURE",
"VOID",
"PAYMENT_ON_NETWORK_TOKEN",
"PAYMENT_AND_SAVE_NETWORK_TOKEN",
"AUTHORISE_ON_NETWORK_TOKEN",
"AUTHORISE_AND_SAVE_NETWORK_TOKEN",
"SAVE_NETWORK_TOKEN",
"PAYMENT",
"PAYMENT_AND_SAVE_TOKEN",
"SAVE_CARD",
"AUTHORISE",
"AUTHORISE_AND_SAVE_TOKEN"
]
},
"DINERS": {
"features": [
"PAYMENT_ON_SAVED_TOKEN",
"FULL_REFUND",
"PARTIAL_REFUND",
"MULTI_REFUND",
"RAW_PAN",
"AUTHORISE_ON_SAVED_TOKEN",
"CAPTURE",
"VOID",
"PAYMENT_ON_NETWORK_TOKEN",
"PAYMENT_AND_SAVE_NETWORK_TOKEN",
"AUTHORISE_ON_NETWORK_TOKEN",
"AUTHORISE_AND_SAVE_NETWORK_TOKEN",
"SAVE_NETWORK_TOKEN",
"PAYMENT",
"PAYMENT_AND_SAVE_TOKEN",
"SAVE_CARD",
"AUTHORISE",
"AUTHORISE_AND_SAVE_TOKEN"
]
}
},
"payment_method_types_moto": {
"UNIONPAY": {
"features": [
"PAYMENT_ON_SAVED_TOKEN",
"FULL_REFUND",
"PARTIAL_REFUND",
"MULTI_REFUND",
"RAW_PAN",
"AUTHORISE_ON_SAVED_TOKEN",
"CAPTURE",
"VOID",
"PAYMENT_ON_NETWORK_TOKEN",
"PAYMENT_AND_SAVE_NETWORK_TOKEN",
"AUTHORISE_ON_NETWORK_TOKEN",
"AUTHORISE_AND_SAVE_NETWORK_TOKEN",
"SAVE_NETWORK_TOKEN",
"PAYMENT",
"PAYMENT_AND_SAVE_TOKEN",
"SAVE_CARD",
"AUTHORISE",
"AUTHORISE_AND_SAVE_TOKEN"
]
},
"AMEX": {
"features": [
"PAYMENT_ON_SAVED_TOKEN",
"FULL_REFUND",
"PARTIAL_REFUND",
"MULTI_REFUND",
"RAW_PAN",
"AUTHORISE_ON_SAVED_TOKEN",
"CAPTURE",
"VOID",
"PAYMENT_ON_NETWORK_TOKEN",
"PAYMENT_AND_SAVE_NETWORK_TOKEN",
"AUTHORISE_ON_NETWORK_TOKEN",
"AUTHORISE_AND_SAVE_NETWORK_TOKEN",
"SAVE_NETWORK_TOKEN",
"PAYMENT",
"PAYMENT_AND_SAVE_TOKEN",
"SAVE_CARD",
"AUTHORISE",
"AUTHORISE_AND_SAVE_TOKEN"
]
},
"MASTERCARD": {
"features": [
"PAYMENT_ON_SAVED_TOKEN",
"FULL_REFUND",
"PARTIAL_REFUND",
"MULTI_REFUND",
"RAW_PAN",
"AUTHORISE_ON_SAVED_TOKEN",
"CAPTURE",
"VOID",
"PAYMENT_ON_NETWORK_TOKEN",
"PAYMENT_AND_SAVE_NETWORK_TOKEN",
"AUTHORISE_ON_NETWORK_TOKEN",
"AUTHORISE_AND_SAVE_NETWORK_TOKEN",
"SAVE_NETWORK_TOKEN",
"PAYMENT",
"PAYMENT_AND_SAVE_TOKEN",
"SAVE_CARD",
"AUTHORISE",
"AUTHORISE_AND_SAVE_TOKEN"
]
},
"DISCOVER": {
"features": [
"PAYMENT_ON_SAVED_TOKEN",
"FULL_REFUND",
"PARTIAL_REFUND",
"MULTI_REFUND",
"RAW_PAN",
"AUTHORISE_ON_SAVED_TOKEN",
"CAPTURE",
"VOID",
"PAYMENT_ON_NETWORK_TOKEN",
"PAYMENT_AND_SAVE_NETWORK_TOKEN",
"AUTHORISE_ON_NETWORK_TOKEN",
"AUTHORISE_AND_SAVE_NETWORK_TOKEN",
"SAVE_NETWORK_TOKEN",
"PAYMENT",
"PAYMENT_AND_SAVE_TOKEN",
"SAVE_CARD",
"AUTHORISE",
"AUTHORISE_AND_SAVE_TOKEN"
]
},
"JCB": {
"features": [
"PAYMENT_ON_SAVED_TOKEN",
"FULL_REFUND",
"PARTIAL_REFUND",
"MULTI_REFUND",
"RAW_PAN",
"AUTHORISE_ON_SAVED_TOKEN",
"CAPTURE",
"VOID",
"PAYMENT_ON_NETWORK_TOKEN",
"PAYMENT_AND_SAVE_NETWORK_TOKEN",
"AUTHORISE_ON_NETWORK_TOKEN",
"AUTHORISE_AND_SAVE_NETWORK_TOKEN",
"SAVE_NETWORK_TOKEN",
"PAYMENT",
"PAYMENT_AND_SAVE_TOKEN",
"SAVE_CARD",
"AUTHORISE",
"AUTHORISE_AND_SAVE_TOKEN"
]
},
"VISA": {
"features": [
"PAYMENT_ON_SAVED_TOKEN",
"FULL_REFUND",
"PARTIAL_REFUND",
"MULTI_REFUND",
"RAW_PAN",
"AUTHORISE_ON_SAVED_TOKEN",
"CAPTURE",
"VOID",
"PAYMENT_ON_NETWORK_TOKEN",
"PAYMENT_AND_SAVE_NETWORK_TOKEN",
"AUTHORISE_ON_NETWORK_TOKEN",
"AUTHORISE_AND_SAVE_NETWORK_TOKEN",
"SAVE_NETWORK_TOKEN",
"PAYMENT",
"PAYMENT_AND_SAVE_TOKEN",
"SAVE_CARD",
"AUTHORISE",
"AUTHORISE_AND_SAVE_TOKEN"
]
},
"DINERS": {
"features": [
"PAYMENT_ON_SAVED_TOKEN",
"FULL_REFUND",
"PARTIAL_REFUND",
"MULTI_REFUND",
"RAW_PAN",
"AUTHORISE_ON_SAVED_TOKEN",
"CAPTURE",
"VOID",
"PAYMENT_ON_NETWORK_TOKEN",
"PAYMENT_AND_SAVE_NETWORK_TOKEN",
"AUTHORISE_ON_NETWORK_TOKEN",
"AUTHORISE_AND_SAVE_NETWORK_TOKEN",
"SAVE_NETWORK_TOKEN",
"PAYMENT",
"PAYMENT_AND_SAVE_TOKEN",
"SAVE_CARD",
"AUTHORISE",
"AUTHORISE_AND_SAVE_TOKEN"
]
}
}
}
}

Unauthorized

Media typeapplication/json

Every error has a code and a message. Some add more fields alongside them, with detail about the error.

object
code
string

The error code, for example VALIDATION_ERROR, INVALID, INVALID_REQUEST, UNAUTHORIZED, FORBIDDEN or NOT_FOUND. Program against this, not the message.

message
string

What went wrong, in words, for logs and support.

Example
{
"code": "UNAUTHORIZED",
"message": "Unauthorised"
}

Was this page helpful?