SyncteraRubySdk::ExternalCardsApi
All URIs are relative to https://api.synctera.com/v0
| Method | HTTP request | Description |
|---|---|---|
| authenticate3_ds | POST /external_cards/authenticate_3ds | Authenticate 3DS (beta) |
| create_external_card_from_token | POST /external_cards/tokens | Create External Card from token |
| create_external_card_transfer | POST /external_cards/transfers | Create External Card Transfer |
| create_external_card_transfer_reversal | POST /external_cards/transfers/transfer_id/reversals | Create External Card Transfer Reversal |
| delete_external_card | DELETE /external_cards/external_card_id | Delete External Card |
| get_external_card | GET /external_cards/external_card_id | Get External Card |
| get_external_card_transfer | GET /external_cards/transfers/transfer_id | Get External Card Transfer |
| initialize3_ds | POST /external_cards/initialize_3ds | Initialize 3DS (beta) |
| list_external_card_transfers | GET /external_cards/transfers | List External Card Transfers |
| list_external_cards | GET /external_cards | List External Cards |
| lookup3_ds | POST /external_cards/lookup_3ds | Lookup 3DS (beta) |
| update_external_card | PATCH /external_cards/external_card_id | Update External Card |
authenticate3_ds
authenticate3_ds(authenticate3ds_request, opts)
Authenticate 3DS (beta)
🚧 Beta > This is a Beta endpoint. Feedback from the community is welcome. We may make breaking changes to this endpoint. Validates the results of an External Card Transfer 3DS authentication challenge.
Examples
require 'time'
require 'synctera_ruby_sdk'
# setup authorization
SyncteraRubySdk.configure do |config|
# Configure Bearer authorization (api_key): bearerAuth
config.access_token = 'YOUR_BEARER_TOKEN'
end
api_instance = SyncteraRubySdk::ExternalCardsApi.new
authenticate3ds_request = SyncteraRubySdk::Authenticate3dsRequest.new({challenge_jwt: 'challenge_jwt_example', id: '7d943c51-e4ff-4e57-9558-08cab6b963c7'}) # Authenticate3dsRequest | Details of the External Card Transfer 3DS authentication challenge validation.
opts = {
idempotency_key: '7d943c51-e4ff-4e57-9558-08cab6b963c7' # String | An idempotency key is an arbitrary unique value generated by client to detect subsequent retries of the same request. It is recommended that a UUID or a similar random identifier be used as an idempotency key. A different key must be used for each request, unless it is a retry.
}
begin
# Authenticate 3DS (beta)
result = api_instance.authenticate3_ds(authenticate3ds_request, opts)
p result
rescue SyncteraRubySdk::ApiError => e
puts "Error when calling ExternalCardsApi->authenticate3_ds: #{e}"
end
Using the authenticate3_ds_with_http_info variant
This returns an Array which contains the response data, status code and headers.
, Integer, Hash)> authenticate3_ds_with_http_info(authenticate3ds_request, opts)
begin
# Authenticate 3DS (beta)
data, status_code, headers = api_instance.authenticate3_ds_with_http_info(authenticate3ds_request, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <Authenticate3dsResponse>
rescue SyncteraRubySdk::ApiError => e
puts "Error when calling ExternalCardsApi->authenticate3_ds_with_http_info: #{e}"
end
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| authenticate3ds_request | Authenticate3dsRequest | Details of the External Card Transfer 3DS authentication challenge validation. | |
| idempotency_key | String | An idempotency key is an arbitrary unique value generated by client to detect subsequent retries of the same request. It is recommended that a UUID or a similar random identifier be used as an idempotency key. A different key must be used for each request, unless it is a retry. | [optional] |
Return type
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: application/json, application/problem+json
create_external_card_from_token
create_external_card_from_token(external_card_request, opts)
Create External Card from token
Create an External Card from token. The token is obtained through the iFrame, along with cardholder name, which also must be provided. Cardholder name is matched against customer name.
Examples
require 'time'
require 'synctera_ruby_sdk'
# setup authorization
SyncteraRubySdk.configure do |config|
# Configure Bearer authorization (api_key): bearerAuth
config.access_token = 'YOUR_BEARER_TOKEN'
end
api_instance = SyncteraRubySdk::ExternalCardsApi.new
external_card_request = SyncteraRubySdk::ExternalCardRequest.new({customer_id: '7d943c51-e4ff-4e57-9558-08cab6b963c7', name: 'Jean Valjean', token: 'token_example'}) # ExternalCardRequest | Details of the External Card to create
opts = {
idempotency_key: '7d943c51-e4ff-4e57-9558-08cab6b963c7' # String | An idempotency key is an arbitrary unique value generated by client to detect subsequent retries of the same request. It is recommended that a UUID or a similar random identifier be used as an idempotency key. A different key must be used for each request, unless it is a retry.
}
begin
# Create External Card from token
result = api_instance.create_external_card_from_token(external_card_request, opts)
p result
rescue SyncteraRubySdk::ApiError => e
puts "Error when calling ExternalCardsApi->create_external_card_from_token: #{e}"
end
Using the create_external_card_from_token_with_http_info variant
This returns an Array which contains the response data, status code and headers.
, Integer, Hash)> create_external_card_from_token_with_http_info(external_card_request, opts)
begin
# Create External Card from token
data, status_code, headers = api_instance.create_external_card_from_token_with_http_info(external_card_request, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <ExternalCardResponse>
rescue SyncteraRubySdk::ApiError => e
puts "Error when calling ExternalCardsApi->create_external_card_from_token_with_http_info: #{e}"
end
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| external_card_request | ExternalCardRequest | Details of the External Card to create | |
| idempotency_key | String | An idempotency key is an arbitrary unique value generated by client to detect subsequent retries of the same request. It is recommended that a UUID or a similar random identifier be used as an idempotency key. A different key must be used for each request, unless it is a retry. | [optional] |
Return type
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: application/json, application/problem+json
create_external_card_transfer
create_external_card_transfer(transfer_request, opts)
Create External Card Transfer
Create an External Card Transfer
Examples
require 'time'
require 'synctera_ruby_sdk'
# setup authorization
SyncteraRubySdk.configure do |config|
# Configure Bearer authorization (api_key): bearerAuth
config.access_token = 'YOUR_BEARER_TOKEN'
end
api_instance = SyncteraRubySdk::ExternalCardsApi.new
transfer_request = SyncteraRubySdk::TransferRequestPull.new({amount: 37, currency: 'USD', external_card_id: '7d943c51-e4ff-4e57-9558-08cab6b963c7', originating_account_id: '7d943c51-e4ff-4e57-9558-08cab6b963c7', type: SyncteraRubySdk::TransferTypeRequest::PULL}) # TransferRequest | Details of the External Card Transfer to create
opts = {
idempotency_key: '7d943c51-e4ff-4e57-9558-08cab6b963c7' # String | An idempotency key is an arbitrary unique value generated by client to detect subsequent retries of the same request. It is recommended that a UUID or a similar random identifier be used as an idempotency key. A different key must be used for each request, unless it is a retry.
}
begin
# Create External Card Transfer
result = api_instance.create_external_card_transfer(transfer_request, opts)
p result
rescue SyncteraRubySdk::ApiError => e
puts "Error when calling ExternalCardsApi->create_external_card_transfer: #{e}"
end
Using the create_external_card_transfer_with_http_info variant
This returns an Array which contains the response data, status code and headers.
, Integer, Hash)> create_external_card_transfer_with_http_info(transfer_request, opts)
begin
# Create External Card Transfer
data, status_code, headers = api_instance.create_external_card_transfer_with_http_info(transfer_request, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <TransferResponse>
rescue SyncteraRubySdk::ApiError => e
puts "Error when calling ExternalCardsApi->create_external_card_transfer_with_http_info: #{e}"
end
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| transfer_request | TransferRequest | Details of the External Card Transfer to create | |
| idempotency_key | String | An idempotency key is an arbitrary unique value generated by client to detect subsequent retries of the same request. It is recommended that a UUID or a similar random identifier be used as an idempotency key. A different key must be used for each request, unless it is a retry. | [optional] |
Return type
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: application/json, application/problem+json
create_external_card_transfer_reversal
create_external_card_transfer_reversal(transfer_id, transfer_reversal_request, opts)
Create External Card Transfer Reversal
Create an External Card Transfer Reversal
Examples
require 'time'
require 'synctera_ruby_sdk'
# setup authorization
SyncteraRubySdk.configure do |config|
# Configure Bearer authorization (api_key): bearerAuth
config.access_token = 'YOUR_BEARER_TOKEN'
end
api_instance = SyncteraRubySdk::ExternalCardsApi.new
transfer_id = '7d943c51-e4ff-4e57-9558-08cab6b963c7' # String | The unique identifier of a transfer
transfer_reversal_request = SyncteraRubySdk::TransferReversalRequest.new({amount: 37, currency: 'USD'}) # TransferReversalRequest | Details of the External Card Transfer Reversal to create
opts = {
idempotency_key: '7d943c51-e4ff-4e57-9558-08cab6b963c7' # String | An idempotency key is an arbitrary unique value generated by client to detect subsequent retries of the same request. It is recommended that a UUID or a similar random identifier be used as an idempotency key. A different key must be used for each request, unless it is a retry.
}
begin
# Create External Card Transfer Reversal
result = api_instance.create_external_card_transfer_reversal(transfer_id, transfer_reversal_request, opts)
p result
rescue SyncteraRubySdk::ApiError => e
puts "Error when calling ExternalCardsApi->create_external_card_transfer_reversal: #{e}"
end
Using the create_external_card_transfer_reversal_with_http_info variant
This returns an Array which contains the response data, status code and headers.
, Integer, Hash)> create_external_card_transfer_reversal_with_http_info(transfer_id, transfer_reversal_request, opts)
begin
# Create External Card Transfer Reversal
data, status_code, headers = api_instance.create_external_card_transfer_reversal_with_http_info(transfer_id, transfer_reversal_request, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <TransferResponse>
rescue SyncteraRubySdk::ApiError => e
puts "Error when calling ExternalCardsApi->create_external_card_transfer_reversal_with_http_info: #{e}"
end
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| transfer_id | String | The unique identifier of a transfer | |
| transfer_reversal_request | TransferReversalRequest | Details of the External Card Transfer Reversal to create | |
| idempotency_key | String | An idempotency key is an arbitrary unique value generated by client to detect subsequent retries of the same request. It is recommended that a UUID or a similar random identifier be used as an idempotency key. A different key must be used for each request, unless it is a retry. | [optional] |
Return type
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: application/json, application/problem+json
delete_external_card
delete_external_card(external_card_id)
Delete External Card
Delete an External Card
Examples
require 'time'
require 'synctera_ruby_sdk'
# setup authorization
SyncteraRubySdk.configure do |config|
# Configure Bearer authorization (api_key): bearerAuth
config.access_token = 'YOUR_BEARER_TOKEN'
end
api_instance = SyncteraRubySdk::ExternalCardsApi.new
external_card_id = '7d943c51-e4ff-4e57-9558-08cab6b963c7' # String | The unique identifier of an external card
begin
# Delete External Card
result = api_instance.delete_external_card(external_card_id)
p result
rescue SyncteraRubySdk::ApiError => e
puts "Error when calling ExternalCardsApi->delete_external_card: #{e}"
end
Using the delete_external_card_with_http_info variant
This returns an Array which contains the response data, status code and headers.
, Integer, Hash)> delete_external_card_with_http_info(external_card_id)
begin
# Delete External Card
data, status_code, headers = api_instance.delete_external_card_with_http_info(external_card_id)
p status_code # => 2xx
p headers # => { ... }
p data # => <DeleteResponse>
rescue SyncteraRubySdk::ApiError => e
puts "Error when calling ExternalCardsApi->delete_external_card_with_http_info: #{e}"
end
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| external_card_id | String | The unique identifier of an external card |
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json, application/problem+json
get_external_card
get_external_card(external_card_id)
Get External Card
Get an External Card
Examples
require 'time'
require 'synctera_ruby_sdk'
# setup authorization
SyncteraRubySdk.configure do |config|
# Configure Bearer authorization (api_key): bearerAuth
config.access_token = 'YOUR_BEARER_TOKEN'
end
api_instance = SyncteraRubySdk::ExternalCardsApi.new
external_card_id = '7d943c51-e4ff-4e57-9558-08cab6b963c7' # String | The unique identifier of an external card
begin
# Get External Card
result = api_instance.get_external_card(external_card_id)
p result
rescue SyncteraRubySdk::ApiError => e
puts "Error when calling ExternalCardsApi->get_external_card: #{e}"
end
Using the get_external_card_with_http_info variant
This returns an Array which contains the response data, status code and headers.
, Integer, Hash)> get_external_card_with_http_info(external_card_id)
begin
# Get External Card
data, status_code, headers = api_instance.get_external_card_with_http_info(external_card_id)
p status_code # => 2xx
p headers # => { ... }
p data # => <ExternalCardResponse>
rescue SyncteraRubySdk::ApiError => e
puts "Error when calling ExternalCardsApi->get_external_card_with_http_info: #{e}"
end
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| external_card_id | String | The unique identifier of an external card |
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json, application/problem+json
get_external_card_transfer
get_external_card_transfer(transfer_id)
Get External Card Transfer
Get an External Card Transfer
Examples
require 'time'
require 'synctera_ruby_sdk'
# setup authorization
SyncteraRubySdk.configure do |config|
# Configure Bearer authorization (api_key): bearerAuth
config.access_token = 'YOUR_BEARER_TOKEN'
end
api_instance = SyncteraRubySdk::ExternalCardsApi.new
transfer_id = '7d943c51-e4ff-4e57-9558-08cab6b963c7' # String | The unique identifier of a transfer
begin
# Get External Card Transfer
result = api_instance.get_external_card_transfer(transfer_id)
p result
rescue SyncteraRubySdk::ApiError => e
puts "Error when calling ExternalCardsApi->get_external_card_transfer: #{e}"
end
Using the get_external_card_transfer_with_http_info variant
This returns an Array which contains the response data, status code and headers.
, Integer, Hash)> get_external_card_transfer_with_http_info(transfer_id)
begin
# Get External Card Transfer
data, status_code, headers = api_instance.get_external_card_transfer_with_http_info(transfer_id)
p status_code # => 2xx
p headers # => { ... }
p data # => <TransferResponse>
rescue SyncteraRubySdk::ApiError => e
puts "Error when calling ExternalCardsApi->get_external_card_transfer_with_http_info: #{e}"
end
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| transfer_id | String | The unique identifier of a transfer |
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json, application/problem+json
initialize3_ds
initialize3_ds(initialize3ds_request, opts)
Initialize 3DS (beta)
🚧 Beta > This is a Beta endpoint. Feedback from the community is welcome. We may make breaking changes to this endpoint. Initializes an External Card Transfer 3DS authentication.
Examples
require 'time'
require 'synctera_ruby_sdk'
# setup authorization
SyncteraRubySdk.configure do |config|
# Configure Bearer authorization (api_key): bearerAuth
config.access_token = 'YOUR_BEARER_TOKEN'
end
api_instance = SyncteraRubySdk::ExternalCardsApi.new
initialize3ds_request = SyncteraRubySdk::Initialize3dsRequest.new({amount: 37, currency: 'USD', external_card_id: '7d943c51-e4ff-4e57-9558-08cab6b963c7'}) # Initialize3dsRequest | Details of the External Card Transfer 3DS authentication to initialize.
opts = {
idempotency_key: '7d943c51-e4ff-4e57-9558-08cab6b963c7' # String | An idempotency key is an arbitrary unique value generated by client to detect subsequent retries of the same request. It is recommended that a UUID or a similar random identifier be used as an idempotency key. A different key must be used for each request, unless it is a retry.
}
begin
# Initialize 3DS (beta)
result = api_instance.initialize3_ds(initialize3ds_request, opts)
p result
rescue SyncteraRubySdk::ApiError => e
puts "Error when calling ExternalCardsApi->initialize3_ds: #{e}"
end
Using the initialize3_ds_with_http_info variant
This returns an Array which contains the response data, status code and headers.
, Integer, Hash)> initialize3_ds_with_http_info(initialize3ds_request, opts)
begin
# Initialize 3DS (beta)
data, status_code, headers = api_instance.initialize3_ds_with_http_info(initialize3ds_request, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <Initialize3dsResponse>
rescue SyncteraRubySdk::ApiError => e
puts "Error when calling ExternalCardsApi->initialize3_ds_with_http_info: #{e}"
end
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| initialize3ds_request | Initialize3dsRequest | Details of the External Card Transfer 3DS authentication to initialize. | |
| idempotency_key | String | An idempotency key is an arbitrary unique value generated by client to detect subsequent retries of the same request. It is recommended that a UUID or a similar random identifier be used as an idempotency key. A different key must be used for each request, unless it is a retry. | [optional] |
Return type
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: application/json, application/problem+json
list_external_card_transfers
list_external_card_transfers(opts)
List External Card Transfers
Get a paginated list of External Card Transfers
Examples
require 'time'
require 'synctera_ruby_sdk'
# setup authorization
SyncteraRubySdk.configure do |config|
# Configure Bearer authorization (api_key): bearerAuth
config.access_token = 'YOUR_BEARER_TOKEN'
end
api_instance = SyncteraRubySdk::ExternalCardsApi.new
opts = {
limit: 100, # Integer |
page_token: 'a8937a0d', # String |
customer_id: ['7d943c51-e4ff-4e57-9558-08cab6b963c7'], # Array<String> |
external_card_id: '38400000-8cf0-11bd-b23e-10b96e4ef00d', # String |
originating_account_id: ['7d943c51-e4ff-4e57-9558-08cab6b963c7'], # Array<String> |
type: SyncteraRubySdk::TransferType::PULL # TransferType | The type of an external transfer
}
begin
# List External Card Transfers
result = api_instance.list_external_card_transfers(opts)
p result
rescue SyncteraRubySdk::ApiError => e
puts "Error when calling ExternalCardsApi->list_external_card_transfers: #{e}"
end
Using the list_external_card_transfers_with_http_info variant
This returns an Array which contains the response data, status code and headers.
, Integer, Hash)> list_external_card_transfers_with_http_info(opts)
begin
# List External Card Transfers
data, status_code, headers = api_instance.list_external_card_transfers_with_http_info(opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <TransferListResponse>
rescue SyncteraRubySdk::ApiError => e
puts "Error when calling ExternalCardsApi->list_external_card_transfers_with_http_info: #{e}"
end
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| limit | Integer | [optional][default to 100] | |
| page_token | String | [optional] | |
| customer_id | Array<String> | [optional] | |
| external_card_id | String | [optional] | |
| originating_account_id | Array<String> | [optional] | |
| type | TransferType | The type of an external transfer | [optional] |
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json, application/problem+json
list_external_cards
list_external_cards(opts)
List External Cards
Get a paginated list of External Cards
Examples
require 'time'
require 'synctera_ruby_sdk'
# setup authorization
SyncteraRubySdk.configure do |config|
# Configure Bearer authorization (api_key): bearerAuth
config.access_token = 'YOUR_BEARER_TOKEN'
end
api_instance = SyncteraRubySdk::ExternalCardsApi.new
opts = {
limit: 100, # Integer |
page_token: 'a8937a0d', # String |
customer_id: '38400000-8cf0-11bd-b23e-10b96e4ef00d', # String |
business_id: '38400000-8cf0-11bd-b23e-10b96e4ef00d', # String |
status: SyncteraRubySdk::ExternalCardStatus::ACTIVE # ExternalCardStatus |
}
begin
# List External Cards
result = api_instance.list_external_cards(opts)
p result
rescue SyncteraRubySdk::ApiError => e
puts "Error when calling ExternalCardsApi->list_external_cards: #{e}"
end
Using the list_external_cards_with_http_info variant
This returns an Array which contains the response data, status code and headers.
, Integer, Hash)> list_external_cards_with_http_info(opts)
begin
# List External Cards
data, status_code, headers = api_instance.list_external_cards_with_http_info(opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <ExternalCardListResponse>
rescue SyncteraRubySdk::ApiError => e
puts "Error when calling ExternalCardsApi->list_external_cards_with_http_info: #{e}"
end
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| limit | Integer | [optional][default to 100] | |
| page_token | String | [optional] | |
| customer_id | String | [optional] | |
| business_id | String | [optional] | |
| status | ExternalCardStatus | [optional] |
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json, application/problem+json
lookup3_ds
lookup3_ds(lookup3ds_request, opts)
Lookup 3DS (beta)
🚧 Beta > This is a Beta endpoint. Feedback from the community is welcome. We may make breaking changes to this endpoint. Using device collection data, performs a lookup for an External Card Transfer 3DS authentication. The results will indicate whether the transfer is successfully authenticated or if a 3DS challenge is required.
Examples
require 'time'
require 'synctera_ruby_sdk'
# setup authorization
SyncteraRubySdk.configure do |config|
# Configure Bearer authorization (api_key): bearerAuth
config.access_token = 'YOUR_BEARER_TOKEN'
end
api_instance = SyncteraRubySdk::ExternalCardsApi.new
lookup3ds_request = SyncteraRubySdk::Lookup3dsRequestBrowser.new({authentication_indicator: 'PAYMENT', device_channel: 'BROWSER', id: '7d943c51-e4ff-4e57-9558-08cab6b963c7', transaction_mode: 'MOBILE_DEVICE'}) # Lookup3dsRequest | Details of the External Card Transfer 3DS authentication lookup.
opts = {
idempotency_key: '7d943c51-e4ff-4e57-9558-08cab6b963c7' # String | An idempotency key is an arbitrary unique value generated by client to detect subsequent retries of the same request. It is recommended that a UUID or a similar random identifier be used as an idempotency key. A different key must be used for each request, unless it is a retry.
}
begin
# Lookup 3DS (beta)
result = api_instance.lookup3_ds(lookup3ds_request, opts)
p result
rescue SyncteraRubySdk::ApiError => e
puts "Error when calling ExternalCardsApi->lookup3_ds: #{e}"
end
Using the lookup3_ds_with_http_info variant
This returns an Array which contains the response data, status code and headers.
, Integer, Hash)> lookup3_ds_with_http_info(lookup3ds_request, opts)
begin
# Lookup 3DS (beta)
data, status_code, headers = api_instance.lookup3_ds_with_http_info(lookup3ds_request, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <Lookup3dsResponse>
rescue SyncteraRubySdk::ApiError => e
puts "Error when calling ExternalCardsApi->lookup3_ds_with_http_info: #{e}"
end
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| lookup3ds_request | Lookup3dsRequest | Details of the External Card Transfer 3DS authentication lookup. | |
| idempotency_key | String | An idempotency key is an arbitrary unique value generated by client to detect subsequent retries of the same request. It is recommended that a UUID or a similar random identifier be used as an idempotency key. A different key must be used for each request, unless it is a retry. | [optional] |
Return type
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: application/json, application/problem+json
update_external_card
update_external_card(external_card_id, external_card_update_request)
Update External Card
Update External Card data
Examples
require 'time'
require 'synctera_ruby_sdk'
# setup authorization
SyncteraRubySdk.configure do |config|
# Configure Bearer authorization (api_key): bearerAuth
config.access_token = 'YOUR_BEARER_TOKEN'
end
api_instance = SyncteraRubySdk::ExternalCardsApi.new
external_card_id = '7d943c51-e4ff-4e57-9558-08cab6b963c7' # String | The unique identifier of an external card
external_card_update_request = SyncteraRubySdk::ExternalCardUpdateRequest.new({status: SyncteraRubySdk::ExternalCardStatus::ACTIVE}) # ExternalCardUpdateRequest | Fields to update
begin
# Update External Card
result = api_instance.update_external_card(external_card_id, external_card_update_request)
p result
rescue SyncteraRubySdk::ApiError => e
puts "Error when calling ExternalCardsApi->update_external_card: #{e}"
end
Using the update_external_card_with_http_info variant
This returns an Array which contains the response data, status code and headers.
, Integer, Hash)> update_external_card_with_http_info(external_card_id, external_card_update_request)
begin
# Update External Card
data, status_code, headers = api_instance.update_external_card_with_http_info(external_card_id, external_card_update_request)
p status_code # => 2xx
p headers # => { ... }
p data # => <ExternalCardResponse>
rescue SyncteraRubySdk::ApiError => e
puts "Error when calling ExternalCardsApi->update_external_card_with_http_info: #{e}"
end
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| external_card_id | String | The unique identifier of an external card | |
| external_card_update_request | ExternalCardUpdateRequest | Fields to update |
Return type
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: application/json, application/problem+json