balanced 1.0.beta1 → 1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.ruby-version +1 -1
- data/LICENSE +2 -2
- data/balanced.gemspec +1 -1
- data/lib/balanced/resources.rb +1 -0
- data/lib/balanced/resources/customer.rb +0 -14
- data/lib/balanced/resources/dispute.rb +12 -0
- data/lib/balanced/version.rb +1 -1
- data/scenario.cache +142 -141
- data/scenarios/api_key_create/ruby.mako +6 -6
- data/scenarios/api_key_delete/ruby.mako +2 -2
- data/scenarios/api_key_list/ruby.mako +10 -10
- data/scenarios/api_key_show/ruby.mako +6 -6
- data/scenarios/bank_account_associate_to_customer/ruby.mako +13 -13
- data/scenarios/bank_account_create/ruby.mako +13 -13
- data/scenarios/bank_account_credit/ruby.mako +15 -15
- data/scenarios/bank_account_debit/ruby.mako +15 -15
- data/scenarios/bank_account_delete/ruby.mako +2 -2
- data/scenarios/bank_account_list/ruby.mako +22 -22
- data/scenarios/bank_account_show/ruby.mako +12 -12
- data/scenarios/bank_account_update/ruby.mako +12 -12
- data/scenarios/bank_account_verification_create/ruby.mako +9 -9
- data/scenarios/bank_account_verification_show/ruby.mako +9 -9
- data/scenarios/bank_account_verification_update/ruby.mako +9 -9
- data/scenarios/callback_create/ruby.mako +5 -4
- data/scenarios/callback_delete/ruby.mako +2 -2
- data/scenarios/callback_list/ruby.mako +4 -4
- data/scenarios/callback_show/ruby.mako +5 -5
- data/scenarios/card_associate_to_customer/ruby.mako +15 -15
- data/scenarios/card_create/ruby.mako +14 -14
- data/scenarios/card_debit/ruby.mako +16 -16
- data/scenarios/card_delete/ruby.mako +2 -2
- data/scenarios/card_hold_capture/ruby.mako +16 -16
- data/scenarios/card_hold_create/ruby.mako +16 -14
- data/scenarios/card_hold_list/ruby.mako +29 -25
- data/scenarios/card_hold_show/ruby.mako +16 -14
- data/scenarios/card_hold_update/ruby.mako +16 -14
- data/scenarios/card_hold_void/ruby.mako +16 -14
- data/scenarios/card_list/ruby.mako +24 -24
- data/scenarios/card_show/ruby.mako +13 -13
- data/scenarios/card_update/ruby.mako +13 -13
- data/scenarios/credit_list/ruby.mako +14 -14
- data/scenarios/credit_list_bank_account/ruby.mako +2 -2
- data/scenarios/credit_show/ruby.mako +15 -15
- data/scenarios/credit_update/ruby.mako +15 -15
- data/scenarios/customer_create/ruby.mako +19 -17
- data/scenarios/customer_delete/ruby.mako +1 -1
- data/scenarios/customer_list/ruby.mako +37 -33
- data/scenarios/customer_show/ruby.mako +20 -18
- data/scenarios/customer_update/ruby.mako +20 -18
- data/scenarios/debit_list/ruby.mako +28 -28
- data/scenarios/debit_show/ruby.mako +15 -15
- data/scenarios/debit_update/ruby.mako +15 -15
- data/scenarios/event_list/ruby.mako +67 -20
- data/scenarios/event_show/ruby.mako +23 -21
- data/scenarios/order_create/ruby.mako +14 -14
- data/scenarios/order_list/ruby.mako +13 -13
- data/scenarios/order_show/ruby.mako +14 -14
- data/scenarios/order_update/ruby.mako +14 -14
- data/scenarios/refund_create/ruby.mako +13 -13
- data/scenarios/refund_list/ruby.mako +12 -12
- data/scenarios/refund_show/ruby.mako +13 -13
- data/scenarios/refund_update/ruby.mako +13 -13
- data/scenarios/render_mako.rb +0 -1
- data/scenarios/reversal_create/ruby.mako +12 -12
- data/scenarios/reversal_list/ruby.mako +11 -11
- data/scenarios/reversal_show/ruby.mako +12 -12
- data/scenarios/reversal_update/ruby.mako +12 -12
- data/spec/balanced/resources/bank_account_spec.rb +0 -3
- data/spec/balanced/resources/debit_spec.rb +0 -13
- data/spec/balanced/resources/dispute_spec.rb +65 -0
- metadata +20 -18
- data/.rbenv-version +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4be53b1e7f19cda85a7856375b1571e93db52370
|
4
|
+
data.tar.gz: 9e0cb8cffacfd960300021a5c3efe7ca7e9f1278
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39ac22106381f2600fbbb49ccf9f71ef7089bc7226a4bb4b5170590dc333e1e38213c88a66b8c3a48dddf4fae96d1e1960e9aabcd09c07d0c9d7918248d64865
|
7
|
+
data.tar.gz: 04a6bd25924f34d499320c856948b92ea26d7cd30ee7e4f9c8c098d65f60f4907ffa4fe3de2034f0c652355997ef7e645df750034923ad4db104de495554294d
|
data/.gitignore
CHANGED
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
2.1.0
|
data/LICENSE
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
Copyright (c)
|
1
|
+
Copyright (c) 2014 Balanced
|
2
2
|
|
3
3
|
MIT License
|
4
4
|
|
@@ -19,4 +19,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
19
19
|
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
20
|
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
21
|
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/balanced.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |gem|
|
|
10
10
|
gem.summary = %q{https://docs.balancedpayments.com/}
|
11
11
|
gem.homepage = "https://www.balancedpayments.com"
|
12
12
|
|
13
|
-
gem.add_dependency("faraday", '
|
13
|
+
gem.add_dependency("faraday", '~> 0.8.6')
|
14
14
|
gem.add_dependency("faraday_middleware", '~> 0.9.0')
|
15
15
|
gem.add_dependency("addressable", '~> 2.3.5')
|
16
16
|
|
data/lib/balanced/resources.rb
CHANGED
@@ -28,20 +28,6 @@ module Balanced
|
|
28
28
|
owner_customer
|
29
29
|
end
|
30
30
|
|
31
|
-
def debit(options = {})
|
32
|
-
if self.source.nil?
|
33
|
-
raise "No source available for #{self}"
|
34
|
-
end
|
35
|
-
self.source.debit(options)
|
36
|
-
end
|
37
|
-
|
38
|
-
def credit(options = {})
|
39
|
-
if self.destination.nil?
|
40
|
-
raise "No destination available for #{self}"
|
41
|
-
end
|
42
|
-
self.destination.credit(options)
|
43
|
-
end
|
44
|
-
|
45
31
|
def create_order(options = {})
|
46
32
|
options[:href] = self.orders.href
|
47
33
|
order = Balanced::Order.new(options)
|
@@ -0,0 +1,12 @@
|
|
1
|
+
module Balanced
|
2
|
+
# A dispute occurs when a customer disputes a transaction that
|
3
|
+
# occurred on their funding instrument.
|
4
|
+
class Dispute
|
5
|
+
include Balanced::Resource
|
6
|
+
include Balanced::HypermediaRegistry
|
7
|
+
|
8
|
+
define_hypermedia_types [:disputes]
|
9
|
+
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
data/lib/balanced/version.rb
CHANGED
data/scenario.cache
CHANGED
@@ -1,91 +1,91 @@
|
|
1
1
|
{
|
2
2
|
"accept_type": "application/vnd.api+json;revision=1.1",
|
3
|
-
"api_key": "ak-test-
|
3
|
+
"api_key": "ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul",
|
4
4
|
"api_key_create": {
|
5
5
|
"request": {
|
6
6
|
"uri": "/api_keys"
|
7
7
|
},
|
8
|
-
"response": "{\n \"api_keys\": [\n {\n \"created_at\": \"2014-
|
8
|
+
"response": "{\n \"api_keys\": [\n {\n \"created_at\": \"2014-03-06T19:22:18.256643Z\", \n \"href\": \"/api_keys/AK4Vt1mJyCtjdSiGgqAebarR\", \n \"id\": \"AK4Vt1mJyCtjdSiGgqAebarR\", \n \"links\": {}, \n \"meta\": {}, \n \"secret\": \"ak-test-4bQUCg96rUwLV8FZXSTeq8WUSqROO9yT\"\n }\n ], \n \"links\": {}\n}"
|
9
9
|
},
|
10
10
|
"api_key_delete": {
|
11
11
|
"request": {
|
12
|
-
"uri": "/api_keys/
|
12
|
+
"uri": "/api_keys/AK4Vt1mJyCtjdSiGgqAebarR"
|
13
13
|
}
|
14
14
|
},
|
15
15
|
"api_key_list": {
|
16
16
|
"request": {
|
17
17
|
"uri": "/api_keys"
|
18
18
|
},
|
19
|
-
"response": "{\n \"api_keys\": [\n {\n \"created_at\": \"2014-
|
19
|
+
"response": "{\n \"api_keys\": [\n {\n \"created_at\": \"2014-03-06T19:22:18.256643Z\", \n \"href\": \"/api_keys/AK4Vt1mJyCtjdSiGgqAebarR\", \n \"id\": \"AK4Vt1mJyCtjdSiGgqAebarR\", \n \"links\": {}, \n \"meta\": {}\n }, \n {\n \"created_at\": \"2014-03-06T19:22:11.872886Z\", \n \"href\": \"/api_keys/AK4OhVZUPzjD3YSCWBjU1dHO\", \n \"id\": \"AK4OhVZUPzjD3YSCWBjU1dHO\", \n \"links\": {}, \n \"meta\": {}, \n \"secret\": \"ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul\"\n }\n ], \n \"links\": {}, \n \"meta\": {\n \"first\": \"/api_keys?limit=10&offset=0\", \n \"href\": \"/api_keys?limit=10&offset=0\", \n \"last\": \"/api_keys?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 2\n }\n}"
|
20
20
|
},
|
21
21
|
"api_key_show": {
|
22
22
|
"request": {
|
23
|
-
"uri": "/api_keys/
|
23
|
+
"uri": "/api_keys/AK4Vt1mJyCtjdSiGgqAebarR"
|
24
24
|
},
|
25
|
-
"response": "{\n \"api_keys\": [\n {\n \"created_at\": \"2014-
|
25
|
+
"response": "{\n \"api_keys\": [\n {\n \"created_at\": \"2014-03-06T19:22:18.256643Z\", \n \"href\": \"/api_keys/AK4Vt1mJyCtjdSiGgqAebarR\", \n \"id\": \"AK4Vt1mJyCtjdSiGgqAebarR\", \n \"links\": {}, \n \"meta\": {}\n }\n ], \n \"links\": {}\n}"
|
26
26
|
},
|
27
27
|
"api_location": "https://api.balancedpayments.com",
|
28
28
|
"api_rev": "rev1",
|
29
29
|
"bank_account_associate_to_customer": {
|
30
30
|
"request": {
|
31
|
-
"customer_href": "/customers/
|
31
|
+
"customer_href": "/customers/CU64R7DS6DwuXYVg9RTskFK8",
|
32
32
|
"payload": {
|
33
|
-
"customer": "/customers/
|
33
|
+
"customer": "/customers/CU64R7DS6DwuXYVg9RTskFK8"
|
34
34
|
},
|
35
|
-
"uri": "/bank_accounts/
|
35
|
+
"uri": "/bank_accounts/BA6bLGpQZPOiTNRxF24rMd9m"
|
36
36
|
},
|
37
|
-
"response": "{\n \"bank_accounts\": [\n {\n \"account_number\": \"xxxxxx0001\", \n \"account_type\": \"checking\", \n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_credit\": true, \n \"can_debit\": false, \n \"created_at\": \"2014-
|
37
|
+
"response": "{\n \"bank_accounts\": [\n {\n \"account_number\": \"xxxxxx0001\", \n \"account_type\": \"checking\", \n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_credit\": true, \n \"can_debit\": false, \n \"created_at\": \"2014-03-06T19:23:27.876147Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA6bLGpQZPOiTNRxF24rMd9m\", \n \"id\": \"BA6bLGpQZPOiTNRxF24rMd9m\", \n \"links\": {\n \"bank_account_verification\": null, \n \"customer\": \"CU64R7DS6DwuXYVg9RTskFK8\"\n }, \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"updated_at\": \"2014-03-06T19:23:28.930538Z\"\n }\n ], \n \"links\": {\n \"bank_accounts.bank_account_verification\": \"/verifications/{bank_accounts.bank_account_verification}\", \n \"bank_accounts.bank_account_verifications\": \"/bank_accounts/{bank_accounts.id}/verifications\", \n \"bank_accounts.credits\": \"/bank_accounts/{bank_accounts.id}/credits\", \n \"bank_accounts.customer\": \"/customers/{bank_accounts.customer}\", \n \"bank_accounts.debits\": \"/bank_accounts/{bank_accounts.id}/debits\"\n }\n}"
|
38
38
|
},
|
39
39
|
"bank_account_create": {
|
40
40
|
"request": {
|
41
41
|
"payload": {
|
42
42
|
"account_number": "9900000001",
|
43
|
+
"account_type": "checking",
|
43
44
|
"name": "Johann Bernoulli",
|
44
|
-
"routing_number": "121000358"
|
45
|
-
"type": "checking"
|
45
|
+
"routing_number": "121000358"
|
46
46
|
},
|
47
47
|
"uri": "/bank_accounts"
|
48
48
|
},
|
49
|
-
"response": "{\n \"bank_accounts\": [\n {\n \"account_number\": \"xxxxxx0001\", \n \"account_type\": \"checking\", \n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_credit\": true, \n \"can_debit\": false, \n \"created_at\": \"2014-
|
49
|
+
"response": "{\n \"bank_accounts\": [\n {\n \"account_number\": \"xxxxxx0001\", \n \"account_type\": \"checking\", \n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_credit\": true, \n \"can_debit\": false, \n \"created_at\": \"2014-03-06T19:23:27.876147Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA6bLGpQZPOiTNRxF24rMd9m\", \n \"id\": \"BA6bLGpQZPOiTNRxF24rMd9m\", \n \"links\": {\n \"bank_account_verification\": null, \n \"customer\": null\n }, \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"updated_at\": \"2014-03-06T19:23:27.876150Z\"\n }\n ], \n \"links\": {\n \"bank_accounts.bank_account_verification\": \"/verifications/{bank_accounts.bank_account_verification}\", \n \"bank_accounts.bank_account_verifications\": \"/bank_accounts/{bank_accounts.id}/verifications\", \n \"bank_accounts.credits\": \"/bank_accounts/{bank_accounts.id}/credits\", \n \"bank_accounts.customer\": \"/customers/{bank_accounts.customer}\", \n \"bank_accounts.debits\": \"/bank_accounts/{bank_accounts.id}/debits\"\n }\n}"
|
50
50
|
},
|
51
51
|
"bank_account_credit": {
|
52
52
|
"request": {
|
53
|
-
"bank_account_href": "/bank_accounts/
|
53
|
+
"bank_account_href": "/bank_accounts/BA6bLGpQZPOiTNRxF24rMd9m",
|
54
54
|
"payload": {
|
55
55
|
"amount": 5000
|
56
56
|
},
|
57
|
-
"uri": "/bank_accounts/
|
57
|
+
"uri": "/bank_accounts/BA6bLGpQZPOiTNRxF24rMd9m/credits"
|
58
58
|
},
|
59
|
-
"response": "{\n \"credits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"example.com\", \n \"created_at\": \"2014-
|
59
|
+
"response": "{\n \"credits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"example.com\", \n \"created_at\": \"2014-03-06T19:23:54.514782Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/credits/CR6NpuEtezCdLTYngDrSEODv\", \n \"id\": \"CR6NpuEtezCdLTYngDrSEODv\", \n \"links\": {\n \"customer\": \"CU64R7DS6DwuXYVg9RTskFK8\", \n \"destination\": \"BA6bLGpQZPOiTNRxF24rMd9m\", \n \"order\": null\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"CR855-415-1670\", \n \"updated_at\": \"2014-03-06T19:23:55.019500Z\"\n }\n ], \n \"links\": {\n \"credits.customer\": \"/customers/{credits.customer}\", \n \"credits.destination\": \"/resources/{credits.destination}\", \n \"credits.events\": \"/credits/{credits.id}/events\", \n \"credits.order\": \"/orders/{credits.order}\", \n \"credits.reversals\": \"/credits/{credits.id}/reversals\"\n }\n}"
|
60
60
|
},
|
61
61
|
"bank_account_debit": {
|
62
62
|
"request": {
|
63
|
-
"bank_account_href": "/bank_accounts/
|
63
|
+
"bank_account_href": "/bank_accounts/BA50LpPrCTB63Ecm0wEgdOQM",
|
64
64
|
"payload": {
|
65
65
|
"amount": 5000,
|
66
66
|
"appears_on_statement_as": "Statement text",
|
67
67
|
"description": "Some descriptive text for the debit in the dashboard"
|
68
68
|
},
|
69
|
-
"uri": "/bank_accounts/
|
69
|
+
"uri": "/bank_accounts/BA50LpPrCTB63Ecm0wEgdOQM/debits"
|
70
70
|
},
|
71
|
-
"response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-
|
71
|
+
"response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-03-06T19:22:35.961050Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD5qunOPeKdCnWXIg9EHyHge\", \n \"id\": \"WD5qunOPeKdCnWXIg9EHyHge\", \n \"links\": {\n \"customer\": null, \n \"dispute\": null, \n \"order\": null, \n \"source\": \"BA50LpPrCTB63Ecm0wEgdOQM\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W051-293-0823\", \n \"updated_at\": \"2014-03-06T19:22:36.418154Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \n \"debits.dispute\": \"/disputes/{debits.dispute}\", \n \"debits.events\": \"/debits/{debits.id}/events\", \n \"debits.order\": \"/orders/{debits.order}\", \n \"debits.refunds\": \"/debits/{debits.id}/refunds\", \n \"debits.source\": \"/resources/{debits.source}\"\n }\n}"
|
72
72
|
},
|
73
73
|
"bank_account_delete": {
|
74
74
|
"request": {
|
75
|
-
"uri": "/bank_accounts/
|
75
|
+
"uri": "/bank_accounts/BA58WYAEUMrEtAkW5KAvWo5V"
|
76
76
|
}
|
77
77
|
},
|
78
78
|
"bank_account_list": {
|
79
79
|
"request": {
|
80
80
|
"uri": "/bank_accounts"
|
81
81
|
},
|
82
|
-
"response": "{\n \"bank_accounts\": [\n {\n \"account_number\": \"xxxxxx0001\", \n \"account_type\": \"checking\", \n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_credit\": true, \n \"can_debit\": false, \n \"created_at\": \"2014-
|
82
|
+
"response": "{\n \"bank_accounts\": [\n {\n \"account_number\": \"xxxxxx0001\", \n \"account_type\": \"checking\", \n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_credit\": true, \n \"can_debit\": false, \n \"created_at\": \"2014-03-06T19:22:30.247406Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA58WYAEUMrEtAkW5KAvWo5V\", \n \"id\": \"BA58WYAEUMrEtAkW5KAvWo5V\", \n \"links\": {\n \"bank_account_verification\": null, \n \"customer\": null\n }, \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"updated_at\": \"2014-03-06T19:22:30.247410Z\"\n }, \n {\n \"account_number\": \"xxxxxx0001\", \n \"account_type\": \"checking\", \n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_credit\": true, \n \"can_debit\": true, \n \"created_at\": \"2014-03-06T19:22:22.966278Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA50LpPrCTB63Ecm0wEgdOQM\", \n \"id\": \"BA50LpPrCTB63Ecm0wEgdOQM\", \n \"links\": {\n \"bank_account_verification\": \"BZ5alC0fajkuBOvOU7lVT7QJ\", \n \"customer\": null\n }, \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"updated_at\": \"2014-03-06T19:22:27.888575Z\"\n }, \n {\n \"account_number\": \"xxxxxxxxxxx5555\", \n \"account_type\": \"checking\", \n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"bank_name\": \"WELLS FARGO BANK NA\", \n \"can_credit\": true, \n \"can_debit\": true, \n \"created_at\": \"2014-03-06T19:22:12.982029Z\", \n \"fingerprint\": \"6ybvaLUrJy07phK2EQ7pVk\", \n \"href\": \"/bank_accounts/BA4WYHt1wCRMAJGm6k0BDaeR\", \n \"id\": \"BA4WYHt1wCRMAJGm6k0BDaeR\", \n \"links\": {\n \"bank_account_verification\": null, \n \"customer\": \"CU4Wt8xSbREzV2NWtdVAFGeR\"\n }, \n \"meta\": {}, \n \"name\": \"TEST-MERCHANT-BANK-ACCOUNT\", \n \"routing_number\": \"121042882\", \n \"updated_at\": \"2014-03-06T19:22:12.982032Z\"\n }\n ], \n \"links\": {\n \"bank_accounts.bank_account_verification\": \"/verifications/{bank_accounts.bank_account_verification}\", \n \"bank_accounts.bank_account_verifications\": \"/bank_accounts/{bank_accounts.id}/verifications\", \n \"bank_accounts.credits\": \"/bank_accounts/{bank_accounts.id}/credits\", \n \"bank_accounts.customer\": \"/customers/{bank_accounts.customer}\", \n \"bank_accounts.debits\": \"/bank_accounts/{bank_accounts.id}/debits\"\n }, \n \"meta\": {\n \"first\": \"/bank_accounts?limit=10&offset=0\", \n \"href\": \"/bank_accounts?limit=10&offset=0\", \n \"last\": \"/bank_accounts?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 3\n }\n}"
|
83
83
|
},
|
84
84
|
"bank_account_show": {
|
85
85
|
"request": {
|
86
|
-
"uri": "/bank_accounts/
|
86
|
+
"uri": "/bank_accounts/BA58WYAEUMrEtAkW5KAvWo5V"
|
87
87
|
},
|
88
|
-
"response": "{\n \"bank_accounts\": [\n {\n \"account_number\": \"xxxxxx0001\", \n \"account_type\": \"checking\", \n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_credit\": true, \n \"can_debit\": false, \n \"created_at\": \"2014-
|
88
|
+
"response": "{\n \"bank_accounts\": [\n {\n \"account_number\": \"xxxxxx0001\", \n \"account_type\": \"checking\", \n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_credit\": true, \n \"can_debit\": false, \n \"created_at\": \"2014-03-06T19:22:30.247406Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA58WYAEUMrEtAkW5KAvWo5V\", \n \"id\": \"BA58WYAEUMrEtAkW5KAvWo5V\", \n \"links\": {\n \"bank_account_verification\": null, \n \"customer\": null\n }, \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"updated_at\": \"2014-03-06T19:22:30.247410Z\"\n }\n ], \n \"links\": {\n \"bank_accounts.bank_account_verification\": \"/verifications/{bank_accounts.bank_account_verification}\", \n \"bank_accounts.bank_account_verifications\": \"/bank_accounts/{bank_accounts.id}/verifications\", \n \"bank_accounts.credits\": \"/bank_accounts/{bank_accounts.id}/credits\", \n \"bank_accounts.customer\": \"/customers/{bank_accounts.customer}\", \n \"bank_accounts.debits\": \"/bank_accounts/{bank_accounts.id}/debits\"\n }\n}"
|
89
89
|
},
|
90
90
|
"bank_account_update": {
|
91
91
|
"request": {
|
@@ -96,22 +96,22 @@
|
|
96
96
|
"twitter.id": "1234987650"
|
97
97
|
}
|
98
98
|
},
|
99
|
-
"uri": "/bank_accounts/
|
99
|
+
"uri": "/bank_accounts/BA58WYAEUMrEtAkW5KAvWo5V"
|
100
100
|
},
|
101
|
-
"response": "{\n \"bank_accounts\": [\n {\n \"account_number\": \"xxxxxx0001\", \n \"account_type\": \"checking\", \n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_credit\": true, \n \"can_debit\": false, \n \"created_at\": \"2014-
|
101
|
+
"response": "{\n \"bank_accounts\": [\n {\n \"account_number\": \"xxxxxx0001\", \n \"account_type\": \"checking\", \n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_credit\": true, \n \"can_debit\": false, \n \"created_at\": \"2014-03-06T19:22:30.247406Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA58WYAEUMrEtAkW5KAvWo5V\", \n \"id\": \"BA58WYAEUMrEtAkW5KAvWo5V\", \n \"links\": {\n \"bank_account_verification\": null, \n \"customer\": null\n }, \n \"meta\": {\n \"facebook.user_id\": \"0192837465\", \n \"my-own-customer-id\": \"12345\", \n \"twitter.id\": \"1234987650\"\n }, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"updated_at\": \"2014-03-06T19:22:33.744499Z\"\n }\n ], \n \"links\": {\n \"bank_accounts.bank_account_verification\": \"/verifications/{bank_accounts.bank_account_verification}\", \n \"bank_accounts.bank_account_verifications\": \"/bank_accounts/{bank_accounts.id}/verifications\", \n \"bank_accounts.credits\": \"/bank_accounts/{bank_accounts.id}/credits\", \n \"bank_accounts.customer\": \"/customers/{bank_accounts.customer}\", \n \"bank_accounts.debits\": \"/bank_accounts/{bank_accounts.id}/debits\"\n }\n}"
|
102
102
|
},
|
103
103
|
"bank_account_verification_create": {
|
104
104
|
"request": {
|
105
|
-
"bank_account_uri": "/bank_accounts/
|
106
|
-
"uri": "/bank_accounts/
|
105
|
+
"bank_account_uri": "/bank_accounts/BA50LpPrCTB63Ecm0wEgdOQM",
|
106
|
+
"uri": "/bank_accounts/BA50LpPrCTB63Ecm0wEgdOQM/verifications"
|
107
107
|
},
|
108
|
-
"response": "{\n \"bank_account_verifications\": [\n {\n \"attempts\": 0, \n \"attempts_remaining\": 3, \n \"created_at\": \"2014-
|
108
|
+
"response": "{\n \"bank_account_verifications\": [\n {\n \"attempts\": 0, \n \"attempts_remaining\": 3, \n \"created_at\": \"2014-03-06T19:22:24.651572Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ5alC0fajkuBOvOU7lVT7QJ\", \n \"id\": \"BZ5alC0fajkuBOvOU7lVT7QJ\", \n \"links\": {\n \"bank_account\": \"BA50LpPrCTB63Ecm0wEgdOQM\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-03-06T19:22:25.233126Z\", \n \"verification_status\": \"pending\"\n }\n ], \n \"links\": {\n \"bank_account_verifications.bank_account\": \"/bank_accounts/{bank_account_verifications.bank_account}\"\n }\n}"
|
109
109
|
},
|
110
110
|
"bank_account_verification_show": {
|
111
111
|
"request": {
|
112
|
-
"uri": "/verifications/
|
112
|
+
"uri": "/verifications/BZ5alC0fajkuBOvOU7lVT7QJ"
|
113
113
|
},
|
114
|
-
"response": "{\n \"bank_account_verifications\": [\n {\n \"attempts\": 0, \n \"attempts_remaining\": 3, \n \"created_at\": \"2014-
|
114
|
+
"response": "{\n \"bank_account_verifications\": [\n {\n \"attempts\": 0, \n \"attempts_remaining\": 3, \n \"created_at\": \"2014-03-06T19:22:24.651572Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ5alC0fajkuBOvOU7lVT7QJ\", \n \"id\": \"BZ5alC0fajkuBOvOU7lVT7QJ\", \n \"links\": {\n \"bank_account\": \"BA50LpPrCTB63Ecm0wEgdOQM\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-03-06T19:22:25.233126Z\", \n \"verification_status\": \"pending\"\n }\n ], \n \"links\": {\n \"bank_account_verifications.bank_account\": \"/bank_accounts/{bank_account_verifications.bank_account}\"\n }\n}"
|
115
115
|
},
|
116
116
|
"bank_account_verification_update": {
|
117
117
|
"request": {
|
@@ -119,39 +119,40 @@
|
|
119
119
|
"amount_1": 1,
|
120
120
|
"amount_2": 1
|
121
121
|
},
|
122
|
-
"uri": "/verifications/
|
122
|
+
"uri": "/verifications/BZ5alC0fajkuBOvOU7lVT7QJ"
|
123
123
|
},
|
124
|
-
"response": "{\n \"bank_account_verifications\": [\n {\n \"attempts\": 1, \n \"attempts_remaining\": 2, \n \"created_at\": \"2014-
|
124
|
+
"response": "{\n \"bank_account_verifications\": [\n {\n \"attempts\": 1, \n \"attempts_remaining\": 2, \n \"created_at\": \"2014-03-06T19:22:24.651572Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ5alC0fajkuBOvOU7lVT7QJ\", \n \"id\": \"BZ5alC0fajkuBOvOU7lVT7QJ\", \n \"links\": {\n \"bank_account\": \"BA50LpPrCTB63Ecm0wEgdOQM\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-03-06T19:22:27.893114Z\", \n \"verification_status\": \"succeeded\"\n }\n ], \n \"links\": {\n \"bank_account_verifications.bank_account\": \"/bank_accounts/{bank_account_verifications.bank_account}\"\n }\n}"
|
125
125
|
},
|
126
126
|
"callback_create": {
|
127
127
|
"request": {
|
128
128
|
"payload": {
|
129
|
+
"method": "post",
|
129
130
|
"url": "http://www.example.com/callback"
|
130
131
|
},
|
131
132
|
"uri": "/callbacks"
|
132
133
|
},
|
133
|
-
"response": "{\n \"callbacks\": [\n {\n \"href\": \"/callbacks/
|
134
|
+
"response": "{\n \"callbacks\": [\n {\n \"href\": \"/callbacks/CB5pnz4XnaDpRFGlNMb6u50R\", \n \"id\": \"CB5pnz4XnaDpRFGlNMb6u50R\", \n \"links\": {}, \n \"method\": \"post\", \n \"revision\": \"1.1\", \n \"url\": \"http://www.example.com/callback\"\n }\n ], \n \"links\": {}\n}"
|
134
135
|
},
|
135
136
|
"callback_delete": {
|
136
137
|
"request": {
|
137
|
-
"uri": "/callbacks/
|
138
|
+
"uri": "/callbacks/CB5pnz4XnaDpRFGlNMb6u50R"
|
138
139
|
}
|
139
140
|
},
|
140
141
|
"callback_list": {
|
141
142
|
"request": {
|
142
143
|
"uri": "/callbacks"
|
143
144
|
},
|
144
|
-
"response": "{\n \"callbacks\": [\n {\n \"href\": \"/callbacks/
|
145
|
+
"response": "{\n \"callbacks\": [\n {\n \"href\": \"/callbacks/CB5pnz4XnaDpRFGlNMb6u50R\", \n \"id\": \"CB5pnz4XnaDpRFGlNMb6u50R\", \n \"links\": {}, \n \"method\": \"post\", \n \"revision\": \"1.1\", \n \"url\": \"http://www.example.com/callback\"\n }\n ], \n \"links\": {}, \n \"meta\": {\n \"first\": \"/callbacks?limit=10&offset=0\", \n \"href\": \"/callbacks?limit=10&offset=0\", \n \"last\": \"/callbacks?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 1\n }\n}"
|
145
146
|
},
|
146
147
|
"callback_show": {
|
147
148
|
"request": {
|
148
|
-
"uri": "/callbacks/
|
149
|
+
"uri": "/callbacks/CB5pnz4XnaDpRFGlNMb6u50R"
|
149
150
|
},
|
150
|
-
"response": "{\n \"callbacks\": [\n {\n \"href\": \"/callbacks/
|
151
|
+
"response": "{\n \"callbacks\": [\n {\n \"href\": \"/callbacks/CB5pnz4XnaDpRFGlNMb6u50R\", \n \"id\": \"CB5pnz4XnaDpRFGlNMb6u50R\", \n \"links\": {}, \n \"method\": \"post\", \n \"revision\": \"1.1\", \n \"url\": \"http://www.example.com/callback\"\n }\n ], \n \"links\": {}\n}"
|
151
152
|
},
|
152
153
|
"card": {
|
153
154
|
"address": {
|
154
|
-
"city":
|
155
|
+
"city": "Balo Alto",
|
155
156
|
"country_code": "USA",
|
156
157
|
"line1": null,
|
157
158
|
"line2": null,
|
@@ -160,97 +161,97 @@
|
|
160
161
|
},
|
161
162
|
"avs_postal_match": "yes",
|
162
163
|
"avs_result": "Postal code matches, but street address not verified.",
|
163
|
-
"avs_street_match":
|
164
|
+
"avs_street_match": "yes",
|
164
165
|
"brand": "Visa",
|
165
|
-
"created_at": "2014-
|
166
|
+
"created_at": "2014-03-06T19:22:15.395346Z",
|
166
167
|
"cvv": null,
|
167
168
|
"cvv_match": null,
|
168
169
|
"cvv_result": null,
|
169
170
|
"expiration_month": 4,
|
170
171
|
"expiration_year": 2016,
|
171
172
|
"fingerprint": "979a26c05f2fb1c7ae38656312b176da2c9be1d938d442040bc79539caac6c0d",
|
172
|
-
"href": "/cards/
|
173
|
-
"id": "
|
173
|
+
"href": "/cards/CC4SdMF0rukpL3XdVvpqoC4m",
|
174
|
+
"id": "CC4SdMF0rukpL3XdVvpqoC4m",
|
174
175
|
"is_verified": true,
|
175
176
|
"links": {
|
176
|
-
"customer": "
|
177
|
+
"customer": "CU4Q8w3Fcg1ed7rrx2bWcw18"
|
177
178
|
},
|
178
179
|
"meta": {},
|
179
180
|
"name": "Benny Riemann",
|
180
181
|
"number": "xxxxxxxxxxxx1111",
|
181
|
-
"updated_at": "2014-
|
182
|
+
"updated_at": "2014-03-06T19:22:15.395350Z"
|
182
183
|
},
|
183
184
|
"card_associate_to_customer": {
|
184
185
|
"request": {
|
185
186
|
"payload": {
|
186
|
-
"customer": "/customers/
|
187
|
+
"customer": "/customers/CU64R7DS6DwuXYVg9RTskFK8"
|
187
188
|
},
|
188
|
-
"uri": "/cards/
|
189
|
+
"uri": "/cards/CC68IoCVpoFlkugB7xt52p8C"
|
189
190
|
},
|
190
|
-
"response": "{\n \"cards\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"avs_postal_match\": null, \n \"avs_result\": null, \n \"avs_street_match\": null, \n \"brand\": \"MasterCard\", \n \"created_at\": \"2014-
|
191
|
+
"response": "{\n \"cards\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"avs_postal_match\": null, \n \"avs_result\": null, \n \"avs_street_match\": null, \n \"brand\": \"MasterCard\", \n \"created_at\": \"2014-03-06T19:23:25.159503Z\", \n \"cvv\": \"xxx\", \n \"cvv_match\": \"yes\", \n \"cvv_result\": \"Match\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"fingerprint\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"href\": \"/cards/CC68IoCVpoFlkugB7xt52p8C\", \n \"id\": \"CC68IoCVpoFlkugB7xt52p8C\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": \"CU64R7DS6DwuXYVg9RTskFK8\"\n }, \n \"meta\": {}, \n \"name\": null, \n \"number\": \"xxxxxxxxxxxx5100\", \n \"updated_at\": \"2014-03-06T19:23:25.633918Z\"\n }\n ], \n \"links\": {\n \"cards.card_holds\": \"/cards/{cards.id}/card_holds\", \n \"cards.customer\": \"/customers/{cards.customer}\", \n \"cards.debits\": \"/cards/{cards.id}/debits\"\n }\n}"
|
191
192
|
},
|
192
193
|
"card_create": {
|
193
194
|
"request": {
|
194
195
|
"payload": {
|
196
|
+
"cvv": "123",
|
195
197
|
"expiration_month": "12",
|
196
198
|
"expiration_year": "2020",
|
197
|
-
"number": "5105105105105100"
|
198
|
-
"security_code": "123"
|
199
|
+
"number": "5105105105105100"
|
199
200
|
},
|
200
201
|
"uri": "/cards"
|
201
202
|
},
|
202
|
-
"response": "{\n \"cards\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"avs_postal_match\": null, \n \"avs_result\": null, \n \"avs_street_match\": null, \n \"brand\": \"MasterCard\", \n \"created_at\": \"2014-
|
203
|
+
"response": "{\n \"cards\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"avs_postal_match\": null, \n \"avs_result\": null, \n \"avs_street_match\": null, \n \"brand\": \"MasterCard\", \n \"created_at\": \"2014-03-06T19:23:25.159503Z\", \n \"cvv\": \"xxx\", \n \"cvv_match\": \"yes\", \n \"cvv_result\": \"Match\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"fingerprint\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"href\": \"/cards/CC68IoCVpoFlkugB7xt52p8C\", \n \"id\": \"CC68IoCVpoFlkugB7xt52p8C\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": null\n }, \n \"meta\": {}, \n \"name\": null, \n \"number\": \"xxxxxxxxxxxx5100\", \n \"updated_at\": \"2014-03-06T19:23:25.159506Z\"\n }\n ], \n \"links\": {\n \"cards.card_holds\": \"/cards/{cards.id}/card_holds\", \n \"cards.customer\": \"/customers/{cards.customer}\", \n \"cards.debits\": \"/cards/{cards.id}/debits\"\n }\n}"
|
203
204
|
},
|
204
205
|
"card_debit": {
|
205
206
|
"request": {
|
206
|
-
"card_href": "/cards/
|
207
|
+
"card_href": "/cards/CC68IoCVpoFlkugB7xt52p8C",
|
207
208
|
"payload": {
|
208
209
|
"amount": 5000,
|
209
210
|
"appears_on_statement_as": "Statement text",
|
210
211
|
"description": "Some descriptive text for the debit in the dashboard"
|
211
212
|
},
|
212
|
-
"uri": "/cards/
|
213
|
+
"uri": "/cards/CC68IoCVpoFlkugB7xt52p8C/debits"
|
213
214
|
},
|
214
|
-
"response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-
|
215
|
+
"response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-03-06T19:23:44.148512Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD6BKYhbRzlRhfKSE1DcpqS5\", \n \"id\": \"WD6BKYhbRzlRhfKSE1DcpqS5\", \n \"links\": {\n \"customer\": \"CU64R7DS6DwuXYVg9RTskFK8\", \n \"dispute\": null, \n \"order\": null, \n \"source\": \"CC68IoCVpoFlkugB7xt52p8C\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W274-713-3734\", \n \"updated_at\": \"2014-03-06T19:23:45.554127Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \n \"debits.dispute\": \"/disputes/{debits.dispute}\", \n \"debits.events\": \"/debits/{debits.id}/events\", \n \"debits.order\": \"/orders/{debits.order}\", \n \"debits.refunds\": \"/debits/{debits.id}/refunds\", \n \"debits.source\": \"/resources/{debits.source}\"\n }\n}"
|
215
216
|
},
|
216
217
|
"card_delete": {
|
217
218
|
"request": {
|
218
|
-
"uri": "/cards/
|
219
|
+
"uri": "/cards/CC5Buki6e4Kg4bDVZ3OSfQ8O"
|
219
220
|
}
|
220
221
|
},
|
221
222
|
"card_hold_capture": {
|
222
223
|
"request": {
|
223
|
-
"card_hold_href": "/card_holds/
|
224
|
+
"card_hold_href": "/card_holds/HL5wAfv8JaMsEn9idXrLZZZT",
|
224
225
|
"payload": {
|
225
226
|
"appears_on_statement_as": "ShowsUpOnStmt",
|
226
227
|
"description": "Some descriptive text for the debit in the dashboard"
|
227
228
|
},
|
228
|
-
"uri": "/card_holds/
|
229
|
+
"uri": "/card_holds/HL5wAfv8JaMsEn9idXrLZZZT/debits"
|
229
230
|
},
|
230
|
-
"response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*ShowsUpOnStmt\", \n \"created_at\": \"2014-
|
231
|
+
"response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*ShowsUpOnStmt\", \n \"created_at\": \"2014-03-06T19:22:49.584629Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD5Co9XwRZJg1QtvC5QeekhX\", \n \"id\": \"WD5Co9XwRZJg1QtvC5QeekhX\", \n \"links\": {\n \"customer\": \"CU4Wt8xSbREzV2NWtdVAFGeR\", \n \"dispute\": null, \n \"order\": null, \n \"source\": \"CC5nCSU0yFp3qxR4p6UZST7y\"\n }, \n \"meta\": {\n \"holding.for\": \"user1\", \n \"meaningful.key\": \"some.value\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W493-697-4873\", \n \"updated_at\": \"2014-03-06T19:22:50.608819Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \n \"debits.dispute\": \"/disputes/{debits.dispute}\", \n \"debits.events\": \"/debits/{debits.id}/events\", \n \"debits.order\": \"/orders/{debits.order}\", \n \"debits.refunds\": \"/debits/{debits.id}/refunds\", \n \"debits.source\": \"/resources/{debits.source}\"\n }\n}"
|
231
232
|
},
|
232
233
|
"card_hold_create": {
|
233
234
|
"request": {
|
234
|
-
"card_href": "/cards/
|
235
|
+
"card_href": "/cards/CC5nCSU0yFp3qxR4p6UZST7y",
|
235
236
|
"payload": {
|
236
237
|
"amount": 5000,
|
237
238
|
"description": "Some descriptive text for the debit in the dashboard"
|
238
239
|
},
|
239
|
-
"uri": "/cards/
|
240
|
+
"uri": "/cards/CC5nCSU0yFp3qxR4p6UZST7y/card_holds"
|
240
241
|
},
|
241
|
-
"response": "{\n \"card_holds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-
|
242
|
+
"response": "{\n \"card_holds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-03-06T19:22:51.758438Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2014-03-13T19:22:52.154430Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL5Ig892KbmJyDqED5fYsJ8m\", \n \"id\": \"HL5Ig892KbmJyDqED5fYsJ8m\", \n \"links\": {\n \"card\": \"CC5nCSU0yFp3qxR4p6UZST7y\", \n \"debit\": null\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"HL671-938-5651\", \n \"updated_at\": \"2014-03-06T19:22:52.362482Z\", \n \"voided_at\": null\n }\n ], \n \"links\": {\n \"card_holds.card\": \"/cards/{card_holds.card}\", \n \"card_holds.debit\": \"/debits/{card_holds.debit}\", \n \"card_holds.debits\": \"/card_holds/{card_holds.id}/debits\", \n \"card_holds.events\": \"/card_holds/{card_holds.id}/events\"\n }\n}"
|
242
243
|
},
|
243
244
|
"card_hold_list": {
|
244
245
|
"request": {
|
245
246
|
"uri": "/card_holds"
|
246
247
|
},
|
247
|
-
"response": "{\n \"card_holds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-
|
248
|
+
"response": "{\n \"card_holds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-03-06T19:22:44.421804Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2014-03-13T19:22:44.661981Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL5wAfv8JaMsEn9idXrLZZZT\", \n \"id\": \"HL5wAfv8JaMsEn9idXrLZZZT\", \n \"links\": {\n \"card\": \"CC5nCSU0yFp3qxR4p6UZST7y\", \n \"debit\": null\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"HL116-606-6128\", \n \"updated_at\": \"2014-03-06T19:22:44.816617Z\", \n \"voided_at\": null\n }, \n {\n \"amount\": 10000000, \n \"created_at\": \"2014-03-06T19:22:16.137074Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"expires_at\": \"2014-03-13T19:22:16.821934Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL50LRASJbs8Kbcwqpu2TFdD\", \n \"id\": \"HL50LRASJbs8Kbcwqpu2TFdD\", \n \"links\": {\n \"card\": \"CC4SdMF0rukpL3XdVvpqoC4m\", \n \"debit\": \"WD50VxLKoVBNdkbovF4D56xX\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"HL974-747-7939\", \n \"updated_at\": \"2014-03-06T19:22:17.708358Z\", \n \"voided_at\": null\n }\n ], \n \"links\": {\n \"card_holds.card\": \"/cards/{card_holds.card}\", \n \"card_holds.debit\": \"/debits/{card_holds.debit}\", \n \"card_holds.debits\": \"/card_holds/{card_holds.id}/debits\", \n \"card_holds.events\": \"/card_holds/{card_holds.id}/events\"\n }, \n \"meta\": {\n \"first\": \"/card_holds?limit=10&offset=0\", \n \"href\": \"/card_holds?limit=10&offset=0\", \n \"last\": \"/card_holds?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 2\n }\n}"
|
248
249
|
},
|
249
250
|
"card_hold_show": {
|
250
251
|
"request": {
|
251
|
-
"uri": "/card_holds/
|
252
|
+
"uri": "/card_holds/HL5wAfv8JaMsEn9idXrLZZZT"
|
252
253
|
},
|
253
|
-
"response": "{\n \"card_holds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-
|
254
|
+
"response": "{\n \"card_holds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-03-06T19:22:44.421804Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2014-03-13T19:22:44.661981Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL5wAfv8JaMsEn9idXrLZZZT\", \n \"id\": \"HL5wAfv8JaMsEn9idXrLZZZT\", \n \"links\": {\n \"card\": \"CC5nCSU0yFp3qxR4p6UZST7y\", \n \"debit\": null\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"HL116-606-6128\", \n \"updated_at\": \"2014-03-06T19:22:44.816617Z\", \n \"voided_at\": null\n }\n ], \n \"links\": {\n \"card_holds.card\": \"/cards/{card_holds.card}\", \n \"card_holds.debit\": \"/debits/{card_holds.debit}\", \n \"card_holds.debits\": \"/card_holds/{card_holds.id}/debits\", \n \"card_holds.events\": \"/card_holds/{card_holds.id}/events\"\n }\n}"
|
254
255
|
},
|
255
256
|
"card_hold_update": {
|
256
257
|
"request": {
|
@@ -261,31 +262,31 @@
|
|
261
262
|
"meaningful.key": "some.value"
|
262
263
|
}
|
263
264
|
},
|
264
|
-
"uri": "/card_holds/
|
265
|
+
"uri": "/card_holds/HL5wAfv8JaMsEn9idXrLZZZT"
|
265
266
|
},
|
266
|
-
"response": "{\n \"card_holds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-
|
267
|
+
"response": "{\n \"card_holds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-03-06T19:22:44.421804Z\", \n \"currency\": \"USD\", \n \"description\": \"update this description\", \n \"expires_at\": \"2014-03-13T19:22:44.661981Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL5wAfv8JaMsEn9idXrLZZZT\", \n \"id\": \"HL5wAfv8JaMsEn9idXrLZZZT\", \n \"links\": {\n \"card\": \"CC5nCSU0yFp3qxR4p6UZST7y\", \n \"debit\": null\n }, \n \"meta\": {\n \"holding.for\": \"user1\", \n \"meaningful.key\": \"some.value\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"HL116-606-6128\", \n \"updated_at\": \"2014-03-06T19:22:48.496101Z\", \n \"voided_at\": null\n }\n ], \n \"links\": {\n \"card_holds.card\": \"/cards/{card_holds.card}\", \n \"card_holds.debit\": \"/debits/{card_holds.debit}\", \n \"card_holds.debits\": \"/card_holds/{card_holds.id}/debits\", \n \"card_holds.events\": \"/card_holds/{card_holds.id}/events\"\n }\n}"
|
267
268
|
},
|
268
269
|
"card_hold_void": {
|
269
270
|
"request": {
|
270
271
|
"payload": {
|
271
272
|
"is_void": "true"
|
272
273
|
},
|
273
|
-
"uri": "/card_holds/
|
274
|
+
"uri": "/card_holds/HL5Ig892KbmJyDqED5fYsJ8m"
|
274
275
|
},
|
275
|
-
"response": "{\n \"card_holds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-
|
276
|
+
"response": "{\n \"card_holds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-03-06T19:22:51.758438Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2014-03-13T19:22:52.154430Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL5Ig892KbmJyDqED5fYsJ8m\", \n \"id\": \"HL5Ig892KbmJyDqED5fYsJ8m\", \n \"links\": {\n \"card\": \"CC5nCSU0yFp3qxR4p6UZST7y\", \n \"debit\": null\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"HL671-938-5651\", \n \"updated_at\": \"2014-03-06T19:22:52.865612Z\", \n \"voided_at\": \"2014-03-06T19:22:52.865616Z\"\n }\n ], \n \"links\": {\n \"card_holds.card\": \"/cards/{card_holds.card}\", \n \"card_holds.debit\": \"/debits/{card_holds.debit}\", \n \"card_holds.debits\": \"/card_holds/{card_holds.id}/debits\", \n \"card_holds.events\": \"/card_holds/{card_holds.id}/events\"\n }\n}"
|
276
277
|
},
|
277
|
-
"card_id": "
|
278
|
+
"card_id": "CC4SdMF0rukpL3XdVvpqoC4m",
|
278
279
|
"card_list": {
|
279
280
|
"request": {
|
280
281
|
"uri": "/cards"
|
281
282
|
},
|
282
|
-
"response": "{\n \"cards\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"avs_postal_match\": null, \n \"avs_result\": null, \n \"avs_street_match\": null, \n \"brand\": \"MasterCard\", \n \"created_at\": \"2014-
|
283
|
+
"response": "{\n \"cards\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"avs_postal_match\": null, \n \"avs_result\": null, \n \"avs_street_match\": null, \n \"brand\": \"MasterCard\", \n \"created_at\": \"2014-03-06T19:22:55.617351Z\", \n \"cvv\": \"xxx\", \n \"cvv_match\": \"yes\", \n \"cvv_result\": \"Match\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"fingerprint\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"href\": \"/cards/CC5Buki6e4Kg4bDVZ3OSfQ8O\", \n \"id\": \"CC5Buki6e4Kg4bDVZ3OSfQ8O\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": null\n }, \n \"meta\": {}, \n \"name\": null, \n \"number\": \"xxxxxxxxxxxx5100\", \n \"updated_at\": \"2014-03-06T19:22:55.617354Z\"\n }, \n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"avs_postal_match\": null, \n \"avs_result\": null, \n \"avs_street_match\": null, \n \"brand\": \"MasterCard\", \n \"created_at\": \"2014-03-06T19:22:43.295192Z\", \n \"cvv\": \"xxx\", \n \"cvv_match\": \"yes\", \n \"cvv_result\": \"Match\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"fingerprint\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"href\": \"/cards/CC5nCSU0yFp3qxR4p6UZST7y\", \n \"id\": \"CC5nCSU0yFp3qxR4p6UZST7y\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": \"CU4Wt8xSbREzV2NWtdVAFGeR\"\n }, \n \"meta\": {}, \n \"name\": null, \n \"number\": \"xxxxxxxxxxxx5100\", \n \"updated_at\": \"2014-03-06T19:22:44.417128Z\"\n }, \n {\n \"address\": {\n \"city\": \"Balo Alto\", \n \"country_code\": \"USA\", \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": \"10023\", \n \"state\": null\n }, \n \"avs_postal_match\": \"yes\", \n \"avs_result\": \"Postal code matches, but street address not verified.\", \n \"avs_street_match\": \"yes\", \n \"brand\": \"Visa\", \n \"created_at\": \"2014-03-06T19:22:15.395346Z\", \n \"cvv\": null, \n \"cvv_match\": null, \n \"cvv_result\": null, \n \"expiration_month\": 4, \n \"expiration_year\": 2016, \n \"fingerprint\": \"979a26c05f2fb1c7ae38656312b176da2c9be1d938d442040bc79539caac6c0d\", \n \"href\": \"/cards/CC4SdMF0rukpL3XdVvpqoC4m\", \n \"id\": \"CC4SdMF0rukpL3XdVvpqoC4m\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": \"CU4Q8w3Fcg1ed7rrx2bWcw18\"\n }, \n \"meta\": {}, \n \"name\": \"Benny Riemann\", \n \"number\": \"xxxxxxxxxxxx1111\", \n \"updated_at\": \"2014-03-06T19:22:15.395350Z\"\n }\n ], \n \"links\": {\n \"cards.card_holds\": \"/cards/{cards.id}/card_holds\", \n \"cards.customer\": \"/customers/{cards.customer}\", \n \"cards.debits\": \"/cards/{cards.id}/debits\"\n }, \n \"meta\": {\n \"first\": \"/cards?limit=10&offset=0\", \n \"href\": \"/cards?limit=10&offset=0\", \n \"last\": \"/cards?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 3\n }\n}"
|
283
284
|
},
|
284
285
|
"card_show": {
|
285
286
|
"request": {
|
286
|
-
"uri": "/cards/
|
287
|
+
"uri": "/cards/CC5Buki6e4Kg4bDVZ3OSfQ8O"
|
287
288
|
},
|
288
|
-
"response": "{\n \"cards\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"avs_postal_match\": null, \n \"avs_result\": null, \n \"avs_street_match\": null, \n \"brand\": \"MasterCard\", \n \"created_at\": \"2014-
|
289
|
+
"response": "{\n \"cards\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"avs_postal_match\": null, \n \"avs_result\": null, \n \"avs_street_match\": null, \n \"brand\": \"MasterCard\", \n \"created_at\": \"2014-03-06T19:22:55.617351Z\", \n \"cvv\": \"xxx\", \n \"cvv_match\": \"yes\", \n \"cvv_result\": \"Match\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"fingerprint\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"href\": \"/cards/CC5Buki6e4Kg4bDVZ3OSfQ8O\", \n \"id\": \"CC5Buki6e4Kg4bDVZ3OSfQ8O\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": null\n }, \n \"meta\": {}, \n \"name\": null, \n \"number\": \"xxxxxxxxxxxx5100\", \n \"updated_at\": \"2014-03-06T19:22:55.617354Z\"\n }\n ], \n \"links\": {\n \"cards.card_holds\": \"/cards/{cards.id}/card_holds\", \n \"cards.customer\": \"/customers/{cards.customer}\", \n \"cards.debits\": \"/cards/{cards.id}/debits\"\n }\n}"
|
289
290
|
},
|
290
291
|
"card_update": {
|
291
292
|
"request": {
|
@@ -296,30 +297,30 @@
|
|
296
297
|
"twitter.id": "1234987650"
|
297
298
|
}
|
298
299
|
},
|
299
|
-
"uri": "/cards/
|
300
|
+
"uri": "/cards/CC5Buki6e4Kg4bDVZ3OSfQ8O"
|
300
301
|
},
|
301
|
-
"response": "{\n \"cards\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"avs_postal_match\": null, \n \"avs_result\": null, \n \"avs_street_match\": null, \n \"brand\": \"MasterCard\", \n \"created_at\": \"2014-
|
302
|
+
"response": "{\n \"cards\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"avs_postal_match\": null, \n \"avs_result\": null, \n \"avs_street_match\": null, \n \"brand\": \"MasterCard\", \n \"created_at\": \"2014-03-06T19:22:55.617351Z\", \n \"cvv\": \"xxx\", \n \"cvv_match\": \"yes\", \n \"cvv_result\": \"Match\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"fingerprint\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"href\": \"/cards/CC5Buki6e4Kg4bDVZ3OSfQ8O\", \n \"id\": \"CC5Buki6e4Kg4bDVZ3OSfQ8O\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": null\n }, \n \"meta\": {\n \"facebook.user_id\": \"0192837465\", \n \"my-own-customer-id\": \"12345\", \n \"twitter.id\": \"1234987650\"\n }, \n \"name\": null, \n \"number\": \"xxxxxxxxxxxx5100\", \n \"updated_at\": \"2014-03-06T19:22:59.186980Z\"\n }\n ], \n \"links\": {\n \"cards.card_holds\": \"/cards/{cards.id}/card_holds\", \n \"cards.customer\": \"/customers/{cards.customer}\", \n \"cards.debits\": \"/cards/{cards.id}/debits\"\n }\n}"
|
302
303
|
},
|
303
|
-
"card_uri": "/cards/
|
304
|
-
"cards_uri": "/customers/
|
304
|
+
"card_uri": "/cards/CC4SdMF0rukpL3XdVvpqoC4m",
|
305
|
+
"cards_uri": "/customers/CU4Q8w3Fcg1ed7rrx2bWcw18/cards",
|
305
306
|
"credit_list": {
|
306
307
|
"request": {
|
307
308
|
"uri": "/credits"
|
308
309
|
},
|
309
|
-
"response": "{\n \"credits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"example.com\", \n \"created_at\": \"2014-
|
310
|
+
"response": "{\n \"credits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"example.com\", \n \"created_at\": \"2014-03-06T19:23:08.771807Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/credits/CR5XXPwA1ckaTDSIg3593sEx\", \n \"id\": \"CR5XXPwA1ckaTDSIg3593sEx\", \n \"links\": {\n \"customer\": \"CU5LVuaZG7gURfbA7TuMNoZa\", \n \"destination\": \"BA5OqdmH8URGBYpilMITWsNW\", \n \"order\": null\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"CR570-678-5174\", \n \"updated_at\": \"2014-03-06T19:23:09.525306Z\"\n }\n ], \n \"links\": {\n \"credits.customer\": \"/customers/{credits.customer}\", \n \"credits.destination\": \"/resources/{credits.destination}\", \n \"credits.events\": \"/credits/{credits.id}/events\", \n \"credits.order\": \"/orders/{credits.order}\", \n \"credits.reversals\": \"/credits/{credits.id}/reversals\"\n }, \n \"meta\": {\n \"first\": \"/credits?limit=10&offset=0\", \n \"href\": \"/credits?limit=10&offset=0\", \n \"last\": \"/credits?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 1\n }\n}"
|
310
311
|
},
|
311
312
|
"credit_list_bank_account": {
|
312
313
|
"request": {
|
313
|
-
"bank_account_href": "/bank_accounts/
|
314
|
-
"uri": "/bank_accounts/
|
314
|
+
"bank_account_href": "/bank_accounts/BA58WYAEUMrEtAkW5KAvWo5V",
|
315
|
+
"uri": "/bank_accounts/BA58WYAEUMrEtAkW5KAvWo5V/credits"
|
315
316
|
},
|
316
|
-
"response": "{\n \"links\": {}, \n \"meta\": {\n \"first\": \"/bank_accounts/
|
317
|
+
"response": "{\n \"links\": {}, \n \"meta\": {\n \"first\": \"/bank_accounts/BA58WYAEUMrEtAkW5KAvWo5V/credits?limit=10&offset=0\", \n \"href\": \"/bank_accounts/BA58WYAEUMrEtAkW5KAvWo5V/credits?limit=10&offset=0\", \n \"last\": \"/bank_accounts/BA58WYAEUMrEtAkW5KAvWo5V/credits?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 0\n }\n}"
|
317
318
|
},
|
318
319
|
"credit_show": {
|
319
320
|
"request": {
|
320
|
-
"uri": "/credits/
|
321
|
+
"uri": "/credits/CR5XXPwA1ckaTDSIg3593sEx"
|
321
322
|
},
|
322
|
-
"response": "{\n \"credits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"example.com\", \n \"created_at\": \"2014-
|
323
|
+
"response": "{\n \"credits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"example.com\", \n \"created_at\": \"2014-03-06T19:23:08.771807Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/credits/CR5XXPwA1ckaTDSIg3593sEx\", \n \"id\": \"CR5XXPwA1ckaTDSIg3593sEx\", \n \"links\": {\n \"customer\": \"CU5LVuaZG7gURfbA7TuMNoZa\", \n \"destination\": \"BA5OqdmH8URGBYpilMITWsNW\", \n \"order\": null\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"CR570-678-5174\", \n \"updated_at\": \"2014-03-06T19:23:09.525306Z\"\n }\n ], \n \"links\": {\n \"credits.customer\": \"/customers/{credits.customer}\", \n \"credits.destination\": \"/resources/{credits.destination}\", \n \"credits.events\": \"/credits/{credits.id}/events\", \n \"credits.order\": \"/orders/{credits.order}\", \n \"credits.reversals\": \"/credits/{credits.id}/reversals\"\n }\n}"
|
323
324
|
},
|
324
325
|
"credit_update": {
|
325
326
|
"request": {
|
@@ -330,9 +331,9 @@
|
|
330
331
|
"facebook.id": "1234567890"
|
331
332
|
}
|
332
333
|
},
|
333
|
-
"uri": "/credits/
|
334
|
+
"uri": "/credits/CR5XXPwA1ckaTDSIg3593sEx"
|
334
335
|
},
|
335
|
-
"response": "{\n \"credits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"example.com\", \n \"created_at\": \"2014-
|
336
|
+
"response": "{\n \"credits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"example.com\", \n \"created_at\": \"2014-03-06T19:23:08.771807Z\", \n \"currency\": \"USD\", \n \"description\": \"New description for credit\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/credits/CR5XXPwA1ckaTDSIg3593sEx\", \n \"id\": \"CR5XXPwA1ckaTDSIg3593sEx\", \n \"links\": {\n \"customer\": \"CU5LVuaZG7gURfbA7TuMNoZa\", \n \"destination\": \"BA5OqdmH8URGBYpilMITWsNW\", \n \"order\": null\n }, \n \"meta\": {\n \"anykey\": \"valuegoeshere\", \n \"facebook.id\": \"1234567890\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"CR570-678-5174\", \n \"updated_at\": \"2014-03-06T19:23:14.259690Z\"\n }\n ], \n \"links\": {\n \"credits.customer\": \"/customers/{credits.customer}\", \n \"credits.destination\": \"/resources/{credits.destination}\", \n \"credits.events\": \"/credits/{credits.id}/events\", \n \"credits.order\": \"/orders/{credits.order}\", \n \"credits.reversals\": \"/credits/{credits.id}/reversals\"\n }\n}"
|
336
337
|
},
|
337
338
|
"customer": {
|
338
339
|
"address": {
|
@@ -344,13 +345,13 @@
|
|
344
345
|
"state": null
|
345
346
|
},
|
346
347
|
"business_name": null,
|
347
|
-
"created_at": "2014-
|
348
|
+
"created_at": "2014-03-06T19:22:13.513707Z",
|
348
349
|
"dob_month": null,
|
349
350
|
"dob_year": null,
|
350
351
|
"ein": null,
|
351
352
|
"email": null,
|
352
|
-
"href": "/customers/
|
353
|
-
"id": "
|
353
|
+
"href": "/customers/CU4Q8w3Fcg1ed7rrx2bWcw18",
|
354
|
+
"id": "CU4Q8w3Fcg1ed7rrx2bWcw18",
|
354
355
|
"links": {
|
355
356
|
"destination": null,
|
356
357
|
"source": null
|
@@ -360,7 +361,7 @@
|
|
360
361
|
"name": null,
|
361
362
|
"phone": null,
|
362
363
|
"ssn_last4": null,
|
363
|
-
"updated_at": "2014-
|
364
|
+
"updated_at": "2014-03-06T19:22:13.936010Z"
|
364
365
|
},
|
365
366
|
"customer_create": {
|
366
367
|
"request": {
|
@@ -374,24 +375,24 @@
|
|
374
375
|
},
|
375
376
|
"uri": "/customers"
|
376
377
|
},
|
377
|
-
"response": "{\n \"customers\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": \"48120\", \n \"state\": null\n }, \n \"business_name\": null, \n \"created_at\": \"2014-
|
378
|
+
"response": "{\n \"customers\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": \"48120\", \n \"state\": null\n }, \n \"business_name\": null, \n \"created_at\": \"2014-03-06T19:23:21.728225Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU64R7DS6DwuXYVg9RTskFK8\", \n \"id\": \"CU64R7DS6DwuXYVg9RTskFK8\", \n \"links\": {\n \"destination\": null, \n \"source\": null\n }, \n \"merchant_status\": \"underwritten\", \n \"meta\": {}, \n \"name\": \"Henry Ford\", \n \"phone\": null, \n \"ssn_last4\": null, \n \"updated_at\": \"2014-03-06T19:23:22.907102Z\"\n }\n ], \n \"links\": {\n \"customers.bank_accounts\": \"/customers/{customers.id}/bank_accounts\", \n \"customers.card_holds\": \"/customers/{customers.id}/card_holds\", \n \"customers.cards\": \"/customers/{customers.id}/cards\", \n \"customers.credits\": \"/customers/{customers.id}/credits\", \n \"customers.debits\": \"/customers/{customers.id}/debits\", \n \"customers.destination\": \"/resources/{customers.destination}\", \n \"customers.external_accounts\": \"/customers/{customers.id}/external_accounts\", \n \"customers.orders\": \"/customers/{customers.id}/orders\", \n \"customers.refunds\": \"/customers/{customers.id}/refunds\", \n \"customers.reversals\": \"/customers/{customers.id}/reversals\", \n \"customers.source\": \"/resources/{customers.source}\", \n \"customers.transactions\": \"/customers/{customers.id}/transactions\"\n }\n}"
|
378
379
|
},
|
379
380
|
"customer_delete": {
|
380
381
|
"request": {
|
381
|
-
"uri": "/customers/
|
382
|
+
"uri": "/customers/CU64R7DS6DwuXYVg9RTskFK8"
|
382
383
|
}
|
383
384
|
},
|
384
385
|
"customer_list": {
|
385
386
|
"request": {
|
386
387
|
"uri": "/customers"
|
387
388
|
},
|
388
|
-
"response": "{\n \"customers\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": \"48120\", \n \"state\": null\n }, \n \"business_name\": null, \n \"created_at\": \"2014-
|
389
|
+
"response": "{\n \"customers\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": \"48120\", \n \"state\": null\n }, \n \"business_name\": null, \n \"created_at\": \"2014-03-06T19:23:15.982885Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU5YopHN07Ul5XQnILUifeQT\", \n \"id\": \"CU5YopHN07Ul5XQnILUifeQT\", \n \"links\": {\n \"destination\": null, \n \"source\": null\n }, \n \"merchant_status\": \"underwritten\", \n \"meta\": {}, \n \"name\": \"Henry Ford\", \n \"phone\": null, \n \"ssn_last4\": null, \n \"updated_at\": \"2014-03-06T19:23:16.724050Z\"\n }, \n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": \"48120\", \n \"state\": null\n }, \n \"business_name\": null, \n \"created_at\": \"2014-03-06T19:23:04.895882Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU5LVuaZG7gURfbA7TuMNoZa\", \n \"id\": \"CU5LVuaZG7gURfbA7TuMNoZa\", \n \"links\": {\n \"destination\": null, \n \"source\": null\n }, \n \"merchant_status\": \"underwritten\", \n \"meta\": {}, \n \"name\": \"Henry Ford\", \n \"phone\": null, \n \"ssn_last4\": null, \n \"updated_at\": \"2014-03-06T19:23:05.747337Z\"\n }, \n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"business_name\": null, \n \"created_at\": \"2014-03-06T19:22:13.513707Z\", \n \"dob_month\": null, \n \"dob_year\": null, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU4Q8w3Fcg1ed7rrx2bWcw18\", \n \"id\": \"CU4Q8w3Fcg1ed7rrx2bWcw18\", \n \"links\": {\n \"destination\": null, \n \"source\": null\n }, \n \"merchant_status\": \"no-match\", \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"ssn_last4\": null, \n \"updated_at\": \"2014-03-06T19:22:13.936010Z\"\n }, \n {\n \"address\": {\n \"city\": \"Nowhere\", \n \"country_code\": \"USA\", \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": \"90210\", \n \"state\": null\n }, \n \"business_name\": null, \n \"created_at\": \"2014-03-06T19:22:12.312268Z\", \n \"dob_month\": 2, \n \"dob_year\": 1947, \n \"ein\": null, \n \"email\": \"whc@example.org\", \n \"href\": \"/customers/CU4Wt8xSbREzV2NWtdVAFGeR\", \n \"id\": \"CU4Wt8xSbREzV2NWtdVAFGeR\", \n \"links\": {\n \"destination\": null, \n \"source\": null\n }, \n \"merchant_status\": \"underwritten\", \n \"meta\": {}, \n \"name\": \"William Henry Cavendish III\", \n \"phone\": \"+16505551212\", \n \"ssn_last4\": \"xxxx\", \n \"updated_at\": \"2014-03-06T19:22:12.718847Z\"\n }\n ], \n \"links\": {\n \"customers.bank_accounts\": \"/customers/{customers.id}/bank_accounts\", \n \"customers.card_holds\": \"/customers/{customers.id}/card_holds\", \n \"customers.cards\": \"/customers/{customers.id}/cards\", \n \"customers.credits\": \"/customers/{customers.id}/credits\", \n \"customers.debits\": \"/customers/{customers.id}/debits\", \n \"customers.destination\": \"/resources/{customers.destination}\", \n \"customers.external_accounts\": \"/customers/{customers.id}/external_accounts\", \n \"customers.orders\": \"/customers/{customers.id}/orders\", \n \"customers.refunds\": \"/customers/{customers.id}/refunds\", \n \"customers.reversals\": \"/customers/{customers.id}/reversals\", \n \"customers.source\": \"/resources/{customers.source}\", \n \"customers.transactions\": \"/customers/{customers.id}/transactions\"\n }, \n \"meta\": {\n \"first\": \"/customers?limit=10&offset=0\", \n \"href\": \"/customers?limit=10&offset=0\", \n \"last\": \"/customers?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 4\n }\n}"
|
389
390
|
},
|
390
391
|
"customer_show": {
|
391
392
|
"request": {
|
392
|
-
"uri": "/customers/
|
393
|
+
"uri": "/customers/CU5YopHN07Ul5XQnILUifeQT"
|
393
394
|
},
|
394
|
-
"response": "{\n \"customers\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": \"48120\", \n \"state\": null\n }, \n \"business_name\": null, \n \"created_at\": \"2014-
|
395
|
+
"response": "{\n \"customers\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": \"48120\", \n \"state\": null\n }, \n \"business_name\": null, \n \"created_at\": \"2014-03-06T19:23:15.982885Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU5YopHN07Ul5XQnILUifeQT\", \n \"id\": \"CU5YopHN07Ul5XQnILUifeQT\", \n \"links\": {\n \"destination\": null, \n \"source\": null\n }, \n \"merchant_status\": \"underwritten\", \n \"meta\": {}, \n \"name\": \"Henry Ford\", \n \"phone\": null, \n \"ssn_last4\": null, \n \"updated_at\": \"2014-03-06T19:23:16.724050Z\"\n }\n ], \n \"links\": {\n \"customers.bank_accounts\": \"/customers/{customers.id}/bank_accounts\", \n \"customers.card_holds\": \"/customers/{customers.id}/card_holds\", \n \"customers.cards\": \"/customers/{customers.id}/cards\", \n \"customers.credits\": \"/customers/{customers.id}/credits\", \n \"customers.debits\": \"/customers/{customers.id}/debits\", \n \"customers.destination\": \"/resources/{customers.destination}\", \n \"customers.external_accounts\": \"/customers/{customers.id}/external_accounts\", \n \"customers.orders\": \"/customers/{customers.id}/orders\", \n \"customers.refunds\": \"/customers/{customers.id}/refunds\", \n \"customers.reversals\": \"/customers/{customers.id}/reversals\", \n \"customers.source\": \"/resources/{customers.source}\", \n \"customers.transactions\": \"/customers/{customers.id}/transactions\"\n }\n}"
|
395
396
|
},
|
396
397
|
"customer_update": {
|
397
398
|
"request": {
|
@@ -401,9 +402,9 @@
|
|
401
402
|
"shipping-preference": "ground"
|
402
403
|
}
|
403
404
|
},
|
404
|
-
"uri": "/customers/
|
405
|
+
"uri": "/customers/CU5YopHN07Ul5XQnILUifeQT"
|
405
406
|
},
|
406
|
-
"response": "{\n \"customers\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": \"48120\", \n \"state\": null\n }, \n \"business_name\": null, \n \"created_at\": \"2014-
|
407
|
+
"response": "{\n \"customers\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": \"48120\", \n \"state\": null\n }, \n \"business_name\": null, \n \"created_at\": \"2014-03-06T19:23:15.982885Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": \"email@newdomain.com\", \n \"href\": \"/customers/CU5YopHN07Ul5XQnILUifeQT\", \n \"id\": \"CU5YopHN07Ul5XQnILUifeQT\", \n \"links\": {\n \"destination\": null, \n \"source\": null\n }, \n \"merchant_status\": \"underwritten\", \n \"meta\": {\n \"shipping-preference\": \"ground\"\n }, \n \"name\": \"Henry Ford\", \n \"phone\": null, \n \"ssn_last4\": null, \n \"updated_at\": \"2014-03-06T19:23:20.140160Z\"\n }\n ], \n \"links\": {\n \"customers.bank_accounts\": \"/customers/{customers.id}/bank_accounts\", \n \"customers.card_holds\": \"/customers/{customers.id}/card_holds\", \n \"customers.cards\": \"/customers/{customers.id}/cards\", \n \"customers.credits\": \"/customers/{customers.id}/credits\", \n \"customers.debits\": \"/customers/{customers.id}/debits\", \n \"customers.destination\": \"/resources/{customers.destination}\", \n \"customers.external_accounts\": \"/customers/{customers.id}/external_accounts\", \n \"customers.orders\": \"/customers/{customers.id}/orders\", \n \"customers.refunds\": \"/customers/{customers.id}/refunds\", \n \"customers.reversals\": \"/customers/{customers.id}/reversals\", \n \"customers.source\": \"/resources/{customers.source}\", \n \"customers.transactions\": \"/customers/{customers.id}/transactions\"\n }\n}"
|
407
408
|
},
|
408
409
|
"customers_uri": "/customers",
|
409
410
|
"debit": {
|
@@ -411,23 +412,23 @@
|
|
411
412
|
{
|
412
413
|
"amount": 10000000,
|
413
414
|
"appears_on_statement_as": "BAL*example.com",
|
414
|
-
"created_at": "2014-
|
415
|
+
"created_at": "2014-03-06T19:22:16.279376Z",
|
415
416
|
"currency": "USD",
|
416
417
|
"description": null,
|
417
418
|
"failure_reason": null,
|
418
419
|
"failure_reason_code": null,
|
419
|
-
"href": "/debits/
|
420
|
-
"id": "
|
420
|
+
"href": "/debits/WD50VxLKoVBNdkbovF4D56xX",
|
421
|
+
"id": "WD50VxLKoVBNdkbovF4D56xX",
|
421
422
|
"links": {
|
422
|
-
"customer": "
|
423
|
+
"customer": "CU4Q8w3Fcg1ed7rrx2bWcw18",
|
423
424
|
"dispute": null,
|
424
425
|
"order": null,
|
425
|
-
"source": "
|
426
|
+
"source": "CC4SdMF0rukpL3XdVvpqoC4m"
|
426
427
|
},
|
427
428
|
"meta": {},
|
428
429
|
"status": "succeeded",
|
429
|
-
"transaction_number": "
|
430
|
-
"updated_at": "2014-
|
430
|
+
"transaction_number": "W465-333-0144",
|
431
|
+
"updated_at": "2014-03-06T19:22:17.695058Z"
|
431
432
|
}
|
432
433
|
],
|
433
434
|
"links": {
|
@@ -443,13 +444,13 @@
|
|
443
444
|
"request": {
|
444
445
|
"uri": "/debits"
|
445
446
|
},
|
446
|
-
"response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-
|
447
|
+
"response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-03-06T19:23:01.594300Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD5PTwr2bwJLIyJio1pEpYBr\", \n \"id\": \"WD5PTwr2bwJLIyJio1pEpYBr\", \n \"links\": {\n \"customer\": null, \n \"dispute\": null, \n \"order\": null, \n \"source\": \"CC5Buki6e4Kg4bDVZ3OSfQ8O\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W986-715-3969\", \n \"updated_at\": \"2014-03-06T19:23:02.987552Z\"\n }, \n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*ShowsUpOnStmt\", \n \"created_at\": \"2014-03-06T19:22:49.584629Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD5Co9XwRZJg1QtvC5QeekhX\", \n \"id\": \"WD5Co9XwRZJg1QtvC5QeekhX\", \n \"links\": {\n \"customer\": \"CU4Wt8xSbREzV2NWtdVAFGeR\", \n \"dispute\": null, \n \"order\": null, \n \"source\": \"CC5nCSU0yFp3qxR4p6UZST7y\"\n }, \n \"meta\": {\n \"holding.for\": \"user1\", \n \"meaningful.key\": \"some.value\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W493-697-4873\", \n \"updated_at\": \"2014-03-06T19:22:50.608819Z\"\n }, \n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-03-06T19:22:35.961050Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD5qunOPeKdCnWXIg9EHyHge\", \n \"id\": \"WD5qunOPeKdCnWXIg9EHyHge\", \n \"links\": {\n \"customer\": null, \n \"dispute\": null, \n \"order\": null, \n \"source\": \"BA50LpPrCTB63Ecm0wEgdOQM\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W051-293-0823\", \n \"updated_at\": \"2014-03-06T19:22:36.418154Z\"\n }, \n {\n \"amount\": 10000000, \n \"appears_on_statement_as\": \"BAL*example.com\", \n \"created_at\": \"2014-03-06T19:22:16.279376Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD50VxLKoVBNdkbovF4D56xX\", \n \"id\": \"WD50VxLKoVBNdkbovF4D56xX\", \n \"links\": {\n \"customer\": \"CU4Q8w3Fcg1ed7rrx2bWcw18\", \n \"dispute\": null, \n \"order\": null, \n \"source\": \"CC4SdMF0rukpL3XdVvpqoC4m\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W465-333-0144\", \n \"updated_at\": \"2014-03-06T19:22:17.695058Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \n \"debits.dispute\": \"/disputes/{debits.dispute}\", \n \"debits.events\": \"/debits/{debits.id}/events\", \n \"debits.order\": \"/orders/{debits.order}\", \n \"debits.refunds\": \"/debits/{debits.id}/refunds\", \n \"debits.source\": \"/resources/{debits.source}\"\n }, \n \"meta\": {\n \"first\": \"/debits?limit=10&offset=0\", \n \"href\": \"/debits?limit=10&offset=0\", \n \"last\": \"/debits?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 4\n }\n}"
|
447
448
|
},
|
448
449
|
"debit_show": {
|
449
450
|
"request": {
|
450
|
-
"uri": "/debits/
|
451
|
+
"uri": "/debits/WD5PTwr2bwJLIyJio1pEpYBr"
|
451
452
|
},
|
452
|
-
"response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-
|
453
|
+
"response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-03-06T19:23:01.594300Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD5PTwr2bwJLIyJio1pEpYBr\", \n \"id\": \"WD5PTwr2bwJLIyJio1pEpYBr\", \n \"links\": {\n \"customer\": null, \n \"dispute\": null, \n \"order\": null, \n \"source\": \"CC5Buki6e4Kg4bDVZ3OSfQ8O\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W986-715-3969\", \n \"updated_at\": \"2014-03-06T19:23:02.987552Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \n \"debits.dispute\": \"/disputes/{debits.dispute}\", \n \"debits.events\": \"/debits/{debits.id}/events\", \n \"debits.order\": \"/orders/{debits.order}\", \n \"debits.refunds\": \"/debits/{debits.id}/refunds\", \n \"debits.source\": \"/resources/{debits.source}\"\n }\n}"
|
453
454
|
},
|
454
455
|
"debit_update": {
|
455
456
|
"request": {
|
@@ -460,30 +461,30 @@
|
|
460
461
|
"facebook.id": "1234567890"
|
461
462
|
}
|
462
463
|
},
|
463
|
-
"uri": "/debits/
|
464
|
+
"uri": "/debits/WD5PTwr2bwJLIyJio1pEpYBr"
|
464
465
|
},
|
465
|
-
"response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-
|
466
|
+
"response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-03-06T19:23:01.594300Z\", \n \"currency\": \"USD\", \n \"description\": \"New description for debit\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD5PTwr2bwJLIyJio1pEpYBr\", \n \"id\": \"WD5PTwr2bwJLIyJio1pEpYBr\", \n \"links\": {\n \"customer\": null, \n \"dispute\": null, \n \"order\": null, \n \"source\": \"CC5Buki6e4Kg4bDVZ3OSfQ8O\"\n }, \n \"meta\": {\n \"anykey\": \"valuegoeshere\", \n \"facebook.id\": \"1234567890\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W986-715-3969\", \n \"updated_at\": \"2014-03-06T19:23:33.383170Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \n \"debits.dispute\": \"/disputes/{debits.dispute}\", \n \"debits.events\": \"/debits/{debits.id}/events\", \n \"debits.order\": \"/orders/{debits.order}\", \n \"debits.refunds\": \"/debits/{debits.id}/refunds\", \n \"debits.source\": \"/resources/{debits.source}\"\n }\n}"
|
466
467
|
},
|
467
468
|
"event_list": {
|
468
469
|
"request": {
|
469
470
|
"uri": "/events"
|
470
471
|
},
|
471
|
-
"response": "{\n \"events\": [\n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"customers\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"business_name\": null, \n \"created_at\": \"2014-01-27T22:55:50.253066Z\", \n \"dob_month\": null, \n \"dob_year\": null, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU1iDnBalzHoZg47Np92rNrV\", \n \"id\": \"CU1iDnBalzHoZg47Np92rNrV\", \n \"links\": {\n \"destination\": null, \n \"source\": null\n }, \n \"merchant_status\": \"no-match\", \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"ssn_last4\": null, \n \"updated_at\": \"2014-01-27T22:55:50.767858Z\"\n }\n ], \n \"links\": {\n \"customers.bank_accounts\": \"/customers/{customers.id}/bank_accounts\", \n \"customers.card_holds\": \"/customers/{customers.id}/card_holds\", \n \"customers.cards\": \"/customers/{customers.id}/cards\", \n \"customers.credits\": \"/customers/{customers.id}/credits\", \n \"customers.debits\": \"/customers/{customers.id}/debits\", \n \"customers.destination\": \"/resources/{customers.destination}\", \n \"customers.orders\": \"/customers/{customers.id}/orders\", \n \"customers.refunds\": \"/customers/{customers.id}/refunds\", \n \"customers.reversals\": \"/customers/{customers.id}/reversals\", \n \"customers.source\": \"/resources/{customers.source}\", \n \"customers.transactions\": \"/customers/{customers.id}/transactions\"\n }\n }, \n \"href\": \"/events/EV2abbb98487a611e3a86f026ba7d31e6f\", \n \"id\": \"EV2abbb98487a611e3a86f026ba7d31e6f\", \n \"links\": {}, \n \"occurred_at\": \"2014-01-27T22:55:50.767000Z\", \n \"type\": \"account.created\"\n }\n ], \n \"links\": {\n \"events.callbacks\": \"/events/{events.self}/callbacks\"\n }, \n \"meta\": {\n \"first\": \"/events?limit=10&offset=0\", \n \"href\": \"/events?limit=10&offset=0\", \n \"last\": \"/events?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 1\n }\n}"
|
472
|
+
"response": "{\n \"events\": [\n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"customers\": [\n {\n \"address\": {\n \"city\": \"Nowhere\", \n \"country_code\": \"USA\", \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": \"90210\", \n \"state\": null\n }, \n \"business_name\": null, \n \"created_at\": \"2014-03-06T19:22:12.312268Z\", \n \"dob_month\": 2, \n \"dob_year\": 1947, \n \"ein\": null, \n \"email\": \"whc@example.org\", \n \"href\": \"/customers/CU4Wt8xSbREzV2NWtdVAFGeR\", \n \"id\": \"CU4Wt8xSbREzV2NWtdVAFGeR\", \n \"links\": {\n \"destination\": null, \n \"source\": null\n }, \n \"merchant_status\": \"underwritten\", \n \"meta\": {}, \n \"name\": \"William Henry Cavendish III\", \n \"phone\": \"+16505551212\", \n \"ssn_last4\": \"xxxx\", \n \"updated_at\": \"2014-03-06T19:22:12.718847Z\"\n }\n ], \n \"links\": {\n \"customers.bank_accounts\": \"/customers/{customers.id}/bank_accounts\", \n \"customers.card_holds\": \"/customers/{customers.id}/card_holds\", \n \"customers.cards\": \"/customers/{customers.id}/cards\", \n \"customers.credits\": \"/customers/{customers.id}/credits\", \n \"customers.debits\": \"/customers/{customers.id}/debits\", \n \"customers.destination\": \"/resources/{customers.destination}\", \n \"customers.external_accounts\": \"/customers/{customers.id}/external_accounts\", \n \"customers.orders\": \"/customers/{customers.id}/orders\", \n \"customers.refunds\": \"/customers/{customers.id}/refunds\", \n \"customers.reversals\": \"/customers/{customers.id}/reversals\", \n \"customers.source\": \"/resources/{customers.source}\", \n \"customers.transactions\": \"/customers/{customers.id}/transactions\"\n }\n }, \n \"href\": \"/events/EVa26caeeea56411e3838802219cc35fd9\", \n \"id\": \"EVa26caeeea56411e3838802219cc35fd9\", \n \"links\": {}, \n \"occurred_at\": \"2014-03-06T19:22:12.718000Z\", \n \"type\": \"account.created\"\n }, \n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"bank_accounts\": [\n {\n \"account_number\": \"xxxxxxxxxxx5555\", \n \"account_type\": \"CHECKING\", \n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"bank_name\": \"WELLS FARGO BANK NA\", \n \"can_credit\": true, \n \"can_debit\": true, \n \"created_at\": \"2014-03-06T19:22:12.982029Z\", \n \"fingerprint\": \"6ybvaLUrJy07phK2EQ7pVk\", \n \"href\": \"/bank_accounts/BA4WYHt1wCRMAJGm6k0BDaeR\", \n \"id\": \"BA4WYHt1wCRMAJGm6k0BDaeR\", \n \"links\": {\n \"bank_account_verification\": null, \n \"customer\": \"CU4Wt8xSbREzV2NWtdVAFGeR\"\n }, \n \"meta\": {}, \n \"name\": \"TEST-MERCHANT-BANK-ACCOUNT\", \n \"routing_number\": \"121042882\", \n \"updated_at\": \"2014-03-06T19:22:12.982032Z\"\n }\n ], \n \"links\": {\n \"bank_accounts.bank_account_verification\": \"/verifications/{bank_accounts.bank_account_verification}\", \n \"bank_accounts.bank_account_verifications\": \"/bank_accounts/{bank_accounts.id}/verifications\", \n \"bank_accounts.credits\": \"/bank_accounts/{bank_accounts.id}/credits\", \n \"bank_accounts.customer\": \"/customers/{bank_accounts.customer}\", \n \"bank_accounts.debits\": \"/bank_accounts/{bank_accounts.id}/debits\"\n }\n }, \n \"href\": \"/events/EVa2d381faa56411e3838802219cc35fd9\", \n \"id\": \"EVa2d381faa56411e3838802219cc35fd9\", \n \"links\": {}, \n \"occurred_at\": \"2014-03-06T19:22:12.982000Z\", \n \"type\": \"bank_account.created\"\n }, \n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"customers\": [\n {\n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"business_name\": null, \n \"created_at\": \"2014-03-06T19:22:13.513707Z\", \n \"dob_month\": null, \n \"dob_year\": null, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU4Q8w3Fcg1ed7rrx2bWcw18\", \n \"id\": \"CU4Q8w3Fcg1ed7rrx2bWcw18\", \n \"links\": {\n \"destination\": null, \n \"source\": null\n }, \n \"merchant_status\": \"no-match\", \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"ssn_last4\": null, \n \"updated_at\": \"2014-03-06T19:22:13.936010Z\"\n }\n ], \n \"links\": {\n \"customers.bank_accounts\": \"/customers/{customers.id}/bank_accounts\", \n \"customers.card_holds\": \"/customers/{customers.id}/card_holds\", \n \"customers.cards\": \"/customers/{customers.id}/cards\", \n \"customers.credits\": \"/customers/{customers.id}/credits\", \n \"customers.debits\": \"/customers/{customers.id}/debits\", \n \"customers.destination\": \"/resources/{customers.destination}\", \n \"customers.external_accounts\": \"/customers/{customers.id}/external_accounts\", \n \"customers.orders\": \"/customers/{customers.id}/orders\", \n \"customers.refunds\": \"/customers/{customers.id}/refunds\", \n \"customers.reversals\": \"/customers/{customers.id}/reversals\", \n \"customers.source\": \"/resources/{customers.source}\", \n \"customers.transactions\": \"/customers/{customers.id}/transactions\"\n }\n }, \n \"href\": \"/events/EV9f0ef1c6a56411e3b231026ba7c1aba6\", \n \"id\": \"EV9f0ef1c6a56411e3b231026ba7c1aba6\", \n \"links\": {}, \n \"occurred_at\": \"2014-03-06T19:22:13.936000Z\", \n \"type\": \"account.created\"\n }, \n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"cards\": [\n {\n \"address\": {\n \"city\": \"Balo Alto\", \n \"country_code\": \"USA\", \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": \"10023\", \n \"state\": null\n }, \n \"avs_postal_match\": \"yes\", \n \"avs_result\": \"Postal code matches, but street address not verified.\", \n \"avs_street_match\": \"yes\", \n \"brand\": \"Visa\", \n \"created_at\": \"2014-03-06T19:22:15.395346Z\", \n \"cvv\": null, \n \"cvv_match\": null, \n \"cvv_result\": null, \n \"expiration_month\": 4, \n \"expiration_year\": 2016, \n \"fingerprint\": \"979a26c05f2fb1c7ae38656312b176da2c9be1d938d442040bc79539caac6c0d\", \n \"href\": \"/cards/CC4SdMF0rukpL3XdVvpqoC4m\", \n \"id\": \"CC4SdMF0rukpL3XdVvpqoC4m\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": \"CU4Q8w3Fcg1ed7rrx2bWcw18\"\n }, \n \"meta\": {}, \n \"name\": \"Benny Riemann\", \n \"number\": \"xxxxxxxxxxxx1111\", \n \"updated_at\": \"2014-03-06T19:22:15.395350Z\"\n }\n ], \n \"links\": {\n \"cards.card_holds\": \"/cards/{cards.id}/card_holds\", \n \"cards.customer\": \"/customers/{cards.customer}\", \n \"cards.debits\": \"/cards/{cards.id}/debits\"\n }\n }, \n \"href\": \"/events/EVa034f640a56411e3ac79026ba7c1aba6\", \n \"id\": \"EVa034f640a56411e3ac79026ba7c1aba6\", \n \"links\": {}, \n \"occurred_at\": \"2014-03-06T19:22:15.395000Z\", \n \"type\": \"card.created\"\n }, \n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"card_holds\": [\n {\n \"amount\": 10000000, \n \"created_at\": \"2014-03-06T19:22:16.137074Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"expires_at\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL50LRASJbs8Kbcwqpu2TFdD\", \n \"id\": \"HL50LRASJbs8Kbcwqpu2TFdD\", \n \"links\": {\n \"card\": \"CC4SdMF0rukpL3XdVvpqoC4m\", \n \"debit\": null\n }, \n \"meta\": {}, \n \"status\": \"failed\", \n \"transaction_number\": \"HL974-747-7939\", \n \"updated_at\": \"2014-03-06T19:22:16.137078Z\", \n \"voided_at\": null\n }\n ], \n \"links\": {\n \"card_holds.card\": \"/cards/{card_holds.card}\", \n \"card_holds.debit\": \"/debits/{card_holds.debit}\", \n \"card_holds.debits\": \"/card_holds/{card_holds.id}/debits\", \n \"card_holds.events\": \"/card_holds/{card_holds.id}/events\"\n }\n }, \n \"href\": \"/events/EVa4c0c84ca56411e3a10e02219cc35fd9\", \n \"id\": \"EVa4c0c84ca56411e3a10e02219cc35fd9\", \n \"links\": {}, \n \"occurred_at\": \"2014-03-06T19:22:16.137000Z\", \n \"type\": \"hold.created\"\n }, \n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"card_holds\": [\n {\n \"amount\": 10000000, \n \"created_at\": \"2014-03-06T19:22:16.137074Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"expires_at\": \"2014-03-13T19:22:16.821934Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL50LRASJbs8Kbcwqpu2TFdD\", \n \"id\": \"HL50LRASJbs8Kbcwqpu2TFdD\", \n \"links\": {\n \"card\": \"CC4SdMF0rukpL3XdVvpqoC4m\", \n \"debit\": \"WD50VxLKoVBNdkbovF4D56xX\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"HL974-747-7939\", \n \"updated_at\": \"2014-03-06T19:22:17.708358Z\", \n \"voided_at\": null\n }\n ], \n \"links\": {\n \"card_holds.card\": \"/cards/{card_holds.card}\", \n \"card_holds.debit\": \"/debits/{card_holds.debit}\", \n \"card_holds.debits\": \"/card_holds/{card_holds.id}/debits\", \n \"card_holds.events\": \"/card_holds/{card_holds.id}/events\"\n }\n }, \n \"href\": \"/events/EVa5363b72a56411e3a10e02219cc35fd9\", \n \"id\": \"EVa5363b72a56411e3a10e02219cc35fd9\", \n \"links\": {}, \n \"occurred_at\": \"2014-03-06T19:22:17.708000Z\", \n \"type\": \"hold.updated\"\n }, \n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"debits\": [\n {\n \"amount\": 10000000, \n \"appears_on_statement_as\": \"BAL*example.com\", \n \"created_at\": \"2014-03-06T19:22:16.279376Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD50VxLKoVBNdkbovF4D56xX\", \n \"id\": \"WD50VxLKoVBNdkbovF4D56xX\", \n \"links\": {\n \"customer\": \"CU4Q8w3Fcg1ed7rrx2bWcw18\", \n \"dispute\": null, \n \"order\": null, \n \"source\": \"CC4SdMF0rukpL3XdVvpqoC4m\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W465-333-0144\", \n \"updated_at\": \"2014-03-06T19:22:17.695058Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \n \"debits.dispute\": \"/disputes/{debits.dispute}\", \n \"debits.events\": \"/debits/{debits.id}/events\", \n \"debits.order\": \"/orders/{debits.order}\", \n \"debits.refunds\": \"/debits/{debits.id}/refunds\", \n \"debits.source\": \"/resources/{debits.source}\"\n }\n }, \n \"href\": \"/events/EVa53707c8a56411e3a10e02219cc35fd9\", \n \"id\": \"EVa53707c8a56411e3a10e02219cc35fd9\", \n \"links\": {}, \n \"occurred_at\": \"2014-03-06T19:22:17.695000Z\", \n \"type\": \"debit.created\"\n }, \n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"card_holds\": [\n {\n \"amount\": 10000000, \n \"created_at\": \"2014-03-06T19:22:16.137074Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"expires_at\": \"2014-03-13T19:22:16.821934Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL50LRASJbs8Kbcwqpu2TFdD\", \n \"id\": \"HL50LRASJbs8Kbcwqpu2TFdD\", \n \"links\": {\n \"card\": \"CC4SdMF0rukpL3XdVvpqoC4m\", \n \"debit\": \"WD50VxLKoVBNdkbovF4D56xX\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"HL974-747-7939\", \n \"updated_at\": \"2014-03-06T19:22:17.708358Z\", \n \"voided_at\": null\n }\n ], \n \"links\": {\n \"card_holds.card\": \"/cards/{card_holds.card}\", \n \"card_holds.debit\": \"/debits/{card_holds.debit}\", \n \"card_holds.debits\": \"/card_holds/{card_holds.id}/debits\", \n \"card_holds.events\": \"/card_holds/{card_holds.id}/events\"\n }\n }, \n \"href\": \"/events/EVa0b420d2a56411e3b09706d4d32471fd\", \n \"id\": \"EVa0b420d2a56411e3b09706d4d32471fd\", \n \"links\": {}, \n \"occurred_at\": \"2014-03-06T19:22:17.708000Z\", \n \"type\": \"hold.captured\"\n }, \n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"debits\": [\n {\n \"amount\": 10000000, \n \"appears_on_statement_as\": \"BAL*example.com\", \n \"created_at\": \"2014-03-06T19:22:16.279376Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD50VxLKoVBNdkbovF4D56xX\", \n \"id\": \"WD50VxLKoVBNdkbovF4D56xX\", \n \"links\": {\n \"customer\": \"CU4Q8w3Fcg1ed7rrx2bWcw18\", \n \"dispute\": null, \n \"order\": null, \n \"source\": \"CC4SdMF0rukpL3XdVvpqoC4m\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W465-333-0144\", \n \"updated_at\": \"2014-03-06T19:22:17.695058Z\"\n }\n ], \n \"links\": {\n \"debits.customer\": \"/customers/{debits.customer}\", \n \"debits.dispute\": \"/disputes/{debits.dispute}\", \n \"debits.events\": \"/debits/{debits.id}/events\", \n \"debits.order\": \"/orders/{debits.order}\", \n \"debits.refunds\": \"/debits/{debits.id}/refunds\", \n \"debits.source\": \"/resources/{debits.source}\"\n }\n }, \n \"href\": \"/events/EVa0ce9b24a56411e3aae506d4d32471fd\", \n \"id\": \"EVa0ce9b24a56411e3aae506d4d32471fd\", \n \"links\": {}, \n \"occurred_at\": \"2014-03-06T19:22:17.695000Z\", \n \"type\": \"debit.succeeded\"\n }, \n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"bank_accounts\": [\n {\n \"account_number\": \"xxxxxx0001\", \n \"account_type\": \"CHECKING\", \n \"address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_credit\": true, \n \"can_debit\": false, \n \"created_at\": \"2014-03-06T19:22:22.966278Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA50LpPrCTB63Ecm0wEgdOQM\", \n \"id\": \"BA50LpPrCTB63Ecm0wEgdOQM\", \n \"links\": {\n \"bank_account_verification\": null, \n \"customer\": null\n }, \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"updated_at\": \"2014-03-06T19:22:22.966284Z\"\n }\n ], \n \"links\": {\n \"bank_accounts.bank_account_verification\": \"/verifications/{bank_accounts.bank_account_verification}\", \n \"bank_accounts.bank_account_verifications\": \"/bank_accounts/{bank_accounts.id}/verifications\", \n \"bank_accounts.credits\": \"/bank_accounts/{bank_accounts.id}/credits\", \n \"bank_accounts.customer\": \"/customers/{bank_accounts.customer}\", \n \"bank_accounts.debits\": \"/bank_accounts/{bank_accounts.id}/debits\"\n }\n }, \n \"href\": \"/events/EVa4bd5a9aa56411e38b3b026ba7f8ec28\", \n \"id\": \"EVa4bd5a9aa56411e38b3b026ba7f8ec28\", \n \"links\": {}, \n \"occurred_at\": \"2014-03-06T19:22:22.966000Z\", \n \"type\": \"bank_account.created\"\n }\n ], \n \"links\": {\n \"events.callbacks\": \"/events/{events.self}/callbacks\"\n }, \n \"meta\": {\n \"first\": \"/events?limit=10&offset=0\", \n \"href\": \"/events?limit=10&offset=0\", \n \"last\": \"/events?limit=10&offset=50\", \n \"limit\": 10, \n \"next\": \"/events?limit=10&offset=10\", \n \"offset\": 0, \n \"previous\": null, \n \"total\": 57\n }\n}"
|
472
473
|
},
|
473
474
|
"event_show": {
|
474
475
|
"request": {
|
475
|
-
"uri": "/events/
|
476
|
+
"uri": "/events/EVa26caeeea56411e3838802219cc35fd9"
|
476
477
|
},
|
477
|
-
"response": "{\n \"events\": [\n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"customers\": [\n {\n \"address\": {\n \"city\":
|
478
|
+
"response": "{\n \"events\": [\n {\n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"entity\": {\n \"customers\": [\n {\n \"address\": {\n \"city\": \"Nowhere\", \n \"country_code\": \"USA\", \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": \"90210\", \n \"state\": null\n }, \n \"business_name\": null, \n \"created_at\": \"2014-03-06T19:22:12.312268Z\", \n \"dob_month\": 2, \n \"dob_year\": 1947, \n \"ein\": null, \n \"email\": \"whc@example.org\", \n \"href\": \"/customers/CU4Wt8xSbREzV2NWtdVAFGeR\", \n \"id\": \"CU4Wt8xSbREzV2NWtdVAFGeR\", \n \"links\": {\n \"destination\": null, \n \"source\": null\n }, \n \"merchant_status\": \"underwritten\", \n \"meta\": {}, \n \"name\": \"William Henry Cavendish III\", \n \"phone\": \"+16505551212\", \n \"ssn_last4\": \"xxxx\", \n \"updated_at\": \"2014-03-06T19:22:12.718847Z\"\n }\n ], \n \"links\": {\n \"customers.bank_accounts\": \"/customers/{customers.id}/bank_accounts\", \n \"customers.card_holds\": \"/customers/{customers.id}/card_holds\", \n \"customers.cards\": \"/customers/{customers.id}/cards\", \n \"customers.credits\": \"/customers/{customers.id}/credits\", \n \"customers.debits\": \"/customers/{customers.id}/debits\", \n \"customers.destination\": \"/resources/{customers.destination}\", \n \"customers.external_accounts\": \"/customers/{customers.id}/external_accounts\", \n \"customers.orders\": \"/customers/{customers.id}/orders\", \n \"customers.refunds\": \"/customers/{customers.id}/refunds\", \n \"customers.reversals\": \"/customers/{customers.id}/reversals\", \n \"customers.source\": \"/resources/{customers.source}\", \n \"customers.transactions\": \"/customers/{customers.id}/transactions\"\n }\n }, \n \"href\": \"/events/EVa26caeeea56411e3838802219cc35fd9\", \n \"id\": \"EVa26caeeea56411e3838802219cc35fd9\", \n \"links\": {}, \n \"occurred_at\": \"2014-03-06T19:22:12.718000Z\", \n \"type\": \"account.created\"\n }\n ], \n \"links\": {\n \"events.callbacks\": \"/events/{events.self}/callbacks\"\n }\n}"
|
478
479
|
},
|
479
480
|
"marketplace": {
|
480
|
-
"created_at": "2014-
|
481
|
+
"created_at": "2014-03-06T19:22:12.289111Z",
|
481
482
|
"domain_url": "example.com",
|
482
|
-
"href": "/marketplaces/TEST-
|
483
|
-
"id": "TEST-
|
483
|
+
"href": "/marketplaces/TEST-MP4WroYryqRegCZd9nhFMgyJ",
|
484
|
+
"id": "TEST-MP4WroYryqRegCZd9nhFMgyJ",
|
484
485
|
"in_escrow": 0,
|
485
486
|
"links": {
|
486
|
-
"owner_customer": "
|
487
|
+
"owner_customer": "CU4Wt8xSbREzV2NWtdVAFGeR"
|
487
488
|
},
|
488
489
|
"meta": {},
|
489
490
|
"name": "Test Marketplace",
|
@@ -491,31 +492,31 @@
|
|
491
492
|
"support_email_address": "support@example.com",
|
492
493
|
"support_phone_number": "+16505551234",
|
493
494
|
"unsettled_fees": 0,
|
494
|
-
"updated_at": "2014-
|
495
|
+
"updated_at": "2014-03-06T19:22:13.041828Z"
|
495
496
|
},
|
496
|
-
"marketplace_id": "TEST-
|
497
|
-
"marketplace_uri": "/marketplaces/TEST-
|
497
|
+
"marketplace_id": "TEST-MP4WroYryqRegCZd9nhFMgyJ",
|
498
|
+
"marketplace_uri": "/marketplaces/TEST-MP4WroYryqRegCZd9nhFMgyJ",
|
498
499
|
"order_create": {
|
499
500
|
"request": {
|
500
|
-
"customer_href": "/customers/
|
501
|
+
"customer_href": "/customers/CU64R7DS6DwuXYVg9RTskFK8",
|
501
502
|
"payload": {
|
502
503
|
"description": "Order #12341234"
|
503
504
|
},
|
504
|
-
"uri": "/customers/
|
505
|
+
"uri": "/customers/CU64R7DS6DwuXYVg9RTskFK8/orders"
|
505
506
|
},
|
506
|
-
"response": "{\n \"links\": {\n \"orders.buyers\": \"/orders/{orders.id}/buyers\", \n \"orders.credits\": \"/orders/{orders.id}/credits\", \n \"orders.debits\": \"/orders/{orders.id}/debits\", \n \"orders.merchant\": \"/customers/{orders.merchant}\", \n \"orders.refunds\": \"/orders/{orders.id}/refunds\", \n \"orders.reversals\": \"/orders/{orders.id}/reversals\"\n }, \n \"orders\": [\n {\n \"amount\": 0, \n \"amount_escrowed\": 0, \n \"created_at\": \"2014-
|
507
|
+
"response": "{\n \"links\": {\n \"orders.buyers\": \"/orders/{orders.id}/buyers\", \n \"orders.credits\": \"/orders/{orders.id}/credits\", \n \"orders.debits\": \"/orders/{orders.id}/debits\", \n \"orders.merchant\": \"/customers/{orders.merchant}\", \n \"orders.refunds\": \"/orders/{orders.id}/refunds\", \n \"orders.reversals\": \"/orders/{orders.id}/reversals\"\n }, \n \"orders\": [\n {\n \"amount\": 0, \n \"amount_escrowed\": 0, \n \"created_at\": \"2014-03-06T19:23:39.207291Z\", \n \"currency\": \"USD\", \n \"delivery_address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"description\": \"Order #12341234\", \n \"href\": \"/orders/OR6wcEVkOymvs4PairiGEcIx\", \n \"id\": \"OR6wcEVkOymvs4PairiGEcIx\", \n \"links\": {\n \"merchant\": \"CU64R7DS6DwuXYVg9RTskFK8\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-03-06T19:23:39.207294Z\"\n }\n ]\n}"
|
507
508
|
},
|
508
509
|
"order_list": {
|
509
510
|
"request": {
|
510
511
|
"uri": "/orders"
|
511
512
|
},
|
512
|
-
"response": "{\n \"links\": {\n \"orders.buyers\": \"/orders/{orders.id}/buyers\", \n \"orders.credits\": \"/orders/{orders.id}/credits\", \n \"orders.debits\": \"/orders/{orders.id}/debits\", \n \"orders.merchant\": \"/customers/{orders.merchant}\", \n \"orders.refunds\": \"/orders/{orders.id}/refunds\", \n \"orders.reversals\": \"/orders/{orders.id}/reversals\"\n }, \n \"meta\": {\n \"first\": \"/orders?limit=10&offset=0\", \n \"href\": \"/orders?limit=10&offset=0\", \n \"last\": \"/orders?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 1\n }, \n \"orders\": [\n {\n \"amount\": 0, \n \"amount_escrowed\": 0, \n \"created_at\": \"2014-
|
513
|
+
"response": "{\n \"links\": {\n \"orders.buyers\": \"/orders/{orders.id}/buyers\", \n \"orders.credits\": \"/orders/{orders.id}/credits\", \n \"orders.debits\": \"/orders/{orders.id}/debits\", \n \"orders.merchant\": \"/customers/{orders.merchant}\", \n \"orders.refunds\": \"/orders/{orders.id}/refunds\", \n \"orders.reversals\": \"/orders/{orders.id}/reversals\"\n }, \n \"meta\": {\n \"first\": \"/orders?limit=10&offset=0\", \n \"href\": \"/orders?limit=10&offset=0\", \n \"last\": \"/orders?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 1\n }, \n \"orders\": [\n {\n \"amount\": 0, \n \"amount_escrowed\": 0, \n \"created_at\": \"2014-03-06T19:23:39.207291Z\", \n \"currency\": \"USD\", \n \"delivery_address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"description\": \"Order #12341234\", \n \"href\": \"/orders/OR6wcEVkOymvs4PairiGEcIx\", \n \"id\": \"OR6wcEVkOymvs4PairiGEcIx\", \n \"links\": {\n \"merchant\": \"CU64R7DS6DwuXYVg9RTskFK8\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-03-06T19:23:39.207294Z\"\n }\n ]\n}"
|
513
514
|
},
|
514
515
|
"order_show": {
|
515
516
|
"request": {
|
516
|
-
"uri": "/orders/
|
517
|
+
"uri": "/orders/OR6wcEVkOymvs4PairiGEcIx"
|
517
518
|
},
|
518
|
-
"response": "{\n \"links\": {\n \"orders.buyers\": \"/orders/{orders.id}/buyers\", \n \"orders.credits\": \"/orders/{orders.id}/credits\", \n \"orders.debits\": \"/orders/{orders.id}/debits\", \n \"orders.merchant\": \"/customers/{orders.merchant}\", \n \"orders.refunds\": \"/orders/{orders.id}/refunds\", \n \"orders.reversals\": \"/orders/{orders.id}/reversals\"\n }, \n \"orders\": [\n {\n \"amount\": 0, \n \"amount_escrowed\": 0, \n \"created_at\": \"2014-
|
519
|
+
"response": "{\n \"links\": {\n \"orders.buyers\": \"/orders/{orders.id}/buyers\", \n \"orders.credits\": \"/orders/{orders.id}/credits\", \n \"orders.debits\": \"/orders/{orders.id}/debits\", \n \"orders.merchant\": \"/customers/{orders.merchant}\", \n \"orders.refunds\": \"/orders/{orders.id}/refunds\", \n \"orders.reversals\": \"/orders/{orders.id}/reversals\"\n }, \n \"orders\": [\n {\n \"amount\": 0, \n \"amount_escrowed\": 0, \n \"created_at\": \"2014-03-06T19:23:39.207291Z\", \n \"currency\": \"USD\", \n \"delivery_address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"description\": \"Order #12341234\", \n \"href\": \"/orders/OR6wcEVkOymvs4PairiGEcIx\", \n \"id\": \"OR6wcEVkOymvs4PairiGEcIx\", \n \"links\": {\n \"merchant\": \"CU64R7DS6DwuXYVg9RTskFK8\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-03-06T19:23:39.207294Z\"\n }\n ]\n}"
|
519
520
|
},
|
520
521
|
"order_update": {
|
521
522
|
"request": {
|
@@ -526,13 +527,13 @@
|
|
526
527
|
"product.id": "1234567890"
|
527
528
|
}
|
528
529
|
},
|
529
|
-
"uri": "/orders/
|
530
|
+
"uri": "/orders/OR6wcEVkOymvs4PairiGEcIx"
|
530
531
|
},
|
531
|
-
"response": "{\n \"links\": {\n \"orders.buyers\": \"/orders/{orders.id}/buyers\", \n \"orders.credits\": \"/orders/{orders.id}/credits\", \n \"orders.debits\": \"/orders/{orders.id}/debits\", \n \"orders.merchant\": \"/customers/{orders.merchant}\", \n \"orders.refunds\": \"/orders/{orders.id}/refunds\", \n \"orders.reversals\": \"/orders/{orders.id}/reversals\"\n }, \n \"orders\": [\n {\n \"amount\": 0, \n \"amount_escrowed\": 0, \n \"created_at\": \"2014-
|
532
|
+
"response": "{\n \"links\": {\n \"orders.buyers\": \"/orders/{orders.id}/buyers\", \n \"orders.credits\": \"/orders/{orders.id}/credits\", \n \"orders.debits\": \"/orders/{orders.id}/debits\", \n \"orders.merchant\": \"/customers/{orders.merchant}\", \n \"orders.refunds\": \"/orders/{orders.id}/refunds\", \n \"orders.reversals\": \"/orders/{orders.id}/reversals\"\n }, \n \"orders\": [\n {\n \"amount\": 0, \n \"amount_escrowed\": 0, \n \"created_at\": \"2014-03-06T19:23:39.207291Z\", \n \"currency\": \"USD\", \n \"delivery_address\": {\n \"city\": null, \n \"country_code\": null, \n \"line1\": null, \n \"line2\": null, \n \"postal_code\": null, \n \"state\": null\n }, \n \"description\": \"New description for order\", \n \"href\": \"/orders/OR6wcEVkOymvs4PairiGEcIx\", \n \"id\": \"OR6wcEVkOymvs4PairiGEcIx\", \n \"links\": {\n \"merchant\": \"CU64R7DS6DwuXYVg9RTskFK8\"\n }, \n \"meta\": {\n \"anykey\": \"valuegoeshere\", \n \"product.id\": \"1234567890\"\n }, \n \"updated_at\": \"2014-03-06T19:23:42.673919Z\"\n }\n ]\n}"
|
532
533
|
},
|
533
534
|
"refund_create": {
|
534
535
|
"request": {
|
535
|
-
"debit_href": "/debits/
|
536
|
+
"debit_href": "/debits/WD6BKYhbRzlRhfKSE1DcpqS5",
|
536
537
|
"payload": {
|
537
538
|
"amount": 3000,
|
538
539
|
"description": "Refund for Order #1111",
|
@@ -542,21 +543,21 @@
|
|
542
543
|
"user.refund_reason": "not happy with product"
|
543
544
|
}
|
544
545
|
},
|
545
|
-
"uri": "/debits/
|
546
|
+
"uri": "/debits/WD6BKYhbRzlRhfKSE1DcpqS5/refunds"
|
546
547
|
},
|
547
|
-
"response": "{\n \"links\": {\n \"refunds.debit\": \"/debits/{refunds.debit}\", \n \"refunds.dispute\": \"/disputes/{refunds.dispute}\", \n \"refunds.events\": \"/refunds/{refunds.id}/events\", \n \"refunds.order\": \"/orders/{refunds.order}\"\n }, \n \"refunds\": [\n {\n \"amount\": 3000, \n \"created_at\": \"2014-
|
548
|
+
"response": "{\n \"links\": {\n \"refunds.debit\": \"/debits/{refunds.debit}\", \n \"refunds.dispute\": \"/disputes/{refunds.dispute}\", \n \"refunds.events\": \"/refunds/{refunds.id}/events\", \n \"refunds.order\": \"/orders/{refunds.order}\"\n }, \n \"refunds\": [\n {\n \"amount\": 3000, \n \"created_at\": \"2014-03-06T19:23:46.176138Z\", \n \"currency\": \"USD\", \n \"description\": \"Refund for Order #1111\", \n \"href\": \"/refunds/RF6HsnqferSuES9VZEWrthG2\", \n \"id\": \"RF6HsnqferSuES9VZEWrthG2\", \n \"links\": {\n \"debit\": \"WD6BKYhbRzlRhfKSE1DcpqS5\", \n \"dispute\": null, \n \"order\": null\n }, \n \"meta\": {\n \"fulfillment.item.condition\": \"OK\", \n \"merchant.feedback\": \"positive\", \n \"user.refund_reason\": \"not happy with product\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"RF348-549-7723\", \n \"updated_at\": \"2014-03-06T19:23:48.234584Z\"\n }\n ]\n}"
|
548
549
|
},
|
549
550
|
"refund_list": {
|
550
551
|
"request": {
|
551
552
|
"uri": "/refunds"
|
552
553
|
},
|
553
|
-
"response": "{\n \"links\": {\n \"refunds.debit\": \"/debits/{refunds.debit}\", \n \"refunds.dispute\": \"/disputes/{refunds.dispute}\", \n \"refunds.events\": \"/refunds/{refunds.id}/events\", \n \"refunds.order\": \"/orders/{refunds.order}\"\n }, \n \"meta\": {\n \"first\": \"/refunds?limit=10&offset=0\", \n \"href\": \"/refunds?limit=10&offset=0\", \n \"last\": \"/refunds?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 1\n }, \n \"refunds\": [\n {\n \"amount\": 3000, \n \"created_at\": \"2014-
|
554
|
+
"response": "{\n \"links\": {\n \"refunds.debit\": \"/debits/{refunds.debit}\", \n \"refunds.dispute\": \"/disputes/{refunds.dispute}\", \n \"refunds.events\": \"/refunds/{refunds.id}/events\", \n \"refunds.order\": \"/orders/{refunds.order}\"\n }, \n \"meta\": {\n \"first\": \"/refunds?limit=10&offset=0\", \n \"href\": \"/refunds?limit=10&offset=0\", \n \"last\": \"/refunds?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 1\n }, \n \"refunds\": [\n {\n \"amount\": 3000, \n \"created_at\": \"2014-03-06T19:23:46.176138Z\", \n \"currency\": \"USD\", \n \"description\": \"Refund for Order #1111\", \n \"href\": \"/refunds/RF6HsnqferSuES9VZEWrthG2\", \n \"id\": \"RF6HsnqferSuES9VZEWrthG2\", \n \"links\": {\n \"debit\": \"WD6BKYhbRzlRhfKSE1DcpqS5\", \n \"dispute\": null, \n \"order\": null\n }, \n \"meta\": {\n \"fulfillment.item.condition\": \"OK\", \n \"merchant.feedback\": \"positive\", \n \"user.refund_reason\": \"not happy with product\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"RF348-549-7723\", \n \"updated_at\": \"2014-03-06T19:23:48.234584Z\"\n }\n ]\n}"
|
554
555
|
},
|
555
556
|
"refund_show": {
|
556
557
|
"request": {
|
557
|
-
"uri": "/refunds/
|
558
|
+
"uri": "/refunds/RF6HsnqferSuES9VZEWrthG2"
|
558
559
|
},
|
559
|
-
"response": "{\n \"links\": {\n \"refunds.debit\": \"/debits/{refunds.debit}\", \n \"refunds.dispute\": \"/disputes/{refunds.dispute}\", \n \"refunds.events\": \"/refunds/{refunds.id}/events\", \n \"refunds.order\": \"/orders/{refunds.order}\"\n }, \n \"refunds\": [\n {\n \"amount\": 3000, \n \"created_at\": \"2014-
|
560
|
+
"response": "{\n \"links\": {\n \"refunds.debit\": \"/debits/{refunds.debit}\", \n \"refunds.dispute\": \"/disputes/{refunds.dispute}\", \n \"refunds.events\": \"/refunds/{refunds.id}/events\", \n \"refunds.order\": \"/orders/{refunds.order}\"\n }, \n \"refunds\": [\n {\n \"amount\": 3000, \n \"created_at\": \"2014-03-06T19:23:46.176138Z\", \n \"currency\": \"USD\", \n \"description\": \"Refund for Order #1111\", \n \"href\": \"/refunds/RF6HsnqferSuES9VZEWrthG2\", \n \"id\": \"RF6HsnqferSuES9VZEWrthG2\", \n \"links\": {\n \"debit\": \"WD6BKYhbRzlRhfKSE1DcpqS5\", \n \"dispute\": null, \n \"order\": null\n }, \n \"meta\": {\n \"fulfillment.item.condition\": \"OK\", \n \"merchant.feedback\": \"positive\", \n \"user.refund_reason\": \"not happy with product\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"RF348-549-7723\", \n \"updated_at\": \"2014-03-06T19:23:48.234584Z\"\n }\n ]\n}"
|
560
561
|
},
|
561
562
|
"refund_update": {
|
562
563
|
"request": {
|
@@ -568,13 +569,13 @@
|
|
568
569
|
"user.refund.count": "3"
|
569
570
|
}
|
570
571
|
},
|
571
|
-
"uri": "/refunds/
|
572
|
+
"uri": "/refunds/RF6HsnqferSuES9VZEWrthG2"
|
572
573
|
},
|
573
|
-
"response": "{\n \"links\": {\n \"refunds.debit\": \"/debits/{refunds.debit}\", \n \"refunds.dispute\": \"/disputes/{refunds.dispute}\", \n \"refunds.events\": \"/refunds/{refunds.id}/events\", \n \"refunds.order\": \"/orders/{refunds.order}\"\n }, \n \"refunds\": [\n {\n \"amount\": 3000, \n \"created_at\": \"2014-
|
574
|
+
"response": "{\n \"links\": {\n \"refunds.debit\": \"/debits/{refunds.debit}\", \n \"refunds.dispute\": \"/disputes/{refunds.dispute}\", \n \"refunds.events\": \"/refunds/{refunds.id}/events\", \n \"refunds.order\": \"/orders/{refunds.order}\"\n }, \n \"refunds\": [\n {\n \"amount\": 3000, \n \"created_at\": \"2014-03-06T19:23:46.176138Z\", \n \"currency\": \"USD\", \n \"description\": \"update this description\", \n \"href\": \"/refunds/RF6HsnqferSuES9VZEWrthG2\", \n \"id\": \"RF6HsnqferSuES9VZEWrthG2\", \n \"links\": {\n \"debit\": \"WD6BKYhbRzlRhfKSE1DcpqS5\", \n \"dispute\": null, \n \"order\": null\n }, \n \"meta\": {\n \"refund.reason\": \"user not happy with product\", \n \"user.notes\": \"very polite on the phone\", \n \"user.refund.count\": \"3\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"RF348-549-7723\", \n \"updated_at\": \"2014-03-06T19:23:53.123358Z\"\n }\n ]\n}"
|
574
575
|
},
|
575
576
|
"reversal_create": {
|
576
577
|
"request": {
|
577
|
-
"credit_href": "/credits/
|
578
|
+
"credit_href": "/credits/CR6NpuEtezCdLTYngDrSEODv",
|
578
579
|
"payload": {
|
579
580
|
"amount": 3000,
|
580
581
|
"description": "Reversal for Order #1111",
|
@@ -584,21 +585,21 @@
|
|
584
585
|
"user.refund_reason": "not happy with product"
|
585
586
|
}
|
586
587
|
},
|
587
|
-
"uri": "/credits/
|
588
|
+
"uri": "/credits/CR6NpuEtezCdLTYngDrSEODv/reversals"
|
588
589
|
},
|
589
|
-
"response": "{\n \"links\": {\n \"reversals.credit\": \"/credits/{reversals.credit}\", \n \"reversals.events\": \"/reversals/{reversals.id}/events\", \n \"reversals.order\": \"/orders/{reversals.order}\"\n }, \n \"reversals\": [\n {\n \"amount\": 3000, \n \"created_at\": \"2014-
|
590
|
+
"response": "{\n \"links\": {\n \"reversals.credit\": \"/credits/{reversals.credit}\", \n \"reversals.events\": \"/reversals/{reversals.id}/events\", \n \"reversals.order\": \"/orders/{reversals.order}\"\n }, \n \"reversals\": [\n {\n \"amount\": 3000, \n \"created_at\": \"2014-03-06T19:23:55.596399Z\", \n \"currency\": \"USD\", \n \"description\": \"Reversal for Order #1111\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/reversals/RV6OCxJ1UhkG84is6H9PHjkZ\", \n \"id\": \"RV6OCxJ1UhkG84is6H9PHjkZ\", \n \"links\": {\n \"credit\": \"CR6NpuEtezCdLTYngDrSEODv\", \n \"order\": null\n }, \n \"meta\": {\n \"fulfillment.item.condition\": \"OK\", \n \"merchant.feedback\": \"positive\", \n \"user.refund_reason\": \"not happy with product\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"RV542-861-3670\", \n \"updated_at\": \"2014-03-06T19:23:56.470321Z\"\n }\n ]\n}"
|
590
591
|
},
|
591
592
|
"reversal_list": {
|
592
593
|
"request": {
|
593
594
|
"uri": "/reversals"
|
594
595
|
},
|
595
|
-
"response": "{\n \"links\": {\n \"reversals.credit\": \"/credits/{reversals.credit}\", \n \"reversals.events\": \"/reversals/{reversals.id}/events\", \n \"reversals.order\": \"/orders/{reversals.order}\"\n }, \n \"meta\": {\n \"first\": \"/reversals?limit=10&offset=0\", \n \"href\": \"/reversals?limit=10&offset=0\", \n \"last\": \"/reversals?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 1\n }, \n \"reversals\": [\n {\n \"amount\": 3000, \n \"created_at\": \"2014-
|
596
|
+
"response": "{\n \"links\": {\n \"reversals.credit\": \"/credits/{reversals.credit}\", \n \"reversals.events\": \"/reversals/{reversals.id}/events\", \n \"reversals.order\": \"/orders/{reversals.order}\"\n }, \n \"meta\": {\n \"first\": \"/reversals?limit=10&offset=0\", \n \"href\": \"/reversals?limit=10&offset=0\", \n \"last\": \"/reversals?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 1\n }, \n \"reversals\": [\n {\n \"amount\": 3000, \n \"created_at\": \"2014-03-06T19:23:55.596399Z\", \n \"currency\": \"USD\", \n \"description\": \"Reversal for Order #1111\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/reversals/RV6OCxJ1UhkG84is6H9PHjkZ\", \n \"id\": \"RV6OCxJ1UhkG84is6H9PHjkZ\", \n \"links\": {\n \"credit\": \"CR6NpuEtezCdLTYngDrSEODv\", \n \"order\": null\n }, \n \"meta\": {\n \"fulfillment.item.condition\": \"OK\", \n \"merchant.feedback\": \"positive\", \n \"user.refund_reason\": \"not happy with product\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"RV542-861-3670\", \n \"updated_at\": \"2014-03-06T19:23:56.470321Z\"\n }\n ]\n}"
|
596
597
|
},
|
597
598
|
"reversal_show": {
|
598
599
|
"request": {
|
599
|
-
"uri": "/reversals/
|
600
|
+
"uri": "/reversals/RV6OCxJ1UhkG84is6H9PHjkZ"
|
600
601
|
},
|
601
|
-
"response": "{\n \"links\": {\n \"reversals.credit\": \"/credits/{reversals.credit}\", \n \"reversals.events\": \"/reversals/{reversals.id}/events\", \n \"reversals.order\": \"/orders/{reversals.order}\"\n }, \n \"reversals\": [\n {\n \"amount\": 3000, \n \"created_at\": \"2014-
|
602
|
+
"response": "{\n \"links\": {\n \"reversals.credit\": \"/credits/{reversals.credit}\", \n \"reversals.events\": \"/reversals/{reversals.id}/events\", \n \"reversals.order\": \"/orders/{reversals.order}\"\n }, \n \"reversals\": [\n {\n \"amount\": 3000, \n \"created_at\": \"2014-03-06T19:23:55.596399Z\", \n \"currency\": \"USD\", \n \"description\": \"Reversal for Order #1111\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/reversals/RV6OCxJ1UhkG84is6H9PHjkZ\", \n \"id\": \"RV6OCxJ1UhkG84is6H9PHjkZ\", \n \"links\": {\n \"credit\": \"CR6NpuEtezCdLTYngDrSEODv\", \n \"order\": null\n }, \n \"meta\": {\n \"fulfillment.item.condition\": \"OK\", \n \"merchant.feedback\": \"positive\", \n \"user.refund_reason\": \"not happy with product\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"RV542-861-3670\", \n \"updated_at\": \"2014-03-06T19:23:56.470321Z\"\n }\n ]\n}"
|
602
603
|
},
|
603
604
|
"reversal_update": {
|
604
605
|
"request": {
|
@@ -610,9 +611,9 @@
|
|
610
611
|
"user.satisfaction": "6"
|
611
612
|
}
|
612
613
|
},
|
613
|
-
"uri": "/reversals/
|
614
|
+
"uri": "/reversals/RV6OCxJ1UhkG84is6H9PHjkZ"
|
614
615
|
},
|
615
|
-
"response": "{\n \"links\": {\n \"reversals.credit\": \"/credits/{reversals.credit}\", \n \"reversals.events\": \"/reversals/{reversals.id}/events\", \n \"reversals.order\": \"/orders/{reversals.order}\"\n }, \n \"reversals\": [\n {\n \"amount\": 3000, \n \"created_at\": \"2014-
|
616
|
+
"response": "{\n \"links\": {\n \"reversals.credit\": \"/credits/{reversals.credit}\", \n \"reversals.events\": \"/reversals/{reversals.id}/events\", \n \"reversals.order\": \"/orders/{reversals.order}\"\n }, \n \"reversals\": [\n {\n \"amount\": 3000, \n \"created_at\": \"2014-03-06T19:23:55.596399Z\", \n \"currency\": \"USD\", \n \"description\": \"update this description\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/reversals/RV6OCxJ1UhkG84is6H9PHjkZ\", \n \"id\": \"RV6OCxJ1UhkG84is6H9PHjkZ\", \n \"links\": {\n \"credit\": \"CR6NpuEtezCdLTYngDrSEODv\", \n \"order\": null\n }, \n \"meta\": {\n \"refund.reason\": \"user not happy with product\", \n \"user.notes\": \"very polite on the phone\", \n \"user.satisfaction\": \"6\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"RV542-861-3670\", \n \"updated_at\": \"2014-03-06T19:24:00.271458Z\"\n }\n ]\n}"
|
616
617
|
},
|
617
|
-
"secret": "ak-test-
|
618
|
+
"secret": "ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul"
|
618
619
|
}
|