balanced 0.8.2 → 1.0.beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (359) hide show
  1. checksums.yaml +4 -4
  2. data/.rbenv-version +1 -1
  3. data/.ruby-version +1 -1
  4. data/Gemfile +7 -3
  5. data/README.md +2 -10
  6. data/Rakefile +4 -18
  7. data/balanced.gemspec +8 -10
  8. data/lib/balanced.rb +28 -28
  9. data/lib/balanced/client.rb +15 -6
  10. data/lib/balanced/error.rb +21 -12
  11. data/lib/balanced/pager.rb +66 -25
  12. data/lib/balanced/resources.rb +18 -17
  13. data/lib/balanced/resources/api_key.rb +4 -0
  14. data/lib/balanced/resources/bank_account.rb +26 -75
  15. data/lib/balanced/resources/callback.rb +2 -0
  16. data/lib/balanced/resources/card.rb +15 -65
  17. data/lib/balanced/resources/card_hold.rb +38 -0
  18. data/lib/balanced/resources/credit.rb +6 -50
  19. data/lib/balanced/resources/customer.rb +33 -71
  20. data/lib/balanced/resources/debit.rb +6 -14
  21. data/lib/balanced/resources/event.rb +6 -0
  22. data/lib/balanced/resources/funding_instrument.rb +11 -0
  23. data/lib/balanced/resources/hypermedia.rb +28 -0
  24. data/lib/balanced/resources/marketplace.rb +5 -203
  25. data/lib/balanced/resources/order.rb +71 -0
  26. data/lib/balanced/resources/refund.rb +2 -7
  27. data/lib/balanced/resources/resource.rb +169 -106
  28. data/lib/balanced/resources/reversal.rb +2 -8
  29. data/lib/balanced/resources/transfer.rb +11 -0
  30. data/lib/balanced/response/balanced_exception_middleware.rb +2 -2
  31. data/lib/balanced/utils.rb +47 -14
  32. data/lib/balanced/version.rb +1 -1
  33. data/scenario.cache +526 -380
  34. data/scenarios/api_key_create/definition.rb +1 -0
  35. data/scenarios/api_key_create/request.rb +2 -0
  36. data/scenarios/api_key_create/ruby.mako +21 -0
  37. data/scenarios/api_key_delete/definition.rb +1 -0
  38. data/scenarios/api_key_delete/request.rb +3 -0
  39. data/scenarios/api_key_delete/ruby.mako +12 -0
  40. data/scenarios/api_key_list/definition.rb +1 -0
  41. data/scenarios/api_key_list/request.rb +2 -0
  42. data/scenarios/api_key_list/ruby.mako +28 -0
  43. data/scenarios/api_key_show/definition.rb +1 -0
  44. data/scenarios/api_key_show/request.rb +2 -0
  45. data/scenarios/api_key_show/ruby.mako +18 -0
  46. data/scenarios/{customer_add_bank_account → bank_account_associate_to_customer}/definition.rb +0 -0
  47. data/scenarios/bank_account_associate_to_customer/request.rb +3 -0
  48. data/scenarios/bank_account_associate_to_customer/ruby.mako +49 -0
  49. data/scenarios/bank_account_create/definition.rb +1 -1
  50. data/scenarios/bank_account_create/request.rb +1 -1
  51. data/scenarios/bank_account_create/ruby.mako +44 -7
  52. data/scenarios/{credit_create_existing_bank_account → bank_account_credit}/definition.rb +0 -0
  53. data/scenarios/bank_account_credit/request.rb +3 -0
  54. data/scenarios/bank_account_credit/ruby.mako +42 -0
  55. data/scenarios/bank_account_debit/definition.rb +1 -0
  56. data/scenarios/bank_account_debit/request.rb +5 -0
  57. data/scenarios/bank_account_debit/ruby.mako +50 -0
  58. data/scenarios/bank_account_delete/request.rb +1 -1
  59. data/scenarios/bank_account_delete/ruby.mako +5 -3
  60. data/scenarios/bank_account_list/ruby.mako +76 -2
  61. data/scenarios/bank_account_show/definition.rb +1 -1
  62. data/scenarios/bank_account_show/request.rb +1 -1
  63. data/scenarios/bank_account_show/ruby.mako +41 -5
  64. data/scenarios/bank_account_update/definition.rb +1 -0
  65. data/scenarios/bank_account_update/request.rb +6 -0
  66. data/scenarios/bank_account_update/ruby.mako +56 -0
  67. data/scenarios/bank_account_verification_create/request.rb +1 -1
  68. data/scenarios/bank_account_verification_create/ruby.mako +20 -3
  69. data/scenarios/bank_account_verification_show/definition.rb +1 -1
  70. data/scenarios/bank_account_verification_show/request.rb +1 -1
  71. data/scenarios/bank_account_verification_show/ruby.mako +21 -4
  72. data/scenarios/bank_account_verification_update/definition.rb +1 -1
  73. data/scenarios/bank_account_verification_update/request.rb +5 -5
  74. data/scenarios/bank_account_verification_update/ruby.mako +24 -8
  75. data/scenarios/callback_create/definition.rb +1 -1
  76. data/scenarios/callback_create/request.rb +2 -2
  77. data/scenarios/callback_create/ruby.mako +22 -0
  78. data/scenarios/callback_delete/definition.rb +1 -1
  79. data/scenarios/callback_delete/request.rb +2 -2
  80. data/scenarios/callback_delete/ruby.mako +12 -0
  81. data/scenarios/callback_list/definition.rb +1 -1
  82. data/scenarios/callback_list/request.rb +1 -2
  83. data/scenarios/callback_list/ruby.mako +20 -0
  84. data/scenarios/callback_show/definition.rb +1 -1
  85. data/scenarios/callback_show/request.rb +1 -1
  86. data/scenarios/callback_show/ruby.mako +20 -0
  87. data/scenarios/{customer_add_card → card_associate_to_customer}/definition.rb +0 -0
  88. data/scenarios/card_associate_to_customer/request.rb +3 -0
  89. data/scenarios/card_associate_to_customer/ruby.mako +49 -0
  90. data/scenarios/card_create/request.rb +1 -2
  91. data/scenarios/card_create/ruby.mako +44 -7
  92. data/scenarios/card_debit/definition.rb +1 -0
  93. data/scenarios/card_debit/request.rb +5 -0
  94. data/scenarios/card_debit/ruby.mako +49 -0
  95. data/scenarios/card_delete/request.rb +1 -1
  96. data/scenarios/card_delete/ruby.mako +5 -3
  97. data/scenarios/card_hold_capture/definition.rb +1 -0
  98. data/scenarios/card_hold_capture/request.rb +5 -0
  99. data/scenarios/card_hold_capture/ruby.mako +49 -0
  100. data/scenarios/card_hold_create/definition.rb +1 -0
  101. data/scenarios/card_hold_create/request.rb +5 -0
  102. data/scenarios/card_hold_create/ruby.mako +38 -0
  103. data/scenarios/card_hold_list/definition.rb +1 -0
  104. data/scenarios/card_hold_list/request.rb +2 -0
  105. data/scenarios/card_hold_list/ruby.mako +60 -0
  106. data/scenarios/card_hold_show/definition.rb +1 -0
  107. data/scenarios/card_hold_show/request.rb +2 -0
  108. data/scenarios/card_hold_show/ruby.mako +36 -0
  109. data/scenarios/card_hold_update/definition.rb +1 -0
  110. data/scenarios/card_hold_update/request.rb +7 -0
  111. data/scenarios/card_hold_update/ruby.mako +42 -0
  112. data/scenarios/card_hold_void/definition.rb +1 -0
  113. data/scenarios/card_hold_void/request.rb +3 -0
  114. data/scenarios/card_hold_void/ruby.mako +36 -0
  115. data/scenarios/card_list/definition.rb +1 -1
  116. data/scenarios/card_list/request.rb +1 -1
  117. data/scenarios/card_list/ruby.mako +78 -5
  118. data/scenarios/card_show/definition.rb +1 -1
  119. data/scenarios/card_show/request.rb +1 -1
  120. data/scenarios/card_show/ruby.mako +42 -4
  121. data/scenarios/card_update/definition.rb +1 -1
  122. data/scenarios/card_update/request.rb +1 -1
  123. data/scenarios/card_update/ruby.mako +45 -4
  124. data/scenarios/credit_list/request.rb +1 -3
  125. data/scenarios/credit_list/ruby.mako +34 -4
  126. data/scenarios/{credit_bank_account_list → credit_list_bank_account}/definition.rb +0 -0
  127. data/scenarios/credit_list_bank_account/request.rb +3 -0
  128. data/scenarios/credit_list_bank_account/ruby.mako +13 -0
  129. data/scenarios/credit_show/definition.rb +1 -1
  130. data/scenarios/credit_show/request.rb +1 -3
  131. data/scenarios/credit_show/ruby.mako +35 -5
  132. data/scenarios/{credit_create_new_bank_account → credit_update}/definition.rb +0 -0
  133. data/scenarios/credit_update/request.rb +7 -0
  134. data/scenarios/credit_update/ruby.mako +48 -0
  135. data/scenarios/customer_create/request.rb +4 -1
  136. data/scenarios/customer_create/ruby.mako +60 -3
  137. data/scenarios/customer_delete/request.rb +1 -1
  138. data/scenarios/customer_delete/ruby.mako +4 -2
  139. data/scenarios/customer_list/definition.rb +1 -0
  140. data/scenarios/customer_list/request.rb +2 -0
  141. data/scenarios/customer_list/ruby.mako +105 -0
  142. data/scenarios/customer_show/definition.rb +1 -0
  143. data/scenarios/customer_show/request.rb +2 -0
  144. data/scenarios/customer_show/ruby.mako +58 -0
  145. data/scenarios/customer_update/definition.rb +1 -0
  146. data/scenarios/customer_update/request.rb +7 -0
  147. data/scenarios/customer_update/ruby.mako +64 -0
  148. data/scenarios/debit_list/request.rb +1 -3
  149. data/scenarios/debit_list/ruby.mako +70 -4
  150. data/scenarios/debit_show/definition.rb +1 -1
  151. data/scenarios/debit_show/request.rb +1 -1
  152. data/scenarios/debit_show/ruby.mako +39 -4
  153. data/scenarios/debit_update/definition.rb +1 -1
  154. data/scenarios/debit_update/request.rb +1 -1
  155. data/scenarios/debit_update/ruby.mako +39 -4
  156. data/scenarios/event_list/definition.rb +1 -1
  157. data/scenarios/event_list/request.rb +1 -2
  158. data/scenarios/event_list/ruby.mako +54 -5
  159. data/scenarios/event_show/definition.rb +1 -1
  160. data/scenarios/event_show/request.rb +1 -1
  161. data/scenarios/event_show/ruby.mako +54 -4
  162. data/scenarios/helpers.rb +29 -2
  163. data/scenarios/order_create/definition.rb +1 -0
  164. data/scenarios/order_create/request.rb +5 -0
  165. data/scenarios/order_create/ruby.mako +46 -0
  166. data/scenarios/order_list/definition.rb +1 -0
  167. data/scenarios/order_list/request.rb +2 -0
  168. data/scenarios/order_list/ruby.mako +42 -0
  169. data/scenarios/order_show/definition.rb +1 -0
  170. data/scenarios/order_show/request.rb +2 -0
  171. data/scenarios/order_show/ruby.mako +44 -0
  172. data/scenarios/order_update/definition.rb +1 -0
  173. data/scenarios/order_update/request.rb +7 -0
  174. data/scenarios/order_update/ruby.mako +50 -0
  175. data/scenarios/refund_create/definition.rb +1 -1
  176. data/scenarios/refund_create/request.rb +2 -1
  177. data/scenarios/refund_create/ruby.mako +33 -5
  178. data/scenarios/refund_list/request.rb +1 -3
  179. data/scenarios/refund_list/ruby.mako +30 -4
  180. data/scenarios/refund_show/definition.rb +1 -1
  181. data/scenarios/refund_show/request.rb +1 -1
  182. data/scenarios/refund_show/ruby.mako +32 -4
  183. data/scenarios/refund_update/definition.rb +1 -1
  184. data/scenarios/refund_update/request.rb +1 -1
  185. data/scenarios/refund_update/ruby.mako +32 -4
  186. data/scenarios/render_mako.rb +59 -4
  187. data/scenarios/reversal_create/definition.rb +1 -0
  188. data/scenarios/reversal_create/request.rb +9 -0
  189. data/scenarios/reversal_create/ruby.mako +45 -0
  190. data/scenarios/reversal_list/definition.rb +1 -0
  191. data/scenarios/reversal_list/request.rb +2 -0
  192. data/scenarios/reversal_list/ruby.mako +36 -0
  193. data/scenarios/reversal_show/definition.rb +1 -0
  194. data/scenarios/reversal_show/request.rb +2 -0
  195. data/scenarios/reversal_show/ruby.mako +37 -0
  196. data/scenarios/reversal_update/definition.rb +1 -0
  197. data/scenarios/reversal_update/request.rb +7 -0
  198. data/scenarios/reversal_update/ruby.mako +44 -0
  199. data/spec/balanced/error_spec.rb +7 -7
  200. data/spec/balanced/pager_spec.rb +10 -10
  201. data/spec/balanced/resources/api_key_spec.rb +6 -35
  202. data/spec/balanced/resources/bank_account_spec.rb +123 -218
  203. data/spec/balanced/resources/callback_spec.rb +12 -13
  204. data/spec/balanced/resources/card_hold_spec.rb +103 -0
  205. data/spec/balanced/resources/card_spec.rb +101 -27
  206. data/spec/balanced/resources/credit_spec.rb +69 -35
  207. data/spec/balanced/resources/customer_spec.rb +91 -271
  208. data/spec/balanced/resources/debit_spec.rb +95 -0
  209. data/spec/balanced/resources/marketplace_spec.rb +17 -170
  210. data/spec/balanced/resources/order_spec.rb +364 -0
  211. data/spec/balanced/resources/resource_spec.rb +25 -32
  212. data/spec/balanced_spec.rb +18 -36
  213. data/spec/client_spec.rb +7 -7
  214. data/spec/spec_helper.rb +19 -18
  215. data/spec/utils_spec.rb +5 -5
  216. metadata +123 -165
  217. data/examples/bank_account_debits.rb +0 -57
  218. data/examples/customers.rb +0 -114
  219. data/examples/events_and_callbacks.rb +0 -81
  220. data/examples/examples.rb +0 -162
  221. data/examples/exception_handling.rb +0 -44
  222. data/lib/balanced/resources/account.rb +0 -179
  223. data/lib/balanced/resources/hold.rb +0 -61
  224. data/lib/balanced/resources/invoice.rb +0 -11
  225. data/lib/balanced/resources/merchant.rb +0 -21
  226. data/lib/balanced/resources/transaction.rb +0 -17
  227. data/scenarios/account_add_card/definition.rb +0 -1
  228. data/scenarios/account_add_card/request.rb +0 -3
  229. data/scenarios/account_add_card/ruby.mako +0 -11
  230. data/scenarios/account_capture_hold/definition.rb +0 -1
  231. data/scenarios/account_capture_hold/request.rb +0 -3
  232. data/scenarios/account_capture_hold/ruby.mako +0 -11
  233. data/scenarios/account_create/definition.rb +0 -1
  234. data/scenarios/account_create/request.rb +0 -2
  235. data/scenarios/account_create/ruby.mako +0 -10
  236. data/scenarios/account_create_buyer/definition.rb +0 -1
  237. data/scenarios/account_create_buyer/request.rb +0 -5
  238. data/scenarios/account_create_buyer/ruby.mako +0 -13
  239. data/scenarios/account_create_debit/definition.rb +0 -1
  240. data/scenarios/account_create_debit/request.rb +0 -3
  241. data/scenarios/account_create_debit/ruby.mako +0 -11
  242. data/scenarios/account_create_hold/definition.rb +0 -1
  243. data/scenarios/account_create_hold/request.rb +0 -3
  244. data/scenarios/account_create_hold/ruby.mako +0 -11
  245. data/scenarios/account_create_merchant/definition.rb +0 -1
  246. data/scenarios/account_create_merchant/request.rb +0 -3
  247. data/scenarios/account_create_merchant/ruby.mako +0 -11
  248. data/scenarios/account_underwrite_business/definition.rb +0 -1
  249. data/scenarios/account_underwrite_business/request.rb +0 -17
  250. data/scenarios/account_underwrite_business/ruby.mako +0 -37
  251. data/scenarios/account_underwrite_person/definition.rb +0 -1
  252. data/scenarios/account_underwrite_person/request.rb +0 -18
  253. data/scenarios/account_underwrite_person/ruby.mako +0 -31
  254. data/scenarios/bank_account_find_and_credit/definition.rb +0 -1
  255. data/scenarios/bank_account_find_and_credit/request.rb +0 -5
  256. data/scenarios/bank_account_find_and_credit/ruby.mako +0 -13
  257. data/scenarios/bank_account_find_and_delete/definition.rb +0 -1
  258. data/scenarios/bank_account_find_and_delete/request.rb +0 -3
  259. data/scenarios/bank_account_find_and_delete/ruby.mako +0 -10
  260. data/scenarios/bank_account_invalid_routing_number/definition.rb +0 -1
  261. data/scenarios/bank_account_invalid_routing_number/request.rb +0 -11
  262. data/scenarios/bank_account_invalid_routing_number/ruby.mako +0 -16
  263. data/scenarios/card_invalidate/definition.rb +0 -1
  264. data/scenarios/card_invalidate/request.rb +0 -3
  265. data/scenarios/card_invalidate/ruby.mako +0 -10
  266. data/scenarios/credit_account_list/definition.rb +0 -1
  267. data/scenarios/credit_account_list/request.rb +0 -3
  268. data/scenarios/credit_account_list/ruby.mako +0 -10
  269. data/scenarios/credit_account_merchant_create/definition.rb +0 -1
  270. data/scenarios/credit_account_merchant_create/request.rb +0 -5
  271. data/scenarios/credit_account_merchant_create/ruby.mako +0 -12
  272. data/scenarios/credit_bank_account_list/request.rb +0 -5
  273. data/scenarios/credit_bank_account_list/ruby.mako +0 -12
  274. data/scenarios/credit_create_existing_bank_account/request.rb +0 -5
  275. data/scenarios/credit_create_existing_bank_account/ruby.mako +0 -12
  276. data/scenarios/credit_create_new_bank_account/request.rb +0 -10
  277. data/scenarios/credit_create_new_bank_account/ruby.mako +0 -21
  278. data/scenarios/credit_customer_list/definition.rb +0 -1
  279. data/scenarios/credit_customer_list/request.rb +0 -4
  280. data/scenarios/credit_customer_list/ruby.mako +0 -12
  281. data/scenarios/credit_failed_state/definition.rb +0 -1
  282. data/scenarios/credit_failed_state/request.rb +0 -10
  283. data/scenarios/credit_failed_state/ruby.mako +0 -18
  284. data/scenarios/credit_paid_state/definition.rb +0 -1
  285. data/scenarios/credit_paid_state/request.rb +0 -11
  286. data/scenarios/credit_paid_state/ruby.mako +0 -19
  287. data/scenarios/credit_pending_state/definition.rb +0 -1
  288. data/scenarios/credit_pending_state/request.rb +0 -9
  289. data/scenarios/credit_pending_state/ruby.mako +0 -17
  290. data/scenarios/customer_add_bank_account/request.rb +0 -3
  291. data/scenarios/customer_add_bank_account/ruby.mako +0 -11
  292. data/scenarios/customer_add_card/request.rb +0 -3
  293. data/scenarios/customer_add_card/ruby.mako +0 -11
  294. data/scenarios/customer_capture_hold/definition.rb +0 -1
  295. data/scenarios/customer_capture_hold/request.rb +0 -3
  296. data/scenarios/customer_capture_hold/ruby.mako +0 -0
  297. data/scenarios/customer_create_debit/definition.rb +0 -1
  298. data/scenarios/customer_create_debit/request.rb +0 -3
  299. data/scenarios/customer_create_debit/ruby.mako +0 -11
  300. data/scenarios/customer_create_hold/definition.rb +0 -1
  301. data/scenarios/customer_create_hold/request.rb +0 -3
  302. data/scenarios/customer_create_hold/ruby.mako +0 -11
  303. data/scenarios/customer_credit/definition.rb +0 -1
  304. data/scenarios/customer_credit/request.rb +0 -2
  305. data/scenarios/customer_credit/ruby.mako +0 -8
  306. data/scenarios/debit_account_list/definition.rb +0 -1
  307. data/scenarios/debit_account_list/request.rb +0 -3
  308. data/scenarios/debit_account_list/ruby.mako +0 -10
  309. data/scenarios/debit_create/definition.rb +0 -1
  310. data/scenarios/debit_create/request.rb +0 -5
  311. data/scenarios/debit_create/ruby.mako +0 -15
  312. data/scenarios/debit_customer_list/definition.rb +0 -1
  313. data/scenarios/debit_customer_list/request.rb +0 -4
  314. data/scenarios/debit_customer_list/ruby.mako +0 -12
  315. data/scenarios/debit_refund/definition.rb +0 -1
  316. data/scenarios/debit_refund/request.rb +0 -3
  317. data/scenarios/debit_refund/ruby.mako +0 -10
  318. data/scenarios/delete.rb +0 -7
  319. data/scenarios/event_replay/definition.rb +0 -0
  320. data/scenarios/event_replay/request.rb +0 -1
  321. data/scenarios/event_replay/ruby.mako +0 -0
  322. data/scenarios/execute.rb +0 -27
  323. data/scenarios/hold_account_list/definition.rb +0 -1
  324. data/scenarios/hold_account_list/request.rb +0 -3
  325. data/scenarios/hold_account_list/ruby.mako +0 -10
  326. data/scenarios/hold_capture/definition.rb +0 -1
  327. data/scenarios/hold_capture/request.rb +0 -5
  328. data/scenarios/hold_capture/ruby.mako +0 -15
  329. data/scenarios/hold_create/definition.rb +0 -1
  330. data/scenarios/hold_create/request.rb +0 -5
  331. data/scenarios/hold_create/ruby.mako +0 -14
  332. data/scenarios/hold_customer_list/definition.rb +0 -1
  333. data/scenarios/hold_customer_list/request.rb +0 -3
  334. data/scenarios/hold_customer_list/ruby.mako +0 -11
  335. data/scenarios/hold_list/definition.rb +0 -1
  336. data/scenarios/hold_list/request.rb +0 -4
  337. data/scenarios/hold_list/ruby.mako +0 -11
  338. data/scenarios/hold_show/definition.rb +0 -1
  339. data/scenarios/hold_show/request.rb +0 -2
  340. data/scenarios/hold_show/ruby.mako +0 -10
  341. data/scenarios/hold_update/definition.rb +0 -1
  342. data/scenarios/hold_update/request.rb +0 -7
  343. data/scenarios/hold_update/ruby.mako +0 -16
  344. data/scenarios/hold_void/definition.rb +0 -1
  345. data/scenarios/hold_void/request.rb +0 -3
  346. data/scenarios/hold_void/ruby.mako +0 -10
  347. data/scenarios/refund_account_list/definition.rb +0 -1
  348. data/scenarios/refund_account_list/request.rb +0 -3
  349. data/scenarios/refund_account_list/ruby.mako +0 -10
  350. data/scenarios/refund_customer_list/definition.rb +0 -1
  351. data/scenarios/refund_customer_list/request.rb +0 -3
  352. data/scenarios/refund_customer_list/ruby.mako +0 -11
  353. data/scenarios/render.rb +0 -32
  354. data/scenarios/render_one.rb +0 -32
  355. data/spec/balanced/resources/account_spec.rb +0 -636
  356. data/spec/balanced/resources/hold_spec.rb +0 -48
  357. data/spec/balanced/resources/merchant_spec.rb +0 -6
  358. data/spec/scenarios_spec.rb +0 -39
  359. data/upload_docs.rb +0 -40
@@ -6,15 +6,9 @@ module Balanced
6
6
  #
7
7
  class Reversal
8
8
  include Balanced::Resource
9
+ include Balanced::HypermediaRegistry
9
10
 
10
- def initialize attributes = {}
11
- Balanced::Utils.stringify_keys! attributes
12
- unless attributes.has_key? 'uri'
13
- attributes['uri'] = self.class.uri
14
- end
15
- super attributes
16
- end
17
-
11
+ define_hypermedia_types [:reversals]
18
12
  end
19
13
 
20
14
  end
@@ -0,0 +1,11 @@
1
+ module Balanced
2
+
3
+ class Transfer
4
+ include Balanced::Resource
5
+ include Balanced::HypermediaRegistry
6
+
7
+ define_hypermedia_types [:transfers]
8
+
9
+ end
10
+
11
+ end
@@ -32,8 +32,8 @@ module Faraday
32
32
  }
33
33
  def on_complete(response)
34
34
  status_code = response[:status].to_i
35
- if response.key? :body and response[:body] != nil
36
- category_code = response[:body]['category_code']
35
+ if response.key? :body and response[:body] != nil and response[:body]['errors']
36
+ category_code = response[:body]['errors'][0]['category_code']
37
37
  else
38
38
  category_code = nil
39
39
  end
@@ -1,58 +1,64 @@
1
1
  module Balanced
2
+
2
3
  module Utils
3
- def camelize underscored_word
4
+
5
+ def callable( callable_or_not )
6
+ callable_or_not.respond_to?(:call) ? callable_or_not : lambda { callable_or_not }
7
+ end
8
+
9
+ def camelize(underscored_word)
4
10
  underscored_word.to_s.gsub(/(?:^|_)(.)/) { $1.upcase }
5
11
  end
6
12
 
7
- def classify table_name
13
+ def classify(table_name)
8
14
  camelize singularize(table_name.to_s.sub(/.*\./, ''))
9
15
  end
10
16
 
11
- def demodulize class_name_in_module
17
+ def demodulize(class_name_in_module)
12
18
  class_name_in_module.to_s.sub(/^.*::/, '')
13
19
  end
14
20
 
15
- def pluralize word
21
+ def pluralize(word)
16
22
  word.to_s.sub(/([^s])$/, '\1s')
17
23
  end
18
24
 
19
- def singularize word
25
+ def singularize(word)
20
26
  word.to_s.sub(/s$/, '').sub(/ie$/, 'y')
21
27
  end
22
28
 
23
- def underscore camel_cased_word
29
+ def underscore(camel_cased_word)
24
30
  word = camel_cased_word.to_s.dup
25
31
  word.gsub!(/::/, '/')
26
32
  word.gsub!(/([A-Z]+)([A-Z][a-z])/, '\1_\2')
27
33
  word.gsub!(/([a-z\d])([A-Z])/, '\1_\2')
28
- word.tr! "-", "_"
34
+ word.tr! '-', '_'
29
35
  word.downcase!
30
36
  word
31
37
  end
32
38
 
33
- def extract_uri_from_object(object)
34
- object.respond_to?(:uri) ? object.uri : object
39
+ def extract_href_from_object(object)
40
+ object.respond_to?(:href) ? object.href : object
35
41
  end
36
42
 
37
- def hash_with_indifferent_read_access base = {}
43
+ def indifferent_read_access(base = {})
38
44
  indifferent = Hash.new do |hash, key|
39
45
  hash[key.to_s] if key.is_a? Symbol
40
46
  end
41
47
  base.each_pair do |key, value|
42
48
  if value.is_a? Hash
43
- value = hash_with_indifferent_read_access value
49
+ value = indifferent_read_access value
44
50
  elsif value.respond_to? :each
45
51
  if value.respond_to? :map!
46
52
  value.map! do |v|
47
53
  if v.is_a? Hash
48
- v = hash_with_indifferent_read_access v
54
+ v = indifferent_read_access v
49
55
  end
50
56
  v
51
57
  end
52
58
  else
53
59
  value.map do |v|
54
60
  if v.is_a? Hash
55
- v = hash_with_indifferent_read_access v
61
+ v = indifferent_read_access v
56
62
  end
57
63
  v
58
64
  end
@@ -63,13 +69,40 @@ module Balanced
63
69
  indifferent
64
70
  end
65
71
 
66
- def stringify_keys! hash
72
+ def stringify_keys!(hash)
67
73
  hash.keys.each do |key|
68
74
  stringify_keys! hash[key] if hash[key].is_a? Hash
69
75
  hash[key.to_s] = hash.delete key if key.is_a? Symbol
70
76
  end
71
77
  end
72
78
 
79
+ # Validate all keys in a hash match *valid keys, raising ArgumentError on a mismatch.
80
+ # Note that keys are NOT treated indifferently, meaning if you use strings for keys but assert symbols
81
+ # as keys, this will fail.
82
+ #
83
+ # ==== Examples
84
+ # { :name => "Rob", :years => "28" }.assert_valid_keys(:name, :age) # => raises "ArgumentError: Unknown key(s): years"
85
+ # { :name => "Rob", :age => "28" }.assert_valid_keys("name", "age") # => raises "ArgumentError: Unknown key(s): name, age"
86
+ # { :name => "Rob", :age => "28" }.assert_valid_keys(:name, :age) # => passes, raises nothing
87
+ def assert_valid_keys(hash, *valid_keys)
88
+ unknown_keys = hash.keys - [valid_keys].flatten
89
+ raise(ArgumentError, "Unknown key(s): #{unknown_keys.join(', ')}") unless unknown_keys.empty?
90
+ end
91
+
92
+ # http://pablomanrubia.com/2011/03/extending-ruby-to-validate-required-keys-in-a-hash-table/
93
+ #def assert_required_keys(hash, params)
94
+ # params[:required] ||= []
95
+ # params[:optional] ||= []
96
+ # assert_valid_keys(hash, params[:required] + params[:optional])
97
+ # pending_keys = params[:required] - hash.keys
98
+ # raise(ArgumentError, "Required key(s) not present: #{pending_keys.join(', ')}") unless pending_keys.empty?
99
+ #end
100
+
101
+ def assert_required_keys(hash, params)
102
+ params[:required] ||= []
103
+ pending_keys = params[:required] - hash.keys
104
+ raise(ArgumentError, "Required key(s) not present: #{pending_keys.join(', ')}") unless pending_keys.empty?
105
+ end
73
106
  extend self
74
107
  end
75
108
  end
@@ -1,3 +1,3 @@
1
1
  module Balanced
2
- VERSION = '0.8.2'
2
+ VERSION = '1.0.beta1'
3
3
  end
data/scenario.cache CHANGED
@@ -1,472 +1,618 @@
1
1
  {
2
- "account_add_card": {
2
+ "accept_type": "application/vnd.api+json;revision=1.1",
3
+ "api_key": "ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc",
4
+ "api_key_create": {
3
5
  "request": {
4
- "payload": {
5
- "card_uri": "/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/cards/CC4Y12fGIP0HQ1jhcDgE9cFi"
6
- },
7
- "uri": "/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4SoZJ23TvXIUcUOBSTXYHQ"
8
- },
9
- "response": "{\n \"_type\": \"account\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4SoZJ23TvXIUcUOBSTXYHQ/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4SoZJ23TvXIUcUOBSTXYHQ/cards\", \n \"created_at\": \"2013-08-26T22:27:00.763762Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4SoZJ23TvXIUcUOBSTXYHQ/credits\", \n \"customer_uri\": \"/v1/customers/AC4SoZJ23TvXIUcUOBSTXYHQ\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4SoZJ23TvXIUcUOBSTXYHQ/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4SoZJ23TvXIUcUOBSTXYHQ/holds\", \n \"id\": \"AC4SoZJ23TvXIUcUOBSTXYHQ\", \n \"meta\": {}, \n \"name\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4SoZJ23TvXIUcUOBSTXYHQ/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4SoZJ23TvXIUcUOBSTXYHQ/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4SoZJ23TvXIUcUOBSTXYHQ/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4SoZJ23TvXIUcUOBSTXYHQ\"\n}"
10
- },
11
- "account_create": {
12
- "request": {
13
- "uri": "/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts"
14
- },
15
- "response": "{\n \"_type\": \"account\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4vHOqRpRUCRsbtZWfLkMeY/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4vHOqRpRUCRsbtZWfLkMeY/cards\", \n \"created_at\": \"2013-08-26T22:26:40.575252Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4vHOqRpRUCRsbtZWfLkMeY/credits\", \n \"customer_uri\": \"/v1/customers/AC4vHOqRpRUCRsbtZWfLkMeY\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4vHOqRpRUCRsbtZWfLkMeY/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4vHOqRpRUCRsbtZWfLkMeY/holds\", \n \"id\": \"AC4vHOqRpRUCRsbtZWfLkMeY\", \n \"meta\": {}, \n \"name\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4vHOqRpRUCRsbtZWfLkMeY/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4vHOqRpRUCRsbtZWfLkMeY/reversals\", \n \"roles\": [], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4vHOqRpRUCRsbtZWfLkMeY/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4vHOqRpRUCRsbtZWfLkMeY\"\n}"
16
- },
17
- "account_create_buyer": {
18
- "request": {
19
- "payload": {
20
- "card_uri": "/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/cards/CC4KUcbT2dmJRIYoG0hBpO6S"
21
- },
22
- "uri": "/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts"
23
- },
24
- "response": "{\n \"_type\": \"account\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4SoZJ23TvXIUcUOBSTXYHQ/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4SoZJ23TvXIUcUOBSTXYHQ/cards\", \n \"created_at\": \"2013-08-26T22:27:00.763762Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4SoZJ23TvXIUcUOBSTXYHQ/credits\", \n \"customer_uri\": \"/v1/customers/AC4SoZJ23TvXIUcUOBSTXYHQ\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4SoZJ23TvXIUcUOBSTXYHQ/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4SoZJ23TvXIUcUOBSTXYHQ/holds\", \n \"id\": \"AC4SoZJ23TvXIUcUOBSTXYHQ\", \n \"meta\": {}, \n \"name\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4SoZJ23TvXIUcUOBSTXYHQ/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4SoZJ23TvXIUcUOBSTXYHQ/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4SoZJ23TvXIUcUOBSTXYHQ/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4SoZJ23TvXIUcUOBSTXYHQ\"\n}"
25
- },
26
- "account_create_merchant": {
27
- "request": {
28
- "payload": {
29
- "bank_account_uri": "/v1/bank_accounts/BA5hNwwQFEWByAcdf1U5D5ok"
30
- },
31
- "uri": "/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4SoZJ23TvXIUcUOBSTXYHQ"
32
- },
33
- "response": "{\n \"_type\": \"account\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4SoZJ23TvXIUcUOBSTXYHQ/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4SoZJ23TvXIUcUOBSTXYHQ/cards\", \n \"created_at\": \"2013-08-26T22:27:00.763762Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4SoZJ23TvXIUcUOBSTXYHQ/credits\", \n \"customer_uri\": \"/v1/customers/AC4SoZJ23TvXIUcUOBSTXYHQ\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4SoZJ23TvXIUcUOBSTXYHQ/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4SoZJ23TvXIUcUOBSTXYHQ/holds\", \n \"id\": \"AC4SoZJ23TvXIUcUOBSTXYHQ\", \n \"meta\": {}, \n \"name\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4SoZJ23TvXIUcUOBSTXYHQ/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4SoZJ23TvXIUcUOBSTXYHQ/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4SoZJ23TvXIUcUOBSTXYHQ/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4SoZJ23TvXIUcUOBSTXYHQ\"\n}"
34
- },
35
- "account_underwrite_business": {
36
- "request": {
37
- "accounts_uri": "/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts",
38
- "payload": {
39
- "merchant": {
40
- "name": "Skripts4Kids",
41
- "person": {
42
- "dob": "1989-12",
43
- "name": "Timmy Q. CopyPasta",
44
- "phone_number": "+14089999999",
45
- "postal_code": "94110",
46
- "street_address": "121 Skriptkid Row"
47
- },
48
- "phone_number": "+140899188155",
49
- "postal_code": "91111",
50
- "street_address": "555 VoidMain Road",
51
- "tax_id": "211111111",
52
- "type": "business"
53
- }
54
- }
55
- },
56
- "response": "{\n \"_type\": \"account\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC5xdqmTOwcwgsK0Vue3Xz8k/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC5xdqmTOwcwgsK0Vue3Xz8k/cards\", \n \"created_at\": \"2013-08-26T22:27:37.037766Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC5xdqmTOwcwgsK0Vue3Xz8k/credits\", \n \"customer_uri\": \"/v1/customers/AC5xdqmTOwcwgsK0Vue3Xz8k\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC5xdqmTOwcwgsK0Vue3Xz8k/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC5xdqmTOwcwgsK0Vue3Xz8k/holds\", \n \"id\": \"AC5xdqmTOwcwgsK0Vue3Xz8k\", \n \"meta\": {}, \n \"name\": \"Timmy Q. CopyPasta\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC5xdqmTOwcwgsK0Vue3Xz8k/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC5xdqmTOwcwgsK0Vue3Xz8k/reversals\", \n \"roles\": [\n \"merchant\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC5xdqmTOwcwgsK0Vue3Xz8k/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC5xdqmTOwcwgsK0Vue3Xz8k\"\n}"
57
- },
58
- "account_underwrite_person": {
6
+ "uri": "/api_keys"
7
+ },
8
+ "response": "{\n \"api_keys\": [\n {\n \"created_at\": \"2014-01-27T22:56:01.641736Z\", \n \"href\": \"/api_keys/AK1vqjn1eEHXP0JYXrBrjH5c\", \n \"id\": \"AK1vqjn1eEHXP0JYXrBrjH5c\", \n \"links\": {}, \n \"meta\": {}, \n \"secret\": \"ak-test-1jlJCdGZjRWWYRF1iLBR69xwqG2NdQifv\"\n }\n ], \n \"links\": {}\n}"
9
+ },
10
+ "api_key_delete": {
59
11
  "request": {
60
- "accounts_uri": "/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts",
12
+ "uri": "/api_keys/AK1vqjn1eEHXP0JYXrBrjH5c"
13
+ }
14
+ },
15
+ "api_key_list": {
16
+ "request": {
17
+ "uri": "/api_keys"
18
+ },
19
+ "response": "{\n \"api_keys\": [\n {\n \"created_at\": \"2014-01-27T22:56:01.641736Z\", \n \"href\": \"/api_keys/AK1vqjn1eEHXP0JYXrBrjH5c\", \n \"id\": \"AK1vqjn1eEHXP0JYXrBrjH5c\", \n \"links\": {}, \n \"meta\": {}\n }, \n {\n \"created_at\": \"2014-01-27T22:55:46.698536Z\", \n \"href\": \"/api_keys/AK1eDKn7B8vK70hj70S1NMbu\", \n \"id\": \"AK1eDKn7B8vK70hj70S1NMbu\", \n \"links\": {}, \n \"meta\": {}, \n \"secret\": \"ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc\"\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
+ },
21
+ "api_key_show": {
22
+ "request": {
23
+ "uri": "/api_keys/AK1vqjn1eEHXP0JYXrBrjH5c"
24
+ },
25
+ "response": "{\n \"api_keys\": [\n {\n \"created_at\": \"2014-01-27T22:56:01.641736Z\", \n \"href\": \"/api_keys/AK1vqjn1eEHXP0JYXrBrjH5c\", \n \"id\": \"AK1vqjn1eEHXP0JYXrBrjH5c\", \n \"links\": {}, \n \"meta\": {}\n }\n ], \n \"links\": {}\n}"
26
+ },
27
+ "api_location": "https://api.balancedpayments.com",
28
+ "api_rev": "rev1",
29
+ "bank_account_associate_to_customer": {
30
+ "request": {
31
+ "customer_href": "/customers/CU3eeasZ9yQ86uzzIYZkrPGg",
61
32
  "payload": {
62
- "merchant": {
63
- "dob": "1989-12",
64
- "name": "Timmy Q. CopyPasta",
65
- "phone_number": "+14089999999",
66
- "postal_code": "94110",
67
- "street_address": "121 Skriptkid Row",
68
- "type": "person"
69
- }
70
- }
71
- },
72
- "response": "{\n \"_type\": \"account\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC5scyGag05OTpJ07dophbES/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC5scyGag05OTpJ07dophbES/cards\", \n \"created_at\": \"2013-08-26T22:27:32.581436Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC5scyGag05OTpJ07dophbES/credits\", \n \"customer_uri\": \"/v1/customers/AC5scyGag05OTpJ07dophbES\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC5scyGag05OTpJ07dophbES/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC5scyGag05OTpJ07dophbES/holds\", \n \"id\": \"AC5scyGag05OTpJ07dophbES\", \n \"meta\": {}, \n \"name\": \"Timmy Q. CopyPasta\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC5scyGag05OTpJ07dophbES/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC5scyGag05OTpJ07dophbES/reversals\", \n \"roles\": [\n \"merchant\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC5scyGag05OTpJ07dophbES/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC5scyGag05OTpJ07dophbES\"\n}"
73
- },
74
- "api_key": "8c3aeeb80e9e11e38901026ba7f8ec28",
75
- "api_location": "https://api.balancedpayments.com",
33
+ "customer": "/customers/CU3eeasZ9yQ86uzzIYZkrPGg"
34
+ },
35
+ "uri": "/bank_accounts/BA3qNbYRqFM0Q7MXn3IcjGl0"
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-01-27T22:57:47.772481Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA3qNbYRqFM0Q7MXn3IcjGl0\", \n \"id\": \"BA3qNbYRqFM0Q7MXn3IcjGl0\", \n \"links\": {\n \"bank_account_verification\": null, \n \"customer\": \"CU3eeasZ9yQ86uzzIYZkrPGg\"\n }, \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"updated_at\": \"2014-01-27T22:57:48.515195Z\"\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
+ },
76
39
  "bank_account_create": {
77
40
  "request": {
78
41
  "payload": {
79
- "account_number": "9900000001",
80
- "name": "Johann Bernoulli",
81
- "routing_number": "121000358",
42
+ "account_number": "9900000001",
43
+ "name": "Johann Bernoulli",
44
+ "routing_number": "121000358",
82
45
  "type": "checking"
83
- },
84
- "uri": "/v1/bank_accounts"
85
- },
86
- "response": "{\n \"_type\": \"bank_account\", \n \"_uris\": {\n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"verifications_uri\": {\n \"_type\": \"page\", \n \"key\": \"verifications\"\n }\n }, \n \"account_number\": \"xxxxxx0001\", \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_debit\": false, \n \"created_at\": \"2013-08-26T22:28:53.439502Z\", \n \"credits_uri\": \"/v1/bank_accounts/BA6V90Tau7B5YTGPFjC0PlzA/credits\", \n \"customer\": null, \n \"debits_uri\": \"/v1/bank_accounts/BA6V90Tau7B5YTGPFjC0PlzA/debits\", \n \"fingerprint\": \"1eH719hwbYRpEILVKyboPs_pn\", \n \"id\": \"BA6V90Tau7B5YTGPFjC0PlzA\", \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"type\": \"checking\", \n \"uri\": \"/v1/bank_accounts/BA6V90Tau7B5YTGPFjC0PlzA\", \n \"verification_uri\": null, \n \"verifications_uri\": \"/v1/bank_accounts/BA6V90Tau7B5YTGPFjC0PlzA/verifications\"\n}"
87
- },
46
+ },
47
+ "uri": "/bank_accounts"
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-01-27T22:57:47.772481Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA3qNbYRqFM0Q7MXn3IcjGl0\", \n \"id\": \"BA3qNbYRqFM0Q7MXn3IcjGl0\", \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-01-27T22:57:47.772483Z\"\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
+ },
51
+ "bank_account_credit": {
52
+ "request": {
53
+ "bank_account_href": "/bank_accounts/BA3qNbYRqFM0Q7MXn3IcjGl0",
54
+ "payload": {
55
+ "amount": 5000
56
+ },
57
+ "uri": "/bank_accounts/BA3qNbYRqFM0Q7MXn3IcjGl0/credits"
58
+ },
59
+ "response": "{\n \"credits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"example.com\", \n \"created_at\": \"2014-01-27T22:58:19.422292Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/credits/CR40neytmVG2HDBp1opfF7sY\", \n \"id\": \"CR40neytmVG2HDBp1opfF7sY\", \n \"links\": {\n \"customer\": \"CU3eeasZ9yQ86uzzIYZkrPGg\", \n \"destination\": \"BA3qNbYRqFM0Q7MXn3IcjGl0\", \n \"order\": null\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"CR816-868-3666\", \n \"updated_at\": \"2014-01-27T22:58:20.346871Z\"\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
+ },
61
+ "bank_account_debit": {
62
+ "request": {
63
+ "bank_account_href": "/bank_accounts/BA1D3vL3LjasB0kewMqRGI0S",
64
+ "payload": {
65
+ "amount": 5000,
66
+ "appears_on_statement_as": "Statement text",
67
+ "description": "Some descriptive text for the debit in the dashboard"
68
+ },
69
+ "uri": "/bank_accounts/BA1D3vL3LjasB0kewMqRGI0S/debits"
70
+ },
71
+ "response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-01-27T22:56:28.702119Z\", \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/WD1ZRRAZnFTryFdFaq7ijcPE\", \n \"id\": \"WD1ZRRAZnFTryFdFaq7ijcPE\", \n \"links\": {\n \"customer\": null, \n \"dispute\": null, \n \"order\": null, \n \"source\": \"BA1D3vL3LjasB0kewMqRGI0S\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W081-463-7557\", \n \"updated_at\": \"2014-01-27T22:56:29.235927Z\"\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
+ },
88
73
  "bank_account_delete": {
89
74
  "request": {
90
- "uri": "/v1/bank_accounts/BA5LOM1tiKeY4HOVU9XqOpHi"
75
+ "uri": "/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy"
91
76
  }
92
- },
77
+ },
93
78
  "bank_account_list": {
94
79
  "request": {
95
- "uri": "/v1/bank_accounts"
96
- },
97
- "response": "{\n \"_type\": \"page\", \n \"_uris\": {\n \"first_uri\": {\n \"_type\": \"page\", \n \"key\": \"first\"\n }, \n \"last_uri\": {\n \"_type\": \"page\", \n \"key\": \"last\"\n }, \n \"next_uri\": {\n \"_type\": \"page\", \n \"key\": \"next\"\n }, \n \"previous_uri\": {\n \"_type\": \"page\", \n \"key\": \"previous\"\n }\n }, \n \"first_uri\": \"/v1/bank_accounts?limit=2&offset=0\", \n \"items\": [\n {\n \"_type\": \"bank_account\", \n \"_uris\": {\n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"verifications_uri\": {\n \"_type\": \"page\", \n \"key\": \"verifications\"\n }\n }, \n \"account_number\": \"xxxxxx0001\", \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_debit\": false, \n \"created_at\": \"2013-08-26T22:27:55.567873Z\", \n \"credits_uri\": \"/v1/bank_accounts/BA5S3reJdyJBbAYKepbneBe2/credits\", \n \"customer\": null, \n \"debits_uri\": \"/v1/bank_accounts/BA5S3reJdyJBbAYKepbneBe2/debits\", \n \"fingerprint\": \"1eH719hwbYRpEILVKyboPs_pn\", \n \"id\": \"BA5S3reJdyJBbAYKepbneBe2\", \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"type\": \"checking\", \n \"uri\": \"/v1/bank_accounts/BA5S3reJdyJBbAYKepbneBe2\", \n \"verification_uri\": null, \n \"verifications_uri\": \"/v1/bank_accounts/BA5S3reJdyJBbAYKepbneBe2/verifications\"\n }, \n {\n \"_type\": \"bank_account\", \n \"_uris\": {\n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"verification_uri\": {\n \"_type\": \"bank_account_authentication\", \n \"key\": \"verification\"\n }, \n \"verifications_uri\": {\n \"_type\": \"page\", \n \"key\": \"verifications\"\n }\n }, \n \"account_number\": \"xxxxxx0001\", \n \"bank_name\": \"SAN MATEO CREDIT UNION\", \n \"can_debit\": true, \n \"created_at\": \"2013-08-26T22:27:50.025727Z\", \n \"credits_uri\": \"/v1/bank_accounts/BA5LOM1tiKeY4HOVU9XqOpHi/credits\", \n \"customer\": {\n \"_type\": \"customer\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"destination_uri\": {\n \"_type\": \"bank_account\", \n \"key\": \"destination\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"source_uri\": {\n \"_type\": \"bank_account\", \n \"key\": \"source\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"address\": {}, \n \"bank_accounts_uri\": \"/v1/customers/AC5Mac34ZUWpmeEKSsNo0rRK/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/AC5Mac34ZUWpmeEKSsNo0rRK/cards\", \n \"created_at\": \"2013-08-26T22:27:50.332892Z\", \n \"credits_uri\": \"/v1/customers/AC5Mac34ZUWpmeEKSsNo0rRK/credits\", \n \"debits_uri\": \"/v1/customers/AC5Mac34ZUWpmeEKSsNo0rRK/debits\", \n \"destination_uri\": \"/v1/customers/AC5Mac34ZUWpmeEKSsNo0rRK/bank_accounts/BA5LOM1tiKeY4HOVU9XqOpHi\", \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/AC5Mac34ZUWpmeEKSsNo0rRK/holds\", \n \"id\": \"AC5Mac34ZUWpmeEKSsNo0rRK\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/AC5Mac34ZUWpmeEKSsNo0rRK/refunds\", \n \"reversals_uri\": \"/v1/customers/AC5Mac34ZUWpmeEKSsNo0rRK/reversals\", \n \"source_uri\": \"/v1/customers/AC5Mac34ZUWpmeEKSsNo0rRK/bank_accounts/BA5LOM1tiKeY4HOVU9XqOpHi\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/AC5Mac34ZUWpmeEKSsNo0rRK/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/AC5Mac34ZUWpmeEKSsNo0rRK\"\n }, \n \"debits_uri\": \"/v1/bank_accounts/BA5LOM1tiKeY4HOVU9XqOpHi/debits\", \n \"fingerprint\": \"kTo2ltJS0fWSMnWIq72zL_pn\", \n \"id\": \"BA5LOM1tiKeY4HOVU9XqOpHi\", \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"321174851\", \n \"type\": \"checking\", \n \"uri\": \"/v1/bank_accounts/BA5LOM1tiKeY4HOVU9XqOpHi\", \n \"verification_uri\": \"/v1/bank_accounts/BA5LOM1tiKeY4HOVU9XqOpHi/verifications/BZ5OeVKxqc8c1ne4qZzi9LJl\", \n \"verifications_uri\": \"/v1/bank_accounts/BA5LOM1tiKeY4HOVU9XqOpHi/verifications\"\n }\n ], \n \"last_uri\": \"/v1/bank_accounts?limit=2&offset=4\", \n \"limit\": 2, \n \"next_uri\": \"/v1/bank_accounts?limit=2&offset=2\", \n \"offset\": 0, \n \"previous_uri\": null, \n \"total\": 6, \n \"uri\": \"/v1/bank_accounts?limit=2&offset=0\"\n}"
98
- },
80
+ "uri": "/bank_accounts"
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-01-27T22:56:20.540530Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy\", \n \"id\": \"BA1QFf0LmIxr8p41msqX46Oy\", \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-01-27T22:56:20.540534Z\"\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-01-27T22:56:08.446352Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA1D3vL3LjasB0kewMqRGI0S\", \n \"id\": \"BA1D3vL3LjasB0kewMqRGI0S\", \n \"links\": {\n \"bank_account_verification\": \"BZ1FF2MHFH9upRu7C0QUwnby\", \n \"customer\": null\n }, \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"updated_at\": \"2014-01-27T22:56:18.623674Z\"\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-01-27T22:55:49.899228Z\", \n \"fingerprint\": \"6ybvaLUrJy07phK2EQ7pVk\", \n \"href\": \"/bank_accounts/BA1fUvPHaEcIdkRe8HmC2Vee\", \n \"id\": \"BA1fUvPHaEcIdkRe8HmC2Vee\", \n \"links\": {\n \"bank_account_verification\": null, \n \"customer\": \"CU1f8Ygc4t0F2FKNcw235x9I\"\n }, \n \"meta\": {}, \n \"name\": \"TEST-MERCHANT-BANK-ACCOUNT\", \n \"routing_number\": \"121042882\", \n \"updated_at\": \"2014-01-27T22:55:49.899231Z\"\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
+ },
99
84
  "bank_account_show": {
100
85
  "request": {
101
- "uri": "/v1/bank_accounts/BA5S3reJdyJBbAYKepbneBe2"
102
- },
103
- "response": "{\n \"_type\": \"bank_account\", \n \"_uris\": {\n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"verifications_uri\": {\n \"_type\": \"page\", \n \"key\": \"verifications\"\n }\n }, \n \"account_number\": \"xxxxxx0001\", \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_debit\": false, \n \"created_at\": \"2013-08-26T22:27:55.567873Z\", \n \"credits_uri\": \"/v1/bank_accounts/BA5S3reJdyJBbAYKepbneBe2/credits\", \n \"customer\": null, \n \"debits_uri\": \"/v1/bank_accounts/BA5S3reJdyJBbAYKepbneBe2/debits\", \n \"fingerprint\": \"1eH719hwbYRpEILVKyboPs_pn\", \n \"id\": \"BA5S3reJdyJBbAYKepbneBe2\", \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"type\": \"checking\", \n \"uri\": \"/v1/bank_accounts/BA5S3reJdyJBbAYKepbneBe2\", \n \"verification_uri\": null, \n \"verifications_uri\": \"/v1/bank_accounts/BA5S3reJdyJBbAYKepbneBe2/verifications\"\n}"
104
- },
105
- "bank_account_verification_create": {
86
+ "uri": "/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy"
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-01-27T22:56:20.540530Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy\", \n \"id\": \"BA1QFf0LmIxr8p41msqX46Oy\", \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-01-27T22:56:20.540534Z\"\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
+ },
90
+ "bank_account_update": {
106
91
  "request": {
107
- "bank_account_uri": "/v1/bank_accounts/BA5BveXWeSilJaZGTX3P6g9x",
108
92
  "payload": {
109
- "none": ""
110
- },
111
- "uri": "/v1/bank_accounts/BA5BveXWeSilJaZGTX3P6g9x/verifications"
112
- },
113
- "response": "{\n \"_uris\": {}, \n \"additional\": null, \n \"category_code\": \"bank-account-no-account\", \n \"category_type\": \"logical\", \n \"description\": \"Bank account BA5BveXWeSilJaZGTX3P6g9x must be associated with a customer before it can be verified. Your request id is OHMb87831660e9e11e38a5a026ba7cd33d0.\", \n \"extras\": {}, \n \"request_id\": \"OHMb87831660e9e11e38a5a026ba7cd33d0\", \n \"status\": \"Conflict\", \n \"status_code\": 409\n}"
114
- },
93
+ "meta": {
94
+ "facebook.user_id": "0192837465",
95
+ "my-own-customer-id": "12345",
96
+ "twitter.id": "1234987650"
97
+ }
98
+ },
99
+ "uri": "/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy"
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-01-27T22:56:20.540530Z\", \n \"fingerprint\": \"5f0ba9fa3f1122ef13b944a40abfe44e7eba9e16934e64200913cb4c402ace14\", \n \"href\": \"/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy\", \n \"id\": \"BA1QFf0LmIxr8p41msqX46Oy\", \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-01-27T22:56:25.767386Z\"\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
+ },
103
+ "bank_account_verification_create": {
104
+ "request": {
105
+ "bank_account_uri": "/bank_accounts/BA1D3vL3LjasB0kewMqRGI0S",
106
+ "uri": "/bank_accounts/BA1D3vL3LjasB0kewMqRGI0S/verifications"
107
+ },
108
+ "response": "{\n \"bank_account_verifications\": [\n {\n \"attempts\": 0, \n \"attempts_remaining\": 3, \n \"created_at\": \"2014-01-27T22:56:10.726455Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ1FF2MHFH9upRu7C0QUwnby\", \n \"id\": \"BZ1FF2MHFH9upRu7C0QUwnby\", \n \"links\": {\n \"bank_account\": \"BA1D3vL3LjasB0kewMqRGI0S\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-27T22:56:12.545750Z\", \n \"verification_status\": \"pending\"\n }\n ], \n \"links\": {\n \"bank_account_verifications.bank_account\": \"/bank_accounts/{bank_account_verifications.bank_account}\"\n }\n}"
109
+ },
115
110
  "bank_account_verification_show": {
116
111
  "request": {
117
- "bank_account_uri": "/v1/bank_accounts/BA5Frg9td6vFAzSIwx9aShjW",
118
- "uri": "/v1/bank_accounts/BA5Frg9td6vFAzSIwx9aShjW/verifications/BZ5IyyZBbFCVWMaNzHwiq5bx"
119
- },
120
- "response": "{\n \"_type\": \"bank_account_authentication\", \n \"_uris\": {}, \n \"attempts\": 0, \n \"created_at\": \"2013-08-26T22:27:47.124483Z\", \n \"id\": \"BZ5IyyZBbFCVWMaNzHwiq5bx\", \n \"remaining_attempts\": 3, \n \"state\": \"pending\", \n \"updated_at\": \"2013-08-26T22:27:47.124490Z\", \n \"uri\": \"/v1/bank_accounts/BA5Frg9td6vFAzSIwx9aShjW/verifications/BZ5IyyZBbFCVWMaNzHwiq5bx\"\n}"
121
- },
112
+ "uri": "/verifications/BZ1FF2MHFH9upRu7C0QUwnby"
113
+ },
114
+ "response": "{\n \"bank_account_verifications\": [\n {\n \"attempts\": 0, \n \"attempts_remaining\": 3, \n \"created_at\": \"2014-01-27T22:56:10.726455Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ1FF2MHFH9upRu7C0QUwnby\", \n \"id\": \"BZ1FF2MHFH9upRu7C0QUwnby\", \n \"links\": {\n \"bank_account\": \"BA1D3vL3LjasB0kewMqRGI0S\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-27T22:56:12.545750Z\", \n \"verification_status\": \"pending\"\n }\n ], \n \"links\": {\n \"bank_account_verifications.bank_account\": \"/bank_accounts/{bank_account_verifications.bank_account}\"\n }\n}"
115
+ },
122
116
  "bank_account_verification_update": {
123
117
  "request": {
124
- "bank_account_uri": "/v1/bank_accounts/BA5LOM1tiKeY4HOVU9XqOpHi",
125
118
  "payload": {
126
- "amount_1": 1,
119
+ "amount_1": 1,
127
120
  "amount_2": 1
128
- },
129
- "uri": "/v1/bank_accounts/BA5LOM1tiKeY4HOVU9XqOpHi/verifications/BZ5OeVKxqc8c1ne4qZzi9LJl"
130
- },
131
- "response": "{\n \"_type\": \"bank_account_authentication\", \n \"_uris\": {}, \n \"attempts\": 1, \n \"created_at\": \"2013-08-26T22:27:52.177326Z\", \n \"id\": \"BZ5OeVKxqc8c1ne4qZzi9LJl\", \n \"remaining_attempts\": 2, \n \"state\": \"verified\", \n \"updated_at\": \"2013-08-26T22:27:53.362310Z\", \n \"uri\": \"/v1/bank_accounts/BA5LOM1tiKeY4HOVU9XqOpHi/verifications/BZ5OeVKxqc8c1ne4qZzi9LJl\"\n}"
132
- },
121
+ },
122
+ "uri": "/verifications/BZ1FF2MHFH9upRu7C0QUwnby"
123
+ },
124
+ "response": "{\n \"bank_account_verifications\": [\n {\n \"attempts\": 1, \n \"attempts_remaining\": 2, \n \"created_at\": \"2014-01-27T22:56:10.726455Z\", \n \"deposit_status\": \"succeeded\", \n \"href\": \"/verifications/BZ1FF2MHFH9upRu7C0QUwnby\", \n \"id\": \"BZ1FF2MHFH9upRu7C0QUwnby\", \n \"links\": {\n \"bank_account\": \"BA1D3vL3LjasB0kewMqRGI0S\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-27T22:56:18.631337Z\", \n \"verification_status\": \"succeeded\"\n }\n ], \n \"links\": {\n \"bank_account_verifications.bank_account\": \"/bank_accounts/{bank_account_verifications.bank_account}\"\n }\n}"
125
+ },
126
+ "callback_create": {
127
+ "request": {
128
+ "payload": {
129
+ "url": "http://www.example.com/callback"
130
+ },
131
+ "uri": "/callbacks"
132
+ },
133
+ "response": "{\n \"callbacks\": [\n {\n \"href\": \"/callbacks/CB224374R2NSyoYBpDV4r7C2\", \n \"id\": \"CB224374R2NSyoYBpDV4r7C2\", \n \"links\": {}, \n \"method\": \"post\", \n \"revision\": \"1.1\", \n \"url\": \"http://www.example.com/callback\"\n }\n ], \n \"links\": {}\n}"
134
+ },
135
+ "callback_delete": {
136
+ "request": {
137
+ "uri": "/callbacks/CB224374R2NSyoYBpDV4r7C2"
138
+ }
139
+ },
140
+ "callback_list": {
141
+ "request": {
142
+ "uri": "/callbacks"
143
+ },
144
+ "response": "{\n \"callbacks\": [\n {\n \"href\": \"/callbacks/CB224374R2NSyoYBpDV4r7C2\", \n \"id\": \"CB224374R2NSyoYBpDV4r7C2\", \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
+ "callback_show": {
147
+ "request": {
148
+ "uri": "/callbacks/CB224374R2NSyoYBpDV4r7C2"
149
+ },
150
+ "response": "{\n \"callbacks\": [\n {\n \"href\": \"/callbacks/CB224374R2NSyoYBpDV4r7C2\", \n \"id\": \"CB224374R2NSyoYBpDV4r7C2\", \n \"links\": {}, \n \"method\": \"post\", \n \"revision\": \"1.1\", \n \"url\": \"http://www.example.com/callback\"\n }\n ], \n \"links\": {}\n}"
151
+ },
152
+ "card": {
153
+ "address": {
154
+ "city": null,
155
+ "country_code": "USA",
156
+ "line1": null,
157
+ "line2": null,
158
+ "postal_code": "10023",
159
+ "state": null
160
+ },
161
+ "avs_postal_match": "yes",
162
+ "avs_result": "Postal code matches, but street address not verified.",
163
+ "avs_street_match": null,
164
+ "brand": "Visa",
165
+ "created_at": "2014-01-27T22:55:54.558589Z",
166
+ "cvv": null,
167
+ "cvv_match": null,
168
+ "cvv_result": null,
169
+ "expiration_month": 4,
170
+ "expiration_year": 2016,
171
+ "fingerprint": "979a26c05f2fb1c7ae38656312b176da2c9be1d938d442040bc79539caac6c0d",
172
+ "href": "/cards/CC1nrXVKmfh0ouOS7zxI6X8q",
173
+ "id": "CC1nrXVKmfh0ouOS7zxI6X8q",
174
+ "is_verified": true,
175
+ "links": {
176
+ "customer": "CU1iDnBalzHoZg47Np92rNrV"
177
+ },
178
+ "meta": {},
179
+ "name": "Benny Riemann",
180
+ "number": "xxxxxxxxxxxx1111",
181
+ "updated_at": "2014-01-27T22:55:54.558592Z"
182
+ },
183
+ "card_associate_to_customer": {
184
+ "request": {
185
+ "payload": {
186
+ "customer": "/customers/CU3eeasZ9yQ86uzzIYZkrPGg"
187
+ },
188
+ "uri": "/cards/CC3kqm84fxh50avenrUsSKbu"
189
+ },
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-01-27T22:57:42.092923Z\", \n \"cvv\": null, \n \"cvv_match\": null, \n \"cvv_result\": null, \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"fingerprint\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"href\": \"/cards/CC3kqm84fxh50avenrUsSKbu\", \n \"id\": \"CC3kqm84fxh50avenrUsSKbu\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": \"CU3eeasZ9yQ86uzzIYZkrPGg\"\n }, \n \"meta\": {}, \n \"name\": null, \n \"number\": \"xxxxxxxxxxxx5100\", \n \"updated_at\": \"2014-01-27T22:57:42.724392Z\"\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
+ },
133
192
  "card_create": {
134
193
  "request": {
135
194
  "payload": {
136
- "card_number": "5105105105105100",
137
- "expiration_month": "12",
138
- "expiration_year": "2020",
195
+ "expiration_month": "12",
196
+ "expiration_year": "2020",
197
+ "number": "5105105105105100",
139
198
  "security_code": "123"
140
- },
141
- "uri": "/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/cards"
142
- },
143
- "response": "{\n \"_type\": \"card\", \n \"_uris\": {}, \n \"account\": null, \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"country_code\": null, \n \"created_at\": \"2013-08-26T22:30:28.061829Z\", \n \"customer\": null, \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"id\": \"CCQv8XnGsBHF9afrEdc0um3\", \n \"is_valid\": true, \n \"is_verified\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": null, \n \"postal_code\": null, \n \"postal_code_check\": \"true\", \n \"security_code_check\": \"true\", \n \"street_address\": null, \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/cards/CCQv8XnGsBHF9afrEdc0um3\"\n}"
144
- },
199
+ },
200
+ "uri": "/cards"
201
+ },
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-01-27T22:57:42.092923Z\", \n \"cvv\": null, \n \"cvv_match\": null, \n \"cvv_result\": null, \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"fingerprint\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"href\": \"/cards/CC3kqm84fxh50avenrUsSKbu\", \n \"id\": \"CC3kqm84fxh50avenrUsSKbu\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": null\n }, \n \"meta\": {}, \n \"name\": null, \n \"number\": \"xxxxxxxxxxxx5100\", \n \"updated_at\": \"2014-01-27T22:57:42.092926Z\"\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
+ "card_debit": {
205
+ "request": {
206
+ "card_href": "/cards/CC3kqm84fxh50avenrUsSKbu",
207
+ "payload": {
208
+ "amount": 5000,
209
+ "appears_on_statement_as": "Statement text",
210
+ "description": "Some descriptive text for the debit in the dashboard"
211
+ },
212
+ "uri": "/cards/CC3kqm84fxh50avenrUsSKbu/debits"
213
+ },
214
+ "response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-01-27T22:58:07.291226Z\", \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/WD3MKNxNTKBGgA7mX50yogiu\", \n \"id\": \"WD3MKNxNTKBGgA7mX50yogiu\", \n \"links\": {\n \"customer\": \"CU3eeasZ9yQ86uzzIYZkrPGg\", \n \"dispute\": null, \n \"order\": null, \n \"source\": \"CC3kqm84fxh50avenrUsSKbu\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W180-465-2000\", \n \"updated_at\": \"2014-01-27T22:58:09.706862Z\"\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
+ },
145
216
  "card_delete": {
146
217
  "request": {
147
- "uri": "/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4SoZJ23TvXIUcUOBSTXYHQ/cards/CC4Y12fGIP0HQ1jhcDgE9cFi"
218
+ "uri": "/cards/CC2uc8iPDjgyxOXHVtnZloyI"
148
219
  }
149
- },
150
- "card_id": "CC4jIqe0l6vFzZv934bMgy6Q",
151
- "card_invalidate": {
220
+ },
221
+ "card_hold_capture": {
152
222
  "request": {
223
+ "card_hold_href": "/card_holds/HL2bT9uMRkTZkfSPmA2pBD9S",
224
+ "payload": {
225
+ "appears_on_statement_as": "ShowsUpOnStmt",
226
+ "description": "Some descriptive text for the debit in the dashboard"
227
+ },
228
+ "uri": "/card_holds/HL2bT9uMRkTZkfSPmA2pBD9S/debits"
229
+ },
230
+ "response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*ShowsUpOnStmt\", \n \"created_at\": \"2014-01-27T22:56:45.623268Z\", \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/WD2iSCukjXyeRdkvX3cW0PmC\", \n \"id\": \"WD2iSCukjXyeRdkvX3cW0PmC\", \n \"links\": {\n \"customer\": \"CU1f8Ygc4t0F2FKNcw235x9I\", \n \"dispute\": null, \n \"order\": null, \n \"source\": \"CC2abDOQVm5aNFhHpcRvWS02\"\n }, \n \"meta\": {\n \"holding.for\": \"user1\", \n \"meaningful.key\": \"some.value\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W744-719-1832\", \n \"updated_at\": \"2014-01-27T22:56:47.926021Z\"\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
+ "card_hold_create": {
233
+ "request": {
234
+ "card_href": "/cards/CC2abDOQVm5aNFhHpcRvWS02",
153
235
  "payload": {
154
- "is_valid": "false"
155
- },
156
- "uri": "/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/cards/CC5ZP031cwTSKE3pSIHNNMRi"
157
- },
158
- "response": "{\n \"_type\": \"card\", \n \"_uris\": {}, \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"last_four\": \"5100\", \n \"meta\": {\n \"facebook.user_id\": \"0192837465\", \n \"my-own-customer-id\": \"12345\", \n \"twitter.id\": \"1234987650\"\n }, \n \"name\": null\n}"
159
- },
236
+ "amount": 5000,
237
+ "description": "Some descriptive text for the debit in the dashboard"
238
+ },
239
+ "uri": "/cards/CC2abDOQVm5aNFhHpcRvWS02/card_holds"
240
+ },
241
+ "response": "{\n \"card_holds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-01-27T22:56:49.446376Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2014-02-03T22:56:50.793698Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL2ncCO5Bir2S0PCdsDHV3cG\", \n \"id\": \"HL2ncCO5Bir2S0PCdsDHV3cG\", \n \"links\": {\n \"card\": \"CC2abDOQVm5aNFhHpcRvWS02\", \n \"debit\": null\n }, \n \"meta\": {}, \n \"transaction_number\": \"HL102-313-8003\", \n \"updated_at\": \"2014-01-27T22:56:51.115729Z\"\n }\n ], \n \"links\": {\n \"card_holds.card\": \"/resources/{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
+ "card_hold_list": {
244
+ "request": {
245
+ "uri": "/card_holds"
246
+ },
247
+ "response": "{\n \"card_holds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-01-27T22:56:39.379941Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2014-02-03T22:56:39.876902Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL2bT9uMRkTZkfSPmA2pBD9S\", \n \"id\": \"HL2bT9uMRkTZkfSPmA2pBD9S\", \n \"links\": {\n \"card\": \"CC2abDOQVm5aNFhHpcRvWS02\", \n \"debit\": null\n }, \n \"meta\": {}, \n \"transaction_number\": \"HL500-842-5492\", \n \"updated_at\": \"2014-01-27T22:56:40.238140Z\"\n }, \n {\n \"amount\": 10000000, \n \"created_at\": \"2014-01-27T22:55:56.619097Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"expires_at\": \"2014-02-03T22:55:57.540880Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL1pMPzS1JEE4lMCBnKh32Oa\", \n \"id\": \"HL1pMPzS1JEE4lMCBnKh32Oa\", \n \"links\": {\n \"card\": \"CC1nrXVKmfh0ouOS7zxI6X8q\", \n \"debit\": \"WD1pU48nHJzorOySkTaQGQ9U\"\n }, \n \"meta\": {}, \n \"transaction_number\": \"HL464-208-0908\", \n \"updated_at\": \"2014-01-27T22:56:00.845902Z\"\n }\n ], \n \"links\": {\n \"card_holds.card\": \"/resources/{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
+ "card_hold_show": {
250
+ "request": {
251
+ "uri": "/card_holds/HL2bT9uMRkTZkfSPmA2pBD9S"
252
+ },
253
+ "response": "{\n \"card_holds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-01-27T22:56:39.379941Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2014-02-03T22:56:39.876902Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL2bT9uMRkTZkfSPmA2pBD9S\", \n \"id\": \"HL2bT9uMRkTZkfSPmA2pBD9S\", \n \"links\": {\n \"card\": \"CC2abDOQVm5aNFhHpcRvWS02\", \n \"debit\": null\n }, \n \"meta\": {}, \n \"transaction_number\": \"HL500-842-5492\", \n \"updated_at\": \"2014-01-27T22:56:40.238140Z\"\n }\n ], \n \"links\": {\n \"card_holds.card\": \"/resources/{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
+ "card_hold_update": {
256
+ "request": {
257
+ "payload": {
258
+ "description": "update this description",
259
+ "meta": {
260
+ "holding.for": "user1",
261
+ "meaningful.key": "some.value"
262
+ }
263
+ },
264
+ "uri": "/card_holds/HL2bT9uMRkTZkfSPmA2pBD9S"
265
+ },
266
+ "response": "{\n \"card_holds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-01-27T22:56:39.379941Z\", \n \"currency\": \"USD\", \n \"description\": \"update this description\", \n \"expires_at\": \"2014-02-03T22:56:39.876902Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL2bT9uMRkTZkfSPmA2pBD9S\", \n \"id\": \"HL2bT9uMRkTZkfSPmA2pBD9S\", \n \"links\": {\n \"card\": \"CC2abDOQVm5aNFhHpcRvWS02\", \n \"debit\": null\n }, \n \"meta\": {\n \"holding.for\": \"user1\", \n \"meaningful.key\": \"some.value\"\n }, \n \"transaction_number\": \"HL500-842-5492\", \n \"updated_at\": \"2014-01-27T22:56:44.255042Z\"\n }\n ], \n \"links\": {\n \"card_holds.card\": \"/resources/{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
+ "card_hold_void": {
269
+ "request": {
270
+ "payload": {
271
+ "is_void": "true"
272
+ },
273
+ "uri": "/card_holds/HL2ncCO5Bir2S0PCdsDHV3cG"
274
+ },
275
+ "response": "{\n \"card_holds\": [\n {\n \"amount\": 5000, \n \"created_at\": \"2014-01-27T22:56:49.446376Z\", \n \"currency\": \"USD\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2014-02-03T22:56:50.793698Z\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/card_holds/HL2ncCO5Bir2S0PCdsDHV3cG\", \n \"id\": \"HL2ncCO5Bir2S0PCdsDHV3cG\", \n \"links\": {\n \"card\": \"CC2abDOQVm5aNFhHpcRvWS02\", \n \"debit\": null\n }, \n \"meta\": {}, \n \"transaction_number\": \"HL102-313-8003\", \n \"updated_at\": \"2014-01-27T22:56:51.686616Z\"\n }\n ], \n \"links\": {\n \"card_holds.card\": \"/resources/{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
+ "card_id": "CC1nrXVKmfh0ouOS7zxI6X8q",
160
278
  "card_list": {
161
279
  "request": {
162
- "uri": "/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/cards"
163
- },
164
- "response": "{\n \"_type\": \"page\", \n \"_uris\": {\n \"first_uri\": {\n \"_type\": \"page\", \n \"key\": \"first\"\n }, \n \"last_uri\": {\n \"_type\": \"page\", \n \"key\": \"last\"\n }, \n \"next_uri\": {\n \"_type\": \"page\", \n \"key\": \"next\"\n }, \n \"previous_uri\": {\n \"_type\": \"page\", \n \"key\": \"previous\"\n }\n }, \n \"first_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/cards?limit=2&offset=0\", \n \"items\": [\n {\n \"_type\": \"card\", \n \"_uris\": {}, \n \"account\": null, \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"country_code\": null, \n \"created_at\": \"2013-08-26T22:28:02.476425Z\", \n \"customer\": null, \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"id\": \"CC5ZP031cwTSKE3pSIHNNMRi\", \n \"is_valid\": true, \n \"is_verified\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": null, \n \"postal_code\": null, \n \"postal_code_check\": \"true\", \n \"security_code_check\": \"true\", \n \"street_address\": null, \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/cards/CC5ZP031cwTSKE3pSIHNNMRi\"\n }, \n {\n \"_type\": \"card\", \n \"_uris\": {}, \n \"account\": {\n \"_type\": \"account\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4SoZJ23TvXIUcUOBSTXYHQ/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4SoZJ23TvXIUcUOBSTXYHQ/cards\", \n \"created_at\": \"2013-08-26T22:27:00.763762Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4SoZJ23TvXIUcUOBSTXYHQ/credits\", \n \"customer_uri\": \"/v1/customers/AC4SoZJ23TvXIUcUOBSTXYHQ\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4SoZJ23TvXIUcUOBSTXYHQ/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4SoZJ23TvXIUcUOBSTXYHQ/holds\", \n \"id\": \"AC4SoZJ23TvXIUcUOBSTXYHQ\", \n \"meta\": {}, \n \"name\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4SoZJ23TvXIUcUOBSTXYHQ/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4SoZJ23TvXIUcUOBSTXYHQ/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4SoZJ23TvXIUcUOBSTXYHQ/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4SoZJ23TvXIUcUOBSTXYHQ\"\n }, \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"country_code\": null, \n \"created_at\": \"2013-08-26T22:27:05.741478Z\", \n \"customer\": {\n \"_type\": \"customer\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"destination_uri\": {\n \"_type\": \"bank_account\", \n \"key\": \"destination\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"source_uri\": {\n \"_type\": \"card\", \n \"key\": \"source\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"address\": {}, \n \"bank_accounts_uri\": \"/v1/customers/AC4SoZJ23TvXIUcUOBSTXYHQ/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/AC4SoZJ23TvXIUcUOBSTXYHQ/cards\", \n \"created_at\": \"2013-08-26T22:27:00.763762Z\", \n \"credits_uri\": \"/v1/customers/AC4SoZJ23TvXIUcUOBSTXYHQ/credits\", \n \"debits_uri\": \"/v1/customers/AC4SoZJ23TvXIUcUOBSTXYHQ/debits\", \n \"destination_uri\": \"/v1/customers/AC4SoZJ23TvXIUcUOBSTXYHQ/bank_accounts/BA5hNwwQFEWByAcdf1U5D5ok\", \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/AC4SoZJ23TvXIUcUOBSTXYHQ/holds\", \n \"id\": \"AC4SoZJ23TvXIUcUOBSTXYHQ\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/AC4SoZJ23TvXIUcUOBSTXYHQ/refunds\", \n \"reversals_uri\": \"/v1/customers/AC4SoZJ23TvXIUcUOBSTXYHQ/reversals\", \n \"source_uri\": \"/v1/customers/AC4SoZJ23TvXIUcUOBSTXYHQ/cards/CC4Y12fGIP0HQ1jhcDgE9cFi\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/AC4SoZJ23TvXIUcUOBSTXYHQ/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/AC4SoZJ23TvXIUcUOBSTXYHQ\"\n }, \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"id\": \"CC4Y12fGIP0HQ1jhcDgE9cFi\", \n \"is_valid\": true, \n \"is_verified\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": null, \n \"postal_code\": null, \n \"postal_code_check\": \"true\", \n \"security_code_check\": \"true\", \n \"street_address\": null, \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4SoZJ23TvXIUcUOBSTXYHQ/cards/CC4Y12fGIP0HQ1jhcDgE9cFi\"\n }\n ], \n \"last_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/cards?limit=2&offset=2\", \n \"limit\": 2, \n \"next_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/cards?limit=2&offset=2\", \n \"offset\": 0, \n \"previous_uri\": null, \n \"total\": 4, \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/cards?limit=2&offset=0\"\n}"
165
- },
280
+ "uri": "/cards"
281
+ },
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-01-27T22:56:55.656375Z\", \n \"cvv\": null, \n \"cvv_match\": null, \n \"cvv_result\": null, \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"fingerprint\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"href\": \"/cards/CC2uc8iPDjgyxOXHVtnZloyI\", \n \"id\": \"CC2uc8iPDjgyxOXHVtnZloyI\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": null\n }, \n \"meta\": {}, \n \"name\": null, \n \"number\": \"xxxxxxxxxxxx5100\", \n \"updated_at\": \"2014-01-27T22:56:55.656379Z\"\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-01-27T22:56:37.869483Z\", \n \"cvv\": null, \n \"cvv_match\": null, \n \"cvv_result\": null, \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"fingerprint\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"href\": \"/cards/CC2abDOQVm5aNFhHpcRvWS02\", \n \"id\": \"CC2abDOQVm5aNFhHpcRvWS02\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": \"CU1f8Ygc4t0F2FKNcw235x9I\"\n }, \n \"meta\": {}, \n \"name\": null, \n \"number\": \"xxxxxxxxxxxx5100\", \n \"updated_at\": \"2014-01-27T22:56:39.354525Z\"\n }, \n {\n \"address\": {\n \"city\": null, \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\": null, \n \"brand\": \"Visa\", \n \"created_at\": \"2014-01-27T22:55:54.558589Z\", \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/CC1nrXVKmfh0ouOS7zxI6X8q\", \n \"id\": \"CC1nrXVKmfh0ouOS7zxI6X8q\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": \"CU1iDnBalzHoZg47Np92rNrV\"\n }, \n \"meta\": {}, \n \"name\": \"Benny Riemann\", \n \"number\": \"xxxxxxxxxxxx1111\", \n \"updated_at\": \"2014-01-27T22:55:54.558592Z\"\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
+ },
166
284
  "card_show": {
167
285
  "request": {
168
- "uri": "/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/cards/CC5ZP031cwTSKE3pSIHNNMRi"
169
- },
170
- "response": "{\n \"_type\": \"card\", \n \"_uris\": {}, \n \"account\": null, \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"country_code\": null, \n \"created_at\": \"2013-08-26T22:28:02.476425Z\", \n \"customer\": null, \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"id\": \"CC5ZP031cwTSKE3pSIHNNMRi\", \n \"is_valid\": true, \n \"is_verified\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": null, \n \"postal_code\": null, \n \"postal_code_check\": \"true\", \n \"security_code_check\": \"true\", \n \"street_address\": null, \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/cards/CC5ZP031cwTSKE3pSIHNNMRi\"\n}"
171
- },
286
+ "uri": "/cards/CC2uc8iPDjgyxOXHVtnZloyI"
287
+ },
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-01-27T22:56:55.656375Z\", \n \"cvv\": null, \n \"cvv_match\": null, \n \"cvv_result\": null, \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"fingerprint\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"href\": \"/cards/CC2uc8iPDjgyxOXHVtnZloyI\", \n \"id\": \"CC2uc8iPDjgyxOXHVtnZloyI\", \n \"is_verified\": true, \n \"links\": {\n \"customer\": null\n }, \n \"meta\": {}, \n \"name\": null, \n \"number\": \"xxxxxxxxxxxx5100\", \n \"updated_at\": \"2014-01-27T22:56:55.656379Z\"\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
+ },
172
290
  "card_update": {
173
291
  "request": {
174
292
  "payload": {
175
293
  "meta": {
176
- "facebook.user_id": "0192837465",
177
- "my-own-customer-id": "12345",
294
+ "facebook.user_id": "0192837465",
295
+ "my-own-customer-id": "12345",
178
296
  "twitter.id": "1234987650"
179
297
  }
180
- },
181
- "uri": "/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/cards/CC5ZP031cwTSKE3pSIHNNMRi"
182
- },
183
- "response": "{\n \"_type\": \"card\", \n \"_uris\": {}, \n \"account\": null, \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"country_code\": null, \n \"created_at\": \"2013-08-26T22:28:02.476425Z\", \n \"customer\": null, \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"id\": \"CC5ZP031cwTSKE3pSIHNNMRi\", \n \"is_valid\": true, \n \"is_verified\": true, \n \"last_four\": \"5100\", \n \"meta\": {\n \"facebook.user_id\": \"0192837465\", \n \"my-own-customer-id\": \"12345\", \n \"twitter.id\": \"1234987650\"\n }, \n \"name\": null, \n \"postal_code\": null, \n \"postal_code_check\": \"true\", \n \"security_code_check\": \"true\", \n \"street_address\": null, \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/cards/CC5ZP031cwTSKE3pSIHNNMRi\"\n}"
184
- },
185
- "card_uri": "/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/cards/CC4jIqe0l6vFzZv934bMgy6Q",
186
- "credit_bank_account_list": {
187
- "request": {
188
- "id": "BA5S3reJdyJBbAYKepbneBe2",
189
- "uri": "/v1/bank_accounts/BA5S3reJdyJBbAYKepbneBe2"
190
- },
191
- "response": "{\n \"_type\": \"page\", \n \"_uris\": {\n \"first_uri\": {\n \"_type\": \"page\", \n \"key\": \"first\"\n }, \n \"last_uri\": {\n \"_type\": \"page\", \n \"key\": \"last\"\n }, \n \"next_uri\": {\n \"_type\": \"page\", \n \"key\": \"next\"\n }, \n \"previous_uri\": {\n \"_type\": \"page\", \n \"key\": \"previous\"\n }\n }, \n \"first_uri\": \"/v1/bank_accounts/BA5S3reJdyJBbAYKepbneBe2/credits?limit=2&offset=0\", \n \"items\": [\n {\n \"_type\": \"credit\", \n \"_uris\": {\n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }\n }, \n \"amount\": 10000, \n \"appears_on_statement_as\": \"example.com\", \n \"bank_account\": {\n \"_type\": \"bank_account\", \n \"_uris\": {\n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"verifications_uri\": {\n \"_type\": \"page\", \n \"key\": \"verifications\"\n }\n }, \n \"account_number\": \"xxxxxx0001\", \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_debit\": false, \n \"created_at\": \"2013-08-26T22:27:55.567873Z\", \n \"credits_uri\": \"/v1/bank_accounts/BA5S3reJdyJBbAYKepbneBe2/credits\", \n \"customer_uri\": null, \n \"debits_uri\": \"/v1/bank_accounts/BA5S3reJdyJBbAYKepbneBe2/debits\", \n \"fingerprint\": \"1eH719hwbYRpEILVKyboPs_pn\", \n \"id\": \"BA5S3reJdyJBbAYKepbneBe2\", \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"type\": \"checking\", \n \"uri\": \"/v1/bank_accounts/BA5S3reJdyJBbAYKepbneBe2\", \n \"verification_uri\": null, \n \"verifications_uri\": \"/v1/bank_accounts/BA5S3reJdyJBbAYKepbneBe2/verifications\"\n }, \n \"created_at\": \"2013-08-26T22:28:24.028243Z\", \n \"description\": null, \n \"id\": \"CR6o1ELy2X93DO7IiWKoqjxw\", \n \"meta\": {}, \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/credits/CR6o1ELy2X93DO7IiWKoqjxw/reversals\", \n \"status\": \"pending\", \n \"uri\": \"/v1/credits/CR6o1ELy2X93DO7IiWKoqjxw\"\n }\n ], \n \"last_uri\": \"/v1/bank_accounts/BA5S3reJdyJBbAYKepbneBe2/credits?limit=2&offset=0\", \n \"limit\": 2, \n \"next_uri\": null, \n \"offset\": 0, \n \"previous_uri\": null, \n \"total\": 1, \n \"uri\": \"/v1/bank_accounts/BA5S3reJdyJBbAYKepbneBe2/credits?limit=2&offset=0\"\n}"
192
- },
193
- "credit_create_existing_bank_account": {
194
- "request": {
195
- "id": "BA5S3reJdyJBbAYKepbneBe2",
196
- "payload": {
197
- "amount": 10000
198
- },
199
- "uri": "/v1/bank_accounts/BA5S3reJdyJBbAYKepbneBe2"
200
- },
201
- "response": "{\n \"_type\": \"credit\", \n \"_uris\": {\n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }\n }, \n \"amount\": 10000, \n \"appears_on_statement_as\": \"example.com\", \n \"bank_account\": {\n \"_type\": \"bank_account\", \n \"_uris\": {\n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"verifications_uri\": {\n \"_type\": \"page\", \n \"key\": \"verifications\"\n }\n }, \n \"account_number\": \"xxxxxx0001\", \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_debit\": false, \n \"created_at\": \"2013-08-26T22:27:55.567873Z\", \n \"credits_uri\": \"/v1/bank_accounts/BA5S3reJdyJBbAYKepbneBe2/credits\", \n \"customer_uri\": null, \n \"debits_uri\": \"/v1/bank_accounts/BA5S3reJdyJBbAYKepbneBe2/debits\", \n \"fingerprint\": \"1eH719hwbYRpEILVKyboPs_pn\", \n \"id\": \"BA5S3reJdyJBbAYKepbneBe2\", \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"type\": \"checking\", \n \"uri\": \"/v1/bank_accounts/BA5S3reJdyJBbAYKepbneBe2\", \n \"verification_uri\": null, \n \"verifications_uri\": \"/v1/bank_accounts/BA5S3reJdyJBbAYKepbneBe2/verifications\"\n }, \n \"created_at\": \"2013-08-26T22:28:24.028243Z\", \n \"description\": null, \n \"id\": \"CR6o1ELy2X93DO7IiWKoqjxw\", \n \"meta\": {}, \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/credits/CR6o1ELy2X93DO7IiWKoqjxw/reversals\", \n \"status\": \"pending\", \n \"uri\": \"/v1/credits/CR6o1ELy2X93DO7IiWKoqjxw\"\n}"
202
- },
203
- "credit_create_new_bank_account": {
204
- "request": {
205
- "amount": 10000,
206
- "bank_account": {
207
- "account_number": "9900000001",
208
- "name": "Johann Bernoulli",
209
- "routing_number": "121000358",
210
- "type": "checking"
211
- }
212
- },
213
- "response": "{\n \"_type\": \"credit\", \n \"_uris\": {\n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }\n }, \n \"amount\": 10000, \n \"appears_on_statement_as\": \"example.com\", \n \"bank_account\": {\n \"_type\": \"bank_account\", \n \"_uris\": {}, \n \"account_number\": \"xxxxxx0001\", \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_debit\": false, \n \"fingerprint\": \"1eH719hwbYRpEILVKyboPs_pn\", \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"type\": \"checking\"\n }, \n \"created_at\": \"2013-08-26T22:28:21.913214Z\", \n \"description\": null, \n \"id\": \"CR6lEmXFHCW9aNOoLQk9XjfG\", \n \"meta\": {}, \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/credits/CR6lEmXFHCW9aNOoLQk9XjfG/reversals\", \n \"status\": \"pending\", \n \"uri\": \"/v1/credits/CR6lEmXFHCW9aNOoLQk9XjfG\"\n}"
214
- },
215
- "credit_customer_list": {
216
- "request": {
217
- "account_uri": "/v1/customers/AC6xddA9naLGxrOBkAig9b4a",
218
- "payload": {
219
- "amount": 100
220
- },
221
- "uri": "/v1/customers/AC6xddA9naLGxrOBkAig9b4a/credits"
222
- },
223
- "response": "{\n \"_type\": \"page\", \n \"_uris\": {\n \"first_uri\": {\n \"_type\": \"page\", \n \"key\": \"first\"\n }, \n \"last_uri\": {\n \"_type\": \"page\", \n \"key\": \"last\"\n }, \n \"next_uri\": {\n \"_type\": \"page\", \n \"key\": \"next\"\n }, \n \"previous_uri\": {\n \"_type\": \"page\", \n \"key\": \"previous\"\n }\n }, \n \"first_uri\": \"/v1/customers/AC6xddA9naLGxrOBkAig9b4a/credits?limit=2&offset=0\", \n \"items\": [], \n \"last_uri\": \"/v1/customers/AC6xddA9naLGxrOBkAig9b4a/credits?limit=2&offset=0\", \n \"limit\": 2, \n \"next_uri\": null, \n \"offset\": 0, \n \"previous_uri\": null, \n \"total\": 0, \n \"uri\": \"/v1/customers/AC6xddA9naLGxrOBkAig9b4a/credits?limit=2&offset=0\"\n}"
224
- },
298
+ },
299
+ "uri": "/cards/CC2uc8iPDjgyxOXHVtnZloyI"
300
+ },
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-01-27T22:56:55.656375Z\", \n \"cvv\": null, \n \"cvv_match\": null, \n \"cvv_result\": null, \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"fingerprint\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"href\": \"/cards/CC2uc8iPDjgyxOXHVtnZloyI\", \n \"id\": \"CC2uc8iPDjgyxOXHVtnZloyI\", \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-01-27T22:57:02.195769Z\"\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
+ "card_uri": "/cards/CC1nrXVKmfh0ouOS7zxI6X8q",
304
+ "cards_uri": "/customers/CU1iDnBalzHoZg47Np92rNrV/cards",
225
305
  "credit_list": {
226
- "request": {},
227
- "response": "{\n \"_type\": \"page\", \n \"_uris\": {\n \"first_uri\": {\n \"_type\": \"page\", \n \"key\": \"first\"\n }, \n \"last_uri\": {\n \"_type\": \"page\", \n \"key\": \"last\"\n }, \n \"next_uri\": {\n \"_type\": \"page\", \n \"key\": \"next\"\n }, \n \"previous_uri\": {\n \"_type\": \"page\", \n \"key\": \"previous\"\n }\n }, \n \"first_uri\": \"/v1/credits?limit=10&offset=0\", \n \"items\": [\n {\n \"_type\": \"credit\", \n \"_uris\": {\n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }\n }, \n \"amount\": 10000, \n \"appears_on_statement_as\": \"example.com\", \n \"bank_account\": {\n \"_type\": \"bank_account\", \n \"_uris\": {\n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"verifications_uri\": {\n \"_type\": \"page\", \n \"key\": \"verifications\"\n }\n }, \n \"account_number\": \"xxxxxx0001\", \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_debit\": false, \n \"created_at\": \"2013-08-26T22:27:55.567873Z\", \n \"credits_uri\": \"/v1/bank_accounts/BA5S3reJdyJBbAYKepbneBe2/credits\", \n \"customer_uri\": null, \n \"debits_uri\": \"/v1/bank_accounts/BA5S3reJdyJBbAYKepbneBe2/debits\", \n \"fingerprint\": \"1eH719hwbYRpEILVKyboPs_pn\", \n \"id\": \"BA5S3reJdyJBbAYKepbneBe2\", \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"type\": \"checking\", \n \"uri\": \"/v1/bank_accounts/BA5S3reJdyJBbAYKepbneBe2\", \n \"verification_uri\": null, \n \"verifications_uri\": \"/v1/bank_accounts/BA5S3reJdyJBbAYKepbneBe2/verifications\"\n }, \n \"created_at\": \"2013-08-26T22:28:24.028243Z\", \n \"description\": null, \n \"id\": \"CR6o1ELy2X93DO7IiWKoqjxw\", \n \"meta\": {}, \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/credits/CR6o1ELy2X93DO7IiWKoqjxw/reversals\", \n \"status\": \"pending\", \n \"uri\": \"/v1/credits/CR6o1ELy2X93DO7IiWKoqjxw\"\n }, \n {\n \"_type\": \"credit\", \n \"_uris\": {\n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }\n }, \n \"amount\": 10000, \n \"appears_on_statement_as\": \"example.com\", \n \"bank_account\": {\n \"_type\": \"bank_account\", \n \"_uris\": {}, \n \"account_number\": \"xxxxxx0001\", \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_debit\": false, \n \"fingerprint\": \"1eH719hwbYRpEILVKyboPs_pn\", \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"type\": \"checking\"\n }, \n \"created_at\": \"2013-08-26T22:28:21.913214Z\", \n \"description\": null, \n \"id\": \"CR6lEmXFHCW9aNOoLQk9XjfG\", \n \"meta\": {}, \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/credits/CR6lEmXFHCW9aNOoLQk9XjfG/reversals\", \n \"status\": \"pending\", \n \"uri\": \"/v1/credits/CR6lEmXFHCW9aNOoLQk9XjfG\"\n }\n ], \n \"last_uri\": \"/v1/credits?limit=10&offset=0\", \n \"limit\": 10, \n \"next_uri\": null, \n \"offset\": 0, \n \"previous_uri\": null, \n \"total\": 2, \n \"uri\": \"/v1/credits?limit=10&offset=0\"\n}"
228
- },
229
- "credit_show": {
230
306
  "request": {
231
- "id": "CR6lEmXFHCW9aNOoLQk9XjfG",
232
- "uri": "/v1/credits/CR6lEmXFHCW9aNOoLQk9XjfG"
233
- },
234
- "response": "{\n \"_type\": \"credit\", \n \"_uris\": {\n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }\n }, \n \"amount\": 10000, \n \"appears_on_statement_as\": \"example.com\", \n \"bank_account\": {\n \"_type\": \"bank_account\", \n \"_uris\": {}, \n \"account_number\": \"xxxxxx0001\", \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_debit\": false, \n \"fingerprint\": \"1eH719hwbYRpEILVKyboPs_pn\", \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"type\": \"checking\"\n }, \n \"created_at\": \"2013-08-26T22:28:21.913214Z\", \n \"description\": null, \n \"id\": \"CR6lEmXFHCW9aNOoLQk9XjfG\", \n \"meta\": {}, \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/credits/CR6lEmXFHCW9aNOoLQk9XjfG/reversals\", \n \"status\": \"pending\", \n \"uri\": \"/v1/credits/CR6lEmXFHCW9aNOoLQk9XjfG\"\n}"
235
- },
236
- "customer_add_bank_account": {
307
+ "uri": "/credits"
308
+ },
309
+ "response": "{\n \"credits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"example.com\", \n \"created_at\": \"2014-01-27T22:57:19.073817Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/credits/CR2UtQgq6L3FPd1YoOc8eyOC\", \n \"id\": \"CR2UtQgq6L3FPd1YoOc8eyOC\", \n \"links\": {\n \"customer\": \"CU2N5goX8AQJE0CCPeapHUsM\", \n \"destination\": \"BA2QAksIxlLt60lqKc1wwgJy\", \n \"order\": null\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"CR408-633-3169\", \n \"updated_at\": \"2014-01-27T22:57:20.208794Z\"\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
+ "credit_list_bank_account": {
312
+ "request": {
313
+ "bank_account_href": "/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy",
314
+ "uri": "/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy/credits"
315
+ },
316
+ "response": "{\n \"links\": {}, \n \"meta\": {\n \"first\": \"/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy/credits?limit=10&offset=0\", \n \"href\": \"/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy/credits?limit=10&offset=0\", \n \"last\": \"/bank_accounts/BA1QFf0LmIxr8p41msqX46Oy/credits?limit=10&offset=0\", \n \"limit\": 10, \n \"next\": null, \n \"offset\": 0, \n \"previous\": null, \n \"total\": 0\n }\n}"
317
+ },
318
+ "credit_show": {
237
319
  "request": {
238
- "payload": {
239
- "bank_account_uri": "/v1/bank_accounts/BA6V90Tau7B5YTGPFjC0PlzA"
240
- },
241
- "uri": "/v1/customers/AC6TepGAIZ5HUdhfTZKOoUhh"
242
- },
243
- "response": "{\n \"_type\": \"customer\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"destination_uri\": {\n \"_type\": \"bank_account\", \n \"key\": \"destination\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"address\": {}, \n \"bank_accounts_uri\": \"/v1/customers/AC6TepGAIZ5HUdhfTZKOoUhh/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/AC6TepGAIZ5HUdhfTZKOoUhh/cards\", \n \"created_at\": \"2013-08-26T22:28:51.740313Z\", \n \"credits_uri\": \"/v1/customers/AC6TepGAIZ5HUdhfTZKOoUhh/credits\", \n \"debits_uri\": \"/v1/customers/AC6TepGAIZ5HUdhfTZKOoUhh/debits\", \n \"destination_uri\": \"/v1/customers/AC6TepGAIZ5HUdhfTZKOoUhh/bank_accounts/BA6V90Tau7B5YTGPFjC0PlzA\", \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/AC6TepGAIZ5HUdhfTZKOoUhh/holds\", \n \"id\": \"AC6TepGAIZ5HUdhfTZKOoUhh\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/AC6TepGAIZ5HUdhfTZKOoUhh/refunds\", \n \"reversals_uri\": \"/v1/customers/AC6TepGAIZ5HUdhfTZKOoUhh/reversals\", \n \"source_uri\": null, \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/AC6TepGAIZ5HUdhfTZKOoUhh/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/AC6TepGAIZ5HUdhfTZKOoUhh\"\n}"
244
- },
245
- "customer_add_card": {
320
+ "uri": "/credits/CR2UtQgq6L3FPd1YoOc8eyOC"
321
+ },
322
+ "response": "{\n \"credits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"example.com\", \n \"created_at\": \"2014-01-27T22:57:19.073817Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/credits/CR2UtQgq6L3FPd1YoOc8eyOC\", \n \"id\": \"CR2UtQgq6L3FPd1YoOc8eyOC\", \n \"links\": {\n \"customer\": \"CU2N5goX8AQJE0CCPeapHUsM\", \n \"destination\": \"BA2QAksIxlLt60lqKc1wwgJy\", \n \"order\": null\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"CR408-633-3169\", \n \"updated_at\": \"2014-01-27T22:57:20.208794Z\"\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
+ "credit_update": {
246
325
  "request": {
247
326
  "payload": {
248
- "card_uri": "/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/cards/CCQv8XnGsBHF9afrEdc0um3"
249
- },
250
- "uri": "/v1/customers/ACO702cHD2tPiOCRSKYzVf1"
251
- },
252
- "response": "{\n \"_type\": \"customer\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"source_uri\": {\n \"_type\": \"card\", \n \"key\": \"source\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"address\": {}, \n \"bank_accounts_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/cards\", \n \"created_at\": \"2013-08-26T22:30:25.937376Z\", \n \"credits_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/credits\", \n \"debits_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/holds\", \n \"id\": \"ACO702cHD2tPiOCRSKYzVf1\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/refunds\", \n \"reversals_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/reversals\", \n \"source_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/cards/CCQv8XnGsBHF9afrEdc0um3\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1\"\n}"
253
- },
327
+ "description": "New description for credit",
328
+ "meta": {
329
+ "anykey": "valuegoeshere",
330
+ "facebook.id": "1234567890"
331
+ }
332
+ },
333
+ "uri": "/credits/CR2UtQgq6L3FPd1YoOc8eyOC"
334
+ },
335
+ "response": "{\n \"credits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"example.com\", \n \"created_at\": \"2014-01-27T22:57:19.073817Z\", \n \"currency\": \"USD\", \n \"description\": \"New description for credit\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/credits/CR2UtQgq6L3FPd1YoOc8eyOC\", \n \"id\": \"CR2UtQgq6L3FPd1YoOc8eyOC\", \n \"links\": {\n \"customer\": \"CU2N5goX8AQJE0CCPeapHUsM\", \n \"destination\": \"BA2QAksIxlLt60lqKc1wwgJy\", \n \"order\": null\n }, \n \"meta\": {\n \"anykey\": \"valuegoeshere\", \n \"facebook.id\": \"1234567890\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"CR408-633-3169\", \n \"updated_at\": \"2014-01-27T22:57:25.832930Z\"\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
+ "customer": {
338
+ "address": {
339
+ "city": null,
340
+ "country_code": null,
341
+ "line1": null,
342
+ "line2": null,
343
+ "postal_code": null,
344
+ "state": null
345
+ },
346
+ "business_name": null,
347
+ "created_at": "2014-01-27T22:55:50.253066Z",
348
+ "dob_month": null,
349
+ "dob_year": null,
350
+ "ein": null,
351
+ "email": null,
352
+ "href": "/customers/CU1iDnBalzHoZg47Np92rNrV",
353
+ "id": "CU1iDnBalzHoZg47Np92rNrV",
354
+ "links": {
355
+ "destination": null,
356
+ "source": null
357
+ },
358
+ "merchant_status": "no-match",
359
+ "meta": {},
360
+ "name": null,
361
+ "phone": null,
362
+ "ssn_last4": null,
363
+ "updated_at": "2014-01-27T22:55:50.767858Z"
364
+ },
254
365
  "customer_create": {
255
366
  "request": {
256
- "uri": "/v1/customers"
257
- },
258
- "response": "{\n \"_type\": \"customer\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"address\": {}, \n \"bank_accounts_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/cards\", \n \"created_at\": \"2013-08-26T22:30:25.937376Z\", \n \"credits_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/credits\", \n \"debits_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/holds\", \n \"id\": \"ACO702cHD2tPiOCRSKYzVf1\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/refunds\", \n \"reversals_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/reversals\", \n \"source_uri\": null, \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1\"\n}"
259
- },
260
- "customer_create_debit": {
261
- "request": {
262
- "customer_uri": "/v1/customers/AC73sGhakFEQQFbLDX6WSq9y",
263
367
  "payload": {
264
- "amount": 5000,
265
- "appears_on_statement_as": "Statement text",
266
- "description": "Some descriptive text for the debit in the dashboard"
267
- },
268
- "uri": "/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/debits"
269
- },
270
- "response": "{\n \"_type\": \"debit\", \n \"_uris\": {\n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }\n }, \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"available_at\": \"2013-08-26T22:29:20.876140Z\", \n \"created_at\": \"2013-08-26T22:29:20.234742Z\", \n \"customer\": {\n \"_type\": \"customer\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"source_uri\": {\n \"_type\": \"card\", \n \"key\": \"source\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"address\": {}, \n \"bank_accounts_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/cards\", \n \"created_at\": \"2013-08-26T22:29:00.832477Z\", \n \"credits_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/credits\", \n \"debits_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/holds\", \n \"id\": \"AC73sGhakFEQQFbLDX6WSq9y\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/refunds\", \n \"reversals_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/reversals\", \n \"source_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/cards/CC76wxKkWO9RoCf8lX8oI9Cy\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y\"\n }, \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"fee\": null, \n \"hold\": {\n \"_type\": \"hold\", \n \"_uris\": {\n \"debit_uri\": {\n \"_type\": \"debit\", \n \"key\": \"debit\"\n }, \n \"source_uri\": {\n \"_type\": \"card\", \n \"key\": \"source\"\n }\n }, \n \"amount\": 5000, \n \"created_at\": \"2013-08-26T22:29:20.257997Z\", \n \"customer_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y\", \n \"debit_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/debits/WD7pham6kYGqj2RgJDKKuejJ\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2013-09-02T22:29:18.998863Z\", \n \"fee\": null, \n \"id\": \"HL7piYDaLspl6Vb839KbdnQP\", \n \"is_void\": false, \n \"meta\": {}, \n \"source_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/cards/CC76wxKkWO9RoCf8lX8oI9Cy\", \n \"transaction_number\": \"HL272-913-9906\", \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/holds/HL7piYDaLspl6Vb839KbdnQP\"\n }, \n \"id\": \"WD7pham6kYGqj2RgJDKKuejJ\", \n \"meta\": {}, \n \"on_behalf_of\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/debits/WD7pham6kYGqj2RgJDKKuejJ/refunds\", \n \"source\": {\n \"_type\": \"card\", \n \"_uris\": {}, \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"country_code\": null, \n \"created_at\": \"2013-08-26T22:29:03.557075Z\", \n \"customer_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"id\": \"CC76wxKkWO9RoCf8lX8oI9Cy\", \n \"is_valid\": true, \n \"is_verified\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": null, \n \"postal_code\": null, \n \"postal_code_check\": \"true\", \n \"security_code_check\": \"true\", \n \"street_address\": null, \n \"uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/cards/CC76wxKkWO9RoCf8lX8oI9Cy\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W732-249-7555\", \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/debits/WD7pham6kYGqj2RgJDKKuejJ\"\n}"
271
- },
272
- "customer_credit": {
273
- "request": {
274
- "customer_uri": "/v1/customers/AC6xddA9naLGxrOBkAig9b4a",
275
- "payload": {
276
- "amount": 100
277
- },
278
- "uri": "/v1/customers/AC6xddA9naLGxrOBkAig9b4a/credits"
279
- },
280
- "response": "{\n \"_uris\": {}, \n \"additional\": null, \n \"category_code\": \"no-funding-destination\", \n \"category_type\": \"logical\", \n \"description\": \"Account AC6xddA9naLGxrOBkAig9b4a has no funding destination. Your request id is OHMd76856960e9e11e38fbd026ba7cd33d0.\", \n \"extras\": {}, \n \"request_id\": \"OHMd76856960e9e11e38fbd026ba7cd33d0\", \n \"status\": \"Conflict\", \n \"status_code\": 409\n}"
281
- },
368
+ "address": {
369
+ "postal_code": "48120"
370
+ },
371
+ "dob_month": 7,
372
+ "dob_year": 1963,
373
+ "name": "Henry Ford"
374
+ },
375
+ "uri": "/customers"
376
+ },
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-01-27T22:57:36.586782Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU3eeasZ9yQ86uzzIYZkrPGg\", \n \"id\": \"CU3eeasZ9yQ86uzzIYZkrPGg\", \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-01-27T22:57:37.740442Z\"\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}"
378
+ },
282
379
  "customer_delete": {
283
380
  "request": {
284
- "uri": "/v1/customers/AC6YytlZWy1ECh6PGUXxqeFy"
381
+ "uri": "/customers/CU3eeasZ9yQ86uzzIYZkrPGg"
285
382
  }
286
- },
287
- "debit_create": {
383
+ },
384
+ "customer_list": {
385
+ "request": {
386
+ "uri": "/customers"
387
+ },
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-01-27T22:57:27.459187Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU33Y4cut21qu1d1lGYDBseQ\", \n \"id\": \"CU33Y4cut21qu1d1lGYDBseQ\", \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-01-27T22:57:29.488272Z\"\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-01-27T22:57:12.447565Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU2N5goX8AQJE0CCPeapHUsM\", \n \"id\": \"CU2N5goX8AQJE0CCPeapHUsM\", \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-01-27T22:57:13.581358Z\"\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-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 \"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-01-27T22:55:47.156306Z\", \n \"dob_month\": 2, \n \"dob_year\": 1947, \n \"ein\": null, \n \"email\": \"whc@example.org\", \n \"href\": \"/customers/CU1f8Ygc4t0F2FKNcw235x9I\", \n \"id\": \"CU1f8Ygc4t0F2FKNcw235x9I\", \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-01-27T22:55:47.781694Z\"\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 \"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
+ "customer_show": {
391
+ "request": {
392
+ "uri": "/customers/CU33Y4cut21qu1d1lGYDBseQ"
393
+ },
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-01-27T22:57:27.459187Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": null, \n \"href\": \"/customers/CU33Y4cut21qu1d1lGYDBseQ\", \n \"id\": \"CU33Y4cut21qu1d1lGYDBseQ\", \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-01-27T22:57:29.488272Z\"\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}"
395
+ },
396
+ "customer_update": {
288
397
  "request": {
289
- "customer_uri": "/v1/customers/ACO702cHD2tPiOCRSKYzVf1",
290
- "debits_uri": "/v1/customers/ACO702cHD2tPiOCRSKYzVf1/debits",
291
398
  "payload": {
292
- "amount": 5000,
293
- "appears_on_statement_as": "Statement text",
294
- "description": "Some descriptive text for the debit in the dashboard"
399
+ "email": "email@newdomain.com",
400
+ "meta": {
401
+ "shipping-preference": "ground"
402
+ }
403
+ },
404
+ "uri": "/customers/CU33Y4cut21qu1d1lGYDBseQ"
405
+ },
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-01-27T22:57:27.459187Z\", \n \"dob_month\": 7, \n \"dob_year\": 1963, \n \"ein\": null, \n \"email\": \"email@newdomain.com\", \n \"href\": \"/customers/CU33Y4cut21qu1d1lGYDBseQ\", \n \"id\": \"CU33Y4cut21qu1d1lGYDBseQ\", \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-01-27T22:57:34.512310Z\"\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}"
407
+ },
408
+ "customers_uri": "/customers",
409
+ "debit": {
410
+ "debits": [
411
+ {
412
+ "amount": 10000000,
413
+ "appears_on_statement_as": "BAL*example.com",
414
+ "created_at": "2014-01-27T22:55:56.757487Z",
415
+ "currency": "USD",
416
+ "description": null,
417
+ "failure_reason": null,
418
+ "failure_reason_code": null,
419
+ "href": "/debits/WD1pU48nHJzorOySkTaQGQ9U",
420
+ "id": "WD1pU48nHJzorOySkTaQGQ9U",
421
+ "links": {
422
+ "customer": "CU1iDnBalzHoZg47Np92rNrV",
423
+ "dispute": null,
424
+ "order": null,
425
+ "source": "CC1nrXVKmfh0ouOS7zxI6X8q"
426
+ },
427
+ "meta": {},
428
+ "status": "succeeded",
429
+ "transaction_number": "W511-688-4504",
430
+ "updated_at": "2014-01-27T22:56:00.833870Z"
295
431
  }
296
- },
297
- "response": "{\n \"_type\": \"debit\", \n \"_uris\": {\n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }\n }, \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"available_at\": \"2013-08-26T22:30:46.793463Z\", \n \"created_at\": \"2013-08-26T22:30:46.269164Z\", \n \"customer\": {\n \"_type\": \"customer\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"source_uri\": {\n \"_type\": \"card\", \n \"key\": \"source\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"address\": {}, \n \"bank_accounts_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/cards\", \n \"created_at\": \"2013-08-26T22:30:25.937376Z\", \n \"credits_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/credits\", \n \"debits_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/holds\", \n \"id\": \"ACO702cHD2tPiOCRSKYzVf1\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/refunds\", \n \"reversals_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/reversals\", \n \"source_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/cards/CCQv8XnGsBHF9afrEdc0um3\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1\"\n }, \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"fee\": null, \n \"hold\": {\n \"_type\": \"hold\", \n \"_uris\": {\n \"debit_uri\": {\n \"_type\": \"debit\", \n \"key\": \"debit\"\n }, \n \"source_uri\": {\n \"_type\": \"card\", \n \"key\": \"source\"\n }\n }, \n \"amount\": 5000, \n \"created_at\": \"2013-08-26T22:30:46.313389Z\", \n \"customer_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1\", \n \"debit_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/debits/WD1aYGtAuoJxpGSUYr8jVlyy\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2013-09-02T22:30:45.932902Z\", \n \"fee\": null, \n \"id\": \"HL1b1ZIkXBGoplsgir431CbM\", \n \"is_void\": false, \n \"meta\": {}, \n \"source_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/ACO702cHD2tPiOCRSKYzVf1/cards/CCQv8XnGsBHF9afrEdc0um3\", \n \"transaction_number\": \"HL449-758-6305\", \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/holds/HL1b1ZIkXBGoplsgir431CbM\"\n }, \n \"id\": \"WD1aYGtAuoJxpGSUYr8jVlyy\", \n \"meta\": {}, \n \"on_behalf_of\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/debits/WD1aYGtAuoJxpGSUYr8jVlyy/refunds\", \n \"source\": {\n \"_type\": \"card\", \n \"_uris\": {}, \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"country_code\": null, \n \"created_at\": \"2013-08-26T22:30:28.061829Z\", \n \"customer_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"id\": \"CCQv8XnGsBHF9afrEdc0um3\", \n \"is_valid\": true, \n \"is_verified\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": null, \n \"postal_code\": null, \n \"postal_code_check\": \"true\", \n \"security_code_check\": \"true\", \n \"street_address\": null, \n \"uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/cards/CCQv8XnGsBHF9afrEdc0um3\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W495-350-9517\", \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/debits/WD1aYGtAuoJxpGSUYr8jVlyy\"\n}"
298
- },
299
- "debit_customer_list": {
300
- "request": {
301
- "debits_uri": "/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/debits",
302
- "uri": "/v1/customers/AC73sGhakFEQQFbLDX6WSq9y"
303
- },
304
- "response": "{\n \"_type\": \"customer\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"source_uri\": {\n \"_type\": \"card\", \n \"key\": \"source\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"address\": {}, \n \"bank_accounts_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/cards\", \n \"created_at\": \"2013-08-26T22:29:00.832477Z\", \n \"credits_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/credits\", \n \"debits_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/holds\", \n \"id\": \"AC73sGhakFEQQFbLDX6WSq9y\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/refunds\", \n \"reversals_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/reversals\", \n \"source_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/cards/CC76wxKkWO9RoCf8lX8oI9Cy\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y\"\n}"
305
- },
432
+ ],
433
+ "links": {
434
+ "debits.customer": "/customers/{debits.customer}",
435
+ "debits.dispute": "/disputes/{debits.dispute}",
436
+ "debits.events": "/debits/{debits.id}/events",
437
+ "debits.order": "/orders/{debits.order}",
438
+ "debits.refunds": "/debits/{debits.id}/refunds",
439
+ "debits.source": "/resources/{debits.source}"
440
+ }
441
+ },
306
442
  "debit_list": {
307
443
  "request": {
308
- "uri": "/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/debits"
309
- },
310
- "response": "{\n \"_type\": \"page\", \n \"_uris\": {\n \"first_uri\": {\n \"_type\": \"page\", \n \"key\": \"first\"\n }, \n \"last_uri\": {\n \"_type\": \"page\", \n \"key\": \"last\"\n }, \n \"next_uri\": {\n \"_type\": \"page\", \n \"key\": \"next\"\n }, \n \"previous_uri\": {\n \"_type\": \"page\", \n \"key\": \"previous\"\n }\n }, \n \"first_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/debits?limit=2&offset=0\", \n \"items\": [\n {\n \"_type\": \"debit\", \n \"_uris\": {\n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }\n }, \n \"account\": {\n \"_type\": \"account\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/cards\", \n \"created_at\": \"2013-08-26T22:29:00.832477Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/credits\", \n \"customer_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/holds\", \n \"id\": \"AC73sGhakFEQQFbLDX6WSq9y\", \n \"meta\": {}, \n \"name\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y\"\n }, \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"available_at\": \"2013-08-26T22:29:26.538968Z\", \n \"created_at\": \"2013-08-26T22:29:26.021110Z\", \n \"customer\": {\n \"_type\": \"customer\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"source_uri\": {\n \"_type\": \"card\", \n \"key\": \"source\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"address\": {}, \n \"bank_accounts_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/cards\", \n \"created_at\": \"2013-08-26T22:29:00.832477Z\", \n \"credits_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/credits\", \n \"debits_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/holds\", \n \"id\": \"AC73sGhakFEQQFbLDX6WSq9y\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/refunds\", \n \"reversals_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/reversals\", \n \"source_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/cards/CC76wxKkWO9RoCf8lX8oI9Cy\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y\"\n }, \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"fee\": null, \n \"hold\": {\n \"_type\": \"hold\", \n \"_uris\": {\n \"debit_uri\": {\n \"_type\": \"debit\", \n \"key\": \"debit\"\n }, \n \"source_uri\": {\n \"_type\": \"card\", \n \"key\": \"source\"\n }\n }, \n \"account_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y\", \n \"amount\": 5000, \n \"created_at\": \"2013-08-26T22:29:26.042372Z\", \n \"customer_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y\", \n \"debit_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/debits/WD7vMDuOPWwViP0L8mniBOJF\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2013-09-02T22:29:25.317675Z\", \n \"fee\": null, \n \"id\": \"HL7vOp0S9EPPFnLJ2LMKC9MX\", \n \"is_void\": false, \n \"meta\": {}, \n \"source_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/cards/CC76wxKkWO9RoCf8lX8oI9Cy\", \n \"transaction_number\": \"HL282-862-1013\", \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/holds/HL7vOp0S9EPPFnLJ2LMKC9MX\"\n }, \n \"id\": \"WD7vMDuOPWwViP0L8mniBOJF\", \n \"meta\": {}, \n \"on_behalf_of\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/debits/WD7vMDuOPWwViP0L8mniBOJF/refunds\", \n \"source\": {\n \"_type\": \"card\", \n \"_uris\": {\n \"account_uri\": {\n \"_type\": \"customer\", \n \"key\": \"account\"\n }\n }, \n \"account_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y\", \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"country_code\": null, \n \"created_at\": \"2013-08-26T22:29:03.557075Z\", \n \"customer_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"id\": \"CC76wxKkWO9RoCf8lX8oI9Cy\", \n \"is_valid\": true, \n \"is_verified\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": null, \n \"postal_code\": null, \n \"postal_code_check\": \"true\", \n \"security_code_check\": \"true\", \n \"street_address\": null, \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/cards/CC76wxKkWO9RoCf8lX8oI9Cy\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W853-902-9854\", \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/debits/WD7vMDuOPWwViP0L8mniBOJF\"\n }, \n {\n \"_type\": \"debit\", \n \"_uris\": {\n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }\n }, \n \"account\": {\n \"_type\": \"account\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/cards\", \n \"created_at\": \"2013-08-26T22:29:00.832477Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/credits\", \n \"customer_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/holds\", \n \"id\": \"AC73sGhakFEQQFbLDX6WSq9y\", \n \"meta\": {}, \n \"name\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y\"\n }, \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"available_at\": \"2013-08-26T22:29:20.876140Z\", \n \"created_at\": \"2013-08-26T22:29:20.234742Z\", \n \"customer\": {\n \"_type\": \"customer\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"source_uri\": {\n \"_type\": \"card\", \n \"key\": \"source\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"address\": {}, \n \"bank_accounts_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/cards\", \n \"created_at\": \"2013-08-26T22:29:00.832477Z\", \n \"credits_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/credits\", \n \"debits_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/holds\", \n \"id\": \"AC73sGhakFEQQFbLDX6WSq9y\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/refunds\", \n \"reversals_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/reversals\", \n \"source_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/cards/CC76wxKkWO9RoCf8lX8oI9Cy\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y\"\n }, \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"fee\": null, \n \"hold\": {\n \"_type\": \"hold\", \n \"_uris\": {\n \"debit_uri\": {\n \"_type\": \"debit\", \n \"key\": \"debit\"\n }, \n \"source_uri\": {\n \"_type\": \"card\", \n \"key\": \"source\"\n }\n }, \n \"account_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y\", \n \"amount\": 5000, \n \"created_at\": \"2013-08-26T22:29:20.257997Z\", \n \"customer_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y\", \n \"debit_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/debits/WD7pham6kYGqj2RgJDKKuejJ\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2013-09-02T22:29:18.998863Z\", \n \"fee\": null, \n \"id\": \"HL7piYDaLspl6Vb839KbdnQP\", \n \"is_void\": false, \n \"meta\": {}, \n \"source_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/cards/CC76wxKkWO9RoCf8lX8oI9Cy\", \n \"transaction_number\": \"HL272-913-9906\", \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/holds/HL7piYDaLspl6Vb839KbdnQP\"\n }, \n \"id\": \"WD7pham6kYGqj2RgJDKKuejJ\", \n \"meta\": {}, \n \"on_behalf_of\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/debits/WD7pham6kYGqj2RgJDKKuejJ/refunds\", \n \"source\": {\n \"_type\": \"card\", \n \"_uris\": {\n \"account_uri\": {\n \"_type\": \"customer\", \n \"key\": \"account\"\n }\n }, \n \"account_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y\", \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"country_code\": null, \n \"created_at\": \"2013-08-26T22:29:03.557075Z\", \n \"customer_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"id\": \"CC76wxKkWO9RoCf8lX8oI9Cy\", \n \"is_valid\": true, \n \"is_verified\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": null, \n \"postal_code\": null, \n \"postal_code_check\": \"true\", \n \"security_code_check\": \"true\", \n \"street_address\": null, \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/cards/CC76wxKkWO9RoCf8lX8oI9Cy\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W732-249-7555\", \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/debits/WD7pham6kYGqj2RgJDKKuejJ\"\n }\n ], \n \"last_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/debits?limit=2&offset=2\", \n \"limit\": 2, \n \"next_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/debits?limit=2&offset=2\", \n \"offset\": 0, \n \"previous_uri\": null, \n \"total\": 3, \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/debits?limit=2&offset=0\"\n}"
311
- },
312
- "debit_refund": {
313
- "request": {
314
- "debit_uri": "/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/debits/WD7HfOnPU0KhbO9WUEGw0qJq",
315
- "refunds_uri": "/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/debits/WD7HfOnPU0KhbO9WUEGw0qJq/refunds"
316
- },
317
- "response": "{\n \"_type\": \"refund\", \n \"_uris\": {}, \n \"account\": {\n \"_type\": \"account\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/cards\", \n \"created_at\": \"2013-08-26T22:29:00.832477Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/credits\", \n \"customer_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/holds\", \n \"id\": \"AC73sGhakFEQQFbLDX6WSq9y\", \n \"meta\": {}, \n \"name\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y\"\n }, \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"created_at\": \"2013-08-26T22:29:38.157939Z\", \n \"customer\": {\n \"_type\": \"customer\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"source_uri\": {\n \"_type\": \"card\", \n \"key\": \"source\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"address\": {}, \n \"bank_accounts_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/cards\", \n \"created_at\": \"2013-08-26T22:29:00.832477Z\", \n \"credits_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/credits\", \n \"debits_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/holds\", \n \"id\": \"AC73sGhakFEQQFbLDX6WSq9y\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/refunds\", \n \"reversals_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/reversals\", \n \"source_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/cards/CC76wxKkWO9RoCf8lX8oI9Cy\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y\"\n }, \n \"debit\": {\n \"_type\": \"debit\", \n \"_uris\": {\n \"hold_uri\": {\n \"_type\": \"hold\", \n \"key\": \"hold\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }\n }, \n \"account_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y\", \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"available_at\": \"2013-08-26T22:29:36.864936Z\", \n \"created_at\": \"2013-08-26T22:29:36.215761Z\", \n \"customer_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"fee\": null, \n \"hold_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/holds/HL7HhYrTzfLRziBfes3VAlEk\", \n \"id\": \"WD7HfOnPU0KhbO9WUEGw0qJq\", \n \"meta\": {}, \n \"on_behalf_of_uri\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/debits/WD7HfOnPU0KhbO9WUEGw0qJq/refunds\", \n \"source_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/cards/CC76wxKkWO9RoCf8lX8oI9Cy\", \n \"status\": \"succeeded\", \n \"transaction_number\": \"W748-731-0310\", \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/debits/WD7HfOnPU0KhbO9WUEGw0qJq\"\n }, \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"fee\": null, \n \"id\": \"RF7JoC6EaAVQ4F7kkUsWc3Ta\", \n \"meta\": {}, \n \"transaction_number\": \"RF326-933-1975\", \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/refunds/RF7JoC6EaAVQ4F7kkUsWc3Ta\"\n}"
318
- },
444
+ "uri": "/debits"
445
+ },
446
+ "response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-01-27T22:57:05.511023Z\", \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/WD2Fd3jVcMZEWyXHtG3U1LRM\", \n \"id\": \"WD2Fd3jVcMZEWyXHtG3U1LRM\", \n \"links\": {\n \"customer\": null, \n \"dispute\": null, \n \"order\": null, \n \"source\": \"CC2uc8iPDjgyxOXHVtnZloyI\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W906-153-1439\", \n \"updated_at\": \"2014-01-27T22:57:10.153696Z\"\n }, \n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*ShowsUpOnStmt\", \n \"created_at\": \"2014-01-27T22:56:45.623268Z\", \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/WD2iSCukjXyeRdkvX3cW0PmC\", \n \"id\": \"WD2iSCukjXyeRdkvX3cW0PmC\", \n \"links\": {\n \"customer\": \"CU1f8Ygc4t0F2FKNcw235x9I\", \n \"dispute\": null, \n \"order\": null, \n \"source\": \"CC2abDOQVm5aNFhHpcRvWS02\"\n }, \n \"meta\": {\n \"holding.for\": \"user1\", \n \"meaningful.key\": \"some.value\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W744-719-1832\", \n \"updated_at\": \"2014-01-27T22:56:47.926021Z\"\n }, \n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-01-27T22:56:28.702119Z\", \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/WD1ZRRAZnFTryFdFaq7ijcPE\", \n \"id\": \"WD1ZRRAZnFTryFdFaq7ijcPE\", \n \"links\": {\n \"customer\": null, \n \"dispute\": null, \n \"order\": null, \n \"source\": \"BA1D3vL3LjasB0kewMqRGI0S\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W081-463-7557\", \n \"updated_at\": \"2014-01-27T22:56:29.235927Z\"\n }, \n {\n \"amount\": 10000000, \n \"appears_on_statement_as\": \"BAL*example.com\", \n \"created_at\": \"2014-01-27T22:55:56.757487Z\", \n \"currency\": \"USD\", \n \"description\": null, \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD1pU48nHJzorOySkTaQGQ9U\", \n \"id\": \"WD1pU48nHJzorOySkTaQGQ9U\", \n \"links\": {\n \"customer\": \"CU1iDnBalzHoZg47Np92rNrV\", \n \"dispute\": null, \n \"order\": null, \n \"source\": \"CC1nrXVKmfh0ouOS7zxI6X8q\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W511-688-4504\", \n \"updated_at\": \"2014-01-27T22:56:00.833870Z\"\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
+ },
319
448
  "debit_show": {
320
449
  "request": {
321
- "uri": "/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/debits/WD7vMDuOPWwViP0L8mniBOJF"
322
- },
323
- "response": "{\n \"_type\": \"debit\", \n \"_uris\": {\n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }\n }, \n \"account\": {\n \"_type\": \"account\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/cards\", \n \"created_at\": \"2013-08-26T22:29:00.832477Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/credits\", \n \"customer_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/holds\", \n \"id\": \"AC73sGhakFEQQFbLDX6WSq9y\", \n \"meta\": {}, \n \"name\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y\"\n }, \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"available_at\": \"2013-08-26T22:29:26.538968Z\", \n \"created_at\": \"2013-08-26T22:29:26.021110Z\", \n \"customer\": {\n \"_type\": \"customer\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"source_uri\": {\n \"_type\": \"card\", \n \"key\": \"source\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"address\": {}, \n \"bank_accounts_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/cards\", \n \"created_at\": \"2013-08-26T22:29:00.832477Z\", \n \"credits_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/credits\", \n \"debits_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/holds\", \n \"id\": \"AC73sGhakFEQQFbLDX6WSq9y\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/refunds\", \n \"reversals_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/reversals\", \n \"source_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/cards/CC76wxKkWO9RoCf8lX8oI9Cy\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y\"\n }, \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"fee\": null, \n \"hold\": {\n \"_type\": \"hold\", \n \"_uris\": {\n \"debit_uri\": {\n \"_type\": \"debit\", \n \"key\": \"debit\"\n }, \n \"source_uri\": {\n \"_type\": \"card\", \n \"key\": \"source\"\n }\n }, \n \"account_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y\", \n \"amount\": 5000, \n \"created_at\": \"2013-08-26T22:29:26.042372Z\", \n \"customer_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y\", \n \"debit_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/debits/WD7vMDuOPWwViP0L8mniBOJF\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2013-09-02T22:29:25.317675Z\", \n \"fee\": null, \n \"id\": \"HL7vOp0S9EPPFnLJ2LMKC9MX\", \n \"is_void\": false, \n \"meta\": {}, \n \"source_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/cards/CC76wxKkWO9RoCf8lX8oI9Cy\", \n \"transaction_number\": \"HL282-862-1013\", \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/holds/HL7vOp0S9EPPFnLJ2LMKC9MX\"\n }, \n \"id\": \"WD7vMDuOPWwViP0L8mniBOJF\", \n \"meta\": {}, \n \"on_behalf_of\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/debits/WD7vMDuOPWwViP0L8mniBOJF/refunds\", \n \"source\": {\n \"_type\": \"card\", \n \"_uris\": {\n \"account_uri\": {\n \"_type\": \"customer\", \n \"key\": \"account\"\n }\n }, \n \"account_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y\", \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"country_code\": null, \n \"created_at\": \"2013-08-26T22:29:03.557075Z\", \n \"customer_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"id\": \"CC76wxKkWO9RoCf8lX8oI9Cy\", \n \"is_valid\": true, \n \"is_verified\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": null, \n \"postal_code\": null, \n \"postal_code_check\": \"true\", \n \"security_code_check\": \"true\", \n \"street_address\": null, \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/cards/CC76wxKkWO9RoCf8lX8oI9Cy\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W853-902-9854\", \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/debits/WD7vMDuOPWwViP0L8mniBOJF\"\n}"
324
- },
450
+ "uri": "/debits/WD2Fd3jVcMZEWyXHtG3U1LRM"
451
+ },
452
+ "response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-01-27T22:57:05.511023Z\", \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/WD2Fd3jVcMZEWyXHtG3U1LRM\", \n \"id\": \"WD2Fd3jVcMZEWyXHtG3U1LRM\", \n \"links\": {\n \"customer\": null, \n \"dispute\": null, \n \"order\": null, \n \"source\": \"CC2uc8iPDjgyxOXHVtnZloyI\"\n }, \n \"meta\": {}, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W906-153-1439\", \n \"updated_at\": \"2014-01-27T22:57:10.153696Z\"\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
+ },
325
454
  "debit_update": {
326
455
  "request": {
327
456
  "payload": {
328
- "description": "New description for debit",
457
+ "description": "New description for debit",
329
458
  "meta": {
330
- "anykey": "valuegoeshere",
459
+ "anykey": "valuegoeshere",
331
460
  "facebook.id": "1234567890"
332
461
  }
333
- },
334
- "uri": "/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/debits/WD7vMDuOPWwViP0L8mniBOJF"
335
- },
336
- "response": "{\n \"_type\": \"debit\", \n \"_uris\": {\n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }\n }, \n \"account\": {\n \"_type\": \"account\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/cards\", \n \"created_at\": \"2013-08-26T22:29:00.832477Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/credits\", \n \"customer_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/holds\", \n \"id\": \"AC73sGhakFEQQFbLDX6WSq9y\", \n \"meta\": {}, \n \"name\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y\"\n }, \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"available_at\": \"2013-08-26T22:29:26.538968Z\", \n \"created_at\": \"2013-08-26T22:29:26.021110Z\", \n \"customer\": {\n \"_type\": \"customer\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"source_uri\": {\n \"_type\": \"card\", \n \"key\": \"source\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"address\": {}, \n \"bank_accounts_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/cards\", \n \"created_at\": \"2013-08-26T22:29:00.832477Z\", \n \"credits_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/credits\", \n \"debits_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/holds\", \n \"id\": \"AC73sGhakFEQQFbLDX6WSq9y\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/refunds\", \n \"reversals_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/reversals\", \n \"source_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/cards/CC76wxKkWO9RoCf8lX8oI9Cy\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y\"\n }, \n \"description\": \"New description for debit\", \n \"fee\": null, \n \"hold\": {\n \"_type\": \"hold\", \n \"_uris\": {\n \"debit_uri\": {\n \"_type\": \"debit\", \n \"key\": \"debit\"\n }, \n \"source_uri\": {\n \"_type\": \"card\", \n \"key\": \"source\"\n }\n }, \n \"account_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y\", \n \"amount\": 5000, \n \"created_at\": \"2013-08-26T22:29:26.042372Z\", \n \"customer_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y\", \n \"debit_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/debits/WD7vMDuOPWwViP0L8mniBOJF\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2013-09-02T22:29:25.317675Z\", \n \"fee\": null, \n \"id\": \"HL7vOp0S9EPPFnLJ2LMKC9MX\", \n \"is_void\": false, \n \"meta\": {}, \n \"source_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/cards/CC76wxKkWO9RoCf8lX8oI9Cy\", \n \"transaction_number\": \"HL282-862-1013\", \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/holds/HL7vOp0S9EPPFnLJ2LMKC9MX\"\n }, \n \"id\": \"WD7vMDuOPWwViP0L8mniBOJF\", \n \"meta\": {\n \"anykey\": \"valuegoeshere\", \n \"facebook.id\": \"1234567890\"\n }, \n \"on_behalf_of\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/debits/WD7vMDuOPWwViP0L8mniBOJF/refunds\", \n \"source\": {\n \"_type\": \"card\", \n \"_uris\": {\n \"account_uri\": {\n \"_type\": \"customer\", \n \"key\": \"account\"\n }\n }, \n \"account_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y\", \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"country_code\": null, \n \"created_at\": \"2013-08-26T22:29:03.557075Z\", \n \"customer_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"id\": \"CC76wxKkWO9RoCf8lX8oI9Cy\", \n \"is_valid\": true, \n \"is_verified\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": null, \n \"postal_code\": null, \n \"postal_code_check\": \"true\", \n \"security_code_check\": \"true\", \n \"street_address\": null, \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/cards/CC76wxKkWO9RoCf8lX8oI9Cy\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W853-902-9854\", \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/debits/WD7vMDuOPWwViP0L8mniBOJF\"\n}"
337
- },
462
+ },
463
+ "uri": "/debits/WD2Fd3jVcMZEWyXHtG3U1LRM"
464
+ },
465
+ "response": "{\n \"debits\": [\n {\n \"amount\": 5000, \n \"appears_on_statement_as\": \"BAL*Statement text\", \n \"created_at\": \"2014-01-27T22:57:05.511023Z\", \n \"currency\": \"USD\", \n \"description\": \"New description for debit\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/debits/WD2Fd3jVcMZEWyXHtG3U1LRM\", \n \"id\": \"WD2Fd3jVcMZEWyXHtG3U1LRM\", \n \"links\": {\n \"customer\": null, \n \"dispute\": null, \n \"order\": null, \n \"source\": \"CC2uc8iPDjgyxOXHVtnZloyI\"\n }, \n \"meta\": {\n \"anykey\": \"valuegoeshere\", \n \"facebook.id\": \"1234567890\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W906-153-1439\", \n \"updated_at\": \"2014-01-27T22:57:53.776191Z\"\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
+ },
338
467
  "event_list": {
339
468
  "request": {
340
- "uri": "/v1/events"
341
- },
342
- "response": "{\n \"_type\": \"page\", \n \"_uris\": {\n \"first_uri\": {\n \"_type\": \"page\", \n \"key\": \"first\"\n }, \n \"last_uri\": {\n \"_type\": \"page\", \n \"key\": \"last\"\n }, \n \"next_uri\": {\n \"_type\": \"page\", \n \"key\": \"next\"\n }, \n \"previous_uri\": {\n \"_type\": \"page\", \n \"key\": \"previous\"\n }\n }, \n \"first_uri\": \"/v1/events?limit=2&offset=0\", \n \"items\": [\n {\n \"_type\": \"event\", \n \"_uris\": {\n \"callbacks_uri\": {\n \"_type\": \"page\", \n \"key\": \"callbacks\"\n }\n }, \n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"callbacks_uri\": \"/v1/events/EV8c8e419e0e9e11e39281026ba7d31e6f/callbacks\", \n \"entity\": {\n \"_type\": \"account\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4haawTNd2hOEfoEeVoeVl5/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4haawTNd2hOEfoEeVoeVl5/cards\", \n \"created_at\": \"2013-08-26T22:26:27.643906Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4haawTNd2hOEfoEeVoeVl5/credits\", \n \"customer_uri\": \"/v1/customers/AC4haawTNd2hOEfoEeVoeVl5\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4haawTNd2hOEfoEeVoeVl5/debits\", \n \"email_address\": \"whc@example.org\", \n \"holds_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4haawTNd2hOEfoEeVoeVl5/holds\", \n \"id\": \"AC4haawTNd2hOEfoEeVoeVl5\", \n \"meta\": {}, \n \"name\": \"William Henry Cavendish III\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4haawTNd2hOEfoEeVoeVl5/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4haawTNd2hOEfoEeVoeVl5/reversals\", \n \"roles\": [\n \"merchant\", \n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4haawTNd2hOEfoEeVoeVl5/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4haawTNd2hOEfoEeVoeVl5\"\n }, \n \"id\": \"EV8c8e419e0e9e11e39281026ba7d31e6f\", \n \"occurred_at\": \"2013-08-26T22:26:27.845000Z\", \n \"type\": \"account.created\", \n \"uri\": \"/v1/events/EV8c8e419e0e9e11e39281026ba7d31e6f\"\n }, \n {\n \"_type\": \"event\", \n \"_uris\": {\n \"callbacks_uri\": {\n \"_type\": \"page\", \n \"key\": \"callbacks\"\n }\n }, \n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"callbacks_uri\": \"/v1/events/EV8ccdbafe0e9e11e39281026ba7d31e6f/callbacks\", \n \"entity\": {\n \"_type\": \"account\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4hFIU0tEHE7puvhutYDfu7/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4hFIU0tEHE7puvhutYDfu7/cards\", \n \"created_at\": \"2013-08-26T22:26:28.096422Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4hFIU0tEHE7puvhutYDfu7/credits\", \n \"customer_uri\": \"/v1/customers/AC4hFIU0tEHE7puvhutYDfu7\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4hFIU0tEHE7puvhutYDfu7/debits\", \n \"email_address\": \"escrow@poundpay.com\", \n \"holds_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4hFIU0tEHE7puvhutYDfu7/holds\", \n \"id\": \"AC4hFIU0tEHE7puvhutYDfu7\", \n \"meta\": {}, \n \"name\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4hFIU0tEHE7puvhutYDfu7/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4hFIU0tEHE7puvhutYDfu7/reversals\", \n \"roles\": [], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4hFIU0tEHE7puvhutYDfu7/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4hFIU0tEHE7puvhutYDfu7\"\n }, \n \"id\": \"EV8ccdbafe0e9e11e39281026ba7d31e6f\", \n \"occurred_at\": \"2013-08-26T22:26:28.096000Z\", \n \"type\": \"account.created\", \n \"uri\": \"/v1/events/EV8ccdbafe0e9e11e39281026ba7d31e6f\"\n }\n ], \n \"last_uri\": \"/v1/events?limit=2&offset=80\", \n \"limit\": 2, \n \"next_uri\": \"/v1/events?limit=2&offset=2\", \n \"offset\": 0, \n \"previous_uri\": null, \n \"total\": 81, \n \"uri\": \"/v1/events?limit=2&offset=0\"\n}"
343
- },
469
+ "uri": "/events"
470
+ },
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
+ },
344
473
  "event_show": {
345
474
  "request": {
346
- "uri": "/v1/events/EV8c8e419e0e9e11e39281026ba7d31e6f"
347
- },
348
- "response": "{\n \"_type\": \"event\", \n \"_uris\": {\n \"callbacks_uri\": {\n \"_type\": \"page\", \n \"key\": \"callbacks\"\n }\n }, \n \"callback_statuses\": {\n \"failed\": 0, \n \"pending\": 0, \n \"retrying\": 0, \n \"succeeded\": 0\n }, \n \"callbacks_uri\": \"/v1/events/EV8c8e419e0e9e11e39281026ba7d31e6f/callbacks\", \n \"entity\": {\n \"_type\": \"account\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4haawTNd2hOEfoEeVoeVl5/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4haawTNd2hOEfoEeVoeVl5/cards\", \n \"created_at\": \"2013-08-26T22:26:27.643906Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4haawTNd2hOEfoEeVoeVl5/credits\", \n \"customer_uri\": \"/v1/customers/AC4haawTNd2hOEfoEeVoeVl5\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4haawTNd2hOEfoEeVoeVl5/debits\", \n \"email_address\": \"whc@example.org\", \n \"holds_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4haawTNd2hOEfoEeVoeVl5/holds\", \n \"id\": \"AC4haawTNd2hOEfoEeVoeVl5\", \n \"meta\": {}, \n \"name\": \"William Henry Cavendish III\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4haawTNd2hOEfoEeVoeVl5/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4haawTNd2hOEfoEeVoeVl5/reversals\", \n \"roles\": [\n \"merchant\", \n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4haawTNd2hOEfoEeVoeVl5/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4haawTNd2hOEfoEeVoeVl5\"\n }, \n \"id\": \"EV8c8e419e0e9e11e39281026ba7d31e6f\", \n \"occurred_at\": \"2013-08-26T22:26:27.845000Z\", \n \"type\": \"account.created\", \n \"uri\": \"/v1/events/EV8c8e419e0e9e11e39281026ba7d31e6f\"\n}"
349
- },
350
- "hold_capture": {
351
- "request": {
352
- "debits_uri": "/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC4SoZJ23TvXIUcUOBSTXYHQ/debits",
353
- "hold_uri": "/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/holds/HLKvFGAzFm4LqiLblBvyCzm",
475
+ "uri": "/events/EV2abbb98487a611e3a86f026ba7d31e6f"
476
+ },
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\": 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}"
478
+ },
479
+ "marketplace": {
480
+ "created_at": "2014-01-27T22:55:47.104898Z",
481
+ "domain_url": "example.com",
482
+ "href": "/marketplaces/TEST-MP1f3Hgx3WTYV6DhxJC7yR5Y",
483
+ "id": "TEST-MP1f3Hgx3WTYV6DhxJC7yR5Y",
484
+ "in_escrow": 0,
485
+ "links": {
486
+ "owner_customer": "CU1f8Ygc4t0F2FKNcw235x9I"
487
+ },
488
+ "meta": {},
489
+ "name": "Test Marketplace",
490
+ "production": false,
491
+ "support_email_address": "support@example.com",
492
+ "support_phone_number": "+16505551234",
493
+ "unsettled_fees": 0,
494
+ "updated_at": "2014-01-27T22:55:49.874263Z"
495
+ },
496
+ "marketplace_id": "TEST-MP1f3Hgx3WTYV6DhxJC7yR5Y",
497
+ "marketplace_uri": "/marketplaces/TEST-MP1f3Hgx3WTYV6DhxJC7yR5Y",
498
+ "order_create": {
499
+ "request": {
500
+ "customer_href": "/customers/CU3eeasZ9yQ86uzzIYZkrPGg",
354
501
  "payload": {
355
- "appears_on_statement_as": "ShowsUpOnStmt",
356
- "description": "Some descriptive text for the debit in the dashboard",
357
- "hold_uri": "/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/holds/HLKvFGAzFm4LqiLblBvyCzm"
358
- }
359
- },
360
- "response": "{\n \"_uris\": {}, \n \"additional\": null, \n \"category_code\": \"request\", \n \"category_type\": \"request\", \n \"description\": \"Invalid field [account_uri] - Hold HLKvFGAzFm4LqiLblBvyCzm is not associated with account AC4SoZJ23TvXIUcUOBSTXYHQ Your request id is OHM1906f88c0e9f11e3aa87026ba7f8ec28.\", \n \"extras\": {\n \"account_uri\": \"Hold HLKvFGAzFm4LqiLblBvyCzm is not associated with account AC4SoZJ23TvXIUcUOBSTXYHQ\"\n }, \n \"request_id\": \"OHM1906f88c0e9f11e3aa87026ba7f8ec28\", \n \"status\": \"Bad Request\", \n \"status_code\": 400\n}"
361
- },
362
- "hold_create": {
502
+ "description": "Order #12341234"
503
+ },
504
+ "uri": "/customers/CU3eeasZ9yQ86uzzIYZkrPGg/orders"
505
+ },
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-01-27T22:58:01.115720Z\", \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/OR3FOihZa7lMHdAP5p8BJZVY\", \n \"id\": \"OR3FOihZa7lMHdAP5p8BJZVY\", \n \"links\": {\n \"merchant\": \"CU3eeasZ9yQ86uzzIYZkrPGg\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-27T22:58:01.115723Z\"\n }\n ]\n}"
507
+ },
508
+ "order_list": {
509
+ "request": {
510
+ "uri": "/orders"
511
+ },
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-01-27T22:58:01.115720Z\", \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/OR3FOihZa7lMHdAP5p8BJZVY\", \n \"id\": \"OR3FOihZa7lMHdAP5p8BJZVY\", \n \"links\": {\n \"merchant\": \"CU3eeasZ9yQ86uzzIYZkrPGg\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-27T22:58:01.115723Z\"\n }\n ]\n}"
513
+ },
514
+ "order_show": {
515
+ "request": {
516
+ "uri": "/orders/OR3FOihZa7lMHdAP5p8BJZVY"
517
+ },
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-01-27T22:58:01.115720Z\", \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/OR3FOihZa7lMHdAP5p8BJZVY\", \n \"id\": \"OR3FOihZa7lMHdAP5p8BJZVY\", \n \"links\": {\n \"merchant\": \"CU3eeasZ9yQ86uzzIYZkrPGg\"\n }, \n \"meta\": {}, \n \"updated_at\": \"2014-01-27T22:58:01.115723Z\"\n }\n ]\n}"
519
+ },
520
+ "order_update": {
363
521
  "request": {
364
- "customer_uri": "/v1/customers/ACO702cHD2tPiOCRSKYzVf1",
365
522
  "payload": {
366
- "amount": 5000,
367
- "description": "Some descriptive text for the debit in the dashboard"
368
- },
369
- "uri": "/v1/customers/ACO702cHD2tPiOCRSKYzVf1/holds"
370
- },
371
- "response": "{\n \"_type\": \"hold\", \n \"_uris\": {}, \n \"amount\": 5000, \n \"created_at\": \"2013-08-26T22:30:41.736735Z\", \n \"customer\": {\n \"_type\": \"customer\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"source_uri\": {\n \"_type\": \"card\", \n \"key\": \"source\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"address\": {}, \n \"bank_accounts_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/cards\", \n \"created_at\": \"2013-08-26T22:30:25.937376Z\", \n \"credits_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/credits\", \n \"debits_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/holds\", \n \"id\": \"ACO702cHD2tPiOCRSKYzVf1\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/refunds\", \n \"reversals_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/reversals\", \n \"source_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/cards/CCQv8XnGsBHF9afrEdc0um3\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1\"\n }, \n \"debit\": null, \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2013-09-02T22:30:41.396736Z\", \n \"fee\": null, \n \"id\": \"HL15SKbacqwCIDMvoCQx3GbB\", \n \"is_void\": false, \n \"meta\": {}, \n \"source\": {\n \"_type\": \"card\", \n \"_uris\": {}, \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"country_code\": null, \n \"created_at\": \"2013-08-26T22:30:28.061829Z\", \n \"customer_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"id\": \"CCQv8XnGsBHF9afrEdc0um3\", \n \"is_valid\": true, \n \"is_verified\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": null, \n \"postal_code\": null, \n \"postal_code_check\": \"true\", \n \"security_code_check\": \"true\", \n \"street_address\": null, \n \"uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/cards/CCQv8XnGsBHF9afrEdc0um3\"\n }, \n \"transaction_number\": \"HL013-858-3805\", \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/holds/HL15SKbacqwCIDMvoCQx3GbB\"\n}"
372
- },
373
- "hold_customer_list": {
374
- "request": {
375
- "customer_uri": "/v1/customers/AC8REMQqvuj8Kz8Yc3tpOPg",
376
- "uri": "/v1/customers/AC8REMQqvuj8Kz8Yc3tpOPg/holds"
377
- },
378
- "response": "{\n \"_type\": \"page\", \n \"_uris\": {\n \"first_uri\": {\n \"_type\": \"page\", \n \"key\": \"first\"\n }, \n \"last_uri\": {\n \"_type\": \"page\", \n \"key\": \"last\"\n }, \n \"next_uri\": {\n \"_type\": \"page\", \n \"key\": \"next\"\n }, \n \"previous_uri\": {\n \"_type\": \"page\", \n \"key\": \"previous\"\n }\n }, \n \"first_uri\": \"/v1/customers/AC8REMQqvuj8Kz8Yc3tpOPg/holds?limit=2&offset=0\", \n \"items\": [\n {\n \"_type\": \"hold\", \n \"_uris\": {}, \n \"amount\": 5000, \n \"created_at\": \"2013-08-26T22:30:03.490563Z\", \n \"customer\": {\n \"_type\": \"customer\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"source_uri\": {\n \"_type\": \"card\", \n \"key\": \"source\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"address\": {}, \n \"bank_accounts_uri\": \"/v1/customers/AC8REMQqvuj8Kz8Yc3tpOPg/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/AC8REMQqvuj8Kz8Yc3tpOPg/cards\", \n \"created_at\": \"2013-08-26T22:29:49.262012Z\", \n \"credits_uri\": \"/v1/customers/AC8REMQqvuj8Kz8Yc3tpOPg/credits\", \n \"debits_uri\": \"/v1/customers/AC8REMQqvuj8Kz8Yc3tpOPg/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/AC8REMQqvuj8Kz8Yc3tpOPg/holds\", \n \"id\": \"AC8REMQqvuj8Kz8Yc3tpOPg\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/AC8REMQqvuj8Kz8Yc3tpOPg/refunds\", \n \"reversals_uri\": \"/v1/customers/AC8REMQqvuj8Kz8Yc3tpOPg/reversals\", \n \"source_uri\": \"/v1/customers/AC8REMQqvuj8Kz8Yc3tpOPg/cards/CCbq3UzEtDsRwR7wMgs5cHZ\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/AC8REMQqvuj8Kz8Yc3tpOPg/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/AC8REMQqvuj8Kz8Yc3tpOPg\"\n }, \n \"debit\": null, \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2013-09-02T22:30:03.251746Z\", \n \"fee\": null, \n \"id\": \"HLoRDe8mOJ3arKOC95Yd0k0\", \n \"is_void\": false, \n \"meta\": {}, \n \"source\": {\n \"_type\": \"card\", \n \"_uris\": {}, \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"country_code\": null, \n \"created_at\": \"2013-08-26T22:29:51.535502Z\", \n \"customer_uri\": \"/v1/customers/AC8REMQqvuj8Kz8Yc3tpOPg\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"id\": \"CCbq3UzEtDsRwR7wMgs5cHZ\", \n \"is_valid\": true, \n \"is_verified\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": null, \n \"postal_code\": null, \n \"postal_code_check\": \"true\", \n \"security_code_check\": \"true\", \n \"street_address\": null, \n \"uri\": \"/v1/customers/AC8REMQqvuj8Kz8Yc3tpOPg/cards/CCbq3UzEtDsRwR7wMgs5cHZ\"\n }, \n \"transaction_number\": \"HL695-083-3827\", \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/holds/HLoRDe8mOJ3arKOC95Yd0k0\"\n }\n ], \n \"last_uri\": \"/v1/customers/AC8REMQqvuj8Kz8Yc3tpOPg/holds?limit=2&offset=0\", \n \"limit\": 2, \n \"next_uri\": null, \n \"offset\": 0, \n \"previous_uri\": null, \n \"total\": 1, \n \"uri\": \"/v1/customers/AC8REMQqvuj8Kz8Yc3tpOPg/holds?limit=2&offset=0\"\n}"
379
- },
380
- "hold_list": {
381
- "request": {
382
- "uri": "/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/holds"
383
- },
384
- "response": "{\n \"_type\": \"page\", \n \"_uris\": {\n \"first_uri\": {\n \"_type\": \"page\", \n \"key\": \"first\"\n }, \n \"last_uri\": {\n \"_type\": \"page\", \n \"key\": \"last\"\n }, \n \"next_uri\": {\n \"_type\": \"page\", \n \"key\": \"next\"\n }, \n \"previous_uri\": {\n \"_type\": \"page\", \n \"key\": \"previous\"\n }\n }, \n \"first_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/holds?limit=2&offset=0\", \n \"items\": [\n {\n \"_type\": \"hold\", \n \"_uris\": {}, \n \"account\": {\n \"_type\": \"account\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC8REMQqvuj8Kz8Yc3tpOPg/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC8REMQqvuj8Kz8Yc3tpOPg/cards\", \n \"created_at\": \"2013-08-26T22:29:49.262012Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC8REMQqvuj8Kz8Yc3tpOPg/credits\", \n \"customer_uri\": \"/v1/customers/AC8REMQqvuj8Kz8Yc3tpOPg\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC8REMQqvuj8Kz8Yc3tpOPg/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC8REMQqvuj8Kz8Yc3tpOPg/holds\", \n \"id\": \"AC8REMQqvuj8Kz8Yc3tpOPg\", \n \"meta\": {}, \n \"name\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC8REMQqvuj8Kz8Yc3tpOPg/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC8REMQqvuj8Kz8Yc3tpOPg/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC8REMQqvuj8Kz8Yc3tpOPg/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC8REMQqvuj8Kz8Yc3tpOPg\"\n }, \n \"amount\": 5000, \n \"created_at\": \"2013-08-26T22:30:03.490563Z\", \n \"customer\": {\n \"_type\": \"customer\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"source_uri\": {\n \"_type\": \"card\", \n \"key\": \"source\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"address\": {}, \n \"bank_accounts_uri\": \"/v1/customers/AC8REMQqvuj8Kz8Yc3tpOPg/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/AC8REMQqvuj8Kz8Yc3tpOPg/cards\", \n \"created_at\": \"2013-08-26T22:29:49.262012Z\", \n \"credits_uri\": \"/v1/customers/AC8REMQqvuj8Kz8Yc3tpOPg/credits\", \n \"debits_uri\": \"/v1/customers/AC8REMQqvuj8Kz8Yc3tpOPg/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/AC8REMQqvuj8Kz8Yc3tpOPg/holds\", \n \"id\": \"AC8REMQqvuj8Kz8Yc3tpOPg\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/AC8REMQqvuj8Kz8Yc3tpOPg/refunds\", \n \"reversals_uri\": \"/v1/customers/AC8REMQqvuj8Kz8Yc3tpOPg/reversals\", \n \"source_uri\": \"/v1/customers/AC8REMQqvuj8Kz8Yc3tpOPg/cards/CCbq3UzEtDsRwR7wMgs5cHZ\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/AC8REMQqvuj8Kz8Yc3tpOPg/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/AC8REMQqvuj8Kz8Yc3tpOPg\"\n }, \n \"debit\": null, \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2013-09-02T22:30:03.251746Z\", \n \"fee\": null, \n \"id\": \"HLoRDe8mOJ3arKOC95Yd0k0\", \n \"is_void\": false, \n \"meta\": {}, \n \"source\": {\n \"_type\": \"card\", \n \"_uris\": {\n \"account_uri\": {\n \"_type\": \"customer\", \n \"key\": \"account\"\n }\n }, \n \"account_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC8REMQqvuj8Kz8Yc3tpOPg\", \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"country_code\": null, \n \"created_at\": \"2013-08-26T22:29:51.535502Z\", \n \"customer_uri\": \"/v1/customers/AC8REMQqvuj8Kz8Yc3tpOPg\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"id\": \"CCbq3UzEtDsRwR7wMgs5cHZ\", \n \"is_valid\": true, \n \"is_verified\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": null, \n \"postal_code\": null, \n \"postal_code_check\": \"true\", \n \"security_code_check\": \"true\", \n \"street_address\": null, \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC8REMQqvuj8Kz8Yc3tpOPg/cards/CCbq3UzEtDsRwR7wMgs5cHZ\"\n }, \n \"transaction_number\": \"HL695-083-3827\", \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/holds/HLoRDe8mOJ3arKOC95Yd0k0\"\n }, \n {\n \"_type\": \"hold\", \n \"_uris\": {}, \n \"account\": {\n \"_type\": \"account\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/cards\", \n \"created_at\": \"2013-08-26T22:29:00.832477Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/credits\", \n \"customer_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/holds\", \n \"id\": \"AC73sGhakFEQQFbLDX6WSq9y\", \n \"meta\": {}, \n \"name\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y\"\n }, \n \"amount\": 5000, \n \"created_at\": \"2013-08-26T22:29:36.243310Z\", \n \"customer\": {\n \"_type\": \"customer\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"source_uri\": {\n \"_type\": \"card\", \n \"key\": \"source\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"address\": {}, \n \"bank_accounts_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/cards\", \n \"created_at\": \"2013-08-26T22:29:00.832477Z\", \n \"credits_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/credits\", \n \"debits_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/holds\", \n \"id\": \"AC73sGhakFEQQFbLDX6WSq9y\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/refunds\", \n \"reversals_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/reversals\", \n \"source_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/cards/CC76wxKkWO9RoCf8lX8oI9Cy\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y\"\n }, \n \"debit\": {\n \"_type\": \"debit\", \n \"_uris\": {\n \"hold_uri\": {\n \"_type\": \"hold\", \n \"key\": \"hold\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }\n }, \n \"account_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y\", \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"available_at\": \"2013-08-26T22:29:36.864936Z\", \n \"created_at\": \"2013-08-26T22:29:36.215761Z\", \n \"customer_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"fee\": null, \n \"hold_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/holds/HL7HhYrTzfLRziBfes3VAlEk\", \n \"id\": \"WD7HfOnPU0KhbO9WUEGw0qJq\", \n \"meta\": {}, \n \"on_behalf_of_uri\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/debits/WD7HfOnPU0KhbO9WUEGw0qJq/refunds\", \n \"source_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/cards/CC76wxKkWO9RoCf8lX8oI9Cy\", \n \"status\": \"succeeded\", \n \"transaction_number\": \"W748-731-0310\", \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/debits/WD7HfOnPU0KhbO9WUEGw0qJq\"\n }, \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2013-09-02T22:29:35.884810Z\", \n \"fee\": null, \n \"id\": \"HL7HhYrTzfLRziBfes3VAlEk\", \n \"is_void\": false, \n \"meta\": {}, \n \"source\": {\n \"_type\": \"card\", \n \"_uris\": {\n \"account_uri\": {\n \"_type\": \"customer\", \n \"key\": \"account\"\n }\n }, \n \"account_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y\", \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"country_code\": null, \n \"created_at\": \"2013-08-26T22:29:03.557075Z\", \n \"customer_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"id\": \"CC76wxKkWO9RoCf8lX8oI9Cy\", \n \"is_valid\": true, \n \"is_verified\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": null, \n \"postal_code\": null, \n \"postal_code_check\": \"true\", \n \"security_code_check\": \"true\", \n \"street_address\": null, \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/cards/CC76wxKkWO9RoCf8lX8oI9Cy\"\n }, \n \"transaction_number\": \"HL683-007-0604\", \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/holds/HL7HhYrTzfLRziBfes3VAlEk\"\n }\n ], \n \"last_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/holds?limit=2&offset=4\", \n \"limit\": 2, \n \"next_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/holds?limit=2&offset=2\", \n \"offset\": 0, \n \"previous_uri\": null, \n \"total\": 5, \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/holds?limit=2&offset=0\"\n}"
385
- },
386
- "hold_show": {
387
- "request": {
388
- "uri": "/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/holds/HLoRDe8mOJ3arKOC95Yd0k0"
389
- },
390
- "response": "{\n \"_type\": \"hold\", \n \"_uris\": {}, \n \"account\": {\n \"_type\": \"account\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC8REMQqvuj8Kz8Yc3tpOPg/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC8REMQqvuj8Kz8Yc3tpOPg/cards\", \n \"created_at\": \"2013-08-26T22:29:49.262012Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC8REMQqvuj8Kz8Yc3tpOPg/credits\", \n \"customer_uri\": \"/v1/customers/AC8REMQqvuj8Kz8Yc3tpOPg\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC8REMQqvuj8Kz8Yc3tpOPg/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC8REMQqvuj8Kz8Yc3tpOPg/holds\", \n \"id\": \"AC8REMQqvuj8Kz8Yc3tpOPg\", \n \"meta\": {}, \n \"name\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC8REMQqvuj8Kz8Yc3tpOPg/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC8REMQqvuj8Kz8Yc3tpOPg/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC8REMQqvuj8Kz8Yc3tpOPg/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC8REMQqvuj8Kz8Yc3tpOPg\"\n }, \n \"amount\": 5000, \n \"created_at\": \"2013-08-26T22:30:03.490563Z\", \n \"customer\": {\n \"_type\": \"customer\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"source_uri\": {\n \"_type\": \"card\", \n \"key\": \"source\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"address\": {}, \n \"bank_accounts_uri\": \"/v1/customers/AC8REMQqvuj8Kz8Yc3tpOPg/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/AC8REMQqvuj8Kz8Yc3tpOPg/cards\", \n \"created_at\": \"2013-08-26T22:29:49.262012Z\", \n \"credits_uri\": \"/v1/customers/AC8REMQqvuj8Kz8Yc3tpOPg/credits\", \n \"debits_uri\": \"/v1/customers/AC8REMQqvuj8Kz8Yc3tpOPg/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/AC8REMQqvuj8Kz8Yc3tpOPg/holds\", \n \"id\": \"AC8REMQqvuj8Kz8Yc3tpOPg\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/AC8REMQqvuj8Kz8Yc3tpOPg/refunds\", \n \"reversals_uri\": \"/v1/customers/AC8REMQqvuj8Kz8Yc3tpOPg/reversals\", \n \"source_uri\": \"/v1/customers/AC8REMQqvuj8Kz8Yc3tpOPg/cards/CCbq3UzEtDsRwR7wMgs5cHZ\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/AC8REMQqvuj8Kz8Yc3tpOPg/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/AC8REMQqvuj8Kz8Yc3tpOPg\"\n }, \n \"debit\": null, \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2013-09-02T22:30:03.251746Z\", \n \"fee\": null, \n \"id\": \"HLoRDe8mOJ3arKOC95Yd0k0\", \n \"is_void\": false, \n \"meta\": {}, \n \"source\": {\n \"_type\": \"card\", \n \"_uris\": {\n \"account_uri\": {\n \"_type\": \"customer\", \n \"key\": \"account\"\n }\n }, \n \"account_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC8REMQqvuj8Kz8Yc3tpOPg\", \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"country_code\": null, \n \"created_at\": \"2013-08-26T22:29:51.535502Z\", \n \"customer_uri\": \"/v1/customers/AC8REMQqvuj8Kz8Yc3tpOPg\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"id\": \"CCbq3UzEtDsRwR7wMgs5cHZ\", \n \"is_valid\": true, \n \"is_verified\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": null, \n \"postal_code\": null, \n \"postal_code_check\": \"true\", \n \"security_code_check\": \"true\", \n \"street_address\": null, \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC8REMQqvuj8Kz8Yc3tpOPg/cards/CCbq3UzEtDsRwR7wMgs5cHZ\"\n }, \n \"transaction_number\": \"HL695-083-3827\", \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/holds/HLoRDe8mOJ3arKOC95Yd0k0\"\n}"
391
- },
392
- "hold_update": {
393
- "request": {
394
- "payload": {
395
- "description": "update this description",
523
+ "description": "New description for order",
396
524
  "meta": {
397
- "holding.for": "user1",
398
- "meaningful.key": "some.value"
525
+ "anykey": "valuegoeshere",
526
+ "product.id": "1234567890"
399
527
  }
400
- },
401
- "uri": "/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/holds/HLoRDe8mOJ3arKOC95Yd0k0"
402
- },
403
- "response": "{\n \"_type\": \"hold\", \n \"_uris\": {}, \n \"account\": {\n \"_type\": \"account\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC8REMQqvuj8Kz8Yc3tpOPg/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC8REMQqvuj8Kz8Yc3tpOPg/cards\", \n \"created_at\": \"2013-08-26T22:29:49.262012Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC8REMQqvuj8Kz8Yc3tpOPg/credits\", \n \"customer_uri\": \"/v1/customers/AC8REMQqvuj8Kz8Yc3tpOPg\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC8REMQqvuj8Kz8Yc3tpOPg/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC8REMQqvuj8Kz8Yc3tpOPg/holds\", \n \"id\": \"AC8REMQqvuj8Kz8Yc3tpOPg\", \n \"meta\": {}, \n \"name\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC8REMQqvuj8Kz8Yc3tpOPg/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC8REMQqvuj8Kz8Yc3tpOPg/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC8REMQqvuj8Kz8Yc3tpOPg/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC8REMQqvuj8Kz8Yc3tpOPg\"\n }, \n \"amount\": 5000, \n \"created_at\": \"2013-08-26T22:30:03.490563Z\", \n \"customer\": {\n \"_type\": \"customer\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"source_uri\": {\n \"_type\": \"card\", \n \"key\": \"source\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"address\": {}, \n \"bank_accounts_uri\": \"/v1/customers/AC8REMQqvuj8Kz8Yc3tpOPg/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/AC8REMQqvuj8Kz8Yc3tpOPg/cards\", \n \"created_at\": \"2013-08-26T22:29:49.262012Z\", \n \"credits_uri\": \"/v1/customers/AC8REMQqvuj8Kz8Yc3tpOPg/credits\", \n \"debits_uri\": \"/v1/customers/AC8REMQqvuj8Kz8Yc3tpOPg/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/AC8REMQqvuj8Kz8Yc3tpOPg/holds\", \n \"id\": \"AC8REMQqvuj8Kz8Yc3tpOPg\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/AC8REMQqvuj8Kz8Yc3tpOPg/refunds\", \n \"reversals_uri\": \"/v1/customers/AC8REMQqvuj8Kz8Yc3tpOPg/reversals\", \n \"source_uri\": \"/v1/customers/AC8REMQqvuj8Kz8Yc3tpOPg/cards/CCbq3UzEtDsRwR7wMgs5cHZ\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/AC8REMQqvuj8Kz8Yc3tpOPg/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/AC8REMQqvuj8Kz8Yc3tpOPg\"\n }, \n \"debit\": null, \n \"description\": \"update this description\", \n \"expires_at\": \"2013-09-02T22:30:03.251746Z\", \n \"fee\": null, \n \"id\": \"HLoRDe8mOJ3arKOC95Yd0k0\", \n \"is_void\": false, \n \"meta\": {\n \"holding.for\": \"user1\", \n \"meaningful.key\": \"some.value\"\n }, \n \"source\": {\n \"_type\": \"card\", \n \"_uris\": {\n \"account_uri\": {\n \"_type\": \"customer\", \n \"key\": \"account\"\n }\n }, \n \"account_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC8REMQqvuj8Kz8Yc3tpOPg\", \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"country_code\": null, \n \"created_at\": \"2013-08-26T22:29:51.535502Z\", \n \"customer_uri\": \"/v1/customers/AC8REMQqvuj8Kz8Yc3tpOPg\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"id\": \"CCbq3UzEtDsRwR7wMgs5cHZ\", \n \"is_valid\": true, \n \"is_verified\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": null, \n \"postal_code\": null, \n \"postal_code_check\": \"true\", \n \"security_code_check\": \"true\", \n \"street_address\": null, \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC8REMQqvuj8Kz8Yc3tpOPg/cards/CCbq3UzEtDsRwR7wMgs5cHZ\"\n }, \n \"transaction_number\": \"HL695-083-3827\", \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/holds/HLoRDe8mOJ3arKOC95Yd0k0\"\n}"
404
- },
405
- "hold_void": {
406
- "request": {
407
- "payload": {
408
- "is_void": "true"
409
- },
410
- "uri": "/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/holds/HL15SKbacqwCIDMvoCQx3GbB"
411
- },
412
- "response": "{\n \"_type\": \"hold\", \n \"_uris\": {}, \n \"account\": {\n \"_type\": \"account\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/ACO702cHD2tPiOCRSKYzVf1/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/ACO702cHD2tPiOCRSKYzVf1/cards\", \n \"created_at\": \"2013-08-26T22:30:25.937376Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/ACO702cHD2tPiOCRSKYzVf1/credits\", \n \"customer_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/ACO702cHD2tPiOCRSKYzVf1/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/ACO702cHD2tPiOCRSKYzVf1/holds\", \n \"id\": \"ACO702cHD2tPiOCRSKYzVf1\", \n \"meta\": {}, \n \"name\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/ACO702cHD2tPiOCRSKYzVf1/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/ACO702cHD2tPiOCRSKYzVf1/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/ACO702cHD2tPiOCRSKYzVf1/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/ACO702cHD2tPiOCRSKYzVf1\"\n }, \n \"amount\": 5000, \n \"created_at\": \"2013-08-26T22:30:41.736735Z\", \n \"customer\": {\n \"_type\": \"customer\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"source_uri\": {\n \"_type\": \"card\", \n \"key\": \"source\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"address\": {}, \n \"bank_accounts_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/cards\", \n \"created_at\": \"2013-08-26T22:30:25.937376Z\", \n \"credits_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/credits\", \n \"debits_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/holds\", \n \"id\": \"ACO702cHD2tPiOCRSKYzVf1\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/refunds\", \n \"reversals_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/reversals\", \n \"source_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/cards/CCQv8XnGsBHF9afrEdc0um3\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1\"\n }, \n \"debit\": null, \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2013-09-02T22:30:41.396736Z\", \n \"fee\": null, \n \"id\": \"HL15SKbacqwCIDMvoCQx3GbB\", \n \"is_void\": true, \n \"meta\": {}, \n \"source\": {\n \"_type\": \"card\", \n \"_uris\": {\n \"account_uri\": {\n \"_type\": \"customer\", \n \"key\": \"account\"\n }\n }, \n \"account_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/ACO702cHD2tPiOCRSKYzVf1\", \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"country_code\": null, \n \"created_at\": \"2013-08-26T22:30:28.061829Z\", \n \"customer_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"fc4ccd5de54f42a5e75f76fbfde60948440c7a382ee7d21b2bc509ab9cfed788\", \n \"id\": \"CCQv8XnGsBHF9afrEdc0um3\", \n \"is_valid\": true, \n \"is_verified\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": null, \n \"postal_code\": null, \n \"postal_code_check\": \"true\", \n \"security_code_check\": \"true\", \n \"street_address\": null, \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/ACO702cHD2tPiOCRSKYzVf1/cards/CCQv8XnGsBHF9afrEdc0um3\"\n }, \n \"transaction_number\": \"HL013-858-3805\", \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/holds/HL15SKbacqwCIDMvoCQx3GbB\"\n}"
413
- },
414
- "marketplace_id": "TEST-MP4h8BxozeLxe7VAllP6b5gj",
415
- "marketplace_uri": "/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj",
416
- "refund_account_list": {
417
- "request": {
418
- "customer_uri": "/v1/customers/ACO702cHD2tPiOCRSKYzVf1",
419
- "uri": "/v1/customers/ACO702cHD2tPiOCRSKYzVf1/refunds"
420
- },
421
- "response": "{\n \"_type\": \"page\", \n \"_uris\": {\n \"first_uri\": {\n \"_type\": \"page\", \n \"key\": \"first\"\n }, \n \"last_uri\": {\n \"_type\": \"page\", \n \"key\": \"last\"\n }, \n \"next_uri\": {\n \"_type\": \"page\", \n \"key\": \"next\"\n }, \n \"previous_uri\": {\n \"_type\": \"page\", \n \"key\": \"previous\"\n }\n }, \n \"first_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/refunds?limit=2&offset=0\", \n \"items\": [\n {\n \"_type\": \"refund\", \n \"_uris\": {}, \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"created_at\": \"2013-08-26T22:30:48.042906Z\", \n \"customer\": {\n \"_type\": \"customer\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"source_uri\": {\n \"_type\": \"card\", \n \"key\": \"source\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"address\": {}, \n \"bank_accounts_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/cards\", \n \"created_at\": \"2013-08-26T22:30:25.937376Z\", \n \"credits_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/credits\", \n \"debits_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/holds\", \n \"id\": \"ACO702cHD2tPiOCRSKYzVf1\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/refunds\", \n \"reversals_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/reversals\", \n \"source_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/cards/CCQv8XnGsBHF9afrEdc0um3\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1\"\n }, \n \"debit\": {\n \"_type\": \"debit\", \n \"_uris\": {\n \"hold_uri\": {\n \"_type\": \"hold\", \n \"key\": \"hold\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }\n }, \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"available_at\": \"2013-08-26T22:30:46.793463Z\", \n \"created_at\": \"2013-08-26T22:30:46.269164Z\", \n \"customer_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"fee\": null, \n \"hold_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/holds/HL1b1ZIkXBGoplsgir431CbM\", \n \"id\": \"WD1aYGtAuoJxpGSUYr8jVlyy\", \n \"meta\": {}, \n \"on_behalf_of_uri\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/debits/WD1aYGtAuoJxpGSUYr8jVlyy/refunds\", \n \"source_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/ACO702cHD2tPiOCRSKYzVf1/cards/CCQv8XnGsBHF9afrEdc0um3\", \n \"status\": \"succeeded\", \n \"transaction_number\": \"W495-350-9517\", \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/debits/WD1aYGtAuoJxpGSUYr8jVlyy\"\n }, \n \"description\": \"Refund for Order #1111\", \n \"fee\": null, \n \"id\": \"RF1cWzNKWwQnCCbeonFdLVkC\", \n \"meta\": {\n \"fulfillment.item.condition\": \"OK\", \n \"merchant.feedback\": \"positive\", \n \"user.refund_reason\": \"not happy with product\"\n }, \n \"transaction_number\": \"RF504-732-3118\", \n \"uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/refunds/RF1cWzNKWwQnCCbeonFdLVkC\"\n }\n ], \n \"last_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/refunds?limit=2&offset=0\", \n \"limit\": 2, \n \"next_uri\": null, \n \"offset\": 0, \n \"previous_uri\": null, \n \"total\": 1, \n \"uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/refunds?limit=2&offset=0\"\n}"
422
- },
528
+ },
529
+ "uri": "/orders/OR3FOihZa7lMHdAP5p8BJZVY"
530
+ },
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-01-27T22:58:01.115720Z\", \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/OR3FOihZa7lMHdAP5p8BJZVY\", \n \"id\": \"OR3FOihZa7lMHdAP5p8BJZVY\", \n \"links\": {\n \"merchant\": \"CU3eeasZ9yQ86uzzIYZkrPGg\"\n }, \n \"meta\": {\n \"anykey\": \"valuegoeshere\", \n \"product.id\": \"1234567890\"\n }, \n \"updated_at\": \"2014-01-27T22:58:05.657463Z\"\n }\n ]\n}"
532
+ },
423
533
  "refund_create": {
424
534
  "request": {
425
- "debit_uri": "/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/debits/WD1aYGtAuoJxpGSUYr8jVlyy",
535
+ "debit_href": "/debits/WD3MKNxNTKBGgA7mX50yogiu",
426
536
  "payload": {
427
- "debit_uri": "/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/debits/WD1aYGtAuoJxpGSUYr8jVlyy",
428
- "description": "Refund for Order #1111",
537
+ "amount": 3000,
538
+ "description": "Refund for Order #1111",
429
539
  "meta": {
430
- "fulfillment.item.condition": "OK",
431
- "merchant.feedback": "positive",
540
+ "fulfillment.item.condition": "OK",
541
+ "merchant.feedback": "positive",
432
542
  "user.refund_reason": "not happy with product"
433
543
  }
434
- },
435
- "uri": "/v1/customers/ACO702cHD2tPiOCRSKYzVf1/refunds"
436
- },
437
- "response": "{\n \"_type\": \"refund\", \n \"_uris\": {}, \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"created_at\": \"2013-08-26T22:30:48.042906Z\", \n \"customer\": {\n \"_type\": \"customer\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"source_uri\": {\n \"_type\": \"card\", \n \"key\": \"source\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"address\": {}, \n \"bank_accounts_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/cards\", \n \"created_at\": \"2013-08-26T22:30:25.937376Z\", \n \"credits_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/credits\", \n \"debits_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/holds\", \n \"id\": \"ACO702cHD2tPiOCRSKYzVf1\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/refunds\", \n \"reversals_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/reversals\", \n \"source_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/cards/CCQv8XnGsBHF9afrEdc0um3\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1\"\n }, \n \"debit\": {\n \"_type\": \"debit\", \n \"_uris\": {\n \"hold_uri\": {\n \"_type\": \"hold\", \n \"key\": \"hold\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }\n }, \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"available_at\": \"2013-08-26T22:30:46.793463Z\", \n \"created_at\": \"2013-08-26T22:30:46.269164Z\", \n \"customer_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"fee\": null, \n \"hold_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/holds/HL1b1ZIkXBGoplsgir431CbM\", \n \"id\": \"WD1aYGtAuoJxpGSUYr8jVlyy\", \n \"meta\": {}, \n \"on_behalf_of_uri\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/debits/WD1aYGtAuoJxpGSUYr8jVlyy/refunds\", \n \"source_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/ACO702cHD2tPiOCRSKYzVf1/cards/CCQv8XnGsBHF9afrEdc0um3\", \n \"status\": \"succeeded\", \n \"transaction_number\": \"W495-350-9517\", \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/debits/WD1aYGtAuoJxpGSUYr8jVlyy\"\n }, \n \"description\": \"Refund for Order #1111\", \n \"fee\": null, \n \"id\": \"RF1cWzNKWwQnCCbeonFdLVkC\", \n \"meta\": {\n \"fulfillment.item.condition\": \"OK\", \n \"merchant.feedback\": \"positive\", \n \"user.refund_reason\": \"not happy with product\"\n }, \n \"transaction_number\": \"RF504-732-3118\", \n \"uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/refunds/RF1cWzNKWwQnCCbeonFdLVkC\"\n}"
438
- },
439
- "refund_customer_list": {
440
- "request": {
441
- "customer_uri": "/v1/customers/ACO702cHD2tPiOCRSKYzVf1",
442
- "uri": "/v1/customers/ACO702cHD2tPiOCRSKYzVf1/refunds"
443
- },
444
- "response": "{\n \"_type\": \"page\", \n \"_uris\": {\n \"first_uri\": {\n \"_type\": \"page\", \n \"key\": \"first\"\n }, \n \"last_uri\": {\n \"_type\": \"page\", \n \"key\": \"last\"\n }, \n \"next_uri\": {\n \"_type\": \"page\", \n \"key\": \"next\"\n }, \n \"previous_uri\": {\n \"_type\": \"page\", \n \"key\": \"previous\"\n }\n }, \n \"first_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/refunds?limit=2&offset=0\", \n \"items\": [\n {\n \"_type\": \"refund\", \n \"_uris\": {}, \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"created_at\": \"2013-08-26T22:30:48.042906Z\", \n \"customer\": {\n \"_type\": \"customer\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"source_uri\": {\n \"_type\": \"card\", \n \"key\": \"source\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"address\": {}, \n \"bank_accounts_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/cards\", \n \"created_at\": \"2013-08-26T22:30:25.937376Z\", \n \"credits_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/credits\", \n \"debits_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/holds\", \n \"id\": \"ACO702cHD2tPiOCRSKYzVf1\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/refunds\", \n \"reversals_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/reversals\", \n \"source_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/cards/CCQv8XnGsBHF9afrEdc0um3\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1\"\n }, \n \"debit\": {\n \"_type\": \"debit\", \n \"_uris\": {\n \"hold_uri\": {\n \"_type\": \"hold\", \n \"key\": \"hold\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }\n }, \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"available_at\": \"2013-08-26T22:30:46.793463Z\", \n \"created_at\": \"2013-08-26T22:30:46.269164Z\", \n \"customer_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"fee\": null, \n \"hold_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/holds/HL1b1ZIkXBGoplsgir431CbM\", \n \"id\": \"WD1aYGtAuoJxpGSUYr8jVlyy\", \n \"meta\": {}, \n \"on_behalf_of_uri\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/debits/WD1aYGtAuoJxpGSUYr8jVlyy/refunds\", \n \"source_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/ACO702cHD2tPiOCRSKYzVf1/cards/CCQv8XnGsBHF9afrEdc0um3\", \n \"status\": \"succeeded\", \n \"transaction_number\": \"W495-350-9517\", \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/debits/WD1aYGtAuoJxpGSUYr8jVlyy\"\n }, \n \"description\": \"update this description\", \n \"fee\": null, \n \"id\": \"RF1cWzNKWwQnCCbeonFdLVkC\", \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 \"transaction_number\": \"RF504-732-3118\", \n \"uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/refunds/RF1cWzNKWwQnCCbeonFdLVkC\"\n }\n ], \n \"last_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/refunds?limit=2&offset=0\", \n \"limit\": 2, \n \"next_uri\": null, \n \"offset\": 0, \n \"previous_uri\": null, \n \"total\": 1, \n \"uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/refunds?limit=2&offset=0\"\n}"
445
- },
544
+ },
545
+ "uri": "/debits/WD3MKNxNTKBGgA7mX50yogiu/refunds"
546
+ },
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-01-27T22:58:11.375665Z\", \n \"currency\": \"USD\", \n \"description\": \"Refund for Order #1111\", \n \"href\": \"/refunds/RF3RklPuFgsgI50UuYtr4g6I\", \n \"id\": \"RF3RklPuFgsgI50UuYtr4g6I\", \n \"links\": {\n \"debit\": \"WD3MKNxNTKBGgA7mX50yogiu\", \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\": \"RF383-088-7077\", \n \"updated_at\": \"2014-01-27T22:58:12.115131Z\"\n }\n ]\n}"
548
+ },
446
549
  "refund_list": {
447
550
  "request": {
448
- "uri": "/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/refunds"
449
- },
450
- "response": "{\n \"_type\": \"page\", \n \"_uris\": {\n \"first_uri\": {\n \"_type\": \"page\", \n \"key\": \"first\"\n }, \n \"last_uri\": {\n \"_type\": \"page\", \n \"key\": \"last\"\n }, \n \"next_uri\": {\n \"_type\": \"page\", \n \"key\": \"next\"\n }, \n \"previous_uri\": {\n \"_type\": \"page\", \n \"key\": \"previous\"\n }\n }, \n \"first_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/refunds?limit=2&offset=0\", \n \"items\": [\n {\n \"_type\": \"refund\", \n \"_uris\": {}, \n \"account\": {\n \"_type\": \"account\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/ACO702cHD2tPiOCRSKYzVf1/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/ACO702cHD2tPiOCRSKYzVf1/cards\", \n \"created_at\": \"2013-08-26T22:30:25.937376Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/ACO702cHD2tPiOCRSKYzVf1/credits\", \n \"customer_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/ACO702cHD2tPiOCRSKYzVf1/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/ACO702cHD2tPiOCRSKYzVf1/holds\", \n \"id\": \"ACO702cHD2tPiOCRSKYzVf1\", \n \"meta\": {}, \n \"name\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/ACO702cHD2tPiOCRSKYzVf1/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/ACO702cHD2tPiOCRSKYzVf1/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/ACO702cHD2tPiOCRSKYzVf1/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/ACO702cHD2tPiOCRSKYzVf1\"\n }, \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"created_at\": \"2013-08-26T22:30:48.042906Z\", \n \"customer\": {\n \"_type\": \"customer\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"source_uri\": {\n \"_type\": \"card\", \n \"key\": \"source\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"address\": {}, \n \"bank_accounts_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/cards\", \n \"created_at\": \"2013-08-26T22:30:25.937376Z\", \n \"credits_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/credits\", \n \"debits_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/holds\", \n \"id\": \"ACO702cHD2tPiOCRSKYzVf1\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/refunds\", \n \"reversals_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/reversals\", \n \"source_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/cards/CCQv8XnGsBHF9afrEdc0um3\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1\"\n }, \n \"debit\": {\n \"_type\": \"debit\", \n \"_uris\": {\n \"hold_uri\": {\n \"_type\": \"hold\", \n \"key\": \"hold\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }\n }, \n \"account_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/ACO702cHD2tPiOCRSKYzVf1\", \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"available_at\": \"2013-08-26T22:30:46.793463Z\", \n \"created_at\": \"2013-08-26T22:30:46.269164Z\", \n \"customer_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"fee\": null, \n \"hold_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/holds/HL1b1ZIkXBGoplsgir431CbM\", \n \"id\": \"WD1aYGtAuoJxpGSUYr8jVlyy\", \n \"meta\": {}, \n \"on_behalf_of_uri\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/debits/WD1aYGtAuoJxpGSUYr8jVlyy/refunds\", \n \"source_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/ACO702cHD2tPiOCRSKYzVf1/cards/CCQv8XnGsBHF9afrEdc0um3\", \n \"status\": \"succeeded\", \n \"transaction_number\": \"W495-350-9517\", \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/debits/WD1aYGtAuoJxpGSUYr8jVlyy\"\n }, \n \"description\": \"Refund for Order #1111\", \n \"fee\": null, \n \"id\": \"RF1cWzNKWwQnCCbeonFdLVkC\", \n \"meta\": {\n \"fulfillment.item.condition\": \"OK\", \n \"merchant.feedback\": \"positive\", \n \"user.refund_reason\": \"not happy with product\"\n }, \n \"transaction_number\": \"RF504-732-3118\", \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/refunds/RF1cWzNKWwQnCCbeonFdLVkC\"\n }, \n {\n \"_type\": \"refund\", \n \"_uris\": {}, \n \"account\": {\n \"_type\": \"account\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/cards\", \n \"created_at\": \"2013-08-26T22:29:00.832477Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/credits\", \n \"customer_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/holds\", \n \"id\": \"AC73sGhakFEQQFbLDX6WSq9y\", \n \"meta\": {}, \n \"name\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y\"\n }, \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"created_at\": \"2013-08-26T22:29:38.157939Z\", \n \"customer\": {\n \"_type\": \"customer\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"source_uri\": {\n \"_type\": \"card\", \n \"key\": \"source\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"address\": {}, \n \"bank_accounts_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/cards\", \n \"created_at\": \"2013-08-26T22:29:00.832477Z\", \n \"credits_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/credits\", \n \"debits_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/holds\", \n \"id\": \"AC73sGhakFEQQFbLDX6WSq9y\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/refunds\", \n \"reversals_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/reversals\", \n \"source_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/cards/CC76wxKkWO9RoCf8lX8oI9Cy\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y\"\n }, \n \"debit\": {\n \"_type\": \"debit\", \n \"_uris\": {\n \"hold_uri\": {\n \"_type\": \"hold\", \n \"key\": \"hold\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }\n }, \n \"account_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y\", \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"available_at\": \"2013-08-26T22:29:36.864936Z\", \n \"created_at\": \"2013-08-26T22:29:36.215761Z\", \n \"customer_uri\": \"/v1/customers/AC73sGhakFEQQFbLDX6WSq9y\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"fee\": null, \n \"hold_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/holds/HL7HhYrTzfLRziBfes3VAlEk\", \n \"id\": \"WD7HfOnPU0KhbO9WUEGw0qJq\", \n \"meta\": {}, \n \"on_behalf_of_uri\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/debits/WD7HfOnPU0KhbO9WUEGw0qJq/refunds\", \n \"source_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/AC73sGhakFEQQFbLDX6WSq9y/cards/CC76wxKkWO9RoCf8lX8oI9Cy\", \n \"status\": \"succeeded\", \n \"transaction_number\": \"W748-731-0310\", \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/debits/WD7HfOnPU0KhbO9WUEGw0qJq\"\n }, \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"fee\": null, \n \"id\": \"RF7JoC6EaAVQ4F7kkUsWc3Ta\", \n \"meta\": {}, \n \"transaction_number\": \"RF326-933-1975\", \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/refunds/RF7JoC6EaAVQ4F7kkUsWc3Ta\"\n }\n ], \n \"last_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/refunds?limit=2&offset=0\", \n \"limit\": 2, \n \"next_uri\": null, \n \"offset\": 0, \n \"previous_uri\": null, \n \"total\": 2, \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/refunds?limit=2&offset=0\"\n}"
451
- },
551
+ "uri": "/refunds"
552
+ },
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-01-27T22:58:11.375665Z\", \n \"currency\": \"USD\", \n \"description\": \"Refund for Order #1111\", \n \"href\": \"/refunds/RF3RklPuFgsgI50UuYtr4g6I\", \n \"id\": \"RF3RklPuFgsgI50UuYtr4g6I\", \n \"links\": {\n \"debit\": \"WD3MKNxNTKBGgA7mX50yogiu\", \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\": \"RF383-088-7077\", \n \"updated_at\": \"2014-01-27T22:58:12.115131Z\"\n }\n ]\n}"
554
+ },
452
555
  "refund_show": {
453
556
  "request": {
454
- "uri": "/v1/customers/ACO702cHD2tPiOCRSKYzVf1/refunds/RF1cWzNKWwQnCCbeonFdLVkC"
455
- },
456
- "response": "{\n \"_type\": \"refund\", \n \"_uris\": {}, \n \"account\": {\n \"_type\": \"account\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/ACO702cHD2tPiOCRSKYzVf1/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/ACO702cHD2tPiOCRSKYzVf1/cards\", \n \"created_at\": \"2013-08-26T22:30:25.937376Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/ACO702cHD2tPiOCRSKYzVf1/credits\", \n \"customer_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/ACO702cHD2tPiOCRSKYzVf1/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/ACO702cHD2tPiOCRSKYzVf1/holds\", \n \"id\": \"ACO702cHD2tPiOCRSKYzVf1\", \n \"meta\": {}, \n \"name\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/ACO702cHD2tPiOCRSKYzVf1/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/ACO702cHD2tPiOCRSKYzVf1/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/ACO702cHD2tPiOCRSKYzVf1/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/ACO702cHD2tPiOCRSKYzVf1\"\n }, \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"created_at\": \"2013-08-26T22:30:48.042906Z\", \n \"customer\": {\n \"_type\": \"customer\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"source_uri\": {\n \"_type\": \"card\", \n \"key\": \"source\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"address\": {}, \n \"bank_accounts_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/cards\", \n \"created_at\": \"2013-08-26T22:30:25.937376Z\", \n \"credits_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/credits\", \n \"debits_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/holds\", \n \"id\": \"ACO702cHD2tPiOCRSKYzVf1\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/refunds\", \n \"reversals_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/reversals\", \n \"source_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/cards/CCQv8XnGsBHF9afrEdc0um3\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1\"\n }, \n \"debit\": {\n \"_type\": \"debit\", \n \"_uris\": {\n \"hold_uri\": {\n \"_type\": \"hold\", \n \"key\": \"hold\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }\n }, \n \"account_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/ACO702cHD2tPiOCRSKYzVf1\", \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"available_at\": \"2013-08-26T22:30:46.793463Z\", \n \"created_at\": \"2013-08-26T22:30:46.269164Z\", \n \"customer_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"fee\": null, \n \"hold_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/holds/HL1b1ZIkXBGoplsgir431CbM\", \n \"id\": \"WD1aYGtAuoJxpGSUYr8jVlyy\", \n \"meta\": {}, \n \"on_behalf_of_uri\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/debits/WD1aYGtAuoJxpGSUYr8jVlyy/refunds\", \n \"source_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/ACO702cHD2tPiOCRSKYzVf1/cards/CCQv8XnGsBHF9afrEdc0um3\", \n \"status\": \"succeeded\", \n \"transaction_number\": \"W495-350-9517\", \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/debits/WD1aYGtAuoJxpGSUYr8jVlyy\"\n }, \n \"description\": \"Refund for Order #1111\", \n \"fee\": null, \n \"id\": \"RF1cWzNKWwQnCCbeonFdLVkC\", \n \"meta\": {\n \"fulfillment.item.condition\": \"OK\", \n \"merchant.feedback\": \"positive\", \n \"user.refund_reason\": \"not happy with product\"\n }, \n \"transaction_number\": \"RF504-732-3118\", \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/refunds/RF1cWzNKWwQnCCbeonFdLVkC\"\n}"
457
- },
557
+ "uri": "/refunds/RF3RklPuFgsgI50UuYtr4g6I"
558
+ },
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-01-27T22:58:11.375665Z\", \n \"currency\": \"USD\", \n \"description\": \"Refund for Order #1111\", \n \"href\": \"/refunds/RF3RklPuFgsgI50UuYtr4g6I\", \n \"id\": \"RF3RklPuFgsgI50UuYtr4g6I\", \n \"links\": {\n \"debit\": \"WD3MKNxNTKBGgA7mX50yogiu\", \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\": \"RF383-088-7077\", \n \"updated_at\": \"2014-01-27T22:58:12.115131Z\"\n }\n ]\n}"
560
+ },
458
561
  "refund_update": {
459
562
  "request": {
460
563
  "payload": {
461
- "description": "update this description",
564
+ "description": "update this description",
462
565
  "meta": {
463
- "refund.reason": "user not happy with product",
464
- "user.notes": "very polite on the phone",
566
+ "refund.reason": "user not happy with product",
567
+ "user.notes": "very polite on the phone",
465
568
  "user.refund.count": "3"
466
569
  }
467
- },
468
- "uri": "/v1/customers/ACO702cHD2tPiOCRSKYzVf1/refunds/RF1cWzNKWwQnCCbeonFdLVkC"
469
- },
470
- "response": "{\n \"_type\": \"refund\", \n \"_uris\": {}, \n \"account\": {\n \"_type\": \"account\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/ACO702cHD2tPiOCRSKYzVf1/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/ACO702cHD2tPiOCRSKYzVf1/cards\", \n \"created_at\": \"2013-08-26T22:30:25.937376Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/ACO702cHD2tPiOCRSKYzVf1/credits\", \n \"customer_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/ACO702cHD2tPiOCRSKYzVf1/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/ACO702cHD2tPiOCRSKYzVf1/holds\", \n \"id\": \"ACO702cHD2tPiOCRSKYzVf1\", \n \"meta\": {}, \n \"name\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/ACO702cHD2tPiOCRSKYzVf1/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/ACO702cHD2tPiOCRSKYzVf1/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/ACO702cHD2tPiOCRSKYzVf1/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/ACO702cHD2tPiOCRSKYzVf1\"\n }, \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"created_at\": \"2013-08-26T22:30:48.042906Z\", \n \"customer\": {\n \"_type\": \"customer\", \n \"_uris\": {\n \"bank_accounts_uri\": {\n \"_type\": \"page\", \n \"key\": \"bank_accounts\"\n }, \n \"cards_uri\": {\n \"_type\": \"page\", \n \"key\": \"cards\"\n }, \n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"debits_uri\": {\n \"_type\": \"page\", \n \"key\": \"debits\"\n }, \n \"holds_uri\": {\n \"_type\": \"page\", \n \"key\": \"holds\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }, \n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\n }, \n \"source_uri\": {\n \"_type\": \"card\", \n \"key\": \"source\"\n }, \n \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"address\": {}, \n \"bank_accounts_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/cards\", \n \"created_at\": \"2013-08-26T22:30:25.937376Z\", \n \"credits_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/credits\", \n \"debits_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/holds\", \n \"id\": \"ACO702cHD2tPiOCRSKYzVf1\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/refunds\", \n \"reversals_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/reversals\", \n \"source_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/cards/CCQv8XnGsBHF9afrEdc0um3\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1\"\n }, \n \"debit\": {\n \"_type\": \"debit\", \n \"_uris\": {\n \"hold_uri\": {\n \"_type\": \"hold\", \n \"key\": \"hold\"\n }, \n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }\n }, \n \"account_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/ACO702cHD2tPiOCRSKYzVf1\", \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"available_at\": \"2013-08-26T22:30:46.793463Z\", \n \"created_at\": \"2013-08-26T22:30:46.269164Z\", \n \"customer_uri\": \"/v1/customers/ACO702cHD2tPiOCRSKYzVf1\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"fee\": null, \n \"hold_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/holds/HL1b1ZIkXBGoplsgir431CbM\", \n \"id\": \"WD1aYGtAuoJxpGSUYr8jVlyy\", \n \"meta\": {}, \n \"on_behalf_of_uri\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/debits/WD1aYGtAuoJxpGSUYr8jVlyy/refunds\", \n \"source_uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/accounts/ACO702cHD2tPiOCRSKYzVf1/cards/CCQv8XnGsBHF9afrEdc0um3\", \n \"status\": \"succeeded\", \n \"transaction_number\": \"W495-350-9517\", \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/debits/WD1aYGtAuoJxpGSUYr8jVlyy\"\n }, \n \"description\": \"update this description\", \n \"fee\": null, \n \"id\": \"RF1cWzNKWwQnCCbeonFdLVkC\", \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 \"transaction_number\": \"RF504-732-3118\", \n \"uri\": \"/v1/marketplaces/TEST-MP4h8BxozeLxe7VAllP6b5gj/refunds/RF1cWzNKWwQnCCbeonFdLVkC\"\n}"
471
- }
570
+ },
571
+ "uri": "/refunds/RF3RklPuFgsgI50UuYtr4g6I"
572
+ },
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-01-27T22:58:11.375665Z\", \n \"currency\": \"USD\", \n \"description\": \"update this description\", \n \"href\": \"/refunds/RF3RklPuFgsgI50UuYtr4g6I\", \n \"id\": \"RF3RklPuFgsgI50UuYtr4g6I\", \n \"links\": {\n \"debit\": \"WD3MKNxNTKBGgA7mX50yogiu\", \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\": \"RF383-088-7077\", \n \"updated_at\": \"2014-01-27T22:58:17.950799Z\"\n }\n ]\n}"
574
+ },
575
+ "reversal_create": {
576
+ "request": {
577
+ "credit_href": "/credits/CR40neytmVG2HDBp1opfF7sY",
578
+ "payload": {
579
+ "amount": 3000,
580
+ "description": "Reversal for Order #1111",
581
+ "meta": {
582
+ "fulfillment.item.condition": "OK",
583
+ "merchant.feedback": "positive",
584
+ "user.refund_reason": "not happy with product"
585
+ }
586
+ },
587
+ "uri": "/credits/CR40neytmVG2HDBp1opfF7sY/reversals"
588
+ },
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-01-27T22:58:21.214829Z\", \n \"currency\": \"USD\", \n \"description\": \"Reversal for Order #1111\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/reversals/RV42n8M9XZWna427oPDDi4RG\", \n \"id\": \"RV42n8M9XZWna427oPDDi4RG\", \n \"links\": {\n \"credit\": \"CR40neytmVG2HDBp1opfF7sY\", \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\": \"RV219-169-0008\", \n \"updated_at\": \"2014-01-27T22:58:22.190749Z\"\n }\n ]\n}"
590
+ },
591
+ "reversal_list": {
592
+ "request": {
593
+ "uri": "/reversals"
594
+ },
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-01-27T22:58:21.214829Z\", \n \"currency\": \"USD\", \n \"description\": \"Reversal for Order #1111\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/reversals/RV42n8M9XZWna427oPDDi4RG\", \n \"id\": \"RV42n8M9XZWna427oPDDi4RG\", \n \"links\": {\n \"credit\": \"CR40neytmVG2HDBp1opfF7sY\", \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\": \"RV219-169-0008\", \n \"updated_at\": \"2014-01-27T22:58:22.190749Z\"\n }\n ]\n}"
596
+ },
597
+ "reversal_show": {
598
+ "request": {
599
+ "uri": "/reversals/RV42n8M9XZWna427oPDDi4RG"
600
+ },
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-01-27T22:58:21.214829Z\", \n \"currency\": \"USD\", \n \"description\": \"Reversal for Order #1111\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/reversals/RV42n8M9XZWna427oPDDi4RG\", \n \"id\": \"RV42n8M9XZWna427oPDDi4RG\", \n \"links\": {\n \"credit\": \"CR40neytmVG2HDBp1opfF7sY\", \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\": \"RV219-169-0008\", \n \"updated_at\": \"2014-01-27T22:58:22.190749Z\"\n }\n ]\n}"
602
+ },
603
+ "reversal_update": {
604
+ "request": {
605
+ "payload": {
606
+ "description": "update this description",
607
+ "meta": {
608
+ "refund.reason": "user not happy with product",
609
+ "user.notes": "very polite on the phone",
610
+ "user.satisfaction": "6"
611
+ }
612
+ },
613
+ "uri": "/reversals/RV42n8M9XZWna427oPDDi4RG"
614
+ },
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-01-27T22:58:21.214829Z\", \n \"currency\": \"USD\", \n \"description\": \"update this description\", \n \"failure_reason\": null, \n \"failure_reason_code\": null, \n \"href\": \"/reversals/RV42n8M9XZWna427oPDDi4RG\", \n \"id\": \"RV42n8M9XZWna427oPDDi4RG\", \n \"links\": {\n \"credit\": \"CR40neytmVG2HDBp1opfF7sY\", \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\": \"RV219-169-0008\", \n \"updated_at\": \"2014-01-27T22:58:27.354488Z\"\n }\n ]\n}"
616
+ },
617
+ "secret": "ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc"
472
618
  }