All URIs are relative to http://localhost/v3
Method | HTTP request | Description |
---|---|---|
get_feetransfers_token | GET /feetransfers/{token} | Returns a fee transfer |
post_feetransfers | POST /feetransfers | Creates a fee transfer |
get_feetransfers_token(token)
Returns a fee transfer
require 'time'
require 'marqeta'
api_instance = Marqeta::FeeTransfersApi.new
token = 'token_example' # String |
begin
# Returns a fee transfer
result = api_instance.get_feetransfers_token(token)
p result
rescue Marqeta::ApiError => e
puts "Error when calling FeeTransfersApi->get_feetransfers_token: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> get_feetransfers_token_with_http_info(token)
begin
# Returns a fee transfer
data, status_code, headers = api_instance.get_feetransfers_token_with_http_info(token)
p status_code # => 2xx
p headers # => { ... }
p data # => <FeeTransferResponse>
rescue Marqeta::ApiError => e
puts "Error when calling FeeTransfersApi->get_feetransfers_token_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
token | String |
No authorization required
- Content-Type: Not defined
- Accept: application/json
post_feetransfers(opts)
Creates a fee transfer
require 'time'
require 'marqeta'
api_instance = Marqeta::FeeTransfersApi.new
opts = {
body: Marqeta::FeeTransferRequest.new({user_token: 'user_token_example', business_token: 'business_token_example'}) # FeeTransferRequest |
}
begin
# Creates a fee transfer
result = api_instance.post_feetransfers(opts)
p result
rescue Marqeta::ApiError => e
puts "Error when calling FeeTransfersApi->post_feetransfers: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> post_feetransfers_with_http_info(opts)
begin
# Creates a fee transfer
data, status_code, headers = api_instance.post_feetransfers_with_http_info(opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <FeeTransferResponse>
rescue Marqeta::ApiError => e
puts "Error when calling FeeTransfersApi->post_feetransfers_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
body | FeeTransferRequest | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json