All URIs are relative to https://balanceplatform-api-test.adyen.com/bcl/v2
Method | HTTP request | Description |
---|---|---|
getPaymentInstrumentsId | GET /paymentInstruments/{id} | Get a payment instrument |
getPaymentInstrumentsIdNetworkTokens | GET /paymentInstruments/{id}/networkTokens | List network tokens |
getPaymentInstrumentsIdReveal | GET /paymentInstruments/{id}/reveal | Get the PAN of a payment instrument |
getPaymentInstrumentsIdTransactionRules | GET /paymentInstruments/{id}/transactionRules | Get all transaction rules for a payment instrument |
patchPaymentInstrumentsId | PATCH /paymentInstruments/{id} | Update a payment instrument |
postPaymentInstruments | POST /paymentInstruments | Create a payment instrument |
PaymentInstrument getPaymentInstrumentsId(id)
Get a payment instrument
Returns the details of a payment instrument.
// Import classes:
//import com.adyen.client.infrastructure.*
//import com.adyen.model.balanceplatform.*
val apiInstance = PaymentInstrumentsApi()
val id : kotlin.String = id_example // kotlin.String | The unique identifier of the payment instrument.
try {
val result : PaymentInstrument = apiInstance.getPaymentInstrumentsId(id)
println(result)
} catch (e: ClientException) {
println("4xx response calling PaymentInstrumentsApi#getPaymentInstrumentsId")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling PaymentInstrumentsApi#getPaymentInstrumentsId")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
id | kotlin.String | The unique identifier of the payment instrument. |
Configure ApiKeyAuth: ApiClient.apiKey["X-API-Key"] = "" ApiClient.apiKeyPrefix["X-API-Key"] = "" Configure BasicAuth: ApiClient.username = "" ApiClient.password = ""
- Content-Type: Not defined
- Accept: application/json
ListNetworkTokensResponse getPaymentInstrumentsIdNetworkTokens(id)
List network tokens
List the network tokens connected to a payment instrument.
// Import classes:
//import com.adyen.client.infrastructure.*
//import com.adyen.model.balanceplatform.*
val apiInstance = PaymentInstrumentsApi()
val id : kotlin.String = id_example // kotlin.String | The unique identifier of the payment instrument.
try {
val result : ListNetworkTokensResponse = apiInstance.getPaymentInstrumentsIdNetworkTokens(id)
println(result)
} catch (e: ClientException) {
println("4xx response calling PaymentInstrumentsApi#getPaymentInstrumentsIdNetworkTokens")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling PaymentInstrumentsApi#getPaymentInstrumentsIdNetworkTokens")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
id | kotlin.String | The unique identifier of the payment instrument. |
Configure ApiKeyAuth: ApiClient.apiKey["X-API-Key"] = "" ApiClient.apiKeyPrefix["X-API-Key"] = "" Configure BasicAuth: ApiClient.username = "" ApiClient.password = ""
- Content-Type: Not defined
- Accept: application/json
PaymentInstrumentRevealInfo getPaymentInstrumentsIdReveal(id)
Get the PAN of a payment instrument
Returns the primary account number (PAN) of a payment instrument. To make this request, your API credential must have the following role: * Balance Platform BCL PCI role
// Import classes:
//import com.adyen.client.infrastructure.*
//import com.adyen.model.balanceplatform.*
val apiInstance = PaymentInstrumentsApi()
val id : kotlin.String = id_example // kotlin.String | The unique identifier of the payment instrument.
try {
val result : PaymentInstrumentRevealInfo = apiInstance.getPaymentInstrumentsIdReveal(id)
println(result)
} catch (e: ClientException) {
println("4xx response calling PaymentInstrumentsApi#getPaymentInstrumentsIdReveal")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling PaymentInstrumentsApi#getPaymentInstrumentsIdReveal")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
id | kotlin.String | The unique identifier of the payment instrument. |
Configure ApiKeyAuth: ApiClient.apiKey["X-API-Key"] = "" ApiClient.apiKeyPrefix["X-API-Key"] = "" Configure BasicAuth: ApiClient.username = "" ApiClient.password = ""
- Content-Type: Not defined
- Accept: application/json
TransactionRulesResponse getPaymentInstrumentsIdTransactionRules(id)
Get all transaction rules for a payment instrument
Returns a list of transaction rules associated with a payment instrument.
// Import classes:
//import com.adyen.client.infrastructure.*
//import com.adyen.model.balanceplatform.*
val apiInstance = PaymentInstrumentsApi()
val id : kotlin.String = id_example // kotlin.String | The unique identifier of the payment instrument.
try {
val result : TransactionRulesResponse = apiInstance.getPaymentInstrumentsIdTransactionRules(id)
println(result)
} catch (e: ClientException) {
println("4xx response calling PaymentInstrumentsApi#getPaymentInstrumentsIdTransactionRules")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling PaymentInstrumentsApi#getPaymentInstrumentsIdTransactionRules")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
id | kotlin.String | The unique identifier of the payment instrument. |
Configure ApiKeyAuth: ApiClient.apiKey["X-API-Key"] = "" ApiClient.apiKeyPrefix["X-API-Key"] = "" Configure BasicAuth: ApiClient.username = "" ApiClient.password = ""
- Content-Type: Not defined
- Accept: application/json
UpdatePaymentInstrument patchPaymentInstrumentsId(id, paymentInstrumentUpdateRequest)
Update a payment instrument
Updates a payment instrument. Once a payment instrument is already active, you can only update its status. However, for cards created with inactive status, you can still update the balance account associated with the card.
// Import classes:
//import com.adyen.client.infrastructure.*
//import com.adyen.model.balanceplatform.*
val apiInstance = PaymentInstrumentsApi()
val id : kotlin.String = id_example // kotlin.String | The unique identifier of the payment instrument.
val paymentInstrumentUpdateRequest : PaymentInstrumentUpdateRequest = // PaymentInstrumentUpdateRequest |
try {
val result : UpdatePaymentInstrument = apiInstance.patchPaymentInstrumentsId(id, paymentInstrumentUpdateRequest)
println(result)
} catch (e: ClientException) {
println("4xx response calling PaymentInstrumentsApi#patchPaymentInstrumentsId")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling PaymentInstrumentsApi#patchPaymentInstrumentsId")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
id | kotlin.String | The unique identifier of the payment instrument. | |
paymentInstrumentUpdateRequest | PaymentInstrumentUpdateRequest | [optional] |
Configure ApiKeyAuth: ApiClient.apiKey["X-API-Key"] = "" ApiClient.apiKeyPrefix["X-API-Key"] = "" Configure BasicAuth: ApiClient.username = "" ApiClient.password = ""
- Content-Type: application/json
- Accept: application/json
PaymentInstrument postPaymentInstruments(paymentInstrumentInfo)
Create a payment instrument
Creates a payment instrument to issue a physical card, a virtual card, or a business account to your user. For more information, refer to Issue cards or Issue business accounts.
// Import classes:
//import com.adyen.client.infrastructure.*
//import com.adyen.model.balanceplatform.*
val apiInstance = PaymentInstrumentsApi()
val paymentInstrumentInfo : PaymentInstrumentInfo = // PaymentInstrumentInfo |
try {
val result : PaymentInstrument = apiInstance.postPaymentInstruments(paymentInstrumentInfo)
println(result)
} catch (e: ClientException) {
println("4xx response calling PaymentInstrumentsApi#postPaymentInstruments")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling PaymentInstrumentsApi#postPaymentInstruments")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
paymentInstrumentInfo | PaymentInstrumentInfo | [optional] |
Configure ApiKeyAuth: ApiClient.apiKey["X-API-Key"] = "" ApiClient.apiKeyPrefix["X-API-Key"] = "" Configure BasicAuth: ApiClient.username = "" ApiClient.password = ""
- Content-Type: application/json
- Accept: application/json