From a85d047db9a5a966de80fe17b9ba60593c774df9 Mon Sep 17 00:00:00 2001 From: Parham Negahdar Date: Tue, 6 Aug 2013 18:16:37 -0700 Subject: [PATCH 1/2] Fix doc rendering --- render.py | 55 +++ render_docs.py => render_from_bal_docs.py | 0 scenario.cache | 369 +++++++++--------- scenarios/_main.mako | 9 +- .../account_add_card/account_add_card.py | 6 +- scenarios/account_add_card/python.mako | 6 +- scenarios/account_add_card/request.mako | 10 +- .../account_capture_hold.py | 7 + scenarios/account_capture_hold/python.mako | 6 + scenarios/account_capture_hold/request.mako | 3 + scenarios/account_create/account_create.py | 2 +- scenarios/account_create/python.mako | 2 +- scenarios/account_create/request.mako | 6 +- .../account_create_buyer.py | 4 +- scenarios/account_create_buyer/python.mako | 4 +- scenarios/account_create_buyer/request.mako | 10 +- .../account_create_debit.py | 7 + scenarios/account_create_debit/python.mako | 6 + scenarios/account_create_debit/request.mako | 3 + .../account_create_hold.py | 7 +- scenarios/account_create_hold/definition.mako | 2 +- scenarios/account_create_hold/python.mako | 13 +- scenarios/account_create_hold/request.mako | 9 +- .../account_create_merchant.py | 6 +- scenarios/account_create_merchant/python.mako | 6 +- .../account_create_merchant/request.mako | 10 +- .../account_underwrite_business.py | 2 +- .../account_underwrite_business/python.mako | 2 +- .../account_underwrite_business/request.mako | 35 +- .../account_underwrite_person.py | 2 +- .../account_underwrite_person/python.mako | 2 +- .../account_underwrite_person/request.mako | 15 +- .../bank_account_create.py | 2 +- scenarios/bank_account_create/python.mako | 2 +- scenarios/bank_account_create/request.mako | 13 +- .../bank_account_delete.py | 4 +- scenarios/bank_account_delete/python.mako | 4 +- scenarios/bank_account_delete/request.mako | 8 +- .../bank_account_find_and_credit.py | 7 - .../bank_account_find_and_credit/python.mako | 6 - .../bank_account_find_and_credit/request.mako | 7 - .../bank_account_find_and_delete.py | 7 - .../bank_account_find_and_delete/python.mako | 6 - .../bank_account_find_and_delete/request.mako | 7 - .../bank_account_invalid_routing_number.py | 2 +- .../python.mako | 2 +- .../request.mako | 13 +- .../bank_account_list/bank_account_list.py | 2 +- scenarios/bank_account_list/python.mako | 2 +- scenarios/bank_account_list/request.mako | 6 +- .../bank_account_show/bank_account_show.py | 4 +- scenarios/bank_account_show/python.mako | 4 +- scenarios/bank_account_show/request.mako | 8 +- .../bank_account_verification_create.py | 4 +- .../python.mako | 4 +- .../request.mako | 8 +- .../bank_account_verification_show.py | 4 +- .../python.mako | 4 +- .../request.mako | 8 +- .../bank_account_verification_update.py | 4 +- .../python.mako | 4 +- .../request.mako | 13 +- scenarios/callback_create/definition.mako | 1 + scenarios/callback_create/python.mako | 2 +- scenarios/callback_create/request.mako | 6 + .../callback_delete.py} | 0 scenarios/callback_delete/python.mako | 7 + scenarios/callback_list/definition.mako | 1 + scenarios/callback_list/python.mako | 2 +- scenarios/callback_list/request.mako | 2 + scenarios/callback_show/callback_show.py | 0 scenarios/callback_show/python.mako | 7 + scenarios/card_create/card_create.py | 2 +- scenarios/card_create/python.mako | 2 +- scenarios/card_create/request.mako | 13 +- scenarios/card_delete/card_delete.py | 7 - scenarios/card_delete/definition.mako | 1 - scenarios/card_delete/python.mako | 13 - scenarios/card_delete/request.mako | 7 - scenarios/card_invalidate/card_invalidate.py | 4 +- scenarios/card_invalidate/python.mako | 4 +- scenarios/card_invalidate/request.mako | 8 +- scenarios/card_list/card_list.py | 2 +- scenarios/card_list/python.mako | 2 +- scenarios/card_list/request.mako | 6 +- scenarios/card_show/card_show.py | 4 +- scenarios/card_show/python.mako | 4 +- scenarios/card_show/request.mako | 8 +- scenarios/card_update/card_update.py | 4 +- scenarios/card_update/python.mako | 4 +- scenarios/card_update/request.mako | 14 +- .../credit_account_list.py | 7 + scenarios/credit_account_list/python.mako | 6 + scenarios/credit_account_list/request.mako | 3 + .../credit_account_merchant_create.py | 7 + .../python.mako | 6 + .../request.mako | 3 + .../credit_bank_account_list.py | 4 +- .../credit_bank_account_list/python.mako | 4 +- .../credit_bank_account_list/request.mako | 8 +- .../credit_create_existing_bank_account.py | 4 +- .../python.mako | 4 +- .../request.mako | 10 +- .../credit_create_new_bank_account.py | 2 +- .../python.mako | 2 +- .../request.mako | 15 +- .../credit_customer_list.py | 7 - .../credit_customer_list/definition.mako | 1 - scenarios/credit_customer_list/python.mako | 13 - scenarios/credit_customer_list/request.mako | 7 - .../credit_failed_state.py | 4 +- scenarios/credit_failed_state/python.mako | 4 +- scenarios/credit_failed_state/request.mako | 15 +- scenarios/credit_list/credit_list.py | 2 +- scenarios/credit_list/python.mako | 2 +- scenarios/credit_list/request.mako | 6 +- .../credit_paid_state/credit_paid_state.py | 4 +- scenarios/credit_paid_state/python.mako | 4 +- scenarios/credit_paid_state/request.mako | 15 +- .../credit_pending_state.py | 2 +- scenarios/credit_pending_state/python.mako | 2 +- scenarios/credit_pending_state/request.mako | 15 +- scenarios/credit_show/credit_show.py | 4 +- scenarios/credit_show/python.mako | 4 +- scenarios/credit_show/request.mako | 8 +- .../customer_add_bank_account.py | 6 +- .../customer_add_bank_account/python.mako | 6 +- .../customer_add_bank_account/request.mako | 10 +- .../customer_add_card/customer_add_card.py | 6 +- scenarios/customer_add_card/python.mako | 6 +- scenarios/customer_add_card/request.mako | 10 +- .../customer_capture_hold/definition.mako | 1 - scenarios/customer_capture_hold/request.mako | 3 - scenarios/customer_create/customer_create.py | 2 +- scenarios/customer_create/python.mako | 2 +- scenarios/customer_create/request.mako | 6 +- .../customer_create_debit.py | 7 - .../customer_create_debit/definition.mako | 1 - scenarios/customer_create_debit/python.mako | 13 - scenarios/customer_create_debit/request.mako | 7 - .../customer_create_hold.py | 7 - .../customer_create_hold/definition.mako | 1 - scenarios/customer_create_hold/python.mako | 13 - scenarios/customer_create_hold/request.mako | 7 - scenarios/customer_credit/customer_credit.py | 7 - scenarios/customer_credit/definition.mako | 1 - scenarios/customer_credit/python.mako | 13 - scenarios/customer_credit/request.mako | 7 - .../debit_account_list/debit_account_list.py | 7 + scenarios/debit_account_list/python.mako | 6 + scenarios/debit_account_list/request.mako | 3 + scenarios/debit_create/debit_create.py | 6 +- scenarios/debit_create/definition.mako | 2 +- scenarios/debit_create/python.mako | 8 +- scenarios/debit_create/request.mako | 16 +- .../debit_customer_list.py | 7 - scenarios/debit_customer_list/definition.mako | 1 - scenarios/debit_customer_list/python.mako | 13 - scenarios/debit_customer_list/request.mako | 7 - scenarios/debit_list/debit_list.py | 2 +- scenarios/debit_list/python.mako | 2 +- scenarios/debit_list/request.mako | 6 +- scenarios/debit_refund/debit_refund.py | 4 +- scenarios/debit_refund/python.mako | 4 +- scenarios/debit_refund/request.mako | 8 +- scenarios/debit_show/debit_show.py | 4 +- scenarios/debit_show/python.mako | 4 +- scenarios/debit_show/request.mako | 8 +- scenarios/debit_update/debit_update.py | 4 +- scenarios/debit_update/python.mako | 4 +- scenarios/debit_update/request.mako | 15 +- scenarios/event_list/event_list.py | 2 +- scenarios/event_list/python.mako | 2 +- scenarios/event_list/request.mako | 6 +- scenarios/event_show/event_show.py | 4 +- scenarios/event_show/python.mako | 4 +- scenarios/event_show/request.mako | 8 +- .../hold_account_list/hold_account_list.py | 7 + scenarios/hold_account_list/python.mako | 6 + scenarios/hold_account_list/request.mako | 3 + scenarios/hold_capture/hold_capture.py | 4 +- scenarios/hold_capture/python.mako | 4 +- scenarios/hold_capture/request.mako | 14 +- scenarios/hold_create/definition.mako | 2 +- scenarios/hold_create/hold_create.py | 6 +- scenarios/hold_create/python.mako | 8 +- scenarios/hold_create/request.mako | 15 +- scenarios/hold_customer_list/definition.mako | 1 - .../hold_customer_list/hold_customer_list.py | 7 - scenarios/hold_customer_list/python.mako | 13 - scenarios/hold_customer_list/request.mako | 7 - scenarios/hold_list/hold_list.py | 2 +- scenarios/hold_list/python.mako | 2 +- scenarios/hold_list/request.mako | 6 +- scenarios/hold_show/hold_show.py | 4 +- scenarios/hold_show/python.mako | 4 +- scenarios/hold_show/request.mako | 8 +- scenarios/hold_update/hold_update.py | 4 +- scenarios/hold_update/python.mako | 4 +- scenarios/hold_update/request.mako | 15 +- scenarios/hold_void/hold_void.py | 4 +- scenarios/hold_void/python.mako | 4 +- scenarios/hold_void/request.mako | 8 +- scenarios/refund_account_list/python.mako | 6 + .../refund_account_list.py | 7 + scenarios/refund_account_list/request.mako | 3 + scenarios/refund_create/python.mako | 4 +- scenarios/refund_create/refund_create.py | 4 +- scenarios/refund_create/request.mako | 16 +- .../refund_customer_list/definition.mako | 1 - scenarios/refund_customer_list/python.mako | 13 - .../refund_customer_list.py | 7 - scenarios/refund_customer_list/request.mako | 7 - scenarios/refund_list/python.mako | 2 +- scenarios/refund_list/refund_list.py | 2 +- scenarios/refund_list/request.mako | 6 +- scenarios/refund_show/python.mako | 4 +- scenarios/refund_show/refund_show.py | 4 +- scenarios/refund_show/request.mako | 8 +- scenarios/refund_update/python.mako | 4 +- scenarios/refund_update/refund_update.py | 4 +- scenarios/refund_update/request.mako | 16 +- 222 files changed, 716 insertions(+), 1009 deletions(-) create mode 100644 render.py rename render_docs.py => render_from_bal_docs.py (100%) rename scenarios/{customer_capture_hold/python.mako => callback_delete/callback_delete.py} (100%) create mode 100644 scenarios/callback_show/callback_show.py delete mode 100644 scenarios/card_delete/card_delete.py delete mode 100644 scenarios/card_delete/definition.mako delete mode 100644 scenarios/card_delete/python.mako delete mode 100644 scenarios/card_delete/request.mako delete mode 100644 scenarios/credit_customer_list/credit_customer_list.py delete mode 100644 scenarios/credit_customer_list/definition.mako delete mode 100644 scenarios/credit_customer_list/python.mako delete mode 100644 scenarios/credit_customer_list/request.mako delete mode 100644 scenarios/customer_capture_hold/definition.mako delete mode 100644 scenarios/customer_capture_hold/request.mako delete mode 100644 scenarios/customer_create_debit/customer_create_debit.py delete mode 100644 scenarios/customer_create_debit/definition.mako delete mode 100644 scenarios/customer_create_debit/python.mako delete mode 100644 scenarios/customer_create_debit/request.mako delete mode 100644 scenarios/customer_create_hold/customer_create_hold.py delete mode 100644 scenarios/customer_create_hold/definition.mako delete mode 100644 scenarios/customer_create_hold/python.mako delete mode 100644 scenarios/customer_create_hold/request.mako delete mode 100644 scenarios/customer_credit/customer_credit.py delete mode 100644 scenarios/customer_credit/definition.mako delete mode 100644 scenarios/customer_credit/python.mako delete mode 100644 scenarios/customer_credit/request.mako delete mode 100644 scenarios/debit_customer_list/debit_customer_list.py delete mode 100644 scenarios/debit_customer_list/definition.mako delete mode 100644 scenarios/debit_customer_list/python.mako delete mode 100644 scenarios/debit_customer_list/request.mako delete mode 100644 scenarios/hold_customer_list/definition.mako delete mode 100644 scenarios/hold_customer_list/hold_customer_list.py delete mode 100644 scenarios/hold_customer_list/python.mako delete mode 100644 scenarios/hold_customer_list/request.mako delete mode 100644 scenarios/refund_customer_list/definition.mako delete mode 100644 scenarios/refund_customer_list/python.mako delete mode 100644 scenarios/refund_customer_list/refund_customer_list.py delete mode 100644 scenarios/refund_customer_list/request.mako diff --git a/render.py b/render.py new file mode 100644 index 0000000..87eaf88 --- /dev/null +++ b/render.py @@ -0,0 +1,55 @@ +from __future__ import unicode_literals +import json +import os + +import glob2 +from mako.template import Template +from mako.lookup import TemplateLookup +from mako.exceptions import SyntaxException + +def render_docs(): + """ + Processes request.mako and definiton.mako to create a semi-static + python.mako + """ + data = json.load(open('scenario.cache', 'r')) + lookup = TemplateLookup(directories=['./scenarios']) + for directory in glob2.glob('./scenarios/**/'): + try: + with open(os.path.join(directory, 'definition.mako'), 'r') as definition_file: + definition_body = definition_file.read() + with open(os.path.join(directory, 'request.mako'), 'r') as request_file: + request_body = request_file.read() + except IOError: + print "WARNING: {} doesnt have both request and definition".format( + directory) + continue + event_name = directory.split('/')[-2] + try: + request_body_fixed = "<%namespace file='/_main.mako' name='main'/>\n" + request_body + request = data[event_name].get('request', {}) + payload = request.get('payload') + template = Template(text=request_body_fixed, lookup=lookup) + request_rendered = template.render( + api_key=data['api_key'], request=request, + payload=payload).strip() + except KeyError: + print "WARN: Skipped {} since {} not in scenario.cache".format( + directory, event_name) + continue + except SyntaxException: + print "Mako syntax exception on {}".format(directory) + continue + + + with open(os.path.join(directory, 'python.mako'), 'w+b') as wfile: + request_rendered.replace("<%namespace file='/_main.mako' name='main'/>\n", '') + full_body = "% if mode == 'definition':\n\n{}\n% else:\n{}\n\n% endif".format(definition_body, request_rendered) + wfile.write(full_body) + print "{} done!".format(directory) + + +if __name__ == "__main__": + print "Rendering docs:" + render_docs() + print "DONE!" diff --git a/render_docs.py b/render_from_bal_docs.py similarity index 100% rename from render_docs.py rename to render_from_bal_docs.py diff --git a/scenario.cache b/scenario.cache index 040d617..529ac27 100644 --- a/scenario.cache +++ b/scenario.cache @@ -2,39 +2,71 @@ "account_add_card": { "request": { "payload": { - "card_uri": "/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/cards/CC6yon5Mb6xKmV3dmLRuAXaT" + "card_uri": "/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/cards/CC4ejBuNLWYWy2Pb6Hxbv6A0" }, - "uri": "/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC6x0RfYdlHM6EV2G2ZTq0K2" + "uri": "/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg" }, - "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 \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC6x0RfYdlHM6EV2G2ZTq0K2/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC6x0RfYdlHM6EV2G2ZTq0K2/cards\", \n \"created_at\": \"2013-06-12T22:24:25.334403Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC6x0RfYdlHM6EV2G2ZTq0K2/credits\", \n \"customer_uri\": \"/v1/customers/AC6x0RfYdlHM6EV2G2ZTq0K2\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC6x0RfYdlHM6EV2G2ZTq0K2/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC6x0RfYdlHM6EV2G2ZTq0K2/holds\", \n \"id\": \"AC6x0RfYdlHM6EV2G2ZTq0K2\", \n \"meta\": {}, \n \"name\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC6x0RfYdlHM6EV2G2ZTq0K2/refunds\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC6x0RfYdlHM6EV2G2ZTq0K2/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC6x0RfYdlHM6EV2G2ZTq0K2\"\n}" + "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-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/cards\", \n \"created_at\": \"2013-08-06T22:50:05.055709Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/credits\", \n \"customer_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/holds\", \n \"id\": \"AC4aHI8dZiHocr1M5FARdZzg\", \n \"meta\": {}, \n \"name\": \"None\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg\"\n}" + }, + "account_capture_hold": { + "request": { + "account_uri": "/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC5YbzH94PeuRxZicqtxCmE8", + "payload": { + "amount": 1000, + "hold_uri": "/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/holds/HL6ckujG3wcPvCI2yQscEV7W" + }, + "uri": "/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC5YbzH94PeuRxZicqtxCmE8/debits" + }, + "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-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC5YbzH94PeuRxZicqtxCmE8/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC5YbzH94PeuRxZicqtxCmE8/cards\", \n \"created_at\": \"2013-08-06T22:51:44.170294Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC5YbzH94PeuRxZicqtxCmE8/credits\", \n \"customer_uri\": \"/v1/customers/AC5YbzH94PeuRxZicqtxCmE8\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC5YbzH94PeuRxZicqtxCmE8/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC5YbzH94PeuRxZicqtxCmE8/holds\", \n \"id\": \"AC5YbzH94PeuRxZicqtxCmE8\", \n \"meta\": {}, \n \"name\": \"None\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC5YbzH94PeuRxZicqtxCmE8/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC5YbzH94PeuRxZicqtxCmE8/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC5YbzH94PeuRxZicqtxCmE8/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC5YbzH94PeuRxZicqtxCmE8\"\n }, \n \"amount\": 1000, \n \"appears_on_statement_as\": \"example.com\", \n \"available_at\": \"2013-08-06T22:52:00.672334Z\", \n \"created_at\": \"2013-08-06T22:51:57.879529Z\", \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/CU5YJreiq5dLEHfh7UWtXCoM/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU5YJreiq5dLEHfh7UWtXCoM/cards\", \n \"created_at\": \"2013-08-06T22:51:44.655968Z\", \n \"credits_uri\": \"/v1/customers/CU5YJreiq5dLEHfh7UWtXCoM/credits\", \n \"debits_uri\": \"/v1/customers/CU5YJreiq5dLEHfh7UWtXCoM/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU5YJreiq5dLEHfh7UWtXCoM/holds\", \n \"id\": \"CU5YJreiq5dLEHfh7UWtXCoM\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU5YJreiq5dLEHfh7UWtXCoM/refunds\", \n \"reversals_uri\": \"/v1/customers/CU5YJreiq5dLEHfh7UWtXCoM/reversals\", \n \"source_uri\": \"/v1/customers/AC5YbzH94PeuRxZicqtxCmE8/cards/CC5WnLs62QL0arljSl7Q5LVC\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU5YJreiq5dLEHfh7UWtXCoM/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU5YJreiq5dLEHfh7UWtXCoM\"\n }, \n \"description\": null, \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-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC5YbzH94PeuRxZicqtxCmE8\", \n \"amount\": 1000, \n \"created_at\": \"2013-08-06T22:51:56.745814Z\", \n \"customer_uri\": \"/v1/customers/CU5YJreiq5dLEHfh7UWtXCoM\", \n \"debit_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/debits/WD6dAVIu6JWidYECRwZLcJ6e\", \n \"description\": null, \n \"expires_at\": \"2013-08-13T22:51:56.601118Z\", \n \"fee\": null, \n \"id\": \"HL6ckujG3wcPvCI2yQscEV7W\", \n \"is_void\": false, \n \"meta\": {}, \n \"source_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC5YbzH94PeuRxZicqtxCmE8/cards/CC5WnLs62QL0arljSl7Q5LVC\", \n \"transaction_number\": \"HL829-339-8152\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/holds/HL6ckujG3wcPvCI2yQscEV7W\"\n }, \n \"id\": \"WD6dAVIu6JWidYECRwZLcJ6e\", \n \"meta\": {}, \n \"on_behalf_of\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/debits/WD6dAVIu6JWidYECRwZLcJ6e/refunds\", \n \"source\": {\n \"_type\": \"card\", \n \"_uris\": {\n \"account_uri\": {\n \"_type\": \"account\", \n \"key\": \"account\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }\n }, \n \"account_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC5YbzH94PeuRxZicqtxCmE8\", \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"created_at\": \"2013-08-06T22:51:42.560008Z\", \n \"customer_uri\": \"/v1/customers/AC5YbzH94PeuRxZicqtxCmE8\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"b7250dd4b4827a88d5e4132b67f02916bce6f8e83d4ca0d779d1351b360ff6af\", \n \"id\": \"CC5WnLs62QL0arljSl7Q5LVC\", \n \"is_valid\": true, \n \"is_verified\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": \"None\", \n \"postal_code_check\": \"true\", \n \"security_code_check\": \"true\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC5YbzH94PeuRxZicqtxCmE8/cards/CC5WnLs62QL0arljSl7Q5LVC\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W335-326-4937\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/debits/WD6dAVIu6JWidYECRwZLcJ6e\"\n}" }, "account_create": { "request": { - "uri": "/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts" + "uri": "/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts" }, - "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 \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC6uuVRWrfQcpmRdR3hyoSis/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC6uuVRWrfQcpmRdR3hyoSis/cards\", \n \"created_at\": \"2013-06-12T22:24:23.095166Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC6uuVRWrfQcpmRdR3hyoSis/credits\", \n \"customer_uri\": \"/v1/customers/AC6uuVRWrfQcpmRdR3hyoSis\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC6uuVRWrfQcpmRdR3hyoSis/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC6uuVRWrfQcpmRdR3hyoSis/holds\", \n \"id\": \"AC6uuVRWrfQcpmRdR3hyoSis\", \n \"meta\": {}, \n \"name\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC6uuVRWrfQcpmRdR3hyoSis/refunds\", \n \"roles\": [], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC6uuVRWrfQcpmRdR3hyoSis/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC6uuVRWrfQcpmRdR3hyoSis\"\n}" + "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-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC47SXhxPtX7R2G1jOjLAPQ6/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC47SXhxPtX7R2G1jOjLAPQ6/cards\", \n \"created_at\": \"2013-08-06T22:50:02.539224Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC47SXhxPtX7R2G1jOjLAPQ6/credits\", \n \"customer_uri\": \"/v1/customers/AC47SXhxPtX7R2G1jOjLAPQ6\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC47SXhxPtX7R2G1jOjLAPQ6/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC47SXhxPtX7R2G1jOjLAPQ6/holds\", \n \"id\": \"AC47SXhxPtX7R2G1jOjLAPQ6\", \n \"meta\": {}, \n \"name\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC47SXhxPtX7R2G1jOjLAPQ6/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC47SXhxPtX7R2G1jOjLAPQ6/reversals\", \n \"roles\": [], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC47SXhxPtX7R2G1jOjLAPQ6/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC47SXhxPtX7R2G1jOjLAPQ6\"\n}" }, "account_create_buyer": { "request": { "payload": { - "card_uri": "/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/cards/CC6wEPGAzIQmdgiFUO4beyoU" + "card_uri": "/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/cards/CC5WnLs62QL0arljSl7Q5LVC" }, - "uri": "/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts" + "uri": "/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts" }, - "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 \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC6x0RfYdlHM6EV2G2ZTq0K2/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC6x0RfYdlHM6EV2G2ZTq0K2/cards\", \n \"created_at\": \"2013-06-12T22:24:25.334403Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC6x0RfYdlHM6EV2G2ZTq0K2/credits\", \n \"customer_uri\": \"/v1/customers/AC6x0RfYdlHM6EV2G2ZTq0K2\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC6x0RfYdlHM6EV2G2ZTq0K2/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC6x0RfYdlHM6EV2G2ZTq0K2/holds\", \n \"id\": \"AC6x0RfYdlHM6EV2G2ZTq0K2\", \n \"meta\": {}, \n \"name\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC6x0RfYdlHM6EV2G2ZTq0K2/refunds\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC6x0RfYdlHM6EV2G2ZTq0K2/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC6x0RfYdlHM6EV2G2ZTq0K2\"\n}" + "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-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC5YbzH94PeuRxZicqtxCmE8/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC5YbzH94PeuRxZicqtxCmE8/cards\", \n \"created_at\": \"2013-08-06T22:51:44.170294Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC5YbzH94PeuRxZicqtxCmE8/credits\", \n \"customer_uri\": \"/v1/customers/AC5YbzH94PeuRxZicqtxCmE8\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC5YbzH94PeuRxZicqtxCmE8/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC5YbzH94PeuRxZicqtxCmE8/holds\", \n \"id\": \"AC5YbzH94PeuRxZicqtxCmE8\", \n \"meta\": {}, \n \"name\": \"None\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC5YbzH94PeuRxZicqtxCmE8/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC5YbzH94PeuRxZicqtxCmE8/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC5YbzH94PeuRxZicqtxCmE8/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC5YbzH94PeuRxZicqtxCmE8\"\n}" + }, + "account_create_debit": { + "request": { + "account_uri": "/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC5YbzH94PeuRxZicqtxCmE8", + "payload": { + "amount": 1000 + }, + "uri": "/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC5YbzH94PeuRxZicqtxCmE8/debits" + }, + "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-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC5YbzH94PeuRxZicqtxCmE8/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC5YbzH94PeuRxZicqtxCmE8/cards\", \n \"created_at\": \"2013-08-06T22:51:44.170294Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC5YbzH94PeuRxZicqtxCmE8/credits\", \n \"customer_uri\": \"/v1/customers/AC5YbzH94PeuRxZicqtxCmE8\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC5YbzH94PeuRxZicqtxCmE8/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC5YbzH94PeuRxZicqtxCmE8/holds\", \n \"id\": \"AC5YbzH94PeuRxZicqtxCmE8\", \n \"meta\": {}, \n \"name\": \"None\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC5YbzH94PeuRxZicqtxCmE8/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC5YbzH94PeuRxZicqtxCmE8/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC5YbzH94PeuRxZicqtxCmE8/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC5YbzH94PeuRxZicqtxCmE8\"\n }, \n \"amount\": 1000, \n \"appears_on_statement_as\": \"example.com\", \n \"available_at\": \"2013-08-06T22:51:47.915725Z\", \n \"created_at\": \"2013-08-06T22:51:47.337708Z\", \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/CU5YJreiq5dLEHfh7UWtXCoM/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU5YJreiq5dLEHfh7UWtXCoM/cards\", \n \"created_at\": \"2013-08-06T22:51:44.655968Z\", \n \"credits_uri\": \"/v1/customers/CU5YJreiq5dLEHfh7UWtXCoM/credits\", \n \"debits_uri\": \"/v1/customers/CU5YJreiq5dLEHfh7UWtXCoM/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU5YJreiq5dLEHfh7UWtXCoM/holds\", \n \"id\": \"CU5YJreiq5dLEHfh7UWtXCoM\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU5YJreiq5dLEHfh7UWtXCoM/refunds\", \n \"reversals_uri\": \"/v1/customers/CU5YJreiq5dLEHfh7UWtXCoM/reversals\", \n \"source_uri\": \"/v1/customers/AC5YbzH94PeuRxZicqtxCmE8/cards/CC5WnLs62QL0arljSl7Q5LVC\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU5YJreiq5dLEHfh7UWtXCoM/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU5YJreiq5dLEHfh7UWtXCoM\"\n }, \n \"description\": null, \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-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC5YbzH94PeuRxZicqtxCmE8\", \n \"amount\": 1000, \n \"created_at\": \"2013-08-06T22:51:47.411415Z\", \n \"customer_uri\": \"/v1/customers/CU5YJreiq5dLEHfh7UWtXCoM\", \n \"debit_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/debits/WD61KuKlLNchHdCxQXpayJY3\", \n \"description\": null, \n \"expires_at\": \"2013-08-13T22:51:47.174942Z\", \n \"fee\": null, \n \"id\": \"HL61PSmW9EVs1WwOJvZKynUj\", \n \"is_void\": false, \n \"meta\": {}, \n \"source_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC5YbzH94PeuRxZicqtxCmE8/cards/CC5WnLs62QL0arljSl7Q5LVC\", \n \"transaction_number\": \"HL122-204-5838\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/holds/HL61PSmW9EVs1WwOJvZKynUj\"\n }, \n \"id\": \"WD61KuKlLNchHdCxQXpayJY3\", \n \"meta\": {}, \n \"on_behalf_of\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/debits/WD61KuKlLNchHdCxQXpayJY3/refunds\", \n \"source\": {\n \"_type\": \"card\", \n \"_uris\": {\n \"account_uri\": {\n \"_type\": \"account\", \n \"key\": \"account\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }\n }, \n \"account_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC5YbzH94PeuRxZicqtxCmE8\", \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"created_at\": \"2013-08-06T22:51:42.560008Z\", \n \"customer_uri\": \"/v1/customers/AC5YbzH94PeuRxZicqtxCmE8\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"b7250dd4b4827a88d5e4132b67f02916bce6f8e83d4ca0d779d1351b360ff6af\", \n \"id\": \"CC5WnLs62QL0arljSl7Q5LVC\", \n \"is_valid\": true, \n \"is_verified\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": \"None\", \n \"postal_code_check\": \"true\", \n \"security_code_check\": \"true\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC5YbzH94PeuRxZicqtxCmE8/cards/CC5WnLs62QL0arljSl7Q5LVC\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W514-187-0836\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/debits/WD61KuKlLNchHdCxQXpayJY3\"\n}" + }, + "account_create_hold": { + "request": { + "account_id": "AC5YbzH94PeuRxZicqtxCmE8", + "account_uri": "/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC5YbzH94PeuRxZicqtxCmE8", + "payload": { + "amount": 1000 + }, + "uri": "/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC5YbzH94PeuRxZicqtxCmE8/holds" + }, + "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-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC5YbzH94PeuRxZicqtxCmE8/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC5YbzH94PeuRxZicqtxCmE8/cards\", \n \"created_at\": \"2013-08-06T22:51:44.170294Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC5YbzH94PeuRxZicqtxCmE8/credits\", \n \"customer_uri\": \"/v1/customers/AC5YbzH94PeuRxZicqtxCmE8\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC5YbzH94PeuRxZicqtxCmE8/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC5YbzH94PeuRxZicqtxCmE8/holds\", \n \"id\": \"AC5YbzH94PeuRxZicqtxCmE8\", \n \"meta\": {}, \n \"name\": \"None\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC5YbzH94PeuRxZicqtxCmE8/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC5YbzH94PeuRxZicqtxCmE8/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC5YbzH94PeuRxZicqtxCmE8/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC5YbzH94PeuRxZicqtxCmE8\"\n }, \n \"amount\": 1000, \n \"created_at\": \"2013-08-06T22:51:56.745814Z\", \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/CU5YJreiq5dLEHfh7UWtXCoM/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU5YJreiq5dLEHfh7UWtXCoM/cards\", \n \"created_at\": \"2013-08-06T22:51:44.655968Z\", \n \"credits_uri\": \"/v1/customers/CU5YJreiq5dLEHfh7UWtXCoM/credits\", \n \"debits_uri\": \"/v1/customers/CU5YJreiq5dLEHfh7UWtXCoM/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU5YJreiq5dLEHfh7UWtXCoM/holds\", \n \"id\": \"CU5YJreiq5dLEHfh7UWtXCoM\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU5YJreiq5dLEHfh7UWtXCoM/refunds\", \n \"reversals_uri\": \"/v1/customers/CU5YJreiq5dLEHfh7UWtXCoM/reversals\", \n \"source_uri\": \"/v1/customers/AC5YbzH94PeuRxZicqtxCmE8/cards/CC5WnLs62QL0arljSl7Q5LVC\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU5YJreiq5dLEHfh7UWtXCoM/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU5YJreiq5dLEHfh7UWtXCoM\"\n }, \n \"debit\": null, \n \"description\": null, \n \"expires_at\": \"2013-08-13T22:51:56.601118Z\", \n \"fee\": null, \n \"id\": \"HL6ckujG3wcPvCI2yQscEV7W\", \n \"is_void\": false, \n \"meta\": {}, \n \"source\": {\n \"_type\": \"card\", \n \"_uris\": {\n \"account_uri\": {\n \"_type\": \"account\", \n \"key\": \"account\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }\n }, \n \"account_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC5YbzH94PeuRxZicqtxCmE8\", \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"created_at\": \"2013-08-06T22:51:42.560008Z\", \n \"customer_uri\": \"/v1/customers/AC5YbzH94PeuRxZicqtxCmE8\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"b7250dd4b4827a88d5e4132b67f02916bce6f8e83d4ca0d779d1351b360ff6af\", \n \"id\": \"CC5WnLs62QL0arljSl7Q5LVC\", \n \"is_valid\": true, \n \"is_verified\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": \"None\", \n \"postal_code_check\": \"true\", \n \"security_code_check\": \"true\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC5YbzH94PeuRxZicqtxCmE8/cards/CC5WnLs62QL0arljSl7Q5LVC\"\n }, \n \"transaction_number\": \"HL829-339-8152\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/holds/HL6ckujG3wcPvCI2yQscEV7W\"\n}" }, "account_create_merchant": { "request": { "payload": { - "bank_account_uri": "/v1/bank_accounts/BA6AOckxt2HBpyXSGwiyCIKy" + "bank_account_uri": "/v1/bank_accounts/BA4gGTZiAgLomq8IjMjYcB32" }, - "uri": "/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC6x0RfYdlHM6EV2G2ZTq0K2" + "uri": "/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg" }, - "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 \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC6x0RfYdlHM6EV2G2ZTq0K2/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC6x0RfYdlHM6EV2G2ZTq0K2/cards\", \n \"created_at\": \"2013-06-12T22:24:25.334403Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC6x0RfYdlHM6EV2G2ZTq0K2/credits\", \n \"customer_uri\": \"/v1/customers/AC6x0RfYdlHM6EV2G2ZTq0K2\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC6x0RfYdlHM6EV2G2ZTq0K2/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC6x0RfYdlHM6EV2G2ZTq0K2/holds\", \n \"id\": \"AC6x0RfYdlHM6EV2G2ZTq0K2\", \n \"meta\": {}, \n \"name\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC6x0RfYdlHM6EV2G2ZTq0K2/refunds\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC6x0RfYdlHM6EV2G2ZTq0K2/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC6x0RfYdlHM6EV2G2ZTq0K2\"\n}" + "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-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/cards\", \n \"created_at\": \"2013-08-06T22:50:05.055709Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/credits\", \n \"customer_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/holds\", \n \"id\": \"AC4aHI8dZiHocr1M5FARdZzg\", \n \"meta\": {}, \n \"name\": \"None\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg\"\n}" }, "account_underwrite_business": { "request": { - "accounts_uri": "/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts", + "accounts_uri": "/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts", "payload": { "merchant": { "name": "Skripts4Kids", @@ -53,11 +85,11 @@ } } }, - "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 \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC6F7VE34bUW52UNlmiuVReo/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC6F7VE34bUW52UNlmiuVReo/cards\", \n \"created_at\": \"2013-06-12T22:24:32.551522Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC6F7VE34bUW52UNlmiuVReo/credits\", \n \"customer_uri\": \"/v1/customers/AC6F7VE34bUW52UNlmiuVReo\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC6F7VE34bUW52UNlmiuVReo/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC6F7VE34bUW52UNlmiuVReo/holds\", \n \"id\": \"AC6F7VE34bUW52UNlmiuVReo\", \n \"meta\": {}, \n \"name\": \"Skripts4Kids\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC6F7VE34bUW52UNlmiuVReo/refunds\", \n \"roles\": [\n \"merchant\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC6F7VE34bUW52UNlmiuVReo/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC6F7VE34bUW52UNlmiuVReo\"\n}" + "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-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4kZC8hGMP1jB444SJnKhBe/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4kZC8hGMP1jB444SJnKhBe/cards\", \n \"created_at\": \"2013-08-06T22:50:14.191871Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4kZC8hGMP1jB444SJnKhBe/credits\", \n \"customer_uri\": \"/v1/customers/AC4kZC8hGMP1jB444SJnKhBe\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4kZC8hGMP1jB444SJnKhBe/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4kZC8hGMP1jB444SJnKhBe/holds\", \n \"id\": \"AC4kZC8hGMP1jB444SJnKhBe\", \n \"meta\": {}, \n \"name\": \"Skripts4Kids\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4kZC8hGMP1jB444SJnKhBe/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4kZC8hGMP1jB444SJnKhBe/reversals\", \n \"roles\": [\n \"merchant\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4kZC8hGMP1jB444SJnKhBe/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4kZC8hGMP1jB444SJnKhBe\"\n}" }, "account_underwrite_person": { "request": { - "accounts_uri": "/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts", + "accounts_uri": "/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts", "payload": { "merchant": { "dob": "1989-12", @@ -69,9 +101,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 \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC6CRAJGAskg17l3kiRs5siH/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC6CRAJGAskg17l3kiRs5siH/cards\", \n \"created_at\": \"2013-06-12T22:24:30.529516Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC6CRAJGAskg17l3kiRs5siH/credits\", \n \"customer_uri\": \"/v1/customers/AC6CRAJGAskg17l3kiRs5siH\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC6CRAJGAskg17l3kiRs5siH/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC6CRAJGAskg17l3kiRs5siH/holds\", \n \"id\": \"AC6CRAJGAskg17l3kiRs5siH\", \n \"meta\": {}, \n \"name\": \"Timmy Q. CopyPasta\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC6CRAJGAskg17l3kiRs5siH/refunds\", \n \"roles\": [\n \"merchant\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC6CRAJGAskg17l3kiRs5siH/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC6CRAJGAskg17l3kiRs5siH\"\n}" + "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-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4iQa4gNpZ7Bzdu0tNBPXuw/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4iQa4gNpZ7Bzdu0tNBPXuw/cards\", \n \"created_at\": \"2013-08-06T22:50:12.278045Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4iQa4gNpZ7Bzdu0tNBPXuw/credits\", \n \"customer_uri\": \"/v1/customers/AC4iQa4gNpZ7Bzdu0tNBPXuw\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4iQa4gNpZ7Bzdu0tNBPXuw/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4iQa4gNpZ7Bzdu0tNBPXuw/holds\", \n \"id\": \"AC4iQa4gNpZ7Bzdu0tNBPXuw\", \n \"meta\": {}, \n \"name\": \"Timmy Q. CopyPasta\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4iQa4gNpZ7Bzdu0tNBPXuw/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4iQa4gNpZ7Bzdu0tNBPXuw/reversals\", \n \"roles\": [\n \"merchant\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4iQa4gNpZ7Bzdu0tNBPXuw/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4iQa4gNpZ7Bzdu0tNBPXuw\"\n}" }, - "api_key": "c72cb360d3ae11e29593026ba7d31e6f", + "api_key": "8386409cfeea11e2b3ee026ba7c1aba6", "api_location": "https://api.balancedpayments.com", "bank_account_create": { "request": { @@ -83,28 +115,11 @@ }, "uri": "/v1/bank_accounts" }, - "response": "{\n \"_type\": \"bank_account\", \n \"_uris\": {\n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\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-06-12T22:25:33.588728Z\", \n \"credits_uri\": \"/v1/bank_accounts/BA7LMoiDtVIogA3dSCkb93xQ/credits\", \n \"fingerprint\": \"1eH719hwbYRpEILVKyboPs_pn\", \n \"id\": \"BA7LMoiDtVIogA3dSCkb93xQ\", \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"type\": \"checking\", \n \"uri\": \"/v1/bank_accounts/BA7LMoiDtVIogA3dSCkb93xQ\", \n \"verification_uri\": null, \n \"verifications_uri\": \"/v1/bank_accounts/BA7LMoiDtVIogA3dSCkb93xQ/verifications\"\n}" + "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-06T22:50:55.673697Z\", \n \"credits_uri\": \"/v1/bank_accounts/BA55EaXnaE4Yos3ihJawNiaK/credits\", \n \"debits_uri\": \"/v1/bank_accounts/BA55EaXnaE4Yos3ihJawNiaK/debits\", \n \"fingerprint\": \"1eH719hwbYRpEILVKyboPs_pn\", \n \"id\": \"BA55EaXnaE4Yos3ihJawNiaK\", \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"type\": \"checking\", \n \"uri\": \"/v1/bank_accounts/BA55EaXnaE4Yos3ihJawNiaK\", \n \"verification_uri\": null, \n \"verifications_uri\": \"/v1/bank_accounts/BA55EaXnaE4Yos3ihJawNiaK/verifications\"\n}" }, "bank_account_delete": { "request": { - "uri": "/v1/bank_accounts/BA64BU1PUa8MKCAg0omlaNwm" - } - }, - "bank_account_find_and_credit": { - "request": { - "amount": 1000, - "credits_uri": "https://api.balancedpayments.com/v1/bank_accounts/BA7LMoiDtVIogA3dSCkb93xQ/credits", - "id": "BA7LMoiDtVIogA3dSCkb93xQ", - "uri": "/v1/bank_accounts/BA7LMoiDtVIogA3dSCkb93xQ" - }, - "response": "{\n \"_type\": \"credit\", \n \"_uris\": {}, \n \"amount\": 1000, \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 \"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-06-12T22:25:33.588728Z\", \n \"credits_uri\": \"/v1/bank_accounts/BA7LMoiDtVIogA3dSCkb93xQ/credits\", \n \"fingerprint\": \"1eH719hwbYRpEILVKyboPs_pn\", \n \"id\": \"BA7LMoiDtVIogA3dSCkb93xQ\", \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"type\": \"checking\", \n \"uri\": \"/v1/bank_accounts/BA7LMoiDtVIogA3dSCkb93xQ\", \n \"verification_uri\": null, \n \"verifications_uri\": \"/v1/bank_accounts/BA7LMoiDtVIogA3dSCkb93xQ/verifications\"\n }, \n \"created_at\": \"2013-06-12T22:25:48.233509Z\", \n \"description\": null, \n \"id\": \"CRfbO43qJS31Xt0f4g4Rgis\", \n \"meta\": {}, \n \"status\": \"pending\", \n \"uri\": \"/v1/credits/CRfbO43qJS31Xt0f4g4Rgis\"\n}" - }, - "bank_account_find_and_delete": { - "request": { - "amount": 1000, - "credits_uri": "https://api.balancedpayments.com/v1/bank_accounts/BA7LMoiDtVIogA3dSCkb93xQ/credits", - "id": "BA7LMoiDtVIogA3dSCkb93xQ", - "uri": "/v1/bank_accounts/BA7LMoiDtVIogA3dSCkb93xQ" + "uri": "/v1/bank_accounts/BA4sfKpb9c7jNeC6iHKvFwDc" } }, "bank_account_invalid_routing_number": { @@ -115,49 +130,49 @@ "routing_number": "111111118", "type": "checking" }, - "uri": "/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/bank_accounts" + "uri": "/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/bank_accounts" }, - "response": "{\n \"additional\": null, \n \"category_code\": \"invalid-routing-number\", \n \"category_type\": \"request\", \n \"description\": \"Routing number is invalid. Your request id is OHM0a08f9aad3af11e2b9c3026ba7f8ec28.\", \n \"extras\": {\n \"routing_number\": \"Routing number is invalid.\"\n }, \n \"request_id\": \"OHM0a08f9aad3af11e2b9c3026ba7f8ec28\", \n \"status\": \"Bad Request\", \n \"status_code\": 400\n}" + "response": "{\n \"_uris\": {}, \n \"additional\": null, \n \"category_code\": \"invalid-routing-number\", \n \"category_type\": \"request\", \n \"description\": \"Routing number is invalid. Your request id is OHMcfdbb120feea11e2ad75026ba7f8ec28.\", \n \"extras\": {\n \"routing_number\": \"Routing number is invalid.\"\n }, \n \"request_id\": \"OHMcfdbb120feea11e2ad75026ba7f8ec28\", \n \"status\": \"Bad Request\", \n \"status_code\": 400\n}" }, "bank_account_list": { "request": { "uri": "/v1/bank_accounts" }, - "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 \"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-06-12T22:24:05.093027Z\", \n \"credits_uri\": \"/v1/bank_accounts/BA6aflmsJEE7FldgQGpsgW0u/credits\", \n \"fingerprint\": \"1eH719hwbYRpEILVKyboPs_pn\", \n \"id\": \"BA6aflmsJEE7FldgQGpsgW0u\", \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"type\": \"checking\", \n \"uri\": \"/v1/bank_accounts/BA6aflmsJEE7FldgQGpsgW0u\", \n \"verification_uri\": null, \n \"verifications_uri\": \"/v1/bank_accounts/BA6aflmsJEE7FldgQGpsgW0u/verifications\"\n }, \n {\n \"_type\": \"bank_account\", \n \"_uris\": {\n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"verifications_uri\": {\n \"_type\": \"page\", \n \"key\": \"verifications\"\n }\n }, \n \"account_number\": \"xxxxxxxxxxx5555\", \n \"bank_name\": \"WELLS FARGO BANK NA\", \n \"can_debit\": true, \n \"created_at\": \"2013-06-12T22:24:00.079290Z\", \n \"credits_uri\": \"/v1/bank_accounts/BA64BU1PUa8MKCAg0omlaNwm/credits\", \n \"fingerprint\": \"6ybvaLUrJy07phK2EQ7pVk\", \n \"id\": \"BA64BU1PUa8MKCAg0omlaNwm\", \n \"meta\": {}, \n \"name\": \"TEST-MERCHANT-BANK-ACCOUNT\", \n \"routing_number\": \"121042882\", \n \"type\": \"checking\", \n \"uri\": \"/v1/bank_accounts/BA64BU1PUa8MKCAg0omlaNwm\", \n \"verification_uri\": null, \n \"verifications_uri\": \"/v1/bank_accounts/BA64BU1PUa8MKCAg0omlaNwm/verifications\"\n }\n ], \n \"last_uri\": \"/v1/bank_accounts?limit=2&offset=0\", \n \"limit\": 2, \n \"next_uri\": null, \n \"offset\": 0, \n \"previous_uri\": null, \n \"total\": 2, \n \"uri\": \"/v1/bank_accounts?limit=2&offset=0\"\n}" + "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-06T22:50:25.101084Z\", \n \"credits_uri\": \"/v1/bank_accounts/BA4xg7wvGiKLcFipQYWsVDJR/credits\", \n \"debits_uri\": \"/v1/bank_accounts/BA4xg7wvGiKLcFipQYWsVDJR/debits\", \n \"fingerprint\": \"1eH719hwbYRpEILVKyboPs_pn\", \n \"id\": \"BA4xg7wvGiKLcFipQYWsVDJR\", \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"type\": \"checking\", \n \"uri\": \"/v1/bank_accounts/BA4xg7wvGiKLcFipQYWsVDJR\", \n \"verification_uri\": null, \n \"verifications_uri\": \"/v1/bank_accounts/BA4xg7wvGiKLcFipQYWsVDJR/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-06T22:50:20.659035Z\", \n \"credits_uri\": \"/v1/bank_accounts/BA4sfKpb9c7jNeC6iHKvFwDc/credits\", \n \"debits_uri\": \"/v1/bank_accounts/BA4sfKpb9c7jNeC6iHKvFwDc/debits\", \n \"fingerprint\": \"kTo2ltJS0fWSMnWIq72zL_pn\", \n \"id\": \"BA4sfKpb9c7jNeC6iHKvFwDc\", \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"321174851\", \n \"type\": \"checking\", \n \"uri\": \"/v1/bank_accounts/BA4sfKpb9c7jNeC6iHKvFwDc\", \n \"verification_uri\": \"/v1/bank_accounts/BA4sfKpb9c7jNeC6iHKvFwDc/verifications/BZ4uSsRr8m5Z8r4rbNHBH9q8\", \n \"verifications_uri\": \"/v1/bank_accounts/BA4sfKpb9c7jNeC6iHKvFwDc/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}" }, "bank_account_show": { "request": { - "uri": "/v1/bank_accounts/BA6aflmsJEE7FldgQGpsgW0u" + "uri": "/v1/bank_accounts/BA4xg7wvGiKLcFipQYWsVDJR" }, - "response": "{\n \"_type\": \"bank_account\", \n \"_uris\": {\n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\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-06-12T22:24:05.093027Z\", \n \"credits_uri\": \"/v1/bank_accounts/BA6aflmsJEE7FldgQGpsgW0u/credits\", \n \"fingerprint\": \"1eH719hwbYRpEILVKyboPs_pn\", \n \"id\": \"BA6aflmsJEE7FldgQGpsgW0u\", \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"type\": \"checking\", \n \"uri\": \"/v1/bank_accounts/BA6aflmsJEE7FldgQGpsgW0u\", \n \"verification_uri\": null, \n \"verifications_uri\": \"/v1/bank_accounts/BA6aflmsJEE7FldgQGpsgW0u/verifications\"\n}" + "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-06T22:50:25.101084Z\", \n \"credits_uri\": \"/v1/bank_accounts/BA4xg7wvGiKLcFipQYWsVDJR/credits\", \n \"debits_uri\": \"/v1/bank_accounts/BA4xg7wvGiKLcFipQYWsVDJR/debits\", \n \"fingerprint\": \"1eH719hwbYRpEILVKyboPs_pn\", \n \"id\": \"BA4xg7wvGiKLcFipQYWsVDJR\", \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"type\": \"checking\", \n \"uri\": \"/v1/bank_accounts/BA4xg7wvGiKLcFipQYWsVDJR\", \n \"verification_uri\": null, \n \"verifications_uri\": \"/v1/bank_accounts/BA4xg7wvGiKLcFipQYWsVDJR/verifications\"\n}" }, "bank_account_verification_create": { "request": { - "bank_account_uri": "/v1/bank_accounts/BA6eYWlzH1IMkOpPYQjRNme4", + "bank_account_uri": "/v1/bank_accounts/BA4nq1HLwfp2rdKClyX39lRu", "payload": { "none": "" }, - "uri": "/v1/bank_accounts/BA6eYWlzH1IMkOpPYQjRNme4/verifications" + "uri": "/v1/bank_accounts/BA4nq1HLwfp2rdKClyX39lRu/verifications" }, - "response": "{\n \"_type\": \"bank_account_authentication\", \n \"_uris\": {}, \n \"attempts\": 0, \n \"id\": \"BZ6fKIICDlh4jeKem2tGCRQk\", \n \"remaining_attempts\": 3, \n \"state\": \"pending\", \n \"uri\": \"/v1/bank_accounts/BA6eYWlzH1IMkOpPYQjRNme4/verifications/BZ6fKIICDlh4jeKem2tGCRQk\"\n}" + "response": "{\n \"_uris\": {}, \n \"additional\": null, \n \"category_code\": \"bank-account-no-account\", \n \"category_type\": \"logical\", \n \"description\": \"Bank account BA4nq1HLwfp2rdKClyX39lRu must be associated with a customer before it can be verified. Your request id is OHM900a57ccfeea11e2b377026ba7c1aba6.\", \n \"extras\": {}, \n \"request_id\": \"OHM900a57ccfeea11e2b377026ba7c1aba6\", \n \"status\": \"Conflict\", \n \"status_code\": 409\n}" }, "bank_account_verification_show": { "request": { - "bank_account_uri": "/v1/bank_accounts/BA6h13dSUEsvVjbhFd2MqdmT", - "uri": "/v1/bank_accounts/BA6h13dSUEsvVjbhFd2MqdmT/verifications/BZ6hHnC9dKqiQJJtuxbp7SGP" + "bank_account_uri": "/v1/bank_accounts/BA4oTAYv3ma0dGTWzRAJjBP9", + "uri": "/v1/bank_accounts/BA4oTAYv3ma0dGTWzRAJjBP9/verifications/BZ4qBC3iUOCeyDlctyLVsEXm" }, - "response": "{\n \"_type\": \"bank_account_authentication\", \n \"_uris\": {}, \n \"attempts\": 0, \n \"id\": \"BZ6hHnC9dKqiQJJtuxbp7SGP\", \n \"remaining_attempts\": 3, \n \"state\": \"pending\", \n \"uri\": \"/v1/bank_accounts/BA6h13dSUEsvVjbhFd2MqdmT/verifications/BZ6hHnC9dKqiQJJtuxbp7SGP\"\n}" + "response": "{\n \"_type\": \"bank_account_authentication\", \n \"_uris\": {}, \n \"attempts\": 0, \n \"created_at\": \"2013-08-06T22:50:19.189474Z\", \n \"id\": \"BZ4qBC3iUOCeyDlctyLVsEXm\", \n \"remaining_attempts\": 3, \n \"state\": \"pending\", \n \"updated_at\": \"2013-08-06T22:50:19.189478Z\", \n \"uri\": \"/v1/bank_accounts/BA4oTAYv3ma0dGTWzRAJjBP9/verifications/BZ4qBC3iUOCeyDlctyLVsEXm\"\n}" }, "bank_account_verification_update": { "request": { - "bank_account_uri": "/v1/bank_accounts/BA6joBOllXBzGbYKpa4PCiGQ", + "bank_account_uri": "/v1/bank_accounts/BA4sfKpb9c7jNeC6iHKvFwDc", "payload": { "amount_1": 1, "amount_2": 1 }, - "uri": "/v1/bank_accounts/BA6joBOllXBzGbYKpa4PCiGQ/verifications/BZ6kgUuE7JInbXvZLxJqMqnR" + "uri": "/v1/bank_accounts/BA4sfKpb9c7jNeC6iHKvFwDc/verifications/BZ4uSsRr8m5Z8r4rbNHBH9q8" }, - "response": "{\n \"_type\": \"bank_account_authentication\", \n \"_uris\": {}, \n \"attempts\": 1, \n \"id\": \"BZ6kgUuE7JInbXvZLxJqMqnR\", \n \"remaining_attempts\": 2, \n \"state\": \"verified\", \n \"uri\": \"/v1/bank_accounts/BA6joBOllXBzGbYKpa4PCiGQ/verifications/BZ6kgUuE7JInbXvZLxJqMqnR\"\n}" + "response": "{\n \"_type\": \"bank_account_authentication\", \n \"_uris\": {}, \n \"attempts\": 1, \n \"created_at\": \"2013-08-06T22:50:22.987554Z\", \n \"id\": \"BZ4uSsRr8m5Z8r4rbNHBH9q8\", \n \"remaining_attempts\": 2, \n \"state\": \"verified\", \n \"updated_at\": \"2013-08-06T22:50:23.394875Z\", \n \"uri\": \"/v1/bank_accounts/BA4sfKpb9c7jNeC6iHKvFwDc/verifications/BZ4uSsRr8m5Z8r4rbNHBH9q8\"\n}" }, "card_create": { "request": { @@ -167,31 +182,36 @@ "expiration_year": "2020", "security_code": "123" }, - "uri": "/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/cards" + "uri": "/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/cards" }, - "response": "{\n \"_type\": \"card\", \n \"_uris\": {}, \n \"account\": null, \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"created_at\": \"2013-06-12T22:25:30.160492Z\", \n \"customer\": null, \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"b7250dd4b4827a88d5e4132b67f02916bce6f8e83d4ca0d779d1351b360ff6af\", \n \"id\": \"CC7HVl3IUDtngQOWXk77t3uK\", \n \"is_valid\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": null, \n \"postal_code_check\": \"true\", \n \"security_code_check\": \"true\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/cards/CC7HVl3IUDtngQOWXk77t3uK\"\n}" + "response": "{\n \"_type\": \"card\", \n \"_uris\": {}, \n \"account\": null, \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"created_at\": \"2013-08-06T22:51:42.560008Z\", \n \"customer\": null, \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"b7250dd4b4827a88d5e4132b67f02916bce6f8e83d4ca0d779d1351b360ff6af\", \n \"id\": \"CC5WnLs62QL0arljSl7Q5LVC\", \n \"is_valid\": true, \n \"is_verified\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": \"None\", \n \"postal_code_check\": \"true\", \n \"security_code_check\": \"true\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/cards/CC5WnLs62QL0arljSl7Q5LVC\"\n}" + }, + "card_delete": { + "request": { + "uri": "/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/cards/CC4ejBuNLWYWy2Pb6Hxbv6A0" + } }, - "card_id": "CC65PhNiw04dWxtZ0EUNeKz8", + "card_id": "CC43u6CoRHthxMkDuxSuOKg7", "card_invalidate": { "request": { "payload": { "is_valid": "false" }, - "uri": "/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/cards/CC6mSyhNe9lAcrUYtqAxHi1i" + "uri": "/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/cards/CC4DcM3FqXvWA3oIzVgwrG2s" }, - "response": "{\n \"_type\": \"card\", \n \"_uris\": {}, \n \"account\": null, \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"created_at\": \"2013-06-12T22:24:16.321430Z\", \n \"customer\": null, \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"b7250dd4b4827a88d5e4132b67f02916bce6f8e83d4ca0d779d1351b360ff6af\", \n \"id\": \"CC6mSyhNe9lAcrUYtqAxHi1i\", \n \"is_valid\": false, \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_check\": \"true\", \n \"security_code_check\": \"true\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/cards/CC6mSyhNe9lAcrUYtqAxHi1i\"\n}" + "response": "{\n \"_type\": \"card\", \n \"_uris\": {}, \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"b7250dd4b4827a88d5e4132b67f02916bce6f8e83d4ca0d779d1351b360ff6af\", \n \"last_four\": \"5100\", \n \"meta\": {\n \"facebook.user_id\": \"0192837465\", \n \"my-own-customer-id\": \"12345\", \n \"twitter.id\": \"1234987650\"\n }, \n \"name\": \"None\"\n}" }, "card_list": { "request": { - "uri": "/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/cards" + "uri": "/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/cards" }, - "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-MP64bmAzypIUS0SUZ4qkoFqG/cards?limit=2&offset=0\", \n \"items\": [\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 \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC66oIFVRIwkPaXsZ6FWqMbe/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC66oIFVRIwkPaXsZ6FWqMbe/cards\", \n \"created_at\": \"2013-06-12T22:24:01.673511Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC66oIFVRIwkPaXsZ6FWqMbe/credits\", \n \"customer_uri\": \"/v1/customers/AC66oIFVRIwkPaXsZ6FWqMbe\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC66oIFVRIwkPaXsZ6FWqMbe/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC66oIFVRIwkPaXsZ6FWqMbe/holds\", \n \"id\": \"AC66oIFVRIwkPaXsZ6FWqMbe\", \n \"meta\": {}, \n \"name\": \"Benny Riemann\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC66oIFVRIwkPaXsZ6FWqMbe/refunds\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC66oIFVRIwkPaXsZ6FWqMbe/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC66oIFVRIwkPaXsZ6FWqMbe\"\n }, \n \"brand\": \"Visa\", \n \"card_type\": \"visa\", \n \"country_code\": \"USA\", \n \"created_at\": \"2013-06-12T22:24:01.158027Z\", \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 \"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/CU66Sp8xiuGpceJlZQ1uk99S/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU66Sp8xiuGpceJlZQ1uk99S/cards\", \n \"created_at\": \"2013-06-12T22:24:02.099332Z\", \n \"credits_uri\": \"/v1/customers/CU66Sp8xiuGpceJlZQ1uk99S/credits\", \n \"debits_uri\": \"/v1/customers/CU66Sp8xiuGpceJlZQ1uk99S/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU66Sp8xiuGpceJlZQ1uk99S/holds\", \n \"id\": \"CU66Sp8xiuGpceJlZQ1uk99S\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU66Sp8xiuGpceJlZQ1uk99S/refunds\", \n \"source_uri\": \"/v1/customers/AC66oIFVRIwkPaXsZ6FWqMbe/cards/CC65PhNiw04dWxtZ0EUNeKz8\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU66Sp8xiuGpceJlZQ1uk99S/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU66Sp8xiuGpceJlZQ1uk99S\"\n }, \n \"expiration_month\": 4, \n \"expiration_year\": 2014, \n \"hash\": \"bd1c247d10c71b3134056f83165826241115d8e55fc107d303eeab955338eba2\", \n \"id\": \"CC65PhNiw04dWxtZ0EUNeKz8\", \n \"is_valid\": true, \n \"last_four\": \"1111\", \n \"meta\": {}, \n \"name\": \"Benny Riemann\", \n \"postal_code\": \"10023\", \n \"postal_code_check\": \"true\", \n \"security_code_check\": \"true\", \n \"street_address\": \"167 West 74th Street\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC66oIFVRIwkPaXsZ6FWqMbe/cards/CC65PhNiw04dWxtZ0EUNeKz8\"\n }\n ], \n \"last_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/cards?limit=2&offset=0\", \n \"limit\": 2, \n \"next_uri\": null, \n \"offset\": 0, \n \"previous_uri\": null, \n \"total\": 1, \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/cards?limit=2&offset=0\"\n}" + "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-MP40BcQ7XUk3TlZOupT5Y3Nm/cards?limit=2&offset=0\", \n \"items\": [\n {\n \"_type\": \"card\", \n \"_uris\": {}, \n \"account\": null, \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"created_at\": \"2013-08-06T22:50:30.384866Z\", \n \"customer\": null, \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"b7250dd4b4827a88d5e4132b67f02916bce6f8e83d4ca0d779d1351b360ff6af\", \n \"id\": \"CC4DcM3FqXvWA3oIzVgwrG2s\", \n \"is_valid\": true, \n \"is_verified\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": \"None\", \n \"postal_code_check\": \"true\", \n \"security_code_check\": \"true\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/cards/CC4DcM3FqXvWA3oIzVgwrG2s\"\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-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/cards\", \n \"created_at\": \"2013-08-06T22:50:05.055709Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/credits\", \n \"customer_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/holds\", \n \"id\": \"AC4aHI8dZiHocr1M5FARdZzg\", \n \"meta\": {}, \n \"name\": \"None\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg\"\n }, \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"created_at\": \"2013-08-06T22:50:08.255162Z\", \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/CU4b8XWw94OpiZW2zEaSPQbA/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/cards\", \n \"created_at\": \"2013-08-06T22:50:05.446575Z\", \n \"credits_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/credits\", \n \"debits_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/debits\", \n \"destination_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg/bank_accounts/BA4gGTZiAgLomq8IjMjYcB32\", \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/holds\", \n \"id\": \"CU4b8XWw94OpiZW2zEaSPQbA\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/refunds\", \n \"reversals_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/reversals\", \n \"source_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg/cards/CC4ejBuNLWYWy2Pb6Hxbv6A0\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA\"\n }, \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"b7250dd4b4827a88d5e4132b67f02916bce6f8e83d4ca0d779d1351b360ff6af\", \n \"id\": \"CC4ejBuNLWYWy2Pb6Hxbv6A0\", \n \"is_valid\": true, \n \"is_verified\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": \"None\", \n \"postal_code_check\": \"true\", \n \"security_code_check\": \"true\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/cards/CC4ejBuNLWYWy2Pb6Hxbv6A0\"\n }\n ], \n \"last_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/cards?limit=2&offset=2\", \n \"limit\": 2, \n \"next_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/cards?limit=2&offset=2\", \n \"offset\": 0, \n \"previous_uri\": null, \n \"total\": 4, \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/cards?limit=2&offset=0\"\n}" }, "card_show": { "request": { - "uri": "/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/cards/CC6mSyhNe9lAcrUYtqAxHi1i" + "uri": "/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/cards/CC4DcM3FqXvWA3oIzVgwrG2s" }, - "response": "{\n \"_type\": \"card\", \n \"_uris\": {}, \n \"account\": null, \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"created_at\": \"2013-06-12T22:24:16.321430Z\", \n \"customer\": null, \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"b7250dd4b4827a88d5e4132b67f02916bce6f8e83d4ca0d779d1351b360ff6af\", \n \"id\": \"CC6mSyhNe9lAcrUYtqAxHi1i\", \n \"is_valid\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": null, \n \"postal_code_check\": \"true\", \n \"security_code_check\": \"true\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/cards/CC6mSyhNe9lAcrUYtqAxHi1i\"\n}" + "response": "{\n \"_type\": \"card\", \n \"_uris\": {}, \n \"account\": null, \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"created_at\": \"2013-08-06T22:50:30.384866Z\", \n \"customer\": null, \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"b7250dd4b4827a88d5e4132b67f02916bce6f8e83d4ca0d779d1351b360ff6af\", \n \"id\": \"CC4DcM3FqXvWA3oIzVgwrG2s\", \n \"is_valid\": true, \n \"is_verified\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": \"None\", \n \"postal_code_check\": \"true\", \n \"security_code_check\": \"true\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/cards/CC4DcM3FqXvWA3oIzVgwrG2s\"\n}" }, "card_update": { "request": { @@ -202,27 +222,47 @@ "twitter.id": "1234987650" } }, - "uri": "/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/cards/CC6mSyhNe9lAcrUYtqAxHi1i" + "uri": "/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/cards/CC4DcM3FqXvWA3oIzVgwrG2s" + }, + "response": "{\n \"_type\": \"card\", \n \"_uris\": {}, \n \"account\": null, \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"created_at\": \"2013-08-06T22:50:30.384866Z\", \n \"customer\": null, \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"b7250dd4b4827a88d5e4132b67f02916bce6f8e83d4ca0d779d1351b360ff6af\", \n \"id\": \"CC4DcM3FqXvWA3oIzVgwrG2s\", \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\": \"None\", \n \"postal_code_check\": \"true\", \n \"security_code_check\": \"true\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/cards/CC4DcM3FqXvWA3oIzVgwrG2s\"\n}" + }, + "card_uri": "/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/cards/CC43u6CoRHthxMkDuxSuOKg7", + "credit_account_list": { + "request": { + "account_uri": "/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg", + "payload": { + "amount": 100 + }, + "uri": "/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/credits" + }, + "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-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/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 \"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-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/cards\", \n \"created_at\": \"2013-08-06T22:50:05.055709Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/credits\", \n \"customer_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/holds\", \n \"id\": \"AC4aHI8dZiHocr1M5FARdZzg\", \n \"meta\": {}, \n \"name\": \"None\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg\"\n }, \n \"amount\": 100, \n \"appears_on_statement_as\": \"example.com\", \n \"available_at\": null, \n \"bank_account\": {\n \"_type\": \"bank_account\", \n \"_uris\": {\n \"account_uri\": {\n \"_type\": \"account\", \n \"key\": \"account\"\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 \"verifications_uri\": {\n \"_type\": \"page\", \n \"key\": \"verifications\"\n }\n }, \n \"account_number\": \"xxxxxx0001\", \n \"account_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg\", \n \"bank_code\": \"121000358\", \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_debit\": false, \n \"created_at\": \"2013-08-06T22:50:10.389315Z\", \n \"credits_uri\": \"/v1/bank_accounts/BA4gGTZiAgLomq8IjMjYcB32/credits\", \n \"customer_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg\", \n \"debits_uri\": \"/v1/bank_accounts/BA4gGTZiAgLomq8IjMjYcB32/debits\", \n \"fingerprint\": \"1eH719hwbYRpEILVKyboPs_pn\", \n \"id\": \"BA4gGTZiAgLomq8IjMjYcB32\", \n \"is_valid\": true, \n \"last_four\": \"0001\", \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"type\": \"checking\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/bank_accounts/BA4gGTZiAgLomq8IjMjYcB32\", \n \"verification_uri\": null, \n \"verifications_uri\": \"/v1/bank_accounts/BA4gGTZiAgLomq8IjMjYcB32/verifications\"\n }, \n \"created_at\": \"2013-08-06T22:50:45.081711Z\", \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/CU4b8XWw94OpiZW2zEaSPQbA/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/cards\", \n \"created_at\": \"2013-08-06T22:50:05.446575Z\", \n \"credits_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/credits\", \n \"debits_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/debits\", \n \"destination_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg/bank_accounts/BA4gGTZiAgLomq8IjMjYcB32\", \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/holds\", \n \"id\": \"CU4b8XWw94OpiZW2zEaSPQbA\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/refunds\", \n \"reversals_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/reversals\", \n \"source_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg/cards/CC4ejBuNLWYWy2Pb6Hxbv6A0\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA\"\n }, \n \"description\": null, \n \"destination\": {\n \"_type\": \"bank_account\", \n \"_uris\": {\n \"account_uri\": {\n \"_type\": \"account\", \n \"key\": \"account\"\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 \"verifications_uri\": {\n \"_type\": \"page\", \n \"key\": \"verifications\"\n }\n }, \n \"account_number\": \"xxxxxx0001\", \n \"account_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg\", \n \"bank_code\": \"121000358\", \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_debit\": false, \n \"created_at\": \"2013-08-06T22:50:10.389315Z\", \n \"credits_uri\": \"/v1/bank_accounts/BA4gGTZiAgLomq8IjMjYcB32/credits\", \n \"customer_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg\", \n \"debits_uri\": \"/v1/bank_accounts/BA4gGTZiAgLomq8IjMjYcB32/debits\", \n \"fingerprint\": \"1eH719hwbYRpEILVKyboPs_pn\", \n \"id\": \"BA4gGTZiAgLomq8IjMjYcB32\", \n \"is_valid\": true, \n \"last_four\": \"0001\", \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"type\": \"checking\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/bank_accounts/BA4gGTZiAgLomq8IjMjYcB32\", \n \"verification_uri\": null, \n \"verifications_uri\": \"/v1/bank_accounts/BA4gGTZiAgLomq8IjMjYcB32/verifications\"\n }, \n \"fee\": null, \n \"id\": \"CR4TjE0QX2PibpJgkZYkD2LZ\", \n \"meta\": {}, \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/credits/CR4TjE0QX2PibpJgkZYkD2LZ/reversals\", \n \"state\": \"pending\", \n \"status\": \"pending\", \n \"transaction_number\": \"CR331-901-4173\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/credits/CR4TjE0QX2PibpJgkZYkD2LZ\"\n }\n ], \n \"last_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/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/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/credits?limit=2&offset=0\"\n}" + }, + "credit_account_merchant_create": { + "request": { + "account_uri": "/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg", + "payload": { + "amount": 100 + }, + "uri": "/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/credits" }, - "response": "{\n \"_type\": \"card\", \n \"_uris\": {}, \n \"account\": null, \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"created_at\": \"2013-06-12T22:24:16.321430Z\", \n \"customer\": null, \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"b7250dd4b4827a88d5e4132b67f02916bce6f8e83d4ca0d779d1351b360ff6af\", \n \"id\": \"CC6mSyhNe9lAcrUYtqAxHi1i\", \n \"is_valid\": 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_check\": \"true\", \n \"security_code_check\": \"true\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/cards/CC6mSyhNe9lAcrUYtqAxHi1i\"\n}" + "response": "{\n \"_type\": \"credit\", \n \"_uris\": {\n \"reversals_uri\": {\n \"_type\": \"page\", \n \"key\": \"reversals\"\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-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/cards\", \n \"created_at\": \"2013-08-06T22:50:05.055709Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/credits\", \n \"customer_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/holds\", \n \"id\": \"AC4aHI8dZiHocr1M5FARdZzg\", \n \"meta\": {}, \n \"name\": \"None\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg\"\n }, \n \"amount\": 100, \n \"appears_on_statement_as\": \"example.com\", \n \"available_at\": null, \n \"bank_account\": {\n \"_type\": \"bank_account\", \n \"_uris\": {\n \"account_uri\": {\n \"_type\": \"account\", \n \"key\": \"account\"\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 \"verifications_uri\": {\n \"_type\": \"page\", \n \"key\": \"verifications\"\n }\n }, \n \"account_number\": \"xxxxxx0001\", \n \"account_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg\", \n \"bank_code\": \"121000358\", \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_debit\": false, \n \"created_at\": \"2013-08-06T22:50:10.389315Z\", \n \"credits_uri\": \"/v1/bank_accounts/BA4gGTZiAgLomq8IjMjYcB32/credits\", \n \"customer_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg\", \n \"debits_uri\": \"/v1/bank_accounts/BA4gGTZiAgLomq8IjMjYcB32/debits\", \n \"fingerprint\": \"1eH719hwbYRpEILVKyboPs_pn\", \n \"id\": \"BA4gGTZiAgLomq8IjMjYcB32\", \n \"is_valid\": true, \n \"last_four\": \"0001\", \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"type\": \"checking\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/bank_accounts/BA4gGTZiAgLomq8IjMjYcB32\", \n \"verification_uri\": null, \n \"verifications_uri\": \"/v1/bank_accounts/BA4gGTZiAgLomq8IjMjYcB32/verifications\"\n }, \n \"created_at\": \"2013-08-06T22:50:45.081711Z\", \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/CU4b8XWw94OpiZW2zEaSPQbA/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/cards\", \n \"created_at\": \"2013-08-06T22:50:05.446575Z\", \n \"credits_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/credits\", \n \"debits_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/debits\", \n \"destination_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg/bank_accounts/BA4gGTZiAgLomq8IjMjYcB32\", \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/holds\", \n \"id\": \"CU4b8XWw94OpiZW2zEaSPQbA\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/refunds\", \n \"reversals_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/reversals\", \n \"source_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg/cards/CC4ejBuNLWYWy2Pb6Hxbv6A0\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA\"\n }, \n \"description\": null, \n \"destination\": {\n \"_type\": \"bank_account\", \n \"_uris\": {\n \"account_uri\": {\n \"_type\": \"account\", \n \"key\": \"account\"\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 \"verifications_uri\": {\n \"_type\": \"page\", \n \"key\": \"verifications\"\n }\n }, \n \"account_number\": \"xxxxxx0001\", \n \"account_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg\", \n \"bank_code\": \"121000358\", \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_debit\": false, \n \"created_at\": \"2013-08-06T22:50:10.389315Z\", \n \"credits_uri\": \"/v1/bank_accounts/BA4gGTZiAgLomq8IjMjYcB32/credits\", \n \"customer_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg\", \n \"debits_uri\": \"/v1/bank_accounts/BA4gGTZiAgLomq8IjMjYcB32/debits\", \n \"fingerprint\": \"1eH719hwbYRpEILVKyboPs_pn\", \n \"id\": \"BA4gGTZiAgLomq8IjMjYcB32\", \n \"is_valid\": true, \n \"last_four\": \"0001\", \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"type\": \"checking\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/bank_accounts/BA4gGTZiAgLomq8IjMjYcB32\", \n \"verification_uri\": null, \n \"verifications_uri\": \"/v1/bank_accounts/BA4gGTZiAgLomq8IjMjYcB32/verifications\"\n }, \n \"fee\": null, \n \"id\": \"CR4TjE0QX2PibpJgkZYkD2LZ\", \n \"meta\": {}, \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/credits/CR4TjE0QX2PibpJgkZYkD2LZ/reversals\", \n \"state\": \"pending\", \n \"status\": \"pending\", \n \"transaction_number\": \"CR331-901-4173\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/credits/CR4TjE0QX2PibpJgkZYkD2LZ\"\n}" }, - "card_uri": "/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/cards/CC65PhNiw04dWxtZ0EUNeKz8", "credit_bank_account_list": { "request": { - "id": "BA6aflmsJEE7FldgQGpsgW0u", - "uri": "/v1/bank_accounts/BA6aflmsJEE7FldgQGpsgW0u" + "id": "BA4xg7wvGiKLcFipQYWsVDJR", + "uri": "/v1/bank_accounts/BA4xg7wvGiKLcFipQYWsVDJR" }, - "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/BA6aflmsJEE7FldgQGpsgW0u/credits?limit=2&offset=0\", \n \"items\": [\n {\n \"_type\": \"credit\", \n \"_uris\": {}, \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 \"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-06-12T22:24:05.093027Z\", \n \"credits_uri\": \"/v1/bank_accounts/BA6aflmsJEE7FldgQGpsgW0u/credits\", \n \"fingerprint\": \"1eH719hwbYRpEILVKyboPs_pn\", \n \"id\": \"BA6aflmsJEE7FldgQGpsgW0u\", \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"type\": \"checking\", \n \"uri\": \"/v1/bank_accounts/BA6aflmsJEE7FldgQGpsgW0u\", \n \"verification_uri\": null, \n \"verifications_uri\": \"/v1/bank_accounts/BA6aflmsJEE7FldgQGpsgW0u/verifications\"\n }, \n \"created_at\": \"2013-06-12T22:24:36.944650Z\", \n \"description\": null, \n \"id\": \"CR6K4s7nQMzyxRINBFJXr7LM\", \n \"meta\": {}, \n \"status\": \"pending\", \n \"uri\": \"/v1/credits/CR6K4s7nQMzyxRINBFJXr7LM\"\n }\n ], \n \"last_uri\": \"/v1/bank_accounts/BA6aflmsJEE7FldgQGpsgW0u/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/BA6aflmsJEE7FldgQGpsgW0u/credits?limit=2&offset=0\"\n}" + "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/BA4xg7wvGiKLcFipQYWsVDJR/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-06T22:50:25.101084Z\", \n \"credits_uri\": \"/v1/bank_accounts/BA4xg7wvGiKLcFipQYWsVDJR/credits\", \n \"debits_uri\": \"/v1/bank_accounts/BA4xg7wvGiKLcFipQYWsVDJR/debits\", \n \"fingerprint\": \"1eH719hwbYRpEILVKyboPs_pn\", \n \"id\": \"BA4xg7wvGiKLcFipQYWsVDJR\", \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"type\": \"checking\", \n \"uri\": \"/v1/bank_accounts/BA4xg7wvGiKLcFipQYWsVDJR\", \n \"verification_uri\": null, \n \"verifications_uri\": \"/v1/bank_accounts/BA4xg7wvGiKLcFipQYWsVDJR/verifications\"\n }, \n \"created_at\": \"2013-08-06T22:50:39.129958Z\", \n \"description\": null, \n \"id\": \"CR4N0gzCnOIf00XewXDTMhun\", \n \"meta\": {}, \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/credits/CR4N0gzCnOIf00XewXDTMhun/reversals\", \n \"status\": \"pending\", \n \"uri\": \"/v1/credits/CR4N0gzCnOIf00XewXDTMhun\"\n }\n ], \n \"last_uri\": \"/v1/bank_accounts/BA4xg7wvGiKLcFipQYWsVDJR/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/BA4xg7wvGiKLcFipQYWsVDJR/credits?limit=2&offset=0\"\n}" }, "credit_create_existing_bank_account": { "request": { - "id": "BA6aflmsJEE7FldgQGpsgW0u", + "id": "BA4xg7wvGiKLcFipQYWsVDJR", "payload": { "amount": 10000 }, - "uri": "/v1/bank_accounts/BA6aflmsJEE7FldgQGpsgW0u" + "uri": "/v1/bank_accounts/BA4xg7wvGiKLcFipQYWsVDJR" }, - "response": "{\n \"_type\": \"credit\", \n \"_uris\": {}, \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 \"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-06-12T22:24:05.093027Z\", \n \"credits_uri\": \"/v1/bank_accounts/BA6aflmsJEE7FldgQGpsgW0u/credits\", \n \"fingerprint\": \"1eH719hwbYRpEILVKyboPs_pn\", \n \"id\": \"BA6aflmsJEE7FldgQGpsgW0u\", \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"type\": \"checking\", \n \"uri\": \"/v1/bank_accounts/BA6aflmsJEE7FldgQGpsgW0u\", \n \"verification_uri\": null, \n \"verifications_uri\": \"/v1/bank_accounts/BA6aflmsJEE7FldgQGpsgW0u/verifications\"\n }, \n \"created_at\": \"2013-06-12T22:24:36.944650Z\", \n \"description\": null, \n \"id\": \"CR6K4s7nQMzyxRINBFJXr7LM\", \n \"meta\": {}, \n \"status\": \"pending\", \n \"uri\": \"/v1/credits/CR6K4s7nQMzyxRINBFJXr7LM\"\n}" + "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-06T22:50:25.101084Z\", \n \"credits_uri\": \"/v1/bank_accounts/BA4xg7wvGiKLcFipQYWsVDJR/credits\", \n \"debits_uri\": \"/v1/bank_accounts/BA4xg7wvGiKLcFipQYWsVDJR/debits\", \n \"fingerprint\": \"1eH719hwbYRpEILVKyboPs_pn\", \n \"id\": \"BA4xg7wvGiKLcFipQYWsVDJR\", \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"type\": \"checking\", \n \"uri\": \"/v1/bank_accounts/BA4xg7wvGiKLcFipQYWsVDJR\", \n \"verification_uri\": null, \n \"verifications_uri\": \"/v1/bank_accounts/BA4xg7wvGiKLcFipQYWsVDJR/verifications\"\n }, \n \"created_at\": \"2013-08-06T22:50:39.129958Z\", \n \"description\": null, \n \"id\": \"CR4N0gzCnOIf00XewXDTMhun\", \n \"meta\": {}, \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/credits/CR4N0gzCnOIf00XewXDTMhun/reversals\", \n \"status\": \"pending\", \n \"uri\": \"/v1/credits/CR4N0gzCnOIf00XewXDTMhun\"\n}" }, "credit_create_new_bank_account": { "request": { @@ -234,17 +274,7 @@ "type": "checking" } }, - "response": "{\n \"_type\": \"credit\", \n \"_uris\": {}, \n \"amount\": 10000, \n \"appears_on_statement_as\": \"example.com\", \n \"bank_account\": {\n \"_type\": \"bank_account\", \n \"_uris\": {\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 \"fingerprint\": \"1eH719hwbYRpEILVKyboPs_pn\", \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"type\": \"checking\", \n \"verification_uri\": null, \n \"verifications_uri\": \"/v1/bank_accounts/BA6HyWupP9ator9isn7SPkns/verifications\"\n }, \n \"created_at\": \"2013-06-12T22:24:34.952914Z\", \n \"description\": null, \n \"id\": \"CR6HPyOqdWtPuNdeHJFd7ybY\", \n \"meta\": {}, \n \"status\": \"pending\", \n \"uri\": \"/v1/credits/CR6HPyOqdWtPuNdeHJFd7ybY\"\n}" - }, - "credit_customer_list": { - "request": { - "customer_uri": "/v1/customers/CU6PXyMacKRYKNJPJFKtONK0", - "payload": { - "amount": 100 - }, - "uri": "/v1/customers/CU6PXyMacKRYKNJPJFKtONK0/credits" - }, - "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/CU6PXyMacKRYKNJPJFKtONK0/credits?limit=2&offset=0\", \n \"items\": [\n {\n \"_type\": \"credit\", \n \"_uris\": {}, \n \"amount\": 100, \n \"appears_on_statement_as\": \"example.com\", \n \"available_at\": null, \n \"bank_account\": {\n \"_type\": \"bank_account\", \n \"_uris\": {\n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }, \n \"verifications_uri\": {\n \"_type\": \"page\", \n \"key\": \"verifications\"\n }\n }, \n \"account_number\": \"xxxxxx0001\", \n \"bank_code\": \"121000358\", \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_debit\": false, \n \"created_at\": \"2013-06-12T22:24:43.376686Z\", \n \"credits_uri\": \"/v1/bank_accounts/BA6RiM3bALH1gg966BPrs6mc/credits\", \n \"customer_uri\": \"/v1/customers/CU6PXyMacKRYKNJPJFKtONK0\", \n \"fingerprint\": \"1eH719hwbYRpEILVKyboPs_pn\", \n \"id\": \"BA6RiM3bALH1gg966BPrs6mc\", \n \"is_valid\": true, \n \"last_four\": \"0001\", \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"type\": \"checking\", \n \"uri\": \"/v1/customers/CU6PXyMacKRYKNJPJFKtONK0/bank_accounts/BA6RiM3bALH1gg966BPrs6mc\", \n \"verification_uri\": null, \n \"verifications_uri\": \"/v1/bank_accounts/BA6RiM3bALH1gg966BPrs6mc/verifications\"\n }, \n \"created_at\": \"2013-06-12T22:24:44.955212Z\", \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 \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"address\": {}, \n \"bank_accounts_uri\": \"/v1/customers/CU6PXyMacKRYKNJPJFKtONK0/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU6PXyMacKRYKNJPJFKtONK0/cards\", \n \"created_at\": \"2013-06-12T22:24:42.388041Z\", \n \"credits_uri\": \"/v1/customers/CU6PXyMacKRYKNJPJFKtONK0/credits\", \n \"debits_uri\": \"/v1/customers/CU6PXyMacKRYKNJPJFKtONK0/debits\", \n \"destination_uri\": \"/v1/customers/CU6PXyMacKRYKNJPJFKtONK0/bank_accounts/BA6RiM3bALH1gg966BPrs6mc\", \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU6PXyMacKRYKNJPJFKtONK0/holds\", \n \"id\": \"CU6PXyMacKRYKNJPJFKtONK0\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU6PXyMacKRYKNJPJFKtONK0/refunds\", \n \"source_uri\": null, \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU6PXyMacKRYKNJPJFKtONK0/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU6PXyMacKRYKNJPJFKtONK0\"\n }, \n \"description\": null, \n \"destination\": {\n \"_type\": \"bank_account\", \n \"_uris\": {\n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }, \n \"verifications_uri\": {\n \"_type\": \"page\", \n \"key\": \"verifications\"\n }\n }, \n \"account_number\": \"xxxxxx0001\", \n \"bank_code\": \"121000358\", \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_debit\": false, \n \"created_at\": \"2013-06-12T22:24:43.376686Z\", \n \"credits_uri\": \"/v1/bank_accounts/BA6RiM3bALH1gg966BPrs6mc/credits\", \n \"customer_uri\": \"/v1/customers/CU6PXyMacKRYKNJPJFKtONK0\", \n \"fingerprint\": \"1eH719hwbYRpEILVKyboPs_pn\", \n \"id\": \"BA6RiM3bALH1gg966BPrs6mc\", \n \"is_valid\": true, \n \"last_four\": \"0001\", \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"type\": \"checking\", \n \"uri\": \"/v1/customers/CU6PXyMacKRYKNJPJFKtONK0/bank_accounts/BA6RiM3bALH1gg966BPrs6mc\", \n \"verification_uri\": null, \n \"verifications_uri\": \"/v1/bank_accounts/BA6RiM3bALH1gg966BPrs6mc/verifications\"\n }, \n \"fee\": null, \n \"id\": \"CR6T5nBCkGeR4b9INxCEaQfU\", \n \"meta\": {}, \n \"state\": \"pending\", \n \"status\": \"pending\", \n \"transaction_number\": \"CR704-171-8411\", \n \"uri\": \"/v1/customers/CU6PXyMacKRYKNJPJFKtONK0/credits/CR6T5nBCkGeR4b9INxCEaQfU\"\n }\n ], \n \"last_uri\": \"/v1/customers/CU6PXyMacKRYKNJPJFKtONK0/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/customers/CU6PXyMacKRYKNJPJFKtONK0/credits?limit=2&offset=0\"\n}" + "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-06T22:50:37.395182Z\", \n \"description\": null, \n \"id\": \"CR4L4fINGRljGmx0jbwH32RA\", \n \"meta\": {}, \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/credits/CR4L4fINGRljGmx0jbwH32RA/reversals\", \n \"status\": \"pending\", \n \"uri\": \"/v1/credits/CR4L4fINGRljGmx0jbwH32RA\"\n}" }, "credit_failed_state": { "request": { @@ -256,135 +286,104 @@ "type": "checking" } }, - "response": "{\n \"_type\": \"credit\", \n \"_uris\": {}, \n \"amount\": 10000, \n \"appears_on_statement_as\": \"example.com\", \n \"bank_account\": {\n \"_type\": \"bank_account\", \n \"_uris\": {\n \"verifications_uri\": {\n \"_type\": \"page\", \n \"key\": \"verifications\"\n }\n }, \n \"account_number\": \"xxxxxx0004\", \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_debit\": false, \n \"fingerprint\": \"67GbCVK8LlYAZ13WbmDQT9_fd\", \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"type\": \"checking\", \n \"verification_uri\": null, \n \"verifications_uri\": \"/v1/bank_accounts/BAouxhPUCAD3qk0JpqElWG3/verifications\"\n }, \n \"created_at\": \"2013-06-12T22:25:56.742130Z\", \n \"description\": null, \n \"id\": \"CRoLnHXPmZU1uuYxU2GgmQv\", \n \"meta\": {}, \n \"status\": \"failed\", \n \"uri\": \"/v1/credits/CRoLnHXPmZU1uuYxU2GgmQv\"\n}" + "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\": \"xxxxxx0004\", \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_debit\": false, \n \"fingerprint\": \"67GbCVK8LlYAZ13WbmDQT9_fd\", \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"type\": \"checking\"\n }, \n \"created_at\": \"2013-08-06T22:52:11.363826Z\", \n \"description\": null, \n \"id\": \"CR6sM43KF1ZeC10dp8UhLnYI\", \n \"meta\": {}, \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/credits/CR6sM43KF1ZeC10dp8UhLnYI/reversals\", \n \"status\": \"failed\", \n \"uri\": \"/v1/credits/CR6sM43KF1ZeC10dp8UhLnYI\"\n}" }, "credit_list": { "request": {}, - "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 \"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 \"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-06-12T22:24:05.093027Z\", \n \"credits_uri\": \"/v1/bank_accounts/BA6aflmsJEE7FldgQGpsgW0u/credits\", \n \"fingerprint\": \"1eH719hwbYRpEILVKyboPs_pn\", \n \"id\": \"BA6aflmsJEE7FldgQGpsgW0u\", \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"type\": \"checking\", \n \"uri\": \"/v1/bank_accounts/BA6aflmsJEE7FldgQGpsgW0u\", \n \"verification_uri\": null, \n \"verifications_uri\": \"/v1/bank_accounts/BA6aflmsJEE7FldgQGpsgW0u/verifications\"\n }, \n \"created_at\": \"2013-06-12T22:24:36.944650Z\", \n \"description\": null, \n \"id\": \"CR6K4s7nQMzyxRINBFJXr7LM\", \n \"meta\": {}, \n \"status\": \"pending\", \n \"uri\": \"/v1/credits/CR6K4s7nQMzyxRINBFJXr7LM\"\n }, \n {\n \"_type\": \"credit\", \n \"_uris\": {}, \n \"amount\": 10000, \n \"appears_on_statement_as\": \"example.com\", \n \"bank_account\": {\n \"_type\": \"bank_account\", \n \"_uris\": {\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 \"fingerprint\": \"1eH719hwbYRpEILVKyboPs_pn\", \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"type\": \"checking\", \n \"verification_uri\": null, \n \"verifications_uri\": \"/v1/bank_accounts/BA6HyWupP9ator9isn7SPkns/verifications\"\n }, \n \"created_at\": \"2013-06-12T22:24:34.952914Z\", \n \"description\": null, \n \"id\": \"CR6HPyOqdWtPuNdeHJFd7ybY\", \n \"meta\": {}, \n \"status\": \"pending\", \n \"uri\": \"/v1/credits/CR6HPyOqdWtPuNdeHJFd7ybY\"\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}" + "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-06T22:50:25.101084Z\", \n \"credits_uri\": \"/v1/bank_accounts/BA4xg7wvGiKLcFipQYWsVDJR/credits\", \n \"debits_uri\": \"/v1/bank_accounts/BA4xg7wvGiKLcFipQYWsVDJR/debits\", \n \"fingerprint\": \"1eH719hwbYRpEILVKyboPs_pn\", \n \"id\": \"BA4xg7wvGiKLcFipQYWsVDJR\", \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"type\": \"checking\", \n \"uri\": \"/v1/bank_accounts/BA4xg7wvGiKLcFipQYWsVDJR\", \n \"verification_uri\": null, \n \"verifications_uri\": \"/v1/bank_accounts/BA4xg7wvGiKLcFipQYWsVDJR/verifications\"\n }, \n \"created_at\": \"2013-08-06T22:50:39.129958Z\", \n \"description\": null, \n \"id\": \"CR4N0gzCnOIf00XewXDTMhun\", \n \"meta\": {}, \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/credits/CR4N0gzCnOIf00XewXDTMhun/reversals\", \n \"status\": \"pending\", \n \"uri\": \"/v1/credits/CR4N0gzCnOIf00XewXDTMhun\"\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-06T22:50:37.395182Z\", \n \"description\": null, \n \"id\": \"CR4L4fINGRljGmx0jbwH32RA\", \n \"meta\": {}, \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/credits/CR4L4fINGRljGmx0jbwH32RA/reversals\", \n \"status\": \"pending\", \n \"uri\": \"/v1/credits/CR4L4fINGRljGmx0jbwH32RA\"\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}" }, "credit_paid_state": { "request": { "amount": 10000, "bank_account": { - "account_number": "9900000002", + "account_number": "9900000003", "name": "Johann Bernoulli", "routing_number": "121000358", "type": "checking" } }, - "response": "{\n \"_type\": \"credit\", \n \"_uris\": {}, \n \"amount\": 10000, \n \"appears_on_statement_as\": \"example.com\", \n \"bank_account\": {\n \"_type\": \"bank_account\", \n \"_uris\": {\n \"verifications_uri\": {\n \"_type\": \"page\", \n \"key\": \"verifications\"\n }\n }, \n \"account_number\": \"xxxxxx0002\", \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_debit\": false, \n \"fingerprint\": \"17Qna8Ugvj8mx9Lu9TOgpd_pd\", \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"type\": \"checking\", \n \"verification_uri\": null, \n \"verifications_uri\": \"/v1/bank_accounts/BAmpFNC8ONG0QLItr0fOgoG/verifications\"\n }, \n \"created_at\": \"2013-06-12T22:25:54.877307Z\", \n \"description\": null, \n \"id\": \"CRmFdYpm0NZUiTEFJtqj1vI\", \n \"meta\": {}, \n \"status\": \"paid\", \n \"uri\": \"/v1/credits/CRmFdYpm0NZUiTEFJtqj1vI\"\n}" + "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\": \"xxxxxx0003\", \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_debit\": false, \n \"fingerprint\": \"2voYRuvBfmMa5e098L7Rpd_pd\", \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"type\": \"checking\"\n }, \n \"created_at\": \"2013-08-06T22:52:08.190531Z\", \n \"description\": null, \n \"id\": \"CR6pbT7zoPd8ldbJsWLht7Go\", \n \"meta\": {}, \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/credits/CR6pbT7zoPd8ldbJsWLht7Go/reversals\", \n \"status\": \"paid\", \n \"uri\": \"/v1/credits/CR6pbT7zoPd8ldbJsWLht7Go\"\n}" }, "credit_pending_state": { "request": { "amount": 10000, "bank_account": { - "account_number": "9900000000", + "account_number": "9900000001", "name": "Johann Bernoulli", "routing_number": "121000358", "type": "checking" } }, - "response": "{\n \"_type\": \"credit\", \n \"_uris\": {}, \n \"amount\": 10000, \n \"appears_on_statement_as\": \"example.com\", \n \"bank_account\": {\n \"_type\": \"bank_account\", \n \"_uris\": {\n \"verifications_uri\": {\n \"_type\": \"page\", \n \"key\": \"verifications\"\n }\n }, \n \"account_number\": \"xxxxxx0000\", \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_debit\": false, \n \"fingerprint\": \"1Y1Iq2DIr9MUiY8poVBAlf_pn\", \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"type\": \"checking\", \n \"verification_uri\": null, \n \"verifications_uri\": \"/v1/bank_accounts/BAkv251X6qfcFqKQUhoVolq/verifications\"\n }, \n \"created_at\": \"2013-06-12T22:25:53.193081Z\", \n \"description\": null, \n \"id\": \"CRkLeQQksjEdNqp5zy31c7u\", \n \"meta\": {}, \n \"status\": \"pending\", \n \"uri\": \"/v1/credits/CRkLeQQksjEdNqp5zy31c7u\"\n}" + "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-06T22:52:06.376820Z\", \n \"description\": null, \n \"id\": \"CR6n7zOQnDRaJG568riXKJuo\", \n \"meta\": {}, \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/credits/CR6n7zOQnDRaJG568riXKJuo/reversals\", \n \"status\": \"pending\", \n \"uri\": \"/v1/credits/CR6n7zOQnDRaJG568riXKJuo\"\n}" }, "credit_show": { "request": { - "id": "CR6HPyOqdWtPuNdeHJFd7ybY", - "uri": "/v1/credits/CR6HPyOqdWtPuNdeHJFd7ybY" + "id": "CR4L4fINGRljGmx0jbwH32RA", + "uri": "/v1/credits/CR4L4fINGRljGmx0jbwH32RA" }, - "response": "{\n \"_type\": \"credit\", \n \"_uris\": {}, \n \"amount\": 10000, \n \"appears_on_statement_as\": \"example.com\", \n \"bank_account\": {\n \"_type\": \"bank_account\", \n \"_uris\": {\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 \"fingerprint\": \"1eH719hwbYRpEILVKyboPs_pn\", \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"type\": \"checking\", \n \"verification_uri\": null, \n \"verifications_uri\": \"/v1/bank_accounts/BA6HyWupP9ator9isn7SPkns/verifications\"\n }, \n \"created_at\": \"2013-06-12T22:24:34.952914Z\", \n \"description\": null, \n \"id\": \"CR6HPyOqdWtPuNdeHJFd7ybY\", \n \"meta\": {}, \n \"status\": \"pending\", \n \"uri\": \"/v1/credits/CR6HPyOqdWtPuNdeHJFd7ybY\"\n}" + "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-06T22:50:37.395182Z\", \n \"description\": null, \n \"id\": \"CR4L4fINGRljGmx0jbwH32RA\", \n \"meta\": {}, \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/credits/CR4L4fINGRljGmx0jbwH32RA/reversals\", \n \"status\": \"pending\", \n \"uri\": \"/v1/credits/CR4L4fINGRljGmx0jbwH32RA\"\n}" }, "customer_add_bank_account": { "request": { "payload": { - "bank_account_uri": "/v1/bank_accounts/BA7LMoiDtVIogA3dSCkb93xQ" + "bank_account_uri": "/v1/bank_accounts/BA55EaXnaE4Yos3ihJawNiaK" }, - "uri": "/v1/customers/CU7KsM3n0uv9cqwm94E1enVB" + "uri": "/v1/customers/CU54O6mXfm2zETAzuQeMxHpS" }, - "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 \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"address\": {}, \n \"bank_accounts_uri\": \"/v1/customers/CU7KsM3n0uv9cqwm94E1enVB/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU7KsM3n0uv9cqwm94E1enVB/cards\", \n \"created_at\": \"2013-06-12T22:25:32.413325Z\", \n \"credits_uri\": \"/v1/customers/CU7KsM3n0uv9cqwm94E1enVB/credits\", \n \"debits_uri\": \"/v1/customers/CU7KsM3n0uv9cqwm94E1enVB/debits\", \n \"destination_uri\": \"/v1/customers/CU7KsM3n0uv9cqwm94E1enVB/bank_accounts/BA7LMoiDtVIogA3dSCkb93xQ\", \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU7KsM3n0uv9cqwm94E1enVB/holds\", \n \"id\": \"CU7KsM3n0uv9cqwm94E1enVB\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU7KsM3n0uv9cqwm94E1enVB/refunds\", \n \"source_uri\": null, \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU7KsM3n0uv9cqwm94E1enVB/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU7KsM3n0uv9cqwm94E1enVB\"\n}" + "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/CU54O6mXfm2zETAzuQeMxHpS/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU54O6mXfm2zETAzuQeMxHpS/cards\", \n \"created_at\": \"2013-08-06T22:50:54.927592Z\", \n \"credits_uri\": \"/v1/customers/CU54O6mXfm2zETAzuQeMxHpS/credits\", \n \"debits_uri\": \"/v1/customers/CU54O6mXfm2zETAzuQeMxHpS/debits\", \n \"destination_uri\": \"/v1/customers/CU54O6mXfm2zETAzuQeMxHpS/bank_accounts/BA55EaXnaE4Yos3ihJawNiaK\", \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU54O6mXfm2zETAzuQeMxHpS/holds\", \n \"id\": \"CU54O6mXfm2zETAzuQeMxHpS\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU54O6mXfm2zETAzuQeMxHpS/refunds\", \n \"reversals_uri\": \"/v1/customers/CU54O6mXfm2zETAzuQeMxHpS/reversals\", \n \"source_uri\": null, \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU54O6mXfm2zETAzuQeMxHpS/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU54O6mXfm2zETAzuQeMxHpS\"\n}" }, "customer_add_card": { "request": { "payload": { - "card_uri": "/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/cards/CC7HVl3IUDtngQOWXk77t3uK" + "card_uri": "/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/cards/CC523BGAwIKAD6qmDRggQW9V" }, - "uri": "/v1/customers/CU7GuPv9Y2F8ySwJHuHL0YWq" + "uri": "/v1/customers/CU50w7Cg6mD57vSK0K5nMi2i" }, - "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 \"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/CU7GuPv9Y2F8ySwJHuHL0YWq/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU7GuPv9Y2F8ySwJHuHL0YWq/cards\", \n \"created_at\": \"2013-06-12T22:25:28.892929Z\", \n \"credits_uri\": \"/v1/customers/CU7GuPv9Y2F8ySwJHuHL0YWq/credits\", \n \"debits_uri\": \"/v1/customers/CU7GuPv9Y2F8ySwJHuHL0YWq/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU7GuPv9Y2F8ySwJHuHL0YWq/holds\", \n \"id\": \"CU7GuPv9Y2F8ySwJHuHL0YWq\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU7GuPv9Y2F8ySwJHuHL0YWq/refunds\", \n \"source_uri\": \"/v1/customers/CU7GuPv9Y2F8ySwJHuHL0YWq/cards/CC7HVl3IUDtngQOWXk77t3uK\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU7GuPv9Y2F8ySwJHuHL0YWq/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU7GuPv9Y2F8ySwJHuHL0YWq\"\n}" + "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/CU50w7Cg6mD57vSK0K5nMi2i/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU50w7Cg6mD57vSK0K5nMi2i/cards\", \n \"created_at\": \"2013-08-06T22:50:51.125229Z\", \n \"credits_uri\": \"/v1/customers/CU50w7Cg6mD57vSK0K5nMi2i/credits\", \n \"debits_uri\": \"/v1/customers/CU50w7Cg6mD57vSK0K5nMi2i/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU50w7Cg6mD57vSK0K5nMi2i/holds\", \n \"id\": \"CU50w7Cg6mD57vSK0K5nMi2i\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU50w7Cg6mD57vSK0K5nMi2i/refunds\", \n \"reversals_uri\": \"/v1/customers/CU50w7Cg6mD57vSK0K5nMi2i/reversals\", \n \"source_uri\": \"/v1/customers/CU50w7Cg6mD57vSK0K5nMi2i/cards/CC523BGAwIKAD6qmDRggQW9V\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU50w7Cg6mD57vSK0K5nMi2i/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU50w7Cg6mD57vSK0K5nMi2i\"\n}" }, "customer_create": { "request": { "uri": "/v1/customers" }, - "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 \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"address\": {}, \n \"bank_accounts_uri\": \"/v1/customers/CU7KsM3n0uv9cqwm94E1enVB/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU7KsM3n0uv9cqwm94E1enVB/cards\", \n \"created_at\": \"2013-06-12T22:25:32.413325Z\", \n \"credits_uri\": \"/v1/customers/CU7KsM3n0uv9cqwm94E1enVB/credits\", \n \"debits_uri\": \"/v1/customers/CU7KsM3n0uv9cqwm94E1enVB/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU7KsM3n0uv9cqwm94E1enVB/holds\", \n \"id\": \"CU7KsM3n0uv9cqwm94E1enVB\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU7KsM3n0uv9cqwm94E1enVB/refunds\", \n \"source_uri\": null, \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU7KsM3n0uv9cqwm94E1enVB/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU7KsM3n0uv9cqwm94E1enVB\"\n}" + "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/CU54O6mXfm2zETAzuQeMxHpS/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU54O6mXfm2zETAzuQeMxHpS/cards\", \n \"created_at\": \"2013-08-06T22:50:54.927592Z\", \n \"credits_uri\": \"/v1/customers/CU54O6mXfm2zETAzuQeMxHpS/credits\", \n \"debits_uri\": \"/v1/customers/CU54O6mXfm2zETAzuQeMxHpS/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU54O6mXfm2zETAzuQeMxHpS/holds\", \n \"id\": \"CU54O6mXfm2zETAzuQeMxHpS\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU54O6mXfm2zETAzuQeMxHpS/refunds\", \n \"reversals_uri\": \"/v1/customers/CU54O6mXfm2zETAzuQeMxHpS/reversals\", \n \"source_uri\": null, \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU54O6mXfm2zETAzuQeMxHpS/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU54O6mXfm2zETAzuQeMxHpS\"\n}" }, - "customer_create_debit": { + "debit_account_list": { "request": { - "customer_uri": "/v1/customers/CU7GuPv9Y2F8ySwJHuHL0YWq", - "payload": { - "amount": 1000 - }, - "uri": "/v1/customers/CU7GuPv9Y2F8ySwJHuHL0YWq/debits" + "debits_uri": "/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/debits", + "uri": "/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg" }, - "response": "{\n \"_type\": \"debit\", \n \"_uris\": {\n \"refunds_uri\": {\n \"_type\": \"page\", \n \"key\": \"refunds\"\n }\n }, \n \"amount\": 1000, \n \"appears_on_statement_as\": \"example.com\", \n \"available_at\": \"2013-06-12T22:26:01.027976Z\", \n \"created_at\": \"2013-06-12T22:26:01.291641Z\", \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 \"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/CU7GuPv9Y2F8ySwJHuHL0YWq/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU7GuPv9Y2F8ySwJHuHL0YWq/cards\", \n \"created_at\": \"2013-06-12T22:25:29.075931Z\", \n \"credits_uri\": \"/v1/customers/CU7GuPv9Y2F8ySwJHuHL0YWq/credits\", \n \"debits_uri\": \"/v1/customers/CU7GuPv9Y2F8ySwJHuHL0YWq/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU7GuPv9Y2F8ySwJHuHL0YWq/holds\", \n \"id\": \"CU7GuPv9Y2F8ySwJHuHL0YWq\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU7GuPv9Y2F8ySwJHuHL0YWq/refunds\", \n \"source_uri\": \"/v1/customers/CU7GuPv9Y2F8ySwJHuHL0YWq/cards/CC7HVl3IUDtngQOWXk77t3uK\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU7GuPv9Y2F8ySwJHuHL0YWq/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU7GuPv9Y2F8ySwJHuHL0YWq\"\n }, \n \"description\": null, \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\": 1000, \n \"created_at\": \"2013-06-12T22:26:01.315147Z\", \n \"customer_uri\": \"/v1/customers/CU7GuPv9Y2F8ySwJHuHL0YWq\", \n \"debit_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/debits/WDtSoSmJ6AOvTLtTFdG3lAs\", \n \"description\": null, \n \"expires_at\": \"2013-06-19T22:26:00.626330Z\", \n \"fee\": null, \n \"id\": \"HLtU3ul27dQIolYlJcCEYiA\", \n \"is_void\": false, \n \"meta\": {}, \n \"source_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU7GuPv9Y2F8ySwJHuHL0YWq/cards/CC7HVl3IUDtngQOWXk77t3uK\", \n \"transaction_number\": \"HL851-654-3448\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/holds/HLtU3ul27dQIolYlJcCEYiA\"\n }, \n \"id\": \"WDtSoSmJ6AOvTLtTFdG3lAs\", \n \"meta\": {}, \n \"on_behalf_of\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/debits/WDtSoSmJ6AOvTLtTFdG3lAs/refunds\", \n \"source\": {\n \"_type\": \"card\", \n \"_uris\": {\n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }\n }, \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"created_at\": \"2013-06-12T22:25:30.160492Z\", \n \"customer_uri\": \"/v1/customers/CU7GuPv9Y2F8ySwJHuHL0YWq\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"b7250dd4b4827a88d5e4132b67f02916bce6f8e83d4ca0d779d1351b360ff6af\", \n \"id\": \"CC7HVl3IUDtngQOWXk77t3uK\", \n \"is_valid\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": null, \n \"postal_code_check\": \"true\", \n \"security_code_check\": \"true\", \n \"uri\": \"/v1/customers/CU7GuPv9Y2F8ySwJHuHL0YWq/cards/CC7HVl3IUDtngQOWXk77t3uK\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W888-120-2168\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/debits/WDtSoSmJ6AOvTLtTFdG3lAs\"\n}" - }, - "customer_create_hold": { - "request": { - "customer_id": "CU7GuPv9Y2F8ySwJHuHL0YWq", - "customer_uri": "/v1/customers/CU7GuPv9Y2F8ySwJHuHL0YWq", - "payload": { - "amount": 1000 - }, - "uri": "/v1/customers/CU7GuPv9Y2F8ySwJHuHL0YWq/holds" - }, - "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 \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU7GuPv9Y2F8ySwJHuHL0YWq/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU7GuPv9Y2F8ySwJHuHL0YWq/cards\", \n \"created_at\": \"2013-06-12T22:25:28.892929Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU7GuPv9Y2F8ySwJHuHL0YWq/credits\", \n \"customer_uri\": \"/v1/customers/CU7GuPv9Y2F8ySwJHuHL0YWq\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU7GuPv9Y2F8ySwJHuHL0YWq/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU7GuPv9Y2F8ySwJHuHL0YWq/holds\", \n \"id\": \"CU7GuPv9Y2F8ySwJHuHL0YWq\", \n \"meta\": {}, \n \"name\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU7GuPv9Y2F8ySwJHuHL0YWq/refunds\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU7GuPv9Y2F8ySwJHuHL0YWq/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU7GuPv9Y2F8ySwJHuHL0YWq\"\n }, \n \"amount\": 1000, \n \"created_at\": \"2013-06-12T22:26:02.958738Z\", \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 \"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/CU7GuPv9Y2F8ySwJHuHL0YWq/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU7GuPv9Y2F8ySwJHuHL0YWq/cards\", \n \"created_at\": \"2013-06-12T22:25:29.075931Z\", \n \"credits_uri\": \"/v1/customers/CU7GuPv9Y2F8ySwJHuHL0YWq/credits\", \n \"debits_uri\": \"/v1/customers/CU7GuPv9Y2F8ySwJHuHL0YWq/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU7GuPv9Y2F8ySwJHuHL0YWq/holds\", \n \"id\": \"CU7GuPv9Y2F8ySwJHuHL0YWq\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU7GuPv9Y2F8ySwJHuHL0YWq/refunds\", \n \"source_uri\": \"/v1/customers/CU7GuPv9Y2F8ySwJHuHL0YWq/cards/CC7HVl3IUDtngQOWXk77t3uK\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU7GuPv9Y2F8ySwJHuHL0YWq/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU7GuPv9Y2F8ySwJHuHL0YWq\"\n }, \n \"debit\": null, \n \"description\": null, \n \"expires_at\": \"2013-06-19T22:26:02.834946Z\", \n \"fee\": null, \n \"id\": \"HLvKLH69dhDgKFQavcJ43IS\", \n \"is_void\": false, \n \"meta\": {}, \n \"source\": {\n \"_type\": \"card\", \n \"_uris\": {\n \"account_uri\": {\n \"_type\": \"account\", \n \"key\": \"account\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }\n }, \n \"account_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU7GuPv9Y2F8ySwJHuHL0YWq\", \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"created_at\": \"2013-06-12T22:25:30.160492Z\", \n \"customer_uri\": \"/v1/customers/CU7GuPv9Y2F8ySwJHuHL0YWq\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"b7250dd4b4827a88d5e4132b67f02916bce6f8e83d4ca0d779d1351b360ff6af\", \n \"id\": \"CC7HVl3IUDtngQOWXk77t3uK\", \n \"is_valid\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": null, \n \"postal_code_check\": \"true\", \n \"security_code_check\": \"true\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU7GuPv9Y2F8ySwJHuHL0YWq/cards/CC7HVl3IUDtngQOWXk77t3uK\"\n }, \n \"transaction_number\": \"HL968-277-6324\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/holds/HLvKLH69dhDgKFQavcJ43IS\"\n}" - }, - "customer_credit": { - "request": { - "customer_uri": "/v1/customers/CU6PXyMacKRYKNJPJFKtONK0", - "payload": { - "amount": 100 - }, - "uri": "/v1/customers/CU6PXyMacKRYKNJPJFKtONK0/credits" - }, - "response": "{\n \"_type\": \"credit\", \n \"_uris\": {}, \n \"amount\": 100, \n \"appears_on_statement_as\": \"example.com\", \n \"available_at\": null, \n \"bank_account\": {\n \"_type\": \"bank_account\", \n \"_uris\": {\n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }, \n \"verifications_uri\": {\n \"_type\": \"page\", \n \"key\": \"verifications\"\n }\n }, \n \"account_number\": \"xxxxxx0001\", \n \"bank_code\": \"121000358\", \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_debit\": false, \n \"created_at\": \"2013-06-12T22:24:43.376686Z\", \n \"credits_uri\": \"/v1/bank_accounts/BA6RiM3bALH1gg966BPrs6mc/credits\", \n \"customer_uri\": \"/v1/customers/CU6PXyMacKRYKNJPJFKtONK0\", \n \"fingerprint\": \"1eH719hwbYRpEILVKyboPs_pn\", \n \"id\": \"BA6RiM3bALH1gg966BPrs6mc\", \n \"is_valid\": true, \n \"last_four\": \"0001\", \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"type\": \"checking\", \n \"uri\": \"/v1/customers/CU6PXyMacKRYKNJPJFKtONK0/bank_accounts/BA6RiM3bALH1gg966BPrs6mc\", \n \"verification_uri\": null, \n \"verifications_uri\": \"/v1/bank_accounts/BA6RiM3bALH1gg966BPrs6mc/verifications\"\n }, \n \"created_at\": \"2013-06-12T22:24:44.955212Z\", \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 \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"address\": {}, \n \"bank_accounts_uri\": \"/v1/customers/CU6PXyMacKRYKNJPJFKtONK0/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU6PXyMacKRYKNJPJFKtONK0/cards\", \n \"created_at\": \"2013-06-12T22:24:42.388041Z\", \n \"credits_uri\": \"/v1/customers/CU6PXyMacKRYKNJPJFKtONK0/credits\", \n \"debits_uri\": \"/v1/customers/CU6PXyMacKRYKNJPJFKtONK0/debits\", \n \"destination_uri\": \"/v1/customers/CU6PXyMacKRYKNJPJFKtONK0/bank_accounts/BA6RiM3bALH1gg966BPrs6mc\", \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU6PXyMacKRYKNJPJFKtONK0/holds\", \n \"id\": \"CU6PXyMacKRYKNJPJFKtONK0\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU6PXyMacKRYKNJPJFKtONK0/refunds\", \n \"source_uri\": null, \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU6PXyMacKRYKNJPJFKtONK0/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU6PXyMacKRYKNJPJFKtONK0\"\n }, \n \"description\": null, \n \"destination\": {\n \"_type\": \"bank_account\", \n \"_uris\": {\n \"credits_uri\": {\n \"_type\": \"page\", \n \"key\": \"credits\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }, \n \"verifications_uri\": {\n \"_type\": \"page\", \n \"key\": \"verifications\"\n }\n }, \n \"account_number\": \"xxxxxx0001\", \n \"bank_code\": \"121000358\", \n \"bank_name\": \"BANK OF AMERICA, N.A.\", \n \"can_debit\": false, \n \"created_at\": \"2013-06-12T22:24:43.376686Z\", \n \"credits_uri\": \"/v1/bank_accounts/BA6RiM3bALH1gg966BPrs6mc/credits\", \n \"customer_uri\": \"/v1/customers/CU6PXyMacKRYKNJPJFKtONK0\", \n \"fingerprint\": \"1eH719hwbYRpEILVKyboPs_pn\", \n \"id\": \"BA6RiM3bALH1gg966BPrs6mc\", \n \"is_valid\": true, \n \"last_four\": \"0001\", \n \"meta\": {}, \n \"name\": \"Johann Bernoulli\", \n \"routing_number\": \"121000358\", \n \"type\": \"checking\", \n \"uri\": \"/v1/customers/CU6PXyMacKRYKNJPJFKtONK0/bank_accounts/BA6RiM3bALH1gg966BPrs6mc\", \n \"verification_uri\": null, \n \"verifications_uri\": \"/v1/bank_accounts/BA6RiM3bALH1gg966BPrs6mc/verifications\"\n }, \n \"fee\": null, \n \"id\": \"CR6T5nBCkGeR4b9INxCEaQfU\", \n \"meta\": {}, \n \"state\": \"pending\", \n \"status\": \"pending\", \n \"transaction_number\": \"CR704-171-8411\", \n \"uri\": \"/v1/customers/CU6PXyMacKRYKNJPJFKtONK0/credits/CR6T5nBCkGeR4b9INxCEaQfU\"\n}" + "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-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/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-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/cards\", \n \"created_at\": \"2013-08-06T22:50:05.055709Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/credits\", \n \"customer_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/holds\", \n \"id\": \"AC4aHI8dZiHocr1M5FARdZzg\", \n \"meta\": {}, \n \"name\": \"None\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg\"\n }, \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"available_at\": \"2013-08-06T22:50:58.536001Z\", \n \"created_at\": \"2013-08-06T22:50:58.030544Z\", \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/CU4b8XWw94OpiZW2zEaSPQbA/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/cards\", \n \"created_at\": \"2013-08-06T22:50:05.446575Z\", \n \"credits_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/credits\", \n \"debits_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/debits\", \n \"destination_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg/bank_accounts/BA4gGTZiAgLomq8IjMjYcB32\", \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/holds\", \n \"id\": \"CU4b8XWw94OpiZW2zEaSPQbA\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/refunds\", \n \"reversals_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/reversals\", \n \"source_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg/cards/CC4ejBuNLWYWy2Pb6Hxbv6A0\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA\"\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-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg\", \n \"amount\": 5000, \n \"created_at\": \"2013-08-06T22:50:58.080731Z\", \n \"customer_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA\", \n \"debit_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/debits/WD58hSdghkuQKA1H1urhDwVa\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2013-08-13T22:50:57.813271Z\", \n \"fee\": null, \n \"id\": \"HL58lBK2FJckxw3W8NEowkw0\", \n \"is_void\": false, \n \"meta\": {}, \n \"source_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/cards/CC4ejBuNLWYWy2Pb6Hxbv6A0\", \n \"transaction_number\": \"HL957-797-2997\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/holds/HL58lBK2FJckxw3W8NEowkw0\"\n }, \n \"id\": \"WD58hSdghkuQKA1H1urhDwVa\", \n \"meta\": {}, \n \"on_behalf_of\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/debits/WD58hSdghkuQKA1H1urhDwVa/refunds\", \n \"source\": {\n \"_type\": \"card\", \n \"_uris\": {\n \"account_uri\": {\n \"_type\": \"account\", \n \"key\": \"account\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }\n }, \n \"account_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg\", \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"created_at\": \"2013-08-06T22:50:08.255162Z\", \n \"customer_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"b7250dd4b4827a88d5e4132b67f02916bce6f8e83d4ca0d779d1351b360ff6af\", \n \"id\": \"CC4ejBuNLWYWy2Pb6Hxbv6A0\", \n \"is_valid\": true, \n \"is_verified\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": \"None\", \n \"postal_code_check\": \"true\", \n \"security_code_check\": \"true\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/cards/CC4ejBuNLWYWy2Pb6Hxbv6A0\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W790-773-1426\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/debits/WD58hSdghkuQKA1H1urhDwVa\"\n }\n ], \n \"last_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/debits?limit=2&offset=0\", \n \"limit\": 2, \n \"next_uri\": null, \n \"offset\": 0, \n \"previous_uri\": null, \n \"total\": 1, \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/debits?limit=2&offset=0\"\n}" }, "debit_create": { "request": { - "customer_uri": "/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe", - "debits_uri": "/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/debits", + "account_uri": "/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg", + "debits_uri": "/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/debits", "payload": { "amount": 5000, "appears_on_statement_as": "Statement text", "description": "Some descriptive text for the debit in the dashboard" } }, - "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-06-12T22:25:13.902684Z\", \n \"created_at\": \"2013-06-12T22:25:14.203435Z\", \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 \"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/CU6W5pSk2CUXQxhENqyGRvQe/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/cards\", \n \"created_at\": \"2013-06-12T22:24:47.823456Z\", \n \"credits_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/credits\", \n \"debits_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/holds\", \n \"id\": \"CU6W5pSk2CUXQxhENqyGRvQe\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/refunds\", \n \"source_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/cards/CC6XAdMPMSf0i4dC8Nf60PSW\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe\"\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-06-12T22:25:14.267887Z\", \n \"customer_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe\", \n \"debit_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/debits/WD7pYB2uXq8QAZvVrvO1l2Oq\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2013-06-19T22:25:13.464467Z\", \n \"fee\": null, \n \"id\": \"HL7q36Npzf3aN3ABqhhYUH7E\", \n \"is_void\": false, \n \"meta\": {}, \n \"source_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/cards/CC6XAdMPMSf0i4dC8Nf60PSW\", \n \"transaction_number\": \"HL884-683-8259\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/holds/HL7q36Npzf3aN3ABqhhYUH7E\"\n }, \n \"id\": \"WD7pYB2uXq8QAZvVrvO1l2Oq\", \n \"meta\": {}, \n \"on_behalf_of\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/debits/WD7pYB2uXq8QAZvVrvO1l2Oq/refunds\", \n \"source\": {\n \"_type\": \"card\", \n \"_uris\": {\n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }\n }, \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"created_at\": \"2013-06-12T22:24:48.953938Z\", \n \"customer_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"b7250dd4b4827a88d5e4132b67f02916bce6f8e83d4ca0d779d1351b360ff6af\", \n \"id\": \"CC6XAdMPMSf0i4dC8Nf60PSW\", \n \"is_valid\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": null, \n \"postal_code_check\": \"true\", \n \"security_code_check\": \"true\", \n \"uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/cards/CC6XAdMPMSf0i4dC8Nf60PSW\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W818-018-6498\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/debits/WD7pYB2uXq8QAZvVrvO1l2Oq\"\n}" - }, - "debit_customer_list": { - "request": { - "debits_uri": "/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/debits", - "uri": "/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe" - }, - "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/CU6W5pSk2CUXQxhENqyGRvQe/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 \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"available_at\": \"2013-06-12T22:24:50.898146Z\", \n \"created_at\": \"2013-06-12T22:24:51.199695Z\", \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 \"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/CU6W5pSk2CUXQxhENqyGRvQe/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/cards\", \n \"created_at\": \"2013-06-12T22:24:47.823456Z\", \n \"credits_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/credits\", \n \"debits_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/holds\", \n \"id\": \"CU6W5pSk2CUXQxhENqyGRvQe\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/refunds\", \n \"source_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/cards/CC6XAdMPMSf0i4dC8Nf60PSW\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe\"\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-06-12T22:24:51.217260Z\", \n \"customer_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe\", \n \"debit_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/debits/WD706iriHZn5MZEyQ86DmHmE\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2013-06-19T22:24:50.390673Z\", \n \"fee\": null, \n \"id\": \"HL707xdVmcwMXlN32Vz2Q9zG\", \n \"is_void\": false, \n \"meta\": {}, \n \"source_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/cards/CC6XAdMPMSf0i4dC8Nf60PSW\", \n \"transaction_number\": \"HL611-203-4430\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/holds/HL707xdVmcwMXlN32Vz2Q9zG\"\n }, \n \"id\": \"WD706iriHZn5MZEyQ86DmHmE\", \n \"meta\": {}, \n \"on_behalf_of\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/debits/WD706iriHZn5MZEyQ86DmHmE/refunds\", \n \"source\": {\n \"_type\": \"card\", \n \"_uris\": {\n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }\n }, \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"created_at\": \"2013-06-12T22:24:48.953938Z\", \n \"customer_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"b7250dd4b4827a88d5e4132b67f02916bce6f8e83d4ca0d779d1351b360ff6af\", \n \"id\": \"CC6XAdMPMSf0i4dC8Nf60PSW\", \n \"is_valid\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": null, \n \"postal_code_check\": \"true\", \n \"security_code_check\": \"true\", \n \"uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/cards/CC6XAdMPMSf0i4dC8Nf60PSW\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W374-514-3443\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/debits/WD706iriHZn5MZEyQ86DmHmE\"\n }\n ], \n \"last_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/debits?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/CU6W5pSk2CUXQxhENqyGRvQe/debits?limit=2&offset=0\"\n}" + "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-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/cards\", \n \"created_at\": \"2013-08-06T22:50:05.055709Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/credits\", \n \"customer_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/holds\", \n \"id\": \"AC4aHI8dZiHocr1M5FARdZzg\", \n \"meta\": {}, \n \"name\": \"None\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg\"\n }, \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"available_at\": \"2013-08-06T22:51:28.934052Z\", \n \"created_at\": \"2013-08-06T22:51:28.443083Z\", \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/CU4b8XWw94OpiZW2zEaSPQbA/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/cards\", \n \"created_at\": \"2013-08-06T22:50:05.446575Z\", \n \"credits_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/credits\", \n \"debits_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/debits\", \n \"destination_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg/bank_accounts/BA4gGTZiAgLomq8IjMjYcB32\", \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/holds\", \n \"id\": \"CU4b8XWw94OpiZW2zEaSPQbA\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/refunds\", \n \"reversals_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/reversals\", \n \"source_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg/cards/CC4ejBuNLWYWy2Pb6Hxbv6A0\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA\"\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-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg\", \n \"amount\": 5000, \n \"created_at\": \"2013-08-06T22:51:28.489844Z\", \n \"customer_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA\", \n \"debit_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/debits/WD5Gv7XetHvx1CHUqkDKiZYY\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2013-08-13T22:51:28.244135Z\", \n \"fee\": null, \n \"id\": \"HL5GyCU8CaA6495Kxj4bJSu4\", \n \"is_void\": false, \n \"meta\": {}, \n \"source_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/cards/CC4ejBuNLWYWy2Pb6Hxbv6A0\", \n \"transaction_number\": \"HL579-223-8829\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/holds/HL5GyCU8CaA6495Kxj4bJSu4\"\n }, \n \"id\": \"WD5Gv7XetHvx1CHUqkDKiZYY\", \n \"meta\": {}, \n \"on_behalf_of\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/debits/WD5Gv7XetHvx1CHUqkDKiZYY/refunds\", \n \"source\": {\n \"_type\": \"card\", \n \"_uris\": {\n \"account_uri\": {\n \"_type\": \"account\", \n \"key\": \"account\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }\n }, \n \"account_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg\", \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"created_at\": \"2013-08-06T22:50:08.255162Z\", \n \"customer_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"b7250dd4b4827a88d5e4132b67f02916bce6f8e83d4ca0d779d1351b360ff6af\", \n \"id\": \"CC4ejBuNLWYWy2Pb6Hxbv6A0\", \n \"is_valid\": true, \n \"is_verified\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": \"None\", \n \"postal_code_check\": \"true\", \n \"security_code_check\": \"true\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/cards/CC4ejBuNLWYWy2Pb6Hxbv6A0\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W907-988-6807\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/debits/WD5Gv7XetHvx1CHUqkDKiZYY\"\n}" }, "debit_list": { "request": { - "uri": "/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/debits" + "uri": "/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/debits" }, - "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-MP64bmAzypIUS0SUZ4qkoFqG/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 \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/cards\", \n \"created_at\": \"2013-06-12T22:24:47.624724Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/credits\", \n \"customer_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/holds\", \n \"id\": \"CU6W5pSk2CUXQxhENqyGRvQe\", \n \"meta\": {}, \n \"name\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/refunds\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe\"\n }, \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"available_at\": \"2013-06-12T22:24:50.898146Z\", \n \"created_at\": \"2013-06-12T22:24:51.199695Z\", \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 \"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/CU6W5pSk2CUXQxhENqyGRvQe/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/cards\", \n \"created_at\": \"2013-06-12T22:24:47.823456Z\", \n \"credits_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/credits\", \n \"debits_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/holds\", \n \"id\": \"CU6W5pSk2CUXQxhENqyGRvQe\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/refunds\", \n \"source_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/cards/CC6XAdMPMSf0i4dC8Nf60PSW\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe\"\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-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe\", \n \"amount\": 5000, \n \"created_at\": \"2013-06-12T22:24:51.217260Z\", \n \"customer_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe\", \n \"debit_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/debits/WD706iriHZn5MZEyQ86DmHmE\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2013-06-19T22:24:50.390673Z\", \n \"fee\": null, \n \"id\": \"HL707xdVmcwMXlN32Vz2Q9zG\", \n \"is_void\": false, \n \"meta\": {}, \n \"source_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/cards/CC6XAdMPMSf0i4dC8Nf60PSW\", \n \"transaction_number\": \"HL611-203-4430\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/holds/HL707xdVmcwMXlN32Vz2Q9zG\"\n }, \n \"id\": \"WD706iriHZn5MZEyQ86DmHmE\", \n \"meta\": {}, \n \"on_behalf_of\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/debits/WD706iriHZn5MZEyQ86DmHmE/refunds\", \n \"source\": {\n \"_type\": \"card\", \n \"_uris\": {\n \"account_uri\": {\n \"_type\": \"account\", \n \"key\": \"account\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }\n }, \n \"account_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe\", \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"created_at\": \"2013-06-12T22:24:48.953938Z\", \n \"customer_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"b7250dd4b4827a88d5e4132b67f02916bce6f8e83d4ca0d779d1351b360ff6af\", \n \"id\": \"CC6XAdMPMSf0i4dC8Nf60PSW\", \n \"is_valid\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": null, \n \"postal_code_check\": \"true\", \n \"security_code_check\": \"true\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/cards/CC6XAdMPMSf0i4dC8Nf60PSW\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W374-514-3443\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/debits/WD706iriHZn5MZEyQ86DmHmE\"\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 \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC66oIFVRIwkPaXsZ6FWqMbe/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC66oIFVRIwkPaXsZ6FWqMbe/cards\", \n \"created_at\": \"2013-06-12T22:24:01.673511Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC66oIFVRIwkPaXsZ6FWqMbe/credits\", \n \"customer_uri\": \"/v1/customers/AC66oIFVRIwkPaXsZ6FWqMbe\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC66oIFVRIwkPaXsZ6FWqMbe/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC66oIFVRIwkPaXsZ6FWqMbe/holds\", \n \"id\": \"AC66oIFVRIwkPaXsZ6FWqMbe\", \n \"meta\": {}, \n \"name\": \"Benny Riemann\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC66oIFVRIwkPaXsZ6FWqMbe/refunds\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC66oIFVRIwkPaXsZ6FWqMbe/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC66oIFVRIwkPaXsZ6FWqMbe\"\n }, \n \"amount\": 10000000, \n \"appears_on_statement_as\": \"example.com\", \n \"available_at\": \"2013-06-12T22:24:03.666493Z\", \n \"created_at\": \"2013-06-12T22:24:04.053695Z\", \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 \"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/CU66Sp8xiuGpceJlZQ1uk99S/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU66Sp8xiuGpceJlZQ1uk99S/cards\", \n \"created_at\": \"2013-06-12T22:24:02.099332Z\", \n \"credits_uri\": \"/v1/customers/CU66Sp8xiuGpceJlZQ1uk99S/credits\", \n \"debits_uri\": \"/v1/customers/CU66Sp8xiuGpceJlZQ1uk99S/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU66Sp8xiuGpceJlZQ1uk99S/holds\", \n \"id\": \"CU66Sp8xiuGpceJlZQ1uk99S\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU66Sp8xiuGpceJlZQ1uk99S/refunds\", \n \"source_uri\": \"/v1/customers/AC66oIFVRIwkPaXsZ6FWqMbe/cards/CC65PhNiw04dWxtZ0EUNeKz8\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU66Sp8xiuGpceJlZQ1uk99S/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU66Sp8xiuGpceJlZQ1uk99S\"\n }, \n \"description\": null, \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-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC66oIFVRIwkPaXsZ6FWqMbe\", \n \"amount\": 10000000, \n \"created_at\": \"2013-06-12T22:24:04.123166Z\", \n \"customer_uri\": \"/v1/customers/CU66Sp8xiuGpceJlZQ1uk99S\", \n \"debit_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/debits/WD694FgDyAGVcLeTjDpV4Fks\", \n \"description\": null, \n \"expires_at\": \"2013-06-19T22:24:03.132192Z\", \n \"fee\": null, \n \"id\": \"HL699x5XEVweseWQ0xwZJays\", \n \"is_void\": false, \n \"meta\": {}, \n \"source_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC66oIFVRIwkPaXsZ6FWqMbe/cards/CC65PhNiw04dWxtZ0EUNeKz8\", \n \"transaction_number\": \"HL298-000-4143\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/holds/HL699x5XEVweseWQ0xwZJays\"\n }, \n \"id\": \"WD694FgDyAGVcLeTjDpV4Fks\", \n \"meta\": {}, \n \"on_behalf_of\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/debits/WD694FgDyAGVcLeTjDpV4Fks/refunds\", \n \"source\": {\n \"_type\": \"card\", \n \"_uris\": {\n \"account_uri\": {\n \"_type\": \"account\", \n \"key\": \"account\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }\n }, \n \"account_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC66oIFVRIwkPaXsZ6FWqMbe\", \n \"brand\": \"Visa\", \n \"card_type\": \"visa\", \n \"country_code\": \"USA\", \n \"created_at\": \"2013-06-12T22:24:01.158027Z\", \n \"customer_uri\": \"/v1/customers/AC66oIFVRIwkPaXsZ6FWqMbe\", \n \"expiration_month\": 4, \n \"expiration_year\": 2014, \n \"hash\": \"bd1c247d10c71b3134056f83165826241115d8e55fc107d303eeab955338eba2\", \n \"id\": \"CC65PhNiw04dWxtZ0EUNeKz8\", \n \"is_valid\": true, \n \"last_four\": \"1111\", \n \"meta\": {}, \n \"name\": \"Benny Riemann\", \n \"postal_code\": \"10023\", \n \"postal_code_check\": \"true\", \n \"security_code_check\": \"true\", \n \"street_address\": \"167 West 74th Street\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC66oIFVRIwkPaXsZ6FWqMbe/cards/CC65PhNiw04dWxtZ0EUNeKz8\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W184-341-3230\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/debits/WD694FgDyAGVcLeTjDpV4Fks\"\n }\n ], \n \"last_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/debits?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-MP64bmAzypIUS0SUZ4qkoFqG/debits?limit=2&offset=0\"\n}" + "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-MP40BcQ7XUk3TlZOupT5Y3Nm/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-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/cards\", \n \"created_at\": \"2013-08-06T22:50:05.055709Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/credits\", \n \"customer_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/holds\", \n \"id\": \"AC4aHI8dZiHocr1M5FARdZzg\", \n \"meta\": {}, \n \"name\": \"None\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg\"\n }, \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"available_at\": \"2013-08-06T22:50:58.536001Z\", \n \"created_at\": \"2013-08-06T22:50:58.030544Z\", \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/CU4b8XWw94OpiZW2zEaSPQbA/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/cards\", \n \"created_at\": \"2013-08-06T22:50:05.446575Z\", \n \"credits_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/credits\", \n \"debits_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/debits\", \n \"destination_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg/bank_accounts/BA4gGTZiAgLomq8IjMjYcB32\", \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/holds\", \n \"id\": \"CU4b8XWw94OpiZW2zEaSPQbA\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/refunds\", \n \"reversals_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/reversals\", \n \"source_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg/cards/CC4ejBuNLWYWy2Pb6Hxbv6A0\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA\"\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-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg\", \n \"amount\": 5000, \n \"created_at\": \"2013-08-06T22:50:58.080731Z\", \n \"customer_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA\", \n \"debit_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/debits/WD58hSdghkuQKA1H1urhDwVa\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2013-08-13T22:50:57.813271Z\", \n \"fee\": null, \n \"id\": \"HL58lBK2FJckxw3W8NEowkw0\", \n \"is_void\": false, \n \"meta\": {}, \n \"source_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/cards/CC4ejBuNLWYWy2Pb6Hxbv6A0\", \n \"transaction_number\": \"HL957-797-2997\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/holds/HL58lBK2FJckxw3W8NEowkw0\"\n }, \n \"id\": \"WD58hSdghkuQKA1H1urhDwVa\", \n \"meta\": {}, \n \"on_behalf_of\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/debits/WD58hSdghkuQKA1H1urhDwVa/refunds\", \n \"source\": {\n \"_type\": \"card\", \n \"_uris\": {\n \"account_uri\": {\n \"_type\": \"account\", \n \"key\": \"account\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }\n }, \n \"account_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg\", \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"created_at\": \"2013-08-06T22:50:08.255162Z\", \n \"customer_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"b7250dd4b4827a88d5e4132b67f02916bce6f8e83d4ca0d779d1351b360ff6af\", \n \"id\": \"CC4ejBuNLWYWy2Pb6Hxbv6A0\", \n \"is_valid\": true, \n \"is_verified\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": \"None\", \n \"postal_code_check\": \"true\", \n \"security_code_check\": \"true\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/cards/CC4ejBuNLWYWy2Pb6Hxbv6A0\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W790-773-1426\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/debits/WD58hSdghkuQKA1H1urhDwVa\"\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-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC43Qvpe6PxA4goYFRTx18Sc/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC43Qvpe6PxA4goYFRTx18Sc/cards\", \n \"created_at\": \"2013-08-06T22:49:58.946383Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC43Qvpe6PxA4goYFRTx18Sc/credits\", \n \"customer_uri\": \"/v1/customers/AC43Qvpe6PxA4goYFRTx18Sc\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC43Qvpe6PxA4goYFRTx18Sc/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC43Qvpe6PxA4goYFRTx18Sc/holds\", \n \"id\": \"AC43Qvpe6PxA4goYFRTx18Sc\", \n \"meta\": {}, \n \"name\": \"Benny Riemann\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC43Qvpe6PxA4goYFRTx18Sc/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC43Qvpe6PxA4goYFRTx18Sc/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC43Qvpe6PxA4goYFRTx18Sc/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC43Qvpe6PxA4goYFRTx18Sc\"\n }, \n \"amount\": 10000000, \n \"appears_on_statement_as\": \"example.com\", \n \"available_at\": \"2013-08-06T22:50:01.150666Z\", \n \"created_at\": \"2013-08-06T22:50:00.517040Z\", \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/CU44njz97p3UBGax7edfvLp6/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU44njz97p3UBGax7edfvLp6/cards\", \n \"created_at\": \"2013-08-06T22:49:59.416905Z\", \n \"credits_uri\": \"/v1/customers/CU44njz97p3UBGax7edfvLp6/credits\", \n \"debits_uri\": \"/v1/customers/CU44njz97p3UBGax7edfvLp6/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU44njz97p3UBGax7edfvLp6/holds\", \n \"id\": \"CU44njz97p3UBGax7edfvLp6\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU44njz97p3UBGax7edfvLp6/refunds\", \n \"reversals_uri\": \"/v1/customers/CU44njz97p3UBGax7edfvLp6/reversals\", \n \"source_uri\": \"/v1/customers/AC43Qvpe6PxA4goYFRTx18Sc/cards/CC43u6CoRHthxMkDuxSuOKg7\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU44njz97p3UBGax7edfvLp6/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU44njz97p3UBGax7edfvLp6\"\n }, \n \"description\": null, \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-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC43Qvpe6PxA4goYFRTx18Sc\", \n \"amount\": 10000000, \n \"created_at\": \"2013-08-06T22:50:00.654150Z\", \n \"customer_uri\": \"/v1/customers/CU44njz97p3UBGax7edfvLp6\", \n \"debit_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/debits/WD45BDlSE1bUIO0FLP4FWFnA\", \n \"description\": null, \n \"expires_at\": \"2013-08-13T22:50:00.241765Z\", \n \"fee\": null, \n \"id\": \"HL45LvEU3s7hH4vJtc229Gl4\", \n \"is_void\": false, \n \"meta\": {}, \n \"source_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC43Qvpe6PxA4goYFRTx18Sc/cards/CC43u6CoRHthxMkDuxSuOKg7\", \n \"transaction_number\": \"HL361-201-5535\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/holds/HL45LvEU3s7hH4vJtc229Gl4\"\n }, \n \"id\": \"WD45BDlSE1bUIO0FLP4FWFnA\", \n \"meta\": {}, \n \"on_behalf_of\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/debits/WD45BDlSE1bUIO0FLP4FWFnA/refunds\", \n \"source\": {\n \"_type\": \"card\", \n \"_uris\": {\n \"account_uri\": {\n \"_type\": \"account\", \n \"key\": \"account\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }\n }, \n \"account_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC43Qvpe6PxA4goYFRTx18Sc\", \n \"brand\": \"Visa\", \n \"card_type\": \"visa\", \n \"country_code\": \"USA\", \n \"created_at\": \"2013-08-06T22:49:58.639256Z\", \n \"customer_uri\": \"/v1/customers/AC43Qvpe6PxA4goYFRTx18Sc\", \n \"expiration_month\": 4, \n \"expiration_year\": 2014, \n \"hash\": \"bd1c247d10c71b3134056f83165826241115d8e55fc107d303eeab955338eba2\", \n \"id\": \"CC43u6CoRHthxMkDuxSuOKg7\", \n \"is_valid\": true, \n \"is_verified\": true, \n \"last_four\": \"1111\", \n \"meta\": {}, \n \"name\": \"Benny Riemann\", \n \"postal_code\": \"10023\", \n \"postal_code_check\": \"true\", \n \"security_code_check\": \"true\", \n \"street_address\": \"167 West 74th Street\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC43Qvpe6PxA4goYFRTx18Sc/cards/CC43u6CoRHthxMkDuxSuOKg7\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W753-477-6731\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/debits/WD45BDlSE1bUIO0FLP4FWFnA\"\n }\n ], \n \"last_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/debits?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-MP40BcQ7XUk3TlZOupT5Y3Nm/debits?limit=2&offset=0\"\n}" }, "debit_refund": { "request": { - "debit_uri": "/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/debits/WD77SpSXQMyRXw8pMUujCjua", - "refunds_uri": "/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/debits/WD77SpSXQMyRXw8pMUujCjua/refunds" + "debit_uri": "/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/debits/WD5hKOubxx6UWLzsJnQGv5F5", + "refunds_uri": "/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/debits/WD5hKOubxx6UWLzsJnQGv5F5/refunds" }, - "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 \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/cards\", \n \"created_at\": \"2013-06-12T22:24:47.624724Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/credits\", \n \"customer_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/holds\", \n \"id\": \"CU6W5pSk2CUXQxhENqyGRvQe\", \n \"meta\": {}, \n \"name\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/refunds\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe\"\n }, \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"created_at\": \"2013-06-12T22:24:59.291564Z\", \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 \"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/CU6W5pSk2CUXQxhENqyGRvQe/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/cards\", \n \"created_at\": \"2013-06-12T22:24:47.823456Z\", \n \"credits_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/credits\", \n \"debits_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/holds\", \n \"id\": \"CU6W5pSk2CUXQxhENqyGRvQe\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/refunds\", \n \"source_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/cards/CC6XAdMPMSf0i4dC8Nf60PSW\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe\"\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-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe\", \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"available_at\": \"2013-06-12T22:24:57.845534Z\", \n \"created_at\": \"2013-06-12T22:24:58.105966Z\", \n \"customer_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"fee\": null, \n \"hold_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/holds/HL77UvtAxYw4iG0Y9pU02vfc\", \n \"id\": \"WD77SpSXQMyRXw8pMUujCjua\", \n \"meta\": {}, \n \"on_behalf_of_uri\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/debits/WD77SpSXQMyRXw8pMUujCjua/refunds\", \n \"source_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/cards/CC6XAdMPMSf0i4dC8Nf60PSW\", \n \"status\": \"succeeded\", \n \"transaction_number\": \"W295-610-7972\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/debits/WD77SpSXQMyRXw8pMUujCjua\"\n }, \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"fee\": null, \n \"id\": \"RF79czs7dBxwmOQBsgXZsTfq\", \n \"meta\": {}, \n \"transaction_number\": \"RF348-824-1291\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/refunds/RF79czs7dBxwmOQBsgXZsTfq\"\n}" + "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-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/cards\", \n \"created_at\": \"2013-08-06T22:50:05.055709Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/credits\", \n \"customer_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/holds\", \n \"id\": \"AC4aHI8dZiHocr1M5FARdZzg\", \n \"meta\": {}, \n \"name\": \"None\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg\"\n }, \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"created_at\": \"2013-08-06T22:51:08.293564Z\", \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/CU4b8XWw94OpiZW2zEaSPQbA/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/cards\", \n \"created_at\": \"2013-08-06T22:50:05.446575Z\", \n \"credits_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/credits\", \n \"debits_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/debits\", \n \"destination_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg/bank_accounts/BA4gGTZiAgLomq8IjMjYcB32\", \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/holds\", \n \"id\": \"CU4b8XWw94OpiZW2zEaSPQbA\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/refunds\", \n \"reversals_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/reversals\", \n \"source_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg/cards/CC4ejBuNLWYWy2Pb6Hxbv6A0\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA\"\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-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg\", \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"available_at\": \"2013-08-06T22:51:06.952330Z\", \n \"created_at\": \"2013-08-06T22:51:06.443384Z\", \n \"customer_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"fee\": null, \n \"hold_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/holds/HL5hPvvE1O7ny6YdQf1CWlEX\", \n \"id\": \"WD5hKOubxx6UWLzsJnQGv5F5\", \n \"meta\": {}, \n \"on_behalf_of_uri\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/debits/WD5hKOubxx6UWLzsJnQGv5F5/refunds\", \n \"source_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/cards/CC4ejBuNLWYWy2Pb6Hxbv6A0\", \n \"status\": \"succeeded\", \n \"transaction_number\": \"W352-789-1427\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/debits/WD5hKOubxx6UWLzsJnQGv5F5\"\n }, \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"fee\": null, \n \"id\": \"RF5jnX1auTdNYArQYsDrYc1h\", \n \"meta\": {}, \n \"transaction_number\": \"RF389-055-6499\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/refunds/RF5jnX1auTdNYArQYsDrYc1h\"\n}" }, "debit_show": { "request": { - "uri": "/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/debits/WD706iriHZn5MZEyQ86DmHmE" + "uri": "/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/debits/WD58hSdghkuQKA1H1urhDwVa" }, - "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 \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/cards\", \n \"created_at\": \"2013-06-12T22:24:47.624724Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/credits\", \n \"customer_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/holds\", \n \"id\": \"CU6W5pSk2CUXQxhENqyGRvQe\", \n \"meta\": {}, \n \"name\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/refunds\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe\"\n }, \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"available_at\": \"2013-06-12T22:24:50.898146Z\", \n \"created_at\": \"2013-06-12T22:24:51.199695Z\", \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 \"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/CU6W5pSk2CUXQxhENqyGRvQe/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/cards\", \n \"created_at\": \"2013-06-12T22:24:47.823456Z\", \n \"credits_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/credits\", \n \"debits_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/holds\", \n \"id\": \"CU6W5pSk2CUXQxhENqyGRvQe\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/refunds\", \n \"source_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/cards/CC6XAdMPMSf0i4dC8Nf60PSW\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe\"\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-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe\", \n \"amount\": 5000, \n \"created_at\": \"2013-06-12T22:24:51.217260Z\", \n \"customer_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe\", \n \"debit_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/debits/WD706iriHZn5MZEyQ86DmHmE\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2013-06-19T22:24:50.390673Z\", \n \"fee\": null, \n \"id\": \"HL707xdVmcwMXlN32Vz2Q9zG\", \n \"is_void\": false, \n \"meta\": {}, \n \"source_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/cards/CC6XAdMPMSf0i4dC8Nf60PSW\", \n \"transaction_number\": \"HL611-203-4430\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/holds/HL707xdVmcwMXlN32Vz2Q9zG\"\n }, \n \"id\": \"WD706iriHZn5MZEyQ86DmHmE\", \n \"meta\": {}, \n \"on_behalf_of\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/debits/WD706iriHZn5MZEyQ86DmHmE/refunds\", \n \"source\": {\n \"_type\": \"card\", \n \"_uris\": {\n \"account_uri\": {\n \"_type\": \"account\", \n \"key\": \"account\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }\n }, \n \"account_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe\", \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"created_at\": \"2013-06-12T22:24:48.953938Z\", \n \"customer_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"b7250dd4b4827a88d5e4132b67f02916bce6f8e83d4ca0d779d1351b360ff6af\", \n \"id\": \"CC6XAdMPMSf0i4dC8Nf60PSW\", \n \"is_valid\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": null, \n \"postal_code_check\": \"true\", \n \"security_code_check\": \"true\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/cards/CC6XAdMPMSf0i4dC8Nf60PSW\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W374-514-3443\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/debits/WD706iriHZn5MZEyQ86DmHmE\"\n}" + "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-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/cards\", \n \"created_at\": \"2013-08-06T22:50:05.055709Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/credits\", \n \"customer_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/holds\", \n \"id\": \"AC4aHI8dZiHocr1M5FARdZzg\", \n \"meta\": {}, \n \"name\": \"None\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg\"\n }, \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"available_at\": \"2013-08-06T22:50:58.536001Z\", \n \"created_at\": \"2013-08-06T22:50:58.030544Z\", \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/CU4b8XWw94OpiZW2zEaSPQbA/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/cards\", \n \"created_at\": \"2013-08-06T22:50:05.446575Z\", \n \"credits_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/credits\", \n \"debits_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/debits\", \n \"destination_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg/bank_accounts/BA4gGTZiAgLomq8IjMjYcB32\", \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/holds\", \n \"id\": \"CU4b8XWw94OpiZW2zEaSPQbA\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/refunds\", \n \"reversals_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/reversals\", \n \"source_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg/cards/CC4ejBuNLWYWy2Pb6Hxbv6A0\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA\"\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-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg\", \n \"amount\": 5000, \n \"created_at\": \"2013-08-06T22:50:58.080731Z\", \n \"customer_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA\", \n \"debit_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/debits/WD58hSdghkuQKA1H1urhDwVa\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2013-08-13T22:50:57.813271Z\", \n \"fee\": null, \n \"id\": \"HL58lBK2FJckxw3W8NEowkw0\", \n \"is_void\": false, \n \"meta\": {}, \n \"source_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/cards/CC4ejBuNLWYWy2Pb6Hxbv6A0\", \n \"transaction_number\": \"HL957-797-2997\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/holds/HL58lBK2FJckxw3W8NEowkw0\"\n }, \n \"id\": \"WD58hSdghkuQKA1H1urhDwVa\", \n \"meta\": {}, \n \"on_behalf_of\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/debits/WD58hSdghkuQKA1H1urhDwVa/refunds\", \n \"source\": {\n \"_type\": \"card\", \n \"_uris\": {\n \"account_uri\": {\n \"_type\": \"account\", \n \"key\": \"account\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }\n }, \n \"account_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg\", \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"created_at\": \"2013-08-06T22:50:08.255162Z\", \n \"customer_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"b7250dd4b4827a88d5e4132b67f02916bce6f8e83d4ca0d779d1351b360ff6af\", \n \"id\": \"CC4ejBuNLWYWy2Pb6Hxbv6A0\", \n \"is_valid\": true, \n \"is_verified\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": \"None\", \n \"postal_code_check\": \"true\", \n \"security_code_check\": \"true\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/cards/CC4ejBuNLWYWy2Pb6Hxbv6A0\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W790-773-1426\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/debits/WD58hSdghkuQKA1H1urhDwVa\"\n}" }, "debit_update": { "request": { @@ -395,63 +394,63 @@ "facebook.id": "1234567890" } }, - "uri": "/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/debits/WD706iriHZn5MZEyQ86DmHmE" + "uri": "/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/debits/WD58hSdghkuQKA1H1urhDwVa" }, - "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 \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/cards\", \n \"created_at\": \"2013-06-12T22:24:47.624724Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/credits\", \n \"customer_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/holds\", \n \"id\": \"CU6W5pSk2CUXQxhENqyGRvQe\", \n \"meta\": {}, \n \"name\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/refunds\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe\"\n }, \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"available_at\": \"2013-06-12T22:24:50.898146Z\", \n \"created_at\": \"2013-06-12T22:24:51.199695Z\", \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 \"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/CU6W5pSk2CUXQxhENqyGRvQe/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/cards\", \n \"created_at\": \"2013-06-12T22:24:47.823456Z\", \n \"credits_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/credits\", \n \"debits_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/holds\", \n \"id\": \"CU6W5pSk2CUXQxhENqyGRvQe\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/refunds\", \n \"source_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/cards/CC6XAdMPMSf0i4dC8Nf60PSW\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe\"\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-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe\", \n \"amount\": 5000, \n \"created_at\": \"2013-06-12T22:24:51.217260Z\", \n \"customer_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe\", \n \"debit_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/debits/WD706iriHZn5MZEyQ86DmHmE\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2013-06-19T22:24:50.390673Z\", \n \"fee\": null, \n \"id\": \"HL707xdVmcwMXlN32Vz2Q9zG\", \n \"is_void\": false, \n \"meta\": {}, \n \"source_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/cards/CC6XAdMPMSf0i4dC8Nf60PSW\", \n \"transaction_number\": \"HL611-203-4430\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/holds/HL707xdVmcwMXlN32Vz2Q9zG\"\n }, \n \"id\": \"WD706iriHZn5MZEyQ86DmHmE\", \n \"meta\": {\n \"anykey\": \"valuegoeshere\", \n \"facebook.id\": \"1234567890\"\n }, \n \"on_behalf_of\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/debits/WD706iriHZn5MZEyQ86DmHmE/refunds\", \n \"source\": {\n \"_type\": \"card\", \n \"_uris\": {\n \"account_uri\": {\n \"_type\": \"account\", \n \"key\": \"account\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }\n }, \n \"account_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe\", \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"created_at\": \"2013-06-12T22:24:48.953938Z\", \n \"customer_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"b7250dd4b4827a88d5e4132b67f02916bce6f8e83d4ca0d779d1351b360ff6af\", \n \"id\": \"CC6XAdMPMSf0i4dC8Nf60PSW\", \n \"is_valid\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": null, \n \"postal_code_check\": \"true\", \n \"security_code_check\": \"true\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/cards/CC6XAdMPMSf0i4dC8Nf60PSW\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W374-514-3443\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/debits/WD706iriHZn5MZEyQ86DmHmE\"\n}" + "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-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/cards\", \n \"created_at\": \"2013-08-06T22:50:05.055709Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/credits\", \n \"customer_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/holds\", \n \"id\": \"AC4aHI8dZiHocr1M5FARdZzg\", \n \"meta\": {}, \n \"name\": \"None\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg\"\n }, \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"available_at\": \"2013-08-06T22:50:58.536001Z\", \n \"created_at\": \"2013-08-06T22:50:58.030544Z\", \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/CU4b8XWw94OpiZW2zEaSPQbA/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/cards\", \n \"created_at\": \"2013-08-06T22:50:05.446575Z\", \n \"credits_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/credits\", \n \"debits_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/debits\", \n \"destination_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg/bank_accounts/BA4gGTZiAgLomq8IjMjYcB32\", \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/holds\", \n \"id\": \"CU4b8XWw94OpiZW2zEaSPQbA\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/refunds\", \n \"reversals_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/reversals\", \n \"source_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg/cards/CC4ejBuNLWYWy2Pb6Hxbv6A0\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA\"\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-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg\", \n \"amount\": 5000, \n \"created_at\": \"2013-08-06T22:50:58.080731Z\", \n \"customer_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA\", \n \"debit_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/debits/WD58hSdghkuQKA1H1urhDwVa\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2013-08-13T22:50:57.813271Z\", \n \"fee\": null, \n \"id\": \"HL58lBK2FJckxw3W8NEowkw0\", \n \"is_void\": false, \n \"meta\": {}, \n \"source_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/cards/CC4ejBuNLWYWy2Pb6Hxbv6A0\", \n \"transaction_number\": \"HL957-797-2997\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/holds/HL58lBK2FJckxw3W8NEowkw0\"\n }, \n \"id\": \"WD58hSdghkuQKA1H1urhDwVa\", \n \"meta\": {\n \"anykey\": \"valuegoeshere\", \n \"facebook.id\": \"1234567890\"\n }, \n \"on_behalf_of\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/debits/WD58hSdghkuQKA1H1urhDwVa/refunds\", \n \"source\": {\n \"_type\": \"card\", \n \"_uris\": {\n \"account_uri\": {\n \"_type\": \"account\", \n \"key\": \"account\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }\n }, \n \"account_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg\", \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"created_at\": \"2013-08-06T22:50:08.255162Z\", \n \"customer_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"b7250dd4b4827a88d5e4132b67f02916bce6f8e83d4ca0d779d1351b360ff6af\", \n \"id\": \"CC4ejBuNLWYWy2Pb6Hxbv6A0\", \n \"is_valid\": true, \n \"is_verified\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": \"None\", \n \"postal_code_check\": \"true\", \n \"security_code_check\": \"true\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/cards/CC4ejBuNLWYWy2Pb6Hxbv6A0\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W790-773-1426\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/debits/WD58hSdghkuQKA1H1urhDwVa\"\n}" }, "event_list": { "request": { "uri": "/v1/events" }, - "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/EVc75db820d3ae11e29834026ba7cac9da/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 \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC64bU2ephPeAW7hDysoJCMa/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC64bU2ephPeAW7hDysoJCMa/cards\", \n \"created_at\": \"2013-06-12T22:23:59.703684Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC64bU2ephPeAW7hDysoJCMa/credits\", \n \"customer_uri\": \"/v1/customers/AC64bU2ephPeAW7hDysoJCMa\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC64bU2ephPeAW7hDysoJCMa/debits\", \n \"email_address\": \"whc@example.org\", \n \"holds_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC64bU2ephPeAW7hDysoJCMa/holds\", \n \"id\": \"AC64bU2ephPeAW7hDysoJCMa\", \n \"meta\": {}, \n \"name\": \"William Henry Cavendish III\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC64bU2ephPeAW7hDysoJCMa/refunds\", \n \"roles\": [\n \"merchant\", \n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC64bU2ephPeAW7hDysoJCMa/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC64bU2ephPeAW7hDysoJCMa\"\n }, \n \"id\": \"EVc75db820d3ae11e29834026ba7cac9da\", \n \"occurred_at\": \"2013-06-12T22:23:59.703000Z\", \n \"type\": \"account.created\", \n \"uri\": \"/v1/events/EVc75db820d3ae11e29834026ba7cac9da\"\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/EVc795a32ad3ae11e29834026ba7cac9da/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 \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC64AKocdpniQqjbYR3THKhc/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC64AKocdpniQqjbYR3THKhc/cards\", \n \"created_at\": \"2013-06-12T22:24:00.060137Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC64AKocdpniQqjbYR3THKhc/credits\", \n \"customer_uri\": \"/v1/customers/AC64AKocdpniQqjbYR3THKhc\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC64AKocdpniQqjbYR3THKhc/debits\", \n \"email_address\": \"escrow@poundpay.com\", \n \"holds_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC64AKocdpniQqjbYR3THKhc/holds\", \n \"id\": \"AC64AKocdpniQqjbYR3THKhc\", \n \"meta\": {}, \n \"name\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC64AKocdpniQqjbYR3THKhc/refunds\", \n \"roles\": [], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC64AKocdpniQqjbYR3THKhc/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC64AKocdpniQqjbYR3THKhc\"\n }, \n \"id\": \"EVc795a32ad3ae11e29834026ba7cac9da\", \n \"occurred_at\": \"2013-06-12T22:24:00.060000Z\", \n \"type\": \"account.created\", \n \"uri\": \"/v1/events/EVc795a32ad3ae11e29834026ba7cac9da\"\n }\n ], \n \"last_uri\": \"/v1/events?limit=2&offset=96\", \n \"limit\": 2, \n \"next_uri\": \"/v1/events?limit=2&offset=2\", \n \"offset\": 0, \n \"previous_uri\": null, \n \"total\": 97, \n \"uri\": \"/v1/events?limit=2&offset=0\"\n}" + "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/EV83d04cdcfeea11e2abcb026ba7cd33d0/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-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC40FVVItyC43K0bpXvnNL7q/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC40FVVItyC43K0bpXvnNL7q/cards\", \n \"created_at\": \"2013-08-06T22:49:56.134577Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC40FVVItyC43K0bpXvnNL7q/credits\", \n \"customer_uri\": \"/v1/customers/AC40FVVItyC43K0bpXvnNL7q\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC40FVVItyC43K0bpXvnNL7q/debits\", \n \"email_address\": \"whc@example.org\", \n \"holds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC40FVVItyC43K0bpXvnNL7q/holds\", \n \"id\": \"AC40FVVItyC43K0bpXvnNL7q\", \n \"meta\": {}, \n \"name\": \"William Henry Cavendish III\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC40FVVItyC43K0bpXvnNL7q/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC40FVVItyC43K0bpXvnNL7q/reversals\", \n \"roles\": [\n \"merchant\", \n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC40FVVItyC43K0bpXvnNL7q/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC40FVVItyC43K0bpXvnNL7q\"\n }, \n \"id\": \"EV83d04cdcfeea11e2abcb026ba7cd33d0\", \n \"occurred_at\": \"2013-08-06T22:49:56.134000Z\", \n \"type\": \"account.created\", \n \"uri\": \"/v1/events/EV83d04cdcfeea11e2abcb026ba7cd33d0\"\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/EV840b0fdefeea11e2abcb026ba7cd33d0/callbacks\", \n \"entity\": {\n \"_type\": \"bank_account\", \n \"_uris\": {\n \"account_uri\": {\n \"_type\": \"account\", \n \"key\": \"account\"\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 \"verifications_uri\": {\n \"_type\": \"page\", \n \"key\": \"verifications\"\n }\n }, \n \"account_number\": \"xxxxxxxxxxx5555\", \n \"account_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC40FVVItyC43K0bpXvnNL7q\", \n \"bank_code\": \"121042882\", \n \"bank_name\": \"WELLS FARGO BANK NA\", \n \"can_debit\": true, \n \"created_at\": \"2013-08-06T22:49:56.514820Z\", \n \"credits_uri\": \"/v1/bank_accounts/BA414ZqPytjUtjuBoyKdjjDq/credits\", \n \"customer_uri\": \"/v1/customers/AC40FVVItyC43K0bpXvnNL7q\", \n \"debits_uri\": \"/v1/bank_accounts/BA414ZqPytjUtjuBoyKdjjDq/debits\", \n \"fingerprint\": \"6ybvaLUrJy07phK2EQ7pVk\", \n \"id\": \"BA414ZqPytjUtjuBoyKdjjDq\", \n \"is_valid\": true, \n \"last_four\": \"5555\", \n \"meta\": {}, \n \"name\": \"TEST-MERCHANT-BANK-ACCOUNT\", \n \"routing_number\": \"121042882\", \n \"type\": \"CHECKING\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC40FVVItyC43K0bpXvnNL7q/bank_accounts/BA414ZqPytjUtjuBoyKdjjDq\", \n \"verification_uri\": null, \n \"verifications_uri\": \"/v1/bank_accounts/BA414ZqPytjUtjuBoyKdjjDq/verifications\"\n }, \n \"id\": \"EV840b0fdefeea11e2abcb026ba7cd33d0\", \n \"occurred_at\": \"2013-08-06T22:49:56.514000Z\", \n \"type\": \"bank_account.created\", \n \"uri\": \"/v1/events/EV840b0fdefeea11e2abcb026ba7cd33d0\"\n }\n ], \n \"last_uri\": \"/v1/events?limit=2&offset=72\", \n \"limit\": 2, \n \"next_uri\": \"/v1/events?limit=2&offset=2\", \n \"offset\": 0, \n \"previous_uri\": null, \n \"total\": 74, \n \"uri\": \"/v1/events?limit=2&offset=0\"\n}" }, "event_show": { "request": { - "uri": "/v1/events/EVc75db820d3ae11e29834026ba7cac9da" + "uri": "/v1/events/EV83d04cdcfeea11e2abcb026ba7cd33d0" + }, + "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/EV83d04cdcfeea11e2abcb026ba7cd33d0/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-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC40FVVItyC43K0bpXvnNL7q/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC40FVVItyC43K0bpXvnNL7q/cards\", \n \"created_at\": \"2013-08-06T22:49:56.134577Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC40FVVItyC43K0bpXvnNL7q/credits\", \n \"customer_uri\": \"/v1/customers/AC40FVVItyC43K0bpXvnNL7q\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC40FVVItyC43K0bpXvnNL7q/debits\", \n \"email_address\": \"whc@example.org\", \n \"holds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC40FVVItyC43K0bpXvnNL7q/holds\", \n \"id\": \"AC40FVVItyC43K0bpXvnNL7q\", \n \"meta\": {}, \n \"name\": \"William Henry Cavendish III\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC40FVVItyC43K0bpXvnNL7q/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC40FVVItyC43K0bpXvnNL7q/reversals\", \n \"roles\": [\n \"merchant\", \n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC40FVVItyC43K0bpXvnNL7q/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC40FVVItyC43K0bpXvnNL7q\"\n }, \n \"id\": \"EV83d04cdcfeea11e2abcb026ba7cd33d0\", \n \"occurred_at\": \"2013-08-06T22:49:56.134000Z\", \n \"type\": \"account.created\", \n \"uri\": \"/v1/events/EV83d04cdcfeea11e2abcb026ba7cd33d0\"\n}" + }, + "hold_account_list": { + "request": { + "account_uri": "/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg", + "uri": "/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/holds" }, - "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/EVc75db820d3ae11e29834026ba7cac9da/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 \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC64bU2ephPeAW7hDysoJCMa/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC64bU2ephPeAW7hDysoJCMa/cards\", \n \"created_at\": \"2013-06-12T22:23:59.703684Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC64bU2ephPeAW7hDysoJCMa/credits\", \n \"customer_uri\": \"/v1/customers/AC64bU2ephPeAW7hDysoJCMa\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC64bU2ephPeAW7hDysoJCMa/debits\", \n \"email_address\": \"whc@example.org\", \n \"holds_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC64bU2ephPeAW7hDysoJCMa/holds\", \n \"id\": \"AC64bU2ephPeAW7hDysoJCMa\", \n \"meta\": {}, \n \"name\": \"William Henry Cavendish III\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC64bU2ephPeAW7hDysoJCMa/refunds\", \n \"roles\": [\n \"merchant\", \n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC64bU2ephPeAW7hDysoJCMa/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/AC64bU2ephPeAW7hDysoJCMa\"\n }, \n \"id\": \"EVc75db820d3ae11e29834026ba7cac9da\", \n \"occurred_at\": \"2013-06-12T22:23:59.703000Z\", \n \"type\": \"account.created\", \n \"uri\": \"/v1/events/EVc75db820d3ae11e29834026ba7cac9da\"\n}" + "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-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/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-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/cards\", \n \"created_at\": \"2013-08-06T22:50:05.055709Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/credits\", \n \"customer_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/holds\", \n \"id\": \"AC4aHI8dZiHocr1M5FARdZzg\", \n \"meta\": {}, \n \"name\": \"None\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg\"\n }, \n \"amount\": 5000, \n \"created_at\": \"2013-08-06T22:51:15.296394Z\", \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/CU4b8XWw94OpiZW2zEaSPQbA/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/cards\", \n \"created_at\": \"2013-08-06T22:50:05.446575Z\", \n \"credits_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/credits\", \n \"debits_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/debits\", \n \"destination_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg/bank_accounts/BA4gGTZiAgLomq8IjMjYcB32\", \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/holds\", \n \"id\": \"CU4b8XWw94OpiZW2zEaSPQbA\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/refunds\", \n \"reversals_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/reversals\", \n \"source_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg/cards/CC4ejBuNLWYWy2Pb6Hxbv6A0\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA\"\n }, \n \"debit\": null, \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2013-08-13T22:51:15.121028Z\", \n \"fee\": null, \n \"id\": \"HL5rHLGFY2NMLve5y2yPJC06\", \n \"is_void\": false, \n \"meta\": {}, \n \"source\": {\n \"_type\": \"card\", \n \"_uris\": {\n \"account_uri\": {\n \"_type\": \"account\", \n \"key\": \"account\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }\n }, \n \"account_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg\", \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"created_at\": \"2013-08-06T22:50:08.255162Z\", \n \"customer_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"b7250dd4b4827a88d5e4132b67f02916bce6f8e83d4ca0d779d1351b360ff6af\", \n \"id\": \"CC4ejBuNLWYWy2Pb6Hxbv6A0\", \n \"is_valid\": true, \n \"is_verified\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": \"None\", \n \"postal_code_check\": \"true\", \n \"security_code_check\": \"true\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/cards/CC4ejBuNLWYWy2Pb6Hxbv6A0\"\n }, \n \"transaction_number\": \"HL601-142-7853\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/holds/HL5rHLGFY2NMLve5y2yPJC06\"\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-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/cards\", \n \"created_at\": \"2013-08-06T22:50:05.055709Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/credits\", \n \"customer_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/holds\", \n \"id\": \"AC4aHI8dZiHocr1M5FARdZzg\", \n \"meta\": {}, \n \"name\": \"None\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg\"\n }, \n \"amount\": 5000, \n \"created_at\": \"2013-08-06T22:51:06.507227Z\", \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/CU4b8XWw94OpiZW2zEaSPQbA/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/cards\", \n \"created_at\": \"2013-08-06T22:50:05.446575Z\", \n \"credits_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/credits\", \n \"debits_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/debits\", \n \"destination_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg/bank_accounts/BA4gGTZiAgLomq8IjMjYcB32\", \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/holds\", \n \"id\": \"CU4b8XWw94OpiZW2zEaSPQbA\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/refunds\", \n \"reversals_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/reversals\", \n \"source_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg/cards/CC4ejBuNLWYWy2Pb6Hxbv6A0\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA\"\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-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg\", \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"available_at\": \"2013-08-06T22:51:06.952330Z\", \n \"created_at\": \"2013-08-06T22:51:06.443384Z\", \n \"customer_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"fee\": null, \n \"hold_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/holds/HL5hPvvE1O7ny6YdQf1CWlEX\", \n \"id\": \"WD5hKOubxx6UWLzsJnQGv5F5\", \n \"meta\": {}, \n \"on_behalf_of_uri\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/debits/WD5hKOubxx6UWLzsJnQGv5F5/refunds\", \n \"source_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/cards/CC4ejBuNLWYWy2Pb6Hxbv6A0\", \n \"status\": \"succeeded\", \n \"transaction_number\": \"W352-789-1427\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/debits/WD5hKOubxx6UWLzsJnQGv5F5\"\n }, \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2013-08-13T22:51:05.862252Z\", \n \"fee\": null, \n \"id\": \"HL5hPvvE1O7ny6YdQf1CWlEX\", \n \"is_void\": false, \n \"meta\": {}, \n \"source\": {\n \"_type\": \"card\", \n \"_uris\": {\n \"account_uri\": {\n \"_type\": \"account\", \n \"key\": \"account\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }\n }, \n \"account_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg\", \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"created_at\": \"2013-08-06T22:50:08.255162Z\", \n \"customer_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"b7250dd4b4827a88d5e4132b67f02916bce6f8e83d4ca0d779d1351b360ff6af\", \n \"id\": \"CC4ejBuNLWYWy2Pb6Hxbv6A0\", \n \"is_valid\": true, \n \"is_verified\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": \"None\", \n \"postal_code_check\": \"true\", \n \"security_code_check\": \"true\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/cards/CC4ejBuNLWYWy2Pb6Hxbv6A0\"\n }, \n \"transaction_number\": \"HL663-528-6559\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/holds/HL5hPvvE1O7ny6YdQf1CWlEX\"\n }\n ], \n \"last_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/holds?limit=2&offset=2\", \n \"limit\": 2, \n \"next_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/holds?limit=2&offset=2\", \n \"offset\": 0, \n \"previous_uri\": null, \n \"total\": 3, \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/holds?limit=2&offset=0\"\n}" }, "hold_capture": { "request": { - "debits_uri": "/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/debits", - "hold_uri": "/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/holds/HL7iwVbB1X6aMBuW6J2rKJfg", + "debits_uri": "/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/debits", + "hold_uri": "/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/holds/HL5zdhxmKBk5X1Nn0ZS21UYE", "payload": { "appears_on_statement_as": "ShowsUpOnStmt", "description": "Some descriptive text for the debit in the dashboard", - "hold_uri": "/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/holds/HL7iwVbB1X6aMBuW6J2rKJfg" + "hold_uri": "/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/holds/HL5zdhxmKBk5X1Nn0ZS21UYE" } }, - "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\": \"ShowsUpOnStmt\", \n \"available_at\": \"2013-06-12T22:25:08.591426Z\", \n \"created_at\": \"2013-06-12T22:25:09.021112Z\", \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 \"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/CU6W5pSk2CUXQxhENqyGRvQe/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/cards\", \n \"created_at\": \"2013-06-12T22:24:47.823456Z\", \n \"credits_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/credits\", \n \"debits_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/holds\", \n \"id\": \"CU6W5pSk2CUXQxhENqyGRvQe\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/refunds\", \n \"source_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/cards/CC6XAdMPMSf0i4dC8Nf60PSW\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe\"\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-06-12T22:25:07.582565Z\", \n \"customer_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe\", \n \"debit_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/debits/WD7k91KsVnPGXHg0XAuCqPJC\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2013-06-19T22:25:07.437195Z\", \n \"fee\": null, \n \"id\": \"HL7iwVbB1X6aMBuW6J2rKJfg\", \n \"is_void\": false, \n \"meta\": {}, \n \"source_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/cards/CC6XAdMPMSf0i4dC8Nf60PSW\", \n \"transaction_number\": \"HL910-036-6360\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/holds/HL7iwVbB1X6aMBuW6J2rKJfg\"\n }, \n \"id\": \"WD7k91KsVnPGXHg0XAuCqPJC\", \n \"meta\": {}, \n \"on_behalf_of\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/debits/WD7k91KsVnPGXHg0XAuCqPJC/refunds\", \n \"source\": {\n \"_type\": \"card\", \n \"_uris\": {\n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }\n }, \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"created_at\": \"2013-06-12T22:24:48.953938Z\", \n \"customer_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"b7250dd4b4827a88d5e4132b67f02916bce6f8e83d4ca0d779d1351b360ff6af\", \n \"id\": \"CC6XAdMPMSf0i4dC8Nf60PSW\", \n \"is_valid\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": null, \n \"postal_code_check\": \"true\", \n \"security_code_check\": \"true\", \n \"uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/cards/CC6XAdMPMSf0i4dC8Nf60PSW\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W939-259-6917\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/debits/WD7k91KsVnPGXHg0XAuCqPJC\"\n}" + "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-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/cards\", \n \"created_at\": \"2013-08-06T22:50:05.055709Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/credits\", \n \"customer_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/holds\", \n \"id\": \"AC4aHI8dZiHocr1M5FARdZzg\", \n \"meta\": {}, \n \"name\": \"None\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg\"\n }, \n \"amount\": 5000, \n \"appears_on_statement_as\": \"ShowsUpOnStmt\", \n \"available_at\": \"2013-08-06T22:51:22.855029Z\", \n \"created_at\": \"2013-08-06T22:51:22.330016Z\", \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/CU4b8XWw94OpiZW2zEaSPQbA/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/cards\", \n \"created_at\": \"2013-08-06T22:50:05.446575Z\", \n \"credits_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/credits\", \n \"debits_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/debits\", \n \"destination_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg/bank_accounts/BA4gGTZiAgLomq8IjMjYcB32\", \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/holds\", \n \"id\": \"CU4b8XWw94OpiZW2zEaSPQbA\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/refunds\", \n \"reversals_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/reversals\", \n \"source_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg/cards/CC4ejBuNLWYWy2Pb6Hxbv6A0\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA\"\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-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg\", \n \"amount\": 5000, \n \"created_at\": \"2013-08-06T22:51:21.960162Z\", \n \"customer_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA\", \n \"debit_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/debits/WD5zCzRDo1LKlHTmeiSIc459\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2013-08-13T22:51:21.785321Z\", \n \"fee\": null, \n \"id\": \"HL5zdhxmKBk5X1Nn0ZS21UYE\", \n \"is_void\": false, \n \"meta\": {}, \n \"source_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/cards/CC4ejBuNLWYWy2Pb6Hxbv6A0\", \n \"transaction_number\": \"HL401-982-0849\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/holds/HL5zdhxmKBk5X1Nn0ZS21UYE\"\n }, \n \"id\": \"WD5zCzRDo1LKlHTmeiSIc459\", \n \"meta\": {}, \n \"on_behalf_of\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/debits/WD5zCzRDo1LKlHTmeiSIc459/refunds\", \n \"source\": {\n \"_type\": \"card\", \n \"_uris\": {\n \"account_uri\": {\n \"_type\": \"account\", \n \"key\": \"account\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }\n }, \n \"account_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg\", \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"created_at\": \"2013-08-06T22:50:08.255162Z\", \n \"customer_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"b7250dd4b4827a88d5e4132b67f02916bce6f8e83d4ca0d779d1351b360ff6af\", \n \"id\": \"CC4ejBuNLWYWy2Pb6Hxbv6A0\", \n \"is_valid\": true, \n \"is_verified\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": \"None\", \n \"postal_code_check\": \"true\", \n \"security_code_check\": \"true\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/cards/CC4ejBuNLWYWy2Pb6Hxbv6A0\"\n }, \n \"status\": \"succeeded\", \n \"transaction_number\": \"W602-716-6658\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/debits/WD5zCzRDo1LKlHTmeiSIc459\"\n}" }, "hold_create": { "request": { - "customer_uri": "/v1/customers/CU7GuPv9Y2F8ySwJHuHL0YWq", - "holds_uri": "/v1/customers/CU7GuPv9Y2F8ySwJHuHL0YWq/holds", + "account_uri": "/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg", + "holds_uri": "/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/holds", "payload": { "amount": 5000, "description": "Some descriptive text for the debit in the dashboard" } }, - "response": "{\n \"_type\": \"hold\", \n \"_uris\": {}, \n \"amount\": 5000, \n \"created_at\": \"2013-06-12T22:26:05.166677Z\", \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 \"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/CU7GuPv9Y2F8ySwJHuHL0YWq/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU7GuPv9Y2F8ySwJHuHL0YWq/cards\", \n \"created_at\": \"2013-06-12T22:25:29.075931Z\", \n \"credits_uri\": \"/v1/customers/CU7GuPv9Y2F8ySwJHuHL0YWq/credits\", \n \"debits_uri\": \"/v1/customers/CU7GuPv9Y2F8ySwJHuHL0YWq/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU7GuPv9Y2F8ySwJHuHL0YWq/holds\", \n \"id\": \"CU7GuPv9Y2F8ySwJHuHL0YWq\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU7GuPv9Y2F8ySwJHuHL0YWq/refunds\", \n \"source_uri\": \"/v1/customers/CU7GuPv9Y2F8ySwJHuHL0YWq/cards/CC7HVl3IUDtngQOWXk77t3uK\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU7GuPv9Y2F8ySwJHuHL0YWq/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU7GuPv9Y2F8ySwJHuHL0YWq\"\n }, \n \"debit\": null, \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2013-06-19T22:26:04.983461Z\", \n \"fee\": null, \n \"id\": \"HLyeQAOpYZcyVzMBsbkLOnJ\", \n \"is_void\": false, \n \"meta\": {}, \n \"source\": {\n \"_type\": \"card\", \n \"_uris\": {\n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }\n }, \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"created_at\": \"2013-06-12T22:25:30.160492Z\", \n \"customer_uri\": \"/v1/customers/CU7GuPv9Y2F8ySwJHuHL0YWq\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"b7250dd4b4827a88d5e4132b67f02916bce6f8e83d4ca0d779d1351b360ff6af\", \n \"id\": \"CC7HVl3IUDtngQOWXk77t3uK\", \n \"is_valid\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": null, \n \"postal_code_check\": \"true\", \n \"security_code_check\": \"true\", \n \"uri\": \"/v1/customers/CU7GuPv9Y2F8ySwJHuHL0YWq/cards/CC7HVl3IUDtngQOWXk77t3uK\"\n }, \n \"transaction_number\": \"HL643-990-6463\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/holds/HLyeQAOpYZcyVzMBsbkLOnJ\"\n}" - }, - "hold_customer_list": { - "request": { - "customer_uri": "/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe", - "uri": "/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/holds" - }, - "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/CU6W5pSk2CUXQxhENqyGRvQe/holds?limit=2&offset=0\", \n \"items\": [\n {\n \"_type\": \"hold\", \n \"_uris\": {}, \n \"amount\": 5000, \n \"created_at\": \"2013-06-12T22:25:01.163949Z\", \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 \"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/CU6W5pSk2CUXQxhENqyGRvQe/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/cards\", \n \"created_at\": \"2013-06-12T22:24:47.823456Z\", \n \"credits_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/credits\", \n \"debits_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/holds\", \n \"id\": \"CU6W5pSk2CUXQxhENqyGRvQe\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/refunds\", \n \"source_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/cards/CC6XAdMPMSf0i4dC8Nf60PSW\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe\"\n }, \n \"debit\": null, \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2013-06-19T22:25:01.004755Z\", \n \"fee\": null, \n \"id\": \"HL7bjNLGObnfJJhcKdOjTon5\", \n \"is_void\": false, \n \"meta\": {}, \n \"source\": {\n \"_type\": \"card\", \n \"_uris\": {\n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }\n }, \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"created_at\": \"2013-06-12T22:24:48.953938Z\", \n \"customer_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"b7250dd4b4827a88d5e4132b67f02916bce6f8e83d4ca0d779d1351b360ff6af\", \n \"id\": \"CC6XAdMPMSf0i4dC8Nf60PSW\", \n \"is_valid\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": null, \n \"postal_code_check\": \"true\", \n \"security_code_check\": \"true\", \n \"uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/cards/CC6XAdMPMSf0i4dC8Nf60PSW\"\n }, \n \"transaction_number\": \"HL663-580-0472\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/holds/HL7bjNLGObnfJJhcKdOjTon5\"\n }, \n {\n \"_type\": \"hold\", \n \"_uris\": {}, \n \"amount\": 5000, \n \"created_at\": \"2013-06-12T22:24:58.135457Z\", \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 \"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/CU6W5pSk2CUXQxhENqyGRvQe/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/cards\", \n \"created_at\": \"2013-06-12T22:24:47.823456Z\", \n \"credits_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/credits\", \n \"debits_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/holds\", \n \"id\": \"CU6W5pSk2CUXQxhENqyGRvQe\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/refunds\", \n \"source_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/cards/CC6XAdMPMSf0i4dC8Nf60PSW\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe\"\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-06-12T22:24:57.845534Z\", \n \"created_at\": \"2013-06-12T22:24:58.105966Z\", \n \"customer_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"fee\": null, \n \"hold_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/holds/HL77UvtAxYw4iG0Y9pU02vfc\", \n \"id\": \"WD77SpSXQMyRXw8pMUujCjua\", \n \"meta\": {}, \n \"on_behalf_of_uri\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/debits/WD77SpSXQMyRXw8pMUujCjua/refunds\", \n \"source_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/cards/CC6XAdMPMSf0i4dC8Nf60PSW\", \n \"status\": \"succeeded\", \n \"transaction_number\": \"W295-610-7972\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/debits/WD77SpSXQMyRXw8pMUujCjua\"\n }, \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2013-06-19T22:24:57.504793Z\", \n \"fee\": null, \n \"id\": \"HL77UvtAxYw4iG0Y9pU02vfc\", \n \"is_void\": false, \n \"meta\": {}, \n \"source\": {\n \"_type\": \"card\", \n \"_uris\": {\n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }\n }, \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"created_at\": \"2013-06-12T22:24:48.953938Z\", \n \"customer_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"b7250dd4b4827a88d5e4132b67f02916bce6f8e83d4ca0d779d1351b360ff6af\", \n \"id\": \"CC6XAdMPMSf0i4dC8Nf60PSW\", \n \"is_valid\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": null, \n \"postal_code_check\": \"true\", \n \"security_code_check\": \"true\", \n \"uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/cards/CC6XAdMPMSf0i4dC8Nf60PSW\"\n }, \n \"transaction_number\": \"HL080-485-5506\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/holds/HL77UvtAxYw4iG0Y9pU02vfc\"\n }\n ], \n \"last_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/holds?limit=2&offset=2\", \n \"limit\": 2, \n \"next_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/holds?limit=2&offset=2\", \n \"offset\": 0, \n \"previous_uri\": null, \n \"total\": 3, \n \"uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/holds?limit=2&offset=0\"\n}" + "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-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/cards\", \n \"created_at\": \"2013-08-06T22:50:05.055709Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/credits\", \n \"customer_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/holds\", \n \"id\": \"AC4aHI8dZiHocr1M5FARdZzg\", \n \"meta\": {}, \n \"name\": \"None\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg\"\n }, \n \"amount\": 5000, \n \"created_at\": \"2013-08-06T22:51:25.607390Z\", \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/CU4b8XWw94OpiZW2zEaSPQbA/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/cards\", \n \"created_at\": \"2013-08-06T22:50:05.446575Z\", \n \"credits_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/credits\", \n \"debits_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/debits\", \n \"destination_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg/bank_accounts/BA4gGTZiAgLomq8IjMjYcB32\", \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/holds\", \n \"id\": \"CU4b8XWw94OpiZW2zEaSPQbA\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/refunds\", \n \"reversals_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/reversals\", \n \"source_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg/cards/CC4ejBuNLWYWy2Pb6Hxbv6A0\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA\"\n }, \n \"debit\": null, \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2013-08-13T22:51:25.391843Z\", \n \"fee\": null, \n \"id\": \"HL5DjCcU0FHDkiNj6X2ITrhm\", \n \"is_void\": false, \n \"meta\": {}, \n \"source\": {\n \"_type\": \"card\", \n \"_uris\": {\n \"account_uri\": {\n \"_type\": \"account\", \n \"key\": \"account\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }\n }, \n \"account_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg\", \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"created_at\": \"2013-08-06T22:50:08.255162Z\", \n \"customer_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"b7250dd4b4827a88d5e4132b67f02916bce6f8e83d4ca0d779d1351b360ff6af\", \n \"id\": \"CC4ejBuNLWYWy2Pb6Hxbv6A0\", \n \"is_valid\": true, \n \"is_verified\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": \"None\", \n \"postal_code_check\": \"true\", \n \"security_code_check\": \"true\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/cards/CC4ejBuNLWYWy2Pb6Hxbv6A0\"\n }, \n \"transaction_number\": \"HL272-797-3872\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/holds/HL5DjCcU0FHDkiNj6X2ITrhm\"\n}" }, "hold_list": { "request": { - "uri": "/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/holds" + "uri": "/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/holds" }, - "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-MP64bmAzypIUS0SUZ4qkoFqG/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 \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/cards\", \n \"created_at\": \"2013-06-12T22:24:47.624724Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/credits\", \n \"customer_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/holds\", \n \"id\": \"CU6W5pSk2CUXQxhENqyGRvQe\", \n \"meta\": {}, \n \"name\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/refunds\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe\"\n }, \n \"amount\": 5000, \n \"created_at\": \"2013-06-12T22:25:01.163949Z\", \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 \"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/CU6W5pSk2CUXQxhENqyGRvQe/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/cards\", \n \"created_at\": \"2013-06-12T22:24:47.823456Z\", \n \"credits_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/credits\", \n \"debits_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/holds\", \n \"id\": \"CU6W5pSk2CUXQxhENqyGRvQe\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/refunds\", \n \"source_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/cards/CC6XAdMPMSf0i4dC8Nf60PSW\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe\"\n }, \n \"debit\": null, \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2013-06-19T22:25:01.004755Z\", \n \"fee\": null, \n \"id\": \"HL7bjNLGObnfJJhcKdOjTon5\", \n \"is_void\": false, \n \"meta\": {}, \n \"source\": {\n \"_type\": \"card\", \n \"_uris\": {\n \"account_uri\": {\n \"_type\": \"account\", \n \"key\": \"account\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }\n }, \n \"account_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe\", \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"created_at\": \"2013-06-12T22:24:48.953938Z\", \n \"customer_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"b7250dd4b4827a88d5e4132b67f02916bce6f8e83d4ca0d779d1351b360ff6af\", \n \"id\": \"CC6XAdMPMSf0i4dC8Nf60PSW\", \n \"is_valid\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": null, \n \"postal_code_check\": \"true\", \n \"security_code_check\": \"true\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/cards/CC6XAdMPMSf0i4dC8Nf60PSW\"\n }, \n \"transaction_number\": \"HL663-580-0472\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/holds/HL7bjNLGObnfJJhcKdOjTon5\"\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 \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/cards\", \n \"created_at\": \"2013-06-12T22:24:47.624724Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/credits\", \n \"customer_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/holds\", \n \"id\": \"CU6W5pSk2CUXQxhENqyGRvQe\", \n \"meta\": {}, \n \"name\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/refunds\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe\"\n }, \n \"amount\": 5000, \n \"created_at\": \"2013-06-12T22:24:58.135457Z\", \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 \"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/CU6W5pSk2CUXQxhENqyGRvQe/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/cards\", \n \"created_at\": \"2013-06-12T22:24:47.823456Z\", \n \"credits_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/credits\", \n \"debits_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/holds\", \n \"id\": \"CU6W5pSk2CUXQxhENqyGRvQe\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/refunds\", \n \"source_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/cards/CC6XAdMPMSf0i4dC8Nf60PSW\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe\"\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-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe\", \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"available_at\": \"2013-06-12T22:24:57.845534Z\", \n \"created_at\": \"2013-06-12T22:24:58.105966Z\", \n \"customer_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"fee\": null, \n \"hold_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/holds/HL77UvtAxYw4iG0Y9pU02vfc\", \n \"id\": \"WD77SpSXQMyRXw8pMUujCjua\", \n \"meta\": {}, \n \"on_behalf_of_uri\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/debits/WD77SpSXQMyRXw8pMUujCjua/refunds\", \n \"source_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/cards/CC6XAdMPMSf0i4dC8Nf60PSW\", \n \"status\": \"succeeded\", \n \"transaction_number\": \"W295-610-7972\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/debits/WD77SpSXQMyRXw8pMUujCjua\"\n }, \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2013-06-19T22:24:57.504793Z\", \n \"fee\": null, \n \"id\": \"HL77UvtAxYw4iG0Y9pU02vfc\", \n \"is_void\": false, \n \"meta\": {}, \n \"source\": {\n \"_type\": \"card\", \n \"_uris\": {\n \"account_uri\": {\n \"_type\": \"account\", \n \"key\": \"account\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }\n }, \n \"account_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe\", \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"created_at\": \"2013-06-12T22:24:48.953938Z\", \n \"customer_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"b7250dd4b4827a88d5e4132b67f02916bce6f8e83d4ca0d779d1351b360ff6af\", \n \"id\": \"CC6XAdMPMSf0i4dC8Nf60PSW\", \n \"is_valid\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": null, \n \"postal_code_check\": \"true\", \n \"security_code_check\": \"true\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/cards/CC6XAdMPMSf0i4dC8Nf60PSW\"\n }, \n \"transaction_number\": \"HL080-485-5506\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/holds/HL77UvtAxYw4iG0Y9pU02vfc\"\n }\n ], \n \"last_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/holds?limit=2&offset=2\", \n \"limit\": 2, \n \"next_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/holds?limit=2&offset=2\", \n \"offset\": 0, \n \"previous_uri\": null, \n \"total\": 4, \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/holds?limit=2&offset=0\"\n}" + "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-MP40BcQ7XUk3TlZOupT5Y3Nm/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-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/cards\", \n \"created_at\": \"2013-08-06T22:50:05.055709Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/credits\", \n \"customer_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/holds\", \n \"id\": \"AC4aHI8dZiHocr1M5FARdZzg\", \n \"meta\": {}, \n \"name\": \"None\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg\"\n }, \n \"amount\": 5000, \n \"created_at\": \"2013-08-06T22:51:15.296394Z\", \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/CU4b8XWw94OpiZW2zEaSPQbA/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/cards\", \n \"created_at\": \"2013-08-06T22:50:05.446575Z\", \n \"credits_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/credits\", \n \"debits_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/debits\", \n \"destination_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg/bank_accounts/BA4gGTZiAgLomq8IjMjYcB32\", \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/holds\", \n \"id\": \"CU4b8XWw94OpiZW2zEaSPQbA\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/refunds\", \n \"reversals_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/reversals\", \n \"source_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg/cards/CC4ejBuNLWYWy2Pb6Hxbv6A0\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA\"\n }, \n \"debit\": null, \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2013-08-13T22:51:15.121028Z\", \n \"fee\": null, \n \"id\": \"HL5rHLGFY2NMLve5y2yPJC06\", \n \"is_void\": false, \n \"meta\": {}, \n \"source\": {\n \"_type\": \"card\", \n \"_uris\": {\n \"account_uri\": {\n \"_type\": \"account\", \n \"key\": \"account\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }\n }, \n \"account_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg\", \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"created_at\": \"2013-08-06T22:50:08.255162Z\", \n \"customer_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"b7250dd4b4827a88d5e4132b67f02916bce6f8e83d4ca0d779d1351b360ff6af\", \n \"id\": \"CC4ejBuNLWYWy2Pb6Hxbv6A0\", \n \"is_valid\": true, \n \"is_verified\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": \"None\", \n \"postal_code_check\": \"true\", \n \"security_code_check\": \"true\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/cards/CC4ejBuNLWYWy2Pb6Hxbv6A0\"\n }, \n \"transaction_number\": \"HL601-142-7853\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/holds/HL5rHLGFY2NMLve5y2yPJC06\"\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-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/cards\", \n \"created_at\": \"2013-08-06T22:50:05.055709Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/credits\", \n \"customer_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/holds\", \n \"id\": \"AC4aHI8dZiHocr1M5FARdZzg\", \n \"meta\": {}, \n \"name\": \"None\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg\"\n }, \n \"amount\": 5000, \n \"created_at\": \"2013-08-06T22:51:06.507227Z\", \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/CU4b8XWw94OpiZW2zEaSPQbA/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/cards\", \n \"created_at\": \"2013-08-06T22:50:05.446575Z\", \n \"credits_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/credits\", \n \"debits_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/debits\", \n \"destination_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg/bank_accounts/BA4gGTZiAgLomq8IjMjYcB32\", \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/holds\", \n \"id\": \"CU4b8XWw94OpiZW2zEaSPQbA\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/refunds\", \n \"reversals_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/reversals\", \n \"source_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg/cards/CC4ejBuNLWYWy2Pb6Hxbv6A0\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA\"\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-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg\", \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"available_at\": \"2013-08-06T22:51:06.952330Z\", \n \"created_at\": \"2013-08-06T22:51:06.443384Z\", \n \"customer_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"fee\": null, \n \"hold_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/holds/HL5hPvvE1O7ny6YdQf1CWlEX\", \n \"id\": \"WD5hKOubxx6UWLzsJnQGv5F5\", \n \"meta\": {}, \n \"on_behalf_of_uri\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/debits/WD5hKOubxx6UWLzsJnQGv5F5/refunds\", \n \"source_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/cards/CC4ejBuNLWYWy2Pb6Hxbv6A0\", \n \"status\": \"succeeded\", \n \"transaction_number\": \"W352-789-1427\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/debits/WD5hKOubxx6UWLzsJnQGv5F5\"\n }, \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2013-08-13T22:51:05.862252Z\", \n \"fee\": null, \n \"id\": \"HL5hPvvE1O7ny6YdQf1CWlEX\", \n \"is_void\": false, \n \"meta\": {}, \n \"source\": {\n \"_type\": \"card\", \n \"_uris\": {\n \"account_uri\": {\n \"_type\": \"account\", \n \"key\": \"account\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }\n }, \n \"account_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg\", \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"created_at\": \"2013-08-06T22:50:08.255162Z\", \n \"customer_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"b7250dd4b4827a88d5e4132b67f02916bce6f8e83d4ca0d779d1351b360ff6af\", \n \"id\": \"CC4ejBuNLWYWy2Pb6Hxbv6A0\", \n \"is_valid\": true, \n \"is_verified\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": \"None\", \n \"postal_code_check\": \"true\", \n \"security_code_check\": \"true\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/cards/CC4ejBuNLWYWy2Pb6Hxbv6A0\"\n }, \n \"transaction_number\": \"HL663-528-6559\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/holds/HL5hPvvE1O7ny6YdQf1CWlEX\"\n }\n ], \n \"last_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/holds?limit=2&offset=2\", \n \"limit\": 2, \n \"next_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/holds?limit=2&offset=2\", \n \"offset\": 0, \n \"previous_uri\": null, \n \"total\": 4, \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/holds?limit=2&offset=0\"\n}" }, "hold_show": { "request": { - "uri": "/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/holds/HL7bjNLGObnfJJhcKdOjTon5" + "uri": "/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/holds/HL5rHLGFY2NMLve5y2yPJC06" }, - "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 \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/cards\", \n \"created_at\": \"2013-06-12T22:24:47.624724Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/credits\", \n \"customer_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/holds\", \n \"id\": \"CU6W5pSk2CUXQxhENqyGRvQe\", \n \"meta\": {}, \n \"name\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/refunds\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe\"\n }, \n \"amount\": 5000, \n \"created_at\": \"2013-06-12T22:25:01.163949Z\", \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 \"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/CU6W5pSk2CUXQxhENqyGRvQe/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/cards\", \n \"created_at\": \"2013-06-12T22:24:47.823456Z\", \n \"credits_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/credits\", \n \"debits_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/holds\", \n \"id\": \"CU6W5pSk2CUXQxhENqyGRvQe\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/refunds\", \n \"source_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/cards/CC6XAdMPMSf0i4dC8Nf60PSW\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe\"\n }, \n \"debit\": null, \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2013-06-19T22:25:01.004755Z\", \n \"fee\": null, \n \"id\": \"HL7bjNLGObnfJJhcKdOjTon5\", \n \"is_void\": false, \n \"meta\": {}, \n \"source\": {\n \"_type\": \"card\", \n \"_uris\": {\n \"account_uri\": {\n \"_type\": \"account\", \n \"key\": \"account\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }\n }, \n \"account_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe\", \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"created_at\": \"2013-06-12T22:24:48.953938Z\", \n \"customer_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"b7250dd4b4827a88d5e4132b67f02916bce6f8e83d4ca0d779d1351b360ff6af\", \n \"id\": \"CC6XAdMPMSf0i4dC8Nf60PSW\", \n \"is_valid\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": null, \n \"postal_code_check\": \"true\", \n \"security_code_check\": \"true\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/cards/CC6XAdMPMSf0i4dC8Nf60PSW\"\n }, \n \"transaction_number\": \"HL663-580-0472\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/holds/HL7bjNLGObnfJJhcKdOjTon5\"\n}" + "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-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/cards\", \n \"created_at\": \"2013-08-06T22:50:05.055709Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/credits\", \n \"customer_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/holds\", \n \"id\": \"AC4aHI8dZiHocr1M5FARdZzg\", \n \"meta\": {}, \n \"name\": \"None\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg\"\n }, \n \"amount\": 5000, \n \"created_at\": \"2013-08-06T22:51:15.296394Z\", \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/CU4b8XWw94OpiZW2zEaSPQbA/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/cards\", \n \"created_at\": \"2013-08-06T22:50:05.446575Z\", \n \"credits_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/credits\", \n \"debits_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/debits\", \n \"destination_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg/bank_accounts/BA4gGTZiAgLomq8IjMjYcB32\", \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/holds\", \n \"id\": \"CU4b8XWw94OpiZW2zEaSPQbA\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/refunds\", \n \"reversals_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/reversals\", \n \"source_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg/cards/CC4ejBuNLWYWy2Pb6Hxbv6A0\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA\"\n }, \n \"debit\": null, \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2013-08-13T22:51:15.121028Z\", \n \"fee\": null, \n \"id\": \"HL5rHLGFY2NMLve5y2yPJC06\", \n \"is_void\": false, \n \"meta\": {}, \n \"source\": {\n \"_type\": \"card\", \n \"_uris\": {\n \"account_uri\": {\n \"_type\": \"account\", \n \"key\": \"account\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }\n }, \n \"account_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg\", \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"created_at\": \"2013-08-06T22:50:08.255162Z\", \n \"customer_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"b7250dd4b4827a88d5e4132b67f02916bce6f8e83d4ca0d779d1351b360ff6af\", \n \"id\": \"CC4ejBuNLWYWy2Pb6Hxbv6A0\", \n \"is_valid\": true, \n \"is_verified\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": \"None\", \n \"postal_code_check\": \"true\", \n \"security_code_check\": \"true\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/cards/CC4ejBuNLWYWy2Pb6Hxbv6A0\"\n }, \n \"transaction_number\": \"HL601-142-7853\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/holds/HL5rHLGFY2NMLve5y2yPJC06\"\n}" }, "hold_update": { "request": { @@ -462,26 +461,33 @@ "meaningful.key": "some.value" } }, - "uri": "/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/holds/HL7bjNLGObnfJJhcKdOjTon5" + "uri": "/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/holds/HL5rHLGFY2NMLve5y2yPJC06" }, - "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 \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/cards\", \n \"created_at\": \"2013-06-12T22:24:47.624724Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/credits\", \n \"customer_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/holds\", \n \"id\": \"CU6W5pSk2CUXQxhENqyGRvQe\", \n \"meta\": {}, \n \"name\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/refunds\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe\"\n }, \n \"amount\": 5000, \n \"created_at\": \"2013-06-12T22:25:01.163949Z\", \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 \"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/CU6W5pSk2CUXQxhENqyGRvQe/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/cards\", \n \"created_at\": \"2013-06-12T22:24:47.823456Z\", \n \"credits_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/credits\", \n \"debits_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/holds\", \n \"id\": \"CU6W5pSk2CUXQxhENqyGRvQe\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/refunds\", \n \"source_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/cards/CC6XAdMPMSf0i4dC8Nf60PSW\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe\"\n }, \n \"debit\": null, \n \"description\": \"update this description\", \n \"expires_at\": \"2013-06-19T22:25:01.004755Z\", \n \"fee\": null, \n \"id\": \"HL7bjNLGObnfJJhcKdOjTon5\", \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\": \"account\", \n \"key\": \"account\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }\n }, \n \"account_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe\", \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"created_at\": \"2013-06-12T22:24:48.953938Z\", \n \"customer_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"b7250dd4b4827a88d5e4132b67f02916bce6f8e83d4ca0d779d1351b360ff6af\", \n \"id\": \"CC6XAdMPMSf0i4dC8Nf60PSW\", \n \"is_valid\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": null, \n \"postal_code_check\": \"true\", \n \"security_code_check\": \"true\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/cards/CC6XAdMPMSf0i4dC8Nf60PSW\"\n }, \n \"transaction_number\": \"HL663-580-0472\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/holds/HL7bjNLGObnfJJhcKdOjTon5\"\n}" + "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-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/cards\", \n \"created_at\": \"2013-08-06T22:50:05.055709Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/credits\", \n \"customer_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/holds\", \n \"id\": \"AC4aHI8dZiHocr1M5FARdZzg\", \n \"meta\": {}, \n \"name\": \"None\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg\"\n }, \n \"amount\": 5000, \n \"created_at\": \"2013-08-06T22:51:15.296394Z\", \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/CU4b8XWw94OpiZW2zEaSPQbA/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/cards\", \n \"created_at\": \"2013-08-06T22:50:05.446575Z\", \n \"credits_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/credits\", \n \"debits_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/debits\", \n \"destination_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg/bank_accounts/BA4gGTZiAgLomq8IjMjYcB32\", \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/holds\", \n \"id\": \"CU4b8XWw94OpiZW2zEaSPQbA\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/refunds\", \n \"reversals_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/reversals\", \n \"source_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg/cards/CC4ejBuNLWYWy2Pb6Hxbv6A0\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA\"\n }, \n \"debit\": null, \n \"description\": \"update this description\", \n \"expires_at\": \"2013-08-13T22:51:15.121028Z\", \n \"fee\": null, \n \"id\": \"HL5rHLGFY2NMLve5y2yPJC06\", \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\": \"account\", \n \"key\": \"account\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }\n }, \n \"account_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg\", \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"created_at\": \"2013-08-06T22:50:08.255162Z\", \n \"customer_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"b7250dd4b4827a88d5e4132b67f02916bce6f8e83d4ca0d779d1351b360ff6af\", \n \"id\": \"CC4ejBuNLWYWy2Pb6Hxbv6A0\", \n \"is_valid\": true, \n \"is_verified\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": \"None\", \n \"postal_code_check\": \"true\", \n \"security_code_check\": \"true\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/cards/CC4ejBuNLWYWy2Pb6Hxbv6A0\"\n }, \n \"transaction_number\": \"HL601-142-7853\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/holds/HL5rHLGFY2NMLve5y2yPJC06\"\n}" }, "hold_void": { "request": { "payload": { "is_void": "true" }, - "uri": "/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/holds/HL7mo97WlNDLH601wVhD3VTI" + "uri": "/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/holds/HL5DjCcU0FHDkiNj6X2ITrhm" }, - "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 \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/cards\", \n \"created_at\": \"2013-06-12T22:24:47.624724Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/credits\", \n \"customer_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/holds\", \n \"id\": \"CU6W5pSk2CUXQxhENqyGRvQe\", \n \"meta\": {}, \n \"name\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/refunds\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe\"\n }, \n \"amount\": 5000, \n \"created_at\": \"2013-06-12T22:25:11.008161Z\", \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 \"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/CU6W5pSk2CUXQxhENqyGRvQe/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/cards\", \n \"created_at\": \"2013-06-12T22:24:47.823456Z\", \n \"credits_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/credits\", \n \"debits_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/holds\", \n \"id\": \"CU6W5pSk2CUXQxhENqyGRvQe\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/refunds\", \n \"source_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/cards/CC6XAdMPMSf0i4dC8Nf60PSW\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe\"\n }, \n \"debit\": null, \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2013-06-19T22:25:10.906542Z\", \n \"fee\": null, \n \"id\": \"HL7mo97WlNDLH601wVhD3VTI\", \n \"is_void\": true, \n \"meta\": {}, \n \"source\": {\n \"_type\": \"card\", \n \"_uris\": {\n \"account_uri\": {\n \"_type\": \"account\", \n \"key\": \"account\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }\n }, \n \"account_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe\", \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"created_at\": \"2013-06-12T22:24:48.953938Z\", \n \"customer_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"b7250dd4b4827a88d5e4132b67f02916bce6f8e83d4ca0d779d1351b360ff6af\", \n \"id\": \"CC6XAdMPMSf0i4dC8Nf60PSW\", \n \"is_valid\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": null, \n \"postal_code_check\": \"true\", \n \"security_code_check\": \"true\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/cards/CC6XAdMPMSf0i4dC8Nf60PSW\"\n }, \n \"transaction_number\": \"HL143-724-6840\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/holds/HL7mo97WlNDLH601wVhD3VTI\"\n}" + "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-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/cards\", \n \"created_at\": \"2013-08-06T22:50:05.055709Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/credits\", \n \"customer_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/holds\", \n \"id\": \"AC4aHI8dZiHocr1M5FARdZzg\", \n \"meta\": {}, \n \"name\": \"None\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg\"\n }, \n \"amount\": 5000, \n \"created_at\": \"2013-08-06T22:51:25.607390Z\", \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/CU4b8XWw94OpiZW2zEaSPQbA/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/cards\", \n \"created_at\": \"2013-08-06T22:50:05.446575Z\", \n \"credits_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/credits\", \n \"debits_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/debits\", \n \"destination_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg/bank_accounts/BA4gGTZiAgLomq8IjMjYcB32\", \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/holds\", \n \"id\": \"CU4b8XWw94OpiZW2zEaSPQbA\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/refunds\", \n \"reversals_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/reversals\", \n \"source_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg/cards/CC4ejBuNLWYWy2Pb6Hxbv6A0\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA\"\n }, \n \"debit\": null, \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"expires_at\": \"2013-08-13T22:51:25.391843Z\", \n \"fee\": null, \n \"id\": \"HL5DjCcU0FHDkiNj6X2ITrhm\", \n \"is_void\": true, \n \"meta\": {}, \n \"source\": {\n \"_type\": \"card\", \n \"_uris\": {\n \"account_uri\": {\n \"_type\": \"account\", \n \"key\": \"account\"\n }, \n \"customer_uri\": {\n \"_type\": \"customer\", \n \"key\": \"customer\"\n }\n }, \n \"account_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg\", \n \"brand\": \"MasterCard\", \n \"card_type\": \"mastercard\", \n \"created_at\": \"2013-08-06T22:50:08.255162Z\", \n \"customer_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg\", \n \"expiration_month\": 12, \n \"expiration_year\": 2020, \n \"hash\": \"b7250dd4b4827a88d5e4132b67f02916bce6f8e83d4ca0d779d1351b360ff6af\", \n \"id\": \"CC4ejBuNLWYWy2Pb6Hxbv6A0\", \n \"is_valid\": true, \n \"is_verified\": true, \n \"last_four\": \"5100\", \n \"meta\": {}, \n \"name\": \"None\", \n \"postal_code_check\": \"true\", \n \"security_code_check\": \"true\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/cards/CC4ejBuNLWYWy2Pb6Hxbv6A0\"\n }, \n \"transaction_number\": \"HL272-797-3872\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/holds/HL5DjCcU0FHDkiNj6X2ITrhm\"\n}" + }, + "marketplace_id": "TEST-MP40BcQ7XUk3TlZOupT5Y3Nm", + "marketplace_uri": "/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm", + "refund_account_list": { + "request": { + "account_uri": "/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg", + "uri": "/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/refunds" + }, + "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-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/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-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/cards\", \n \"created_at\": \"2013-08-06T22:50:05.055709Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/credits\", \n \"customer_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/holds\", \n \"id\": \"AC4aHI8dZiHocr1M5FARdZzg\", \n \"meta\": {}, \n \"name\": \"None\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg\"\n }, \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"created_at\": \"2013-08-06T22:51:29.981661Z\", \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/CU4b8XWw94OpiZW2zEaSPQbA/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/cards\", \n \"created_at\": \"2013-08-06T22:50:05.446575Z\", \n \"credits_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/credits\", \n \"debits_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/debits\", \n \"destination_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg/bank_accounts/BA4gGTZiAgLomq8IjMjYcB32\", \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/holds\", \n \"id\": \"CU4b8XWw94OpiZW2zEaSPQbA\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/refunds\", \n \"reversals_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/reversals\", \n \"source_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg/cards/CC4ejBuNLWYWy2Pb6Hxbv6A0\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA\"\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-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg\", \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"available_at\": \"2013-08-06T22:51:28.934052Z\", \n \"created_at\": \"2013-08-06T22:51:28.443083Z\", \n \"customer_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"fee\": null, \n \"hold_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/holds/HL5GyCU8CaA6495Kxj4bJSu4\", \n \"id\": \"WD5Gv7XetHvx1CHUqkDKiZYY\", \n \"meta\": {}, \n \"on_behalf_of_uri\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/debits/WD5Gv7XetHvx1CHUqkDKiZYY/refunds\", \n \"source_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/cards/CC4ejBuNLWYWy2Pb6Hxbv6A0\", \n \"status\": \"succeeded\", \n \"transaction_number\": \"W907-988-6807\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/debits/WD5Gv7XetHvx1CHUqkDKiZYY\"\n }, \n \"description\": \"Refund for Order #1111\", \n \"fee\": null, \n \"id\": \"RF5IbmNudG8OWk1TzjdwmvOu\", \n \"meta\": {\n \"fulfillment.item.condition\": \"OK\", \n \"merchant.feedback\": \"positive\", \n \"user.refund_reason\": \"not happy with product\"\n }, \n \"transaction_number\": \"RF841-729-1971\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/refunds/RF5IbmNudG8OWk1TzjdwmvOu\"\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-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/cards\", \n \"created_at\": \"2013-08-06T22:50:05.055709Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/credits\", \n \"customer_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/holds\", \n \"id\": \"AC4aHI8dZiHocr1M5FARdZzg\", \n \"meta\": {}, \n \"name\": \"None\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg\"\n }, \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"created_at\": \"2013-08-06T22:51:08.293564Z\", \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/CU4b8XWw94OpiZW2zEaSPQbA/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/cards\", \n \"created_at\": \"2013-08-06T22:50:05.446575Z\", \n \"credits_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/credits\", \n \"debits_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/debits\", \n \"destination_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg/bank_accounts/BA4gGTZiAgLomq8IjMjYcB32\", \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/holds\", \n \"id\": \"CU4b8XWw94OpiZW2zEaSPQbA\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/refunds\", \n \"reversals_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/reversals\", \n \"source_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg/cards/CC4ejBuNLWYWy2Pb6Hxbv6A0\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA\"\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-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg\", \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"available_at\": \"2013-08-06T22:51:06.952330Z\", \n \"created_at\": \"2013-08-06T22:51:06.443384Z\", \n \"customer_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"fee\": null, \n \"hold_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/holds/HL5hPvvE1O7ny6YdQf1CWlEX\", \n \"id\": \"WD5hKOubxx6UWLzsJnQGv5F5\", \n \"meta\": {}, \n \"on_behalf_of_uri\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/debits/WD5hKOubxx6UWLzsJnQGv5F5/refunds\", \n \"source_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/cards/CC4ejBuNLWYWy2Pb6Hxbv6A0\", \n \"status\": \"succeeded\", \n \"transaction_number\": \"W352-789-1427\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/debits/WD5hKOubxx6UWLzsJnQGv5F5\"\n }, \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"fee\": null, \n \"id\": \"RF5jnX1auTdNYArQYsDrYc1h\", \n \"meta\": {}, \n \"transaction_number\": \"RF389-055-6499\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/refunds/RF5jnX1auTdNYArQYsDrYc1h\"\n }\n ], \n \"last_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/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-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/refunds?limit=2&offset=0\"\n}" }, - "marketplace_id": "TEST-MP64bmAzypIUS0SUZ4qkoFqG", - "marketplace_uri": "/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG", "refund_create": { "request": { - "debit_uri": "/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/debits/WD7pYB2uXq8QAZvVrvO1l2Oq", + "debit_uri": "/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/debits/WD5Gv7XetHvx1CHUqkDKiZYY", "payload": { - "debit_uri": "/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/debits/WD7pYB2uXq8QAZvVrvO1l2Oq", + "debit_uri": "/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/debits/WD5Gv7XetHvx1CHUqkDKiZYY", "description": "Refund for Order #1111", "meta": { "fulfillment.item.condition": "OK", @@ -489,28 +495,21 @@ "user.refund_reason": "not happy with product" } }, - "uri": "/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/refunds" - }, - "response": "{\n \"_type\": \"refund\", \n \"_uris\": {}, \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"created_at\": \"2013-06-12T22:25:15.293554Z\", \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 \"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/CU6W5pSk2CUXQxhENqyGRvQe/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/cards\", \n \"created_at\": \"2013-06-12T22:24:47.823456Z\", \n \"credits_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/credits\", \n \"debits_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/holds\", \n \"id\": \"CU6W5pSk2CUXQxhENqyGRvQe\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/refunds\", \n \"source_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/cards/CC6XAdMPMSf0i4dC8Nf60PSW\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe\"\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-06-12T22:25:13.902684Z\", \n \"created_at\": \"2013-06-12T22:25:14.203435Z\", \n \"customer_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"fee\": null, \n \"hold_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/holds/HL7q36Npzf3aN3ABqhhYUH7E\", \n \"id\": \"WD7pYB2uXq8QAZvVrvO1l2Oq\", \n \"meta\": {}, \n \"on_behalf_of_uri\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/debits/WD7pYB2uXq8QAZvVrvO1l2Oq/refunds\", \n \"source_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/cards/CC6XAdMPMSf0i4dC8Nf60PSW\", \n \"status\": \"succeeded\", \n \"transaction_number\": \"W818-018-6498\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/debits/WD7pYB2uXq8QAZvVrvO1l2Oq\"\n }, \n \"description\": \"Refund for Order #1111\", \n \"fee\": null, \n \"id\": \"RF7rcQFmIUkcoIHnpZcnQk5W\", \n \"meta\": {\n \"fulfillment.item.condition\": \"OK\", \n \"merchant.feedback\": \"positive\", \n \"user.refund_reason\": \"not happy with product\"\n }, \n \"transaction_number\": \"RF845-334-5996\", \n \"uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/refunds/RF7rcQFmIUkcoIHnpZcnQk5W\"\n}" - }, - "refund_customer_list": { - "request": { - "customer_uri": "/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe", - "uri": "/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/refunds" + "uri": "/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/refunds" }, - "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/CU6W5pSk2CUXQxhENqyGRvQe/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-06-12T22:25:15.293554Z\", \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 \"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/CU6W5pSk2CUXQxhENqyGRvQe/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/cards\", \n \"created_at\": \"2013-06-12T22:24:47.823456Z\", \n \"credits_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/credits\", \n \"debits_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/holds\", \n \"id\": \"CU6W5pSk2CUXQxhENqyGRvQe\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/refunds\", \n \"source_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/cards/CC6XAdMPMSf0i4dC8Nf60PSW\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe\"\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-06-12T22:25:13.902684Z\", \n \"created_at\": \"2013-06-12T22:25:14.203435Z\", \n \"customer_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"fee\": null, \n \"hold_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/holds/HL7q36Npzf3aN3ABqhhYUH7E\", \n \"id\": \"WD7pYB2uXq8QAZvVrvO1l2Oq\", \n \"meta\": {}, \n \"on_behalf_of_uri\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/debits/WD7pYB2uXq8QAZvVrvO1l2Oq/refunds\", \n \"source_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/cards/CC6XAdMPMSf0i4dC8Nf60PSW\", \n \"status\": \"succeeded\", \n \"transaction_number\": \"W818-018-6498\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/debits/WD7pYB2uXq8QAZvVrvO1l2Oq\"\n }, \n \"description\": \"Refund for Order #1111\", \n \"fee\": null, \n \"id\": \"RF7rcQFmIUkcoIHnpZcnQk5W\", \n \"meta\": {\n \"fulfillment.item.condition\": \"OK\", \n \"merchant.feedback\": \"positive\", \n \"user.refund_reason\": \"not happy with product\"\n }, \n \"transaction_number\": \"RF845-334-5996\", \n \"uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/refunds/RF7rcQFmIUkcoIHnpZcnQk5W\"\n }, \n {\n \"_type\": \"refund\", \n \"_uris\": {}, \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"created_at\": \"2013-06-12T22:24:59.291564Z\", \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 \"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/CU6W5pSk2CUXQxhENqyGRvQe/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/cards\", \n \"created_at\": \"2013-06-12T22:24:47.823456Z\", \n \"credits_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/credits\", \n \"debits_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/holds\", \n \"id\": \"CU6W5pSk2CUXQxhENqyGRvQe\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/refunds\", \n \"source_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/cards/CC6XAdMPMSf0i4dC8Nf60PSW\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe\"\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-06-12T22:24:57.845534Z\", \n \"created_at\": \"2013-06-12T22:24:58.105966Z\", \n \"customer_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"fee\": null, \n \"hold_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/holds/HL77UvtAxYw4iG0Y9pU02vfc\", \n \"id\": \"WD77SpSXQMyRXw8pMUujCjua\", \n \"meta\": {}, \n \"on_behalf_of_uri\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/debits/WD77SpSXQMyRXw8pMUujCjua/refunds\", \n \"source_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/cards/CC6XAdMPMSf0i4dC8Nf60PSW\", \n \"status\": \"succeeded\", \n \"transaction_number\": \"W295-610-7972\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/debits/WD77SpSXQMyRXw8pMUujCjua\"\n }, \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"fee\": null, \n \"id\": \"RF79czs7dBxwmOQBsgXZsTfq\", \n \"meta\": {}, \n \"transaction_number\": \"RF348-824-1291\", \n \"uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/refunds/RF79czs7dBxwmOQBsgXZsTfq\"\n }\n ], \n \"last_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/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/customers/CU6W5pSk2CUXQxhENqyGRvQe/refunds?limit=2&offset=0\"\n}" + "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-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/cards\", \n \"created_at\": \"2013-08-06T22:50:05.055709Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/credits\", \n \"customer_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/holds\", \n \"id\": \"AC4aHI8dZiHocr1M5FARdZzg\", \n \"meta\": {}, \n \"name\": \"None\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg\"\n }, \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"created_at\": \"2013-08-06T22:51:29.981661Z\", \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/CU4b8XWw94OpiZW2zEaSPQbA/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/cards\", \n \"created_at\": \"2013-08-06T22:50:05.446575Z\", \n \"credits_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/credits\", \n \"debits_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/debits\", \n \"destination_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg/bank_accounts/BA4gGTZiAgLomq8IjMjYcB32\", \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/holds\", \n \"id\": \"CU4b8XWw94OpiZW2zEaSPQbA\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/refunds\", \n \"reversals_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/reversals\", \n \"source_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg/cards/CC4ejBuNLWYWy2Pb6Hxbv6A0\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA\"\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-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg\", \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"available_at\": \"2013-08-06T22:51:28.934052Z\", \n \"created_at\": \"2013-08-06T22:51:28.443083Z\", \n \"customer_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"fee\": null, \n \"hold_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/holds/HL5GyCU8CaA6495Kxj4bJSu4\", \n \"id\": \"WD5Gv7XetHvx1CHUqkDKiZYY\", \n \"meta\": {}, \n \"on_behalf_of_uri\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/debits/WD5Gv7XetHvx1CHUqkDKiZYY/refunds\", \n \"source_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/cards/CC4ejBuNLWYWy2Pb6Hxbv6A0\", \n \"status\": \"succeeded\", \n \"transaction_number\": \"W907-988-6807\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/debits/WD5Gv7XetHvx1CHUqkDKiZYY\"\n }, \n \"description\": \"Refund for Order #1111\", \n \"fee\": null, \n \"id\": \"RF5IbmNudG8OWk1TzjdwmvOu\", \n \"meta\": {\n \"fulfillment.item.condition\": \"OK\", \n \"merchant.feedback\": \"positive\", \n \"user.refund_reason\": \"not happy with product\"\n }, \n \"transaction_number\": \"RF841-729-1971\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/refunds/RF5IbmNudG8OWk1TzjdwmvOu\"\n}" }, "refund_list": { "request": { - "uri": "/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/refunds" + "uri": "/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/refunds" }, - "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-MP64bmAzypIUS0SUZ4qkoFqG/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 \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/cards\", \n \"created_at\": \"2013-06-12T22:24:47.624724Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/credits\", \n \"customer_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/holds\", \n \"id\": \"CU6W5pSk2CUXQxhENqyGRvQe\", \n \"meta\": {}, \n \"name\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/refunds\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe\"\n }, \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"created_at\": \"2013-06-12T22:25:15.293554Z\", \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 \"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/CU6W5pSk2CUXQxhENqyGRvQe/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/cards\", \n \"created_at\": \"2013-06-12T22:24:47.823456Z\", \n \"credits_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/credits\", \n \"debits_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/holds\", \n \"id\": \"CU6W5pSk2CUXQxhENqyGRvQe\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/refunds\", \n \"source_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/cards/CC6XAdMPMSf0i4dC8Nf60PSW\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe\"\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-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe\", \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"available_at\": \"2013-06-12T22:25:13.902684Z\", \n \"created_at\": \"2013-06-12T22:25:14.203435Z\", \n \"customer_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"fee\": null, \n \"hold_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/holds/HL7q36Npzf3aN3ABqhhYUH7E\", \n \"id\": \"WD7pYB2uXq8QAZvVrvO1l2Oq\", \n \"meta\": {}, \n \"on_behalf_of_uri\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/debits/WD7pYB2uXq8QAZvVrvO1l2Oq/refunds\", \n \"source_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/cards/CC6XAdMPMSf0i4dC8Nf60PSW\", \n \"status\": \"succeeded\", \n \"transaction_number\": \"W818-018-6498\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/debits/WD7pYB2uXq8QAZvVrvO1l2Oq\"\n }, \n \"description\": \"Refund for Order #1111\", \n \"fee\": null, \n \"id\": \"RF7rcQFmIUkcoIHnpZcnQk5W\", \n \"meta\": {\n \"fulfillment.item.condition\": \"OK\", \n \"merchant.feedback\": \"positive\", \n \"user.refund_reason\": \"not happy with product\"\n }, \n \"transaction_number\": \"RF845-334-5996\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/refunds/RF7rcQFmIUkcoIHnpZcnQk5W\"\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 \"transactions_uri\": {\n \"_type\": \"page\", \n \"key\": \"transactions\"\n }\n }, \n \"bank_accounts_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/cards\", \n \"created_at\": \"2013-06-12T22:24:47.624724Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/credits\", \n \"customer_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/holds\", \n \"id\": \"CU6W5pSk2CUXQxhENqyGRvQe\", \n \"meta\": {}, \n \"name\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/refunds\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe\"\n }, \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"created_at\": \"2013-06-12T22:24:59.291564Z\", \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 \"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/CU6W5pSk2CUXQxhENqyGRvQe/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/cards\", \n \"created_at\": \"2013-06-12T22:24:47.823456Z\", \n \"credits_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/credits\", \n \"debits_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/holds\", \n \"id\": \"CU6W5pSk2CUXQxhENqyGRvQe\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/refunds\", \n \"source_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/cards/CC6XAdMPMSf0i4dC8Nf60PSW\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe\"\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-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe\", \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"available_at\": \"2013-06-12T22:24:57.845534Z\", \n \"created_at\": \"2013-06-12T22:24:58.105966Z\", \n \"customer_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"fee\": null, \n \"hold_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/holds/HL77UvtAxYw4iG0Y9pU02vfc\", \n \"id\": \"WD77SpSXQMyRXw8pMUujCjua\", \n \"meta\": {}, \n \"on_behalf_of_uri\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/debits/WD77SpSXQMyRXw8pMUujCjua/refunds\", \n \"source_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/cards/CC6XAdMPMSf0i4dC8Nf60PSW\", \n \"status\": \"succeeded\", \n \"transaction_number\": \"W295-610-7972\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/debits/WD77SpSXQMyRXw8pMUujCjua\"\n }, \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"fee\": null, \n \"id\": \"RF79czs7dBxwmOQBsgXZsTfq\", \n \"meta\": {}, \n \"transaction_number\": \"RF348-824-1291\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/refunds/RF79czs7dBxwmOQBsgXZsTfq\"\n }\n ], \n \"last_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/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-MP64bmAzypIUS0SUZ4qkoFqG/refunds?limit=2&offset=0\"\n}" + "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-MP40BcQ7XUk3TlZOupT5Y3Nm/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-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/cards\", \n \"created_at\": \"2013-08-06T22:50:05.055709Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/credits\", \n \"customer_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/holds\", \n \"id\": \"AC4aHI8dZiHocr1M5FARdZzg\", \n \"meta\": {}, \n \"name\": \"None\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg\"\n }, \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"created_at\": \"2013-08-06T22:51:29.981661Z\", \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/CU4b8XWw94OpiZW2zEaSPQbA/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/cards\", \n \"created_at\": \"2013-08-06T22:50:05.446575Z\", \n \"credits_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/credits\", \n \"debits_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/debits\", \n \"destination_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg/bank_accounts/BA4gGTZiAgLomq8IjMjYcB32\", \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/holds\", \n \"id\": \"CU4b8XWw94OpiZW2zEaSPQbA\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/refunds\", \n \"reversals_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/reversals\", \n \"source_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg/cards/CC4ejBuNLWYWy2Pb6Hxbv6A0\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA\"\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-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg\", \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"available_at\": \"2013-08-06T22:51:28.934052Z\", \n \"created_at\": \"2013-08-06T22:51:28.443083Z\", \n \"customer_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"fee\": null, \n \"hold_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/holds/HL5GyCU8CaA6495Kxj4bJSu4\", \n \"id\": \"WD5Gv7XetHvx1CHUqkDKiZYY\", \n \"meta\": {}, \n \"on_behalf_of_uri\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/debits/WD5Gv7XetHvx1CHUqkDKiZYY/refunds\", \n \"source_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/cards/CC4ejBuNLWYWy2Pb6Hxbv6A0\", \n \"status\": \"succeeded\", \n \"transaction_number\": \"W907-988-6807\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/debits/WD5Gv7XetHvx1CHUqkDKiZYY\"\n }, \n \"description\": \"Refund for Order #1111\", \n \"fee\": null, \n \"id\": \"RF5IbmNudG8OWk1TzjdwmvOu\", \n \"meta\": {\n \"fulfillment.item.condition\": \"OK\", \n \"merchant.feedback\": \"positive\", \n \"user.refund_reason\": \"not happy with product\"\n }, \n \"transaction_number\": \"RF841-729-1971\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/refunds/RF5IbmNudG8OWk1TzjdwmvOu\"\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-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/cards\", \n \"created_at\": \"2013-08-06T22:50:05.055709Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/credits\", \n \"customer_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/holds\", \n \"id\": \"AC4aHI8dZiHocr1M5FARdZzg\", \n \"meta\": {}, \n \"name\": \"None\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg\"\n }, \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"created_at\": \"2013-08-06T22:51:08.293564Z\", \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/CU4b8XWw94OpiZW2zEaSPQbA/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/cards\", \n \"created_at\": \"2013-08-06T22:50:05.446575Z\", \n \"credits_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/credits\", \n \"debits_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/debits\", \n \"destination_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg/bank_accounts/BA4gGTZiAgLomq8IjMjYcB32\", \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/holds\", \n \"id\": \"CU4b8XWw94OpiZW2zEaSPQbA\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/refunds\", \n \"reversals_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/reversals\", \n \"source_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg/cards/CC4ejBuNLWYWy2Pb6Hxbv6A0\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA\"\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-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg\", \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"available_at\": \"2013-08-06T22:51:06.952330Z\", \n \"created_at\": \"2013-08-06T22:51:06.443384Z\", \n \"customer_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"fee\": null, \n \"hold_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/holds/HL5hPvvE1O7ny6YdQf1CWlEX\", \n \"id\": \"WD5hKOubxx6UWLzsJnQGv5F5\", \n \"meta\": {}, \n \"on_behalf_of_uri\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/debits/WD5hKOubxx6UWLzsJnQGv5F5/refunds\", \n \"source_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/cards/CC4ejBuNLWYWy2Pb6Hxbv6A0\", \n \"status\": \"succeeded\", \n \"transaction_number\": \"W352-789-1427\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/debits/WD5hKOubxx6UWLzsJnQGv5F5\"\n }, \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"fee\": null, \n \"id\": \"RF5jnX1auTdNYArQYsDrYc1h\", \n \"meta\": {}, \n \"transaction_number\": \"RF389-055-6499\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/refunds/RF5jnX1auTdNYArQYsDrYc1h\"\n }\n ], \n \"last_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/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-MP40BcQ7XUk3TlZOupT5Y3Nm/refunds?limit=2&offset=0\"\n}" }, "refund_show": { "request": { - "uri": "/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/refunds/RF7rcQFmIUkcoIHnpZcnQk5W" + "uri": "/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/refunds/RF5IbmNudG8OWk1TzjdwmvOu" }, - "response": "{\n \"_type\": \"refund\", \n \"_uris\": {}, \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"created_at\": \"2013-06-12T22:25:15.293554Z\", \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 \"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/CU6W5pSk2CUXQxhENqyGRvQe/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/cards\", \n \"created_at\": \"2013-06-12T22:24:47.823456Z\", \n \"credits_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/credits\", \n \"debits_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/holds\", \n \"id\": \"CU6W5pSk2CUXQxhENqyGRvQe\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/refunds\", \n \"source_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/cards/CC6XAdMPMSf0i4dC8Nf60PSW\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe\"\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-06-12T22:25:13.902684Z\", \n \"created_at\": \"2013-06-12T22:25:14.203435Z\", \n \"customer_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"fee\": null, \n \"hold_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/holds/HL7q36Npzf3aN3ABqhhYUH7E\", \n \"id\": \"WD7pYB2uXq8QAZvVrvO1l2Oq\", \n \"meta\": {}, \n \"on_behalf_of_uri\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/debits/WD7pYB2uXq8QAZvVrvO1l2Oq/refunds\", \n \"source_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/cards/CC6XAdMPMSf0i4dC8Nf60PSW\", \n \"status\": \"succeeded\", \n \"transaction_number\": \"W818-018-6498\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/debits/WD7pYB2uXq8QAZvVrvO1l2Oq\"\n }, \n \"description\": \"Refund for Order #1111\", \n \"fee\": null, \n \"id\": \"RF7rcQFmIUkcoIHnpZcnQk5W\", \n \"meta\": {\n \"fulfillment.item.condition\": \"OK\", \n \"merchant.feedback\": \"positive\", \n \"user.refund_reason\": \"not happy with product\"\n }, \n \"transaction_number\": \"RF845-334-5996\", \n \"uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/refunds/RF7rcQFmIUkcoIHnpZcnQk5W\"\n}" + "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-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/cards\", \n \"created_at\": \"2013-08-06T22:50:05.055709Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/credits\", \n \"customer_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/holds\", \n \"id\": \"AC4aHI8dZiHocr1M5FARdZzg\", \n \"meta\": {}, \n \"name\": \"None\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg\"\n }, \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"created_at\": \"2013-08-06T22:51:29.981661Z\", \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/CU4b8XWw94OpiZW2zEaSPQbA/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/cards\", \n \"created_at\": \"2013-08-06T22:50:05.446575Z\", \n \"credits_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/credits\", \n \"debits_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/debits\", \n \"destination_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg/bank_accounts/BA4gGTZiAgLomq8IjMjYcB32\", \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/holds\", \n \"id\": \"CU4b8XWw94OpiZW2zEaSPQbA\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/refunds\", \n \"reversals_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/reversals\", \n \"source_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg/cards/CC4ejBuNLWYWy2Pb6Hxbv6A0\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA\"\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-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg\", \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"available_at\": \"2013-08-06T22:51:28.934052Z\", \n \"created_at\": \"2013-08-06T22:51:28.443083Z\", \n \"customer_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"fee\": null, \n \"hold_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/holds/HL5GyCU8CaA6495Kxj4bJSu4\", \n \"id\": \"WD5Gv7XetHvx1CHUqkDKiZYY\", \n \"meta\": {}, \n \"on_behalf_of_uri\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/debits/WD5Gv7XetHvx1CHUqkDKiZYY/refunds\", \n \"source_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/cards/CC4ejBuNLWYWy2Pb6Hxbv6A0\", \n \"status\": \"succeeded\", \n \"transaction_number\": \"W907-988-6807\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/debits/WD5Gv7XetHvx1CHUqkDKiZYY\"\n }, \n \"description\": \"Refund for Order #1111\", \n \"fee\": null, \n \"id\": \"RF5IbmNudG8OWk1TzjdwmvOu\", \n \"meta\": {\n \"fulfillment.item.condition\": \"OK\", \n \"merchant.feedback\": \"positive\", \n \"user.refund_reason\": \"not happy with product\"\n }, \n \"transaction_number\": \"RF841-729-1971\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/refunds/RF5IbmNudG8OWk1TzjdwmvOu\"\n}" }, "refund_update": { "request": { @@ -522,8 +521,8 @@ "user.refund.count": "3" } }, - "uri": "/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/refunds/RF7rcQFmIUkcoIHnpZcnQk5W" + "uri": "/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/refunds/RF5IbmNudG8OWk1TzjdwmvOu" }, - "response": "{\n \"_type\": \"refund\", \n \"_uris\": {}, \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"created_at\": \"2013-06-12T22:25:15.293554Z\", \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 \"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/CU6W5pSk2CUXQxhENqyGRvQe/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/cards\", \n \"created_at\": \"2013-06-12T22:24:47.823456Z\", \n \"credits_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/credits\", \n \"debits_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/debits\", \n \"destination_uri\": null, \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/holds\", \n \"id\": \"CU6W5pSk2CUXQxhENqyGRvQe\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/refunds\", \n \"source_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/cards/CC6XAdMPMSf0i4dC8Nf60PSW\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe\"\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-06-12T22:25:13.902684Z\", \n \"created_at\": \"2013-06-12T22:25:14.203435Z\", \n \"customer_uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"fee\": null, \n \"hold_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/holds/HL7q36Npzf3aN3ABqhhYUH7E\", \n \"id\": \"WD7pYB2uXq8QAZvVrvO1l2Oq\", \n \"meta\": {}, \n \"on_behalf_of_uri\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/debits/WD7pYB2uXq8QAZvVrvO1l2Oq/refunds\", \n \"source_uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/accounts/CU6W5pSk2CUXQxhENqyGRvQe/cards/CC6XAdMPMSf0i4dC8Nf60PSW\", \n \"status\": \"succeeded\", \n \"transaction_number\": \"W818-018-6498\", \n \"uri\": \"/v1/marketplaces/TEST-MP64bmAzypIUS0SUZ4qkoFqG/debits/WD7pYB2uXq8QAZvVrvO1l2Oq\"\n }, \n \"description\": \"update this description\", \n \"fee\": null, \n \"id\": \"RF7rcQFmIUkcoIHnpZcnQk5W\", \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\": \"RF845-334-5996\", \n \"uri\": \"/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe/refunds/RF7rcQFmIUkcoIHnpZcnQk5W\"\n}" + "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-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/bank_accounts\", \n \"cards_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/cards\", \n \"created_at\": \"2013-08-06T22:50:05.055709Z\", \n \"credits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/credits\", \n \"customer_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg\", \n \"debits_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/debits\", \n \"email_address\": null, \n \"holds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/holds\", \n \"id\": \"AC4aHI8dZiHocr1M5FARdZzg\", \n \"meta\": {}, \n \"name\": \"None\", \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/refunds\", \n \"reversals_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/reversals\", \n \"roles\": [\n \"buyer\"\n ], \n \"transactions_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/transactions\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg\"\n }, \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"created_at\": \"2013-08-06T22:51:29.981661Z\", \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/CU4b8XWw94OpiZW2zEaSPQbA/bank_accounts\", \n \"business_name\": null, \n \"cards_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/cards\", \n \"created_at\": \"2013-08-06T22:50:05.446575Z\", \n \"credits_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/credits\", \n \"debits_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/debits\", \n \"destination_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg/bank_accounts/BA4gGTZiAgLomq8IjMjYcB32\", \n \"dob\": null, \n \"ein\": null, \n \"email\": null, \n \"facebook\": null, \n \"holds_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/holds\", \n \"id\": \"CU4b8XWw94OpiZW2zEaSPQbA\", \n \"is_identity_verified\": false, \n \"meta\": {}, \n \"name\": null, \n \"phone\": null, \n \"refunds_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/refunds\", \n \"reversals_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/reversals\", \n \"source_uri\": \"/v1/customers/AC4aHI8dZiHocr1M5FARdZzg/cards/CC4ejBuNLWYWy2Pb6Hxbv6A0\", \n \"ssn_last4\": null, \n \"transactions_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA/transactions\", \n \"twitter\": null, \n \"uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA\"\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-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg\", \n \"amount\": 5000, \n \"appears_on_statement_as\": \"Statement text\", \n \"available_at\": \"2013-08-06T22:51:28.934052Z\", \n \"created_at\": \"2013-08-06T22:51:28.443083Z\", \n \"customer_uri\": \"/v1/customers/CU4b8XWw94OpiZW2zEaSPQbA\", \n \"description\": \"Some descriptive text for the debit in the dashboard\", \n \"fee\": null, \n \"hold_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/holds/HL5GyCU8CaA6495Kxj4bJSu4\", \n \"id\": \"WD5Gv7XetHvx1CHUqkDKiZYY\", \n \"meta\": {}, \n \"on_behalf_of_uri\": null, \n \"refunds_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/debits/WD5Gv7XetHvx1CHUqkDKiZYY/refunds\", \n \"source_uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg/cards/CC4ejBuNLWYWy2Pb6Hxbv6A0\", \n \"status\": \"succeeded\", \n \"transaction_number\": \"W907-988-6807\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/debits/WD5Gv7XetHvx1CHUqkDKiZYY\"\n }, \n \"description\": \"update this description\", \n \"fee\": null, \n \"id\": \"RF5IbmNudG8OWk1TzjdwmvOu\", \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\": \"RF841-729-1971\", \n \"uri\": \"/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/refunds/RF5IbmNudG8OWk1TzjdwmvOu\"\n}" } } \ No newline at end of file diff --git a/scenarios/_main.mako b/scenarios/_main.mako index a7e0a1a..e0d006a 100644 --- a/scenarios/_main.mako +++ b/scenarios/_main.mako @@ -2,13 +2,13 @@ <% if not dikt: raise StopIteration - + keys = sorted(dikt.keys(), key=lambda x: isinstance(dikt[x], dict)) try: last = keys[-1] except IndexError: last = keys[0] - + lines = [] for k in keys: if isinstance(dikt[k], dict): @@ -21,7 +21,7 @@ ## http://stackoverflow.com/a/6701741/133514 -<%def name="route_for_endpoint(endpoint, select=None)"> +<%def name="route_for_endpoint(endpoint, select='shortest')"> <% return context['Endpoint'](ctx, endpoint, select) %> @@ -171,7 +171,7 @@ Balanced.configure('${api_key}') <%def name="curl_delete_template(endpoint_name, ep=None)"> <% - ep = Endpoint(ctx, endpoint_name) + ep = Endpoint(ctx, endpoint_name, select='shortest') %> % if mode == 'definition': ${ep.method} ${ep.url} @@ -184,4 +184,3 @@ Balanced.configure('${api_key}') -X DELETE % endif - diff --git a/scenarios/account_add_card/account_add_card.py b/scenarios/account_add_card/account_add_card.py index 8998e8f..017ae21 100644 --- a/scenarios/account_add_card/account_add_card.py +++ b/scenarios/account_add_card/account_add_card.py @@ -1,7 +1,7 @@ import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") -account = balanced.Account.find('/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/accounts/AC1SUaFl5mNtKGOA3LeO2IxN') -account.add_card('/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/cards/CC1UxG1UwXYFcslMhp4wq2Mg') \ No newline at end of file +account = balanced.Account.find('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg') +account.add_card('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/cards/CC4ejBuNLWYWy2Pb6Hxbv6A0') \ No newline at end of file diff --git a/scenarios/account_add_card/python.mako b/scenarios/account_add_card/python.mako index ae6610d..15067f9 100644 --- a/scenarios/account_add_card/python.mako +++ b/scenarios/account_add_card/python.mako @@ -4,10 +4,10 @@ balanced.Account.add_card % else: import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") -account = balanced.Account.find('/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/accounts/AC1SUaFl5mNtKGOA3LeO2IxN') -account.add_card('/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/cards/CC1UxG1UwXYFcslMhp4wq2Mg') +account = balanced.Account.find('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg') +account.add_card('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/cards/CC4ejBuNLWYWy2Pb6Hxbv6A0') % endif \ No newline at end of file diff --git a/scenarios/account_add_card/request.mako b/scenarios/account_add_card/request.mako index 8998e8f..c4ec90b 100644 --- a/scenarios/account_add_card/request.mako +++ b/scenarios/account_add_card/request.mako @@ -1,7 +1,3 @@ -import balanced - -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") - - -account = balanced.Account.find('/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/accounts/AC1SUaFl5mNtKGOA3LeO2IxN') -account.add_card('/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/cards/CC1UxG1UwXYFcslMhp4wq2Mg') \ No newline at end of file +${main.python_boilerplate()} +account = balanced.Account.find('${request['uri']}') +account.add_card('${payload['card_uri']}') \ No newline at end of file diff --git a/scenarios/account_capture_hold/account_capture_hold.py b/scenarios/account_capture_hold/account_capture_hold.py index e69de29..87f6705 100644 --- a/scenarios/account_capture_hold/account_capture_hold.py +++ b/scenarios/account_capture_hold/account_capture_hold.py @@ -0,0 +1,7 @@ +import balanced + +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") + + +account = balanced.Account.find('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC5YbzH94PeuRxZicqtxCmE8') +account.debit(amount=1000, hold_uri='/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/holds/HL6ckujG3wcPvCI2yQscEV7W') \ No newline at end of file diff --git a/scenarios/account_capture_hold/python.mako b/scenarios/account_capture_hold/python.mako index 7173e0b..b255d50 100644 --- a/scenarios/account_capture_hold/python.mako +++ b/scenarios/account_capture_hold/python.mako @@ -2,6 +2,12 @@ balanced.Account.debit() % else: +import balanced +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") + + +account = balanced.Account.find('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC5YbzH94PeuRxZicqtxCmE8') +account.debit(amount=1000, hold_uri='/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/holds/HL6ckujG3wcPvCI2yQscEV7W') % endif \ No newline at end of file diff --git a/scenarios/account_capture_hold/request.mako b/scenarios/account_capture_hold/request.mako index e69de29..8e8f166 100644 --- a/scenarios/account_capture_hold/request.mako +++ b/scenarios/account_capture_hold/request.mako @@ -0,0 +1,3 @@ +${main.python_boilerplate()} +account = balanced.Account.find('${request['account_uri']}') +account.debit(amount=${payload['amount']}, hold_uri='${payload['hold_uri']}') \ No newline at end of file diff --git a/scenarios/account_create/account_create.py b/scenarios/account_create/account_create.py index 8ba189a..482d995 100644 --- a/scenarios/account_create/account_create.py +++ b/scenarios/account_create/account_create.py @@ -1,6 +1,6 @@ import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") account = balanced.Account().save() \ No newline at end of file diff --git a/scenarios/account_create/python.mako b/scenarios/account_create/python.mako index 41d1603..076d5be 100644 --- a/scenarios/account_create/python.mako +++ b/scenarios/account_create/python.mako @@ -4,7 +4,7 @@ balanced.Account(...).save() % else: import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") account = balanced.Account().save() diff --git a/scenarios/account_create/request.mako b/scenarios/account_create/request.mako index 8ba189a..64edefa 100644 --- a/scenarios/account_create/request.mako +++ b/scenarios/account_create/request.mako @@ -1,6 +1,2 @@ -import balanced - -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") - - +${main.python_boilerplate()} account = balanced.Account().save() \ No newline at end of file diff --git a/scenarios/account_create_buyer/account_create_buyer.py b/scenarios/account_create_buyer/account_create_buyer.py index 963106b..8e6661d 100644 --- a/scenarios/account_create_buyer/account_create_buyer.py +++ b/scenarios/account_create_buyer/account_create_buyer.py @@ -1,8 +1,8 @@ import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") buyer = balanced.Marketplace.my_marketplace.create_buyer( - card_uri='/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/cards/CC1SAhs8uur7HA0JoyocY7Cw', + card_uri='/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/cards/CC5WnLs62QL0arljSl7Q5LVC', ) \ No newline at end of file diff --git a/scenarios/account_create_buyer/python.mako b/scenarios/account_create_buyer/python.mako index 49a1b77..710b614 100644 --- a/scenarios/account_create_buyer/python.mako +++ b/scenarios/account_create_buyer/python.mako @@ -4,11 +4,11 @@ balanced.Account(...).save() % else: import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") buyer = balanced.Marketplace.my_marketplace.create_buyer( - card_uri='/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/cards/CC1SAhs8uur7HA0JoyocY7Cw', + card_uri='/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/cards/CC5WnLs62QL0arljSl7Q5LVC', ) % endif \ No newline at end of file diff --git a/scenarios/account_create_buyer/request.mako b/scenarios/account_create_buyer/request.mako index 963106b..83252e4 100644 --- a/scenarios/account_create_buyer/request.mako +++ b/scenarios/account_create_buyer/request.mako @@ -1,8 +1,6 @@ -import balanced - -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") - - +${main.python_boilerplate()} buyer = balanced.Marketplace.my_marketplace.create_buyer( - card_uri='/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/cards/CC1SAhs8uur7HA0JoyocY7Cw', +% for k, v in payload.iteritems(): + ${k}='${v}', +% endfor ) \ No newline at end of file diff --git a/scenarios/account_create_debit/account_create_debit.py b/scenarios/account_create_debit/account_create_debit.py index e69de29..ad4bbac 100644 --- a/scenarios/account_create_debit/account_create_debit.py +++ b/scenarios/account_create_debit/account_create_debit.py @@ -0,0 +1,7 @@ +import balanced + +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") + + +account = balanced.Account.find('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC5YbzH94PeuRxZicqtxCmE8') +account.debit(amount='1000') \ No newline at end of file diff --git a/scenarios/account_create_debit/python.mako b/scenarios/account_create_debit/python.mako index 7173e0b..ec64c37 100644 --- a/scenarios/account_create_debit/python.mako +++ b/scenarios/account_create_debit/python.mako @@ -2,6 +2,12 @@ balanced.Account.debit() % else: +import balanced +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") + + +account = balanced.Account.find('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC5YbzH94PeuRxZicqtxCmE8') +account.debit(amount='1000') % endif \ No newline at end of file diff --git a/scenarios/account_create_debit/request.mako b/scenarios/account_create_debit/request.mako index e69de29..8b10fb1 100644 --- a/scenarios/account_create_debit/request.mako +++ b/scenarios/account_create_debit/request.mako @@ -0,0 +1,3 @@ +${main.python_boilerplate()} +account = balanced.Account.find('${request['account_uri']}') +account.debit(amount='${payload['amount']}') \ No newline at end of file diff --git a/scenarios/account_create_hold/account_create_hold.py b/scenarios/account_create_hold/account_create_hold.py index ff37591..f2d4886 100644 --- a/scenarios/account_create_hold/account_create_hold.py +++ b/scenarios/account_create_hold/account_create_hold.py @@ -1,6 +1,7 @@ import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") -account = balanced.Account.find('/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/accounts/AC1SUaFl5mNtKGOA3LeO2IxN') -account.hold(100) \ No newline at end of file + +account = balanced.Account.find('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC5YbzH94PeuRxZicqtxCmE8') +account.hold(amount='1000') \ No newline at end of file diff --git a/scenarios/account_create_hold/definition.mako b/scenarios/account_create_hold/definition.mako index a4f0bda..38e898c 100644 --- a/scenarios/account_create_hold/definition.mako +++ b/scenarios/account_create_hold/definition.mako @@ -1 +1 @@ -balanced.Account.hold() +balanced.Account.debit() \ No newline at end of file diff --git a/scenarios/account_create_hold/python.mako b/scenarios/account_create_hold/python.mako index c010f7b..4f71e94 100644 --- a/scenarios/account_create_hold/python.mako +++ b/scenarios/account_create_hold/python.mako @@ -1,10 +1,13 @@ % if mode == 'definition': -balanced.Account.hold() + +balanced.Account.debit() % else: import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") + + +account = balanced.Account.find('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC5YbzH94PeuRxZicqtxCmE8') +account.hold(amount='1000') -account = balanced.Account.find('/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/accounts/AC1SUaFl5mNtKGOA3LeO2IxN') -account.hold(100) -% endif +% endif \ No newline at end of file diff --git a/scenarios/account_create_hold/request.mako b/scenarios/account_create_hold/request.mako index 97151a1..7f5b101 100644 --- a/scenarios/account_create_hold/request.mako +++ b/scenarios/account_create_hold/request.mako @@ -1,6 +1,3 @@ -import balanced - -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") - -account = balanced.Account.find('/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/accounts/AC1SUaFl5mNtKGOA3LeO2IxN') -account.hold(100) +${main.python_boilerplate()} +account = balanced.Account.find('${request['account_uri']}') +account.hold(amount='${payload['amount']}') \ No newline at end of file diff --git a/scenarios/account_create_merchant/account_create_merchant.py b/scenarios/account_create_merchant/account_create_merchant.py index fe8f772..ddef028 100644 --- a/scenarios/account_create_merchant/account_create_merchant.py +++ b/scenarios/account_create_merchant/account_create_merchant.py @@ -1,7 +1,7 @@ import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") -account = balanced.Account.find('/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/accounts/AC2CcqNuwOGPFi8oaeeVik6y') -account.add_bank_account('/v1/bank_accounts/BA2G3VwpWEazRJliQSQfDmgU') \ No newline at end of file +account = balanced.Account.find('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg') +account.add_bank_account('/v1/bank_accounts/BA4gGTZiAgLomq8IjMjYcB32') \ No newline at end of file diff --git a/scenarios/account_create_merchant/python.mako b/scenarios/account_create_merchant/python.mako index 88e8ab8..8075918 100644 --- a/scenarios/account_create_merchant/python.mako +++ b/scenarios/account_create_merchant/python.mako @@ -4,10 +4,10 @@ balanced.Account.add_bank_account % else: import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") -account = balanced.Account.find('/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/accounts/AC2CcqNuwOGPFi8oaeeVik6y') -account.add_bank_account('/v1/bank_accounts/BA2G3VwpWEazRJliQSQfDmgU') +account = balanced.Account.find('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg') +account.add_bank_account('/v1/bank_accounts/BA4gGTZiAgLomq8IjMjYcB32') % endif \ No newline at end of file diff --git a/scenarios/account_create_merchant/request.mako b/scenarios/account_create_merchant/request.mako index fe8f772..a2ccc52 100644 --- a/scenarios/account_create_merchant/request.mako +++ b/scenarios/account_create_merchant/request.mako @@ -1,7 +1,3 @@ -import balanced - -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") - - -account = balanced.Account.find('/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/accounts/AC2CcqNuwOGPFi8oaeeVik6y') -account.add_bank_account('/v1/bank_accounts/BA2G3VwpWEazRJliQSQfDmgU') \ No newline at end of file +${main.python_boilerplate()} +account = balanced.Account.find('${request['uri']}') +account.add_bank_account('${payload['bank_account_uri']}') \ No newline at end of file diff --git a/scenarios/account_underwrite_business/account_underwrite_business.py b/scenarios/account_underwrite_business/account_underwrite_business.py index 2ae6d95..1f01625 100644 --- a/scenarios/account_underwrite_business/account_underwrite_business.py +++ b/scenarios/account_underwrite_business/account_underwrite_business.py @@ -1,6 +1,6 @@ import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") merchant_data = { diff --git a/scenarios/account_underwrite_business/python.mako b/scenarios/account_underwrite_business/python.mako index 7392088..450674f 100644 --- a/scenarios/account_underwrite_business/python.mako +++ b/scenarios/account_underwrite_business/python.mako @@ -4,7 +4,7 @@ balanced.Marketplace.create_merchant() % else: import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") merchant_data = { diff --git a/scenarios/account_underwrite_business/request.mako b/scenarios/account_underwrite_business/request.mako index 2ae6d95..c66abbd 100644 --- a/scenarios/account_underwrite_business/request.mako +++ b/scenarios/account_underwrite_business/request.mako @@ -1,32 +1,5 @@ -import balanced - -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") - - +${main.python_boilerplate()} merchant_data = { - 'phone_number': '+140899188155', - 'name': 'Skripts4Kids', - 'postal_code': '91111', - 'type': 'business', - 'street_address': '555 VoidMain Road', - 'tax_id': '211111111', - 'person': { - 'dob': '1989-12', - 'phone_number': '+14089999999', - 'postal_code': '94110', - 'name': 'Timmy Q. CopyPasta', - 'street_address': '121 Skriptkid Row', - }, -} - - -account = balanced.Account().save() - -try: - account.add_merchant(merchant_data) -except balanced.exc.MoreInformationRequiredError as ex: - # could not identify this account. - print 'redirect merchant to:', ex.redirect_uri -except balanced.exc.HTTPError as error: - # TODO: handle 400 and 409 exceptions as required - raise \ No newline at end of file +% for k, v in payload['merchant'].iteritems(): + % if k != 'person': + '${k}': '${v}', \ No newline at end of file diff --git a/scenarios/account_underwrite_person/account_underwrite_person.py b/scenarios/account_underwrite_person/account_underwrite_person.py index 60e2761..29c06f9 100644 --- a/scenarios/account_underwrite_person/account_underwrite_person.py +++ b/scenarios/account_underwrite_person/account_underwrite_person.py @@ -1,6 +1,6 @@ import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") merchant_data = { diff --git a/scenarios/account_underwrite_person/python.mako b/scenarios/account_underwrite_person/python.mako index 05edc38..37d251f 100644 --- a/scenarios/account_underwrite_person/python.mako +++ b/scenarios/account_underwrite_person/python.mako @@ -4,7 +4,7 @@ balanced.Marketplace.create_merchant() % else: import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") merchant_data = { diff --git a/scenarios/account_underwrite_person/request.mako b/scenarios/account_underwrite_person/request.mako index 60e2761..7d1e2ca 100644 --- a/scenarios/account_underwrite_person/request.mako +++ b/scenarios/account_underwrite_person/request.mako @@ -1,15 +1,8 @@ -import balanced - -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") - - +${main.python_boilerplate()} merchant_data = { - 'phone_number': '+14089999999', - 'name': 'Timmy Q. CopyPasta', - 'dob': '1989-12', - 'postal_code': '94110', - 'type': 'person', - 'street_address': '121 Skriptkid Row', +% for k, v in payload['merchant'].iteritems(): + '${k}': '${v}', +% endfor } diff --git a/scenarios/bank_account_create/bank_account_create.py b/scenarios/bank_account_create/bank_account_create.py index 158fd82..c57c346 100644 --- a/scenarios/bank_account_create/bank_account_create.py +++ b/scenarios/bank_account_create/bank_account_create.py @@ -1,6 +1,6 @@ import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") bank_account = balanced.BankAccount( diff --git a/scenarios/bank_account_create/python.mako b/scenarios/bank_account_create/python.mako index a0aaa91..e8d9faa 100644 --- a/scenarios/bank_account_create/python.mako +++ b/scenarios/bank_account_create/python.mako @@ -4,7 +4,7 @@ balanced.BankAccount.save() % else: import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") bank_account = balanced.BankAccount( diff --git a/scenarios/bank_account_create/request.mako b/scenarios/bank_account_create/request.mako index 158fd82..0b29465 100644 --- a/scenarios/bank_account_create/request.mako +++ b/scenarios/bank_account_create/request.mako @@ -1,11 +1,6 @@ -import balanced - -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") - - +${main.python_boilerplate()} bank_account = balanced.BankAccount( - routing_number='121000358', - type='checking', - account_number='9900000001', - name='Johann Bernoulli', +% for k, v in payload.iteritems(): + ${k}='${v}', +% endfor ).save() \ No newline at end of file diff --git a/scenarios/bank_account_delete/bank_account_delete.py b/scenarios/bank_account_delete/bank_account_delete.py index 5665ab0..58b7a50 100644 --- a/scenarios/bank_account_delete/bank_account_delete.py +++ b/scenarios/bank_account_delete/bank_account_delete.py @@ -1,7 +1,7 @@ import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") -bank_account = balanced.BankAccount.find("/v1/bank_accounts/BA2af6ai3i6WZZ0FMrI4OKhk") +bank_account = balanced.BankAccount.find("/v1/bank_accounts/BA4sfKpb9c7jNeC6iHKvFwDc") bank_account.delete() \ No newline at end of file diff --git a/scenarios/bank_account_delete/python.mako b/scenarios/bank_account_delete/python.mako index 4673fc4..9a9b4f1 100644 --- a/scenarios/bank_account_delete/python.mako +++ b/scenarios/bank_account_delete/python.mako @@ -4,10 +4,10 @@ balanced.BankAccount.delete() % else: import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") -bank_account = balanced.BankAccount.find("/v1/bank_accounts/BA2af6ai3i6WZZ0FMrI4OKhk") +bank_account = balanced.BankAccount.find("/v1/bank_accounts/BA4sfKpb9c7jNeC6iHKvFwDc") bank_account.delete() % endif \ No newline at end of file diff --git a/scenarios/bank_account_delete/request.mako b/scenarios/bank_account_delete/request.mako index 5665ab0..a769139 100644 --- a/scenarios/bank_account_delete/request.mako +++ b/scenarios/bank_account_delete/request.mako @@ -1,7 +1,3 @@ -import balanced - -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") - - -bank_account = balanced.BankAccount.find("/v1/bank_accounts/BA2af6ai3i6WZZ0FMrI4OKhk") +${main.python_boilerplate()} +bank_account = balanced.BankAccount.find("${request['uri']}") bank_account.delete() \ No newline at end of file diff --git a/scenarios/bank_account_find_and_credit/bank_account_find_and_credit.py b/scenarios/bank_account_find_and_credit/bank_account_find_and_credit.py index ba84901..e69de29 100644 --- a/scenarios/bank_account_find_and_credit/bank_account_find_and_credit.py +++ b/scenarios/bank_account_find_and_credit/bank_account_find_and_credit.py @@ -1,7 +0,0 @@ -import balanced - -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") - - -bank_account = balanced.BankAccount.find("/v1/bank_accounts/BA3CGZogWn0gWzoYA5jALkZs") -bank_account.credit(1000) \ No newline at end of file diff --git a/scenarios/bank_account_find_and_credit/python.mako b/scenarios/bank_account_find_and_credit/python.mako index 024256d..138bb5e 100644 --- a/scenarios/bank_account_find_and_credit/python.mako +++ b/scenarios/bank_account_find_and_credit/python.mako @@ -2,12 +2,6 @@ % else: -import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") - - -bank_account = balanced.BankAccount.find("/v1/bank_accounts/BA3CGZogWn0gWzoYA5jALkZs") -bank_account.credit(1000) % endif \ No newline at end of file diff --git a/scenarios/bank_account_find_and_credit/request.mako b/scenarios/bank_account_find_and_credit/request.mako index ba84901..e69de29 100644 --- a/scenarios/bank_account_find_and_credit/request.mako +++ b/scenarios/bank_account_find_and_credit/request.mako @@ -1,7 +0,0 @@ -import balanced - -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") - - -bank_account = balanced.BankAccount.find("/v1/bank_accounts/BA3CGZogWn0gWzoYA5jALkZs") -bank_account.credit(1000) \ No newline at end of file diff --git a/scenarios/bank_account_find_and_delete/bank_account_find_and_delete.py b/scenarios/bank_account_find_and_delete/bank_account_find_and_delete.py index 3cc26a3..e69de29 100644 --- a/scenarios/bank_account_find_and_delete/bank_account_find_and_delete.py +++ b/scenarios/bank_account_find_and_delete/bank_account_find_and_delete.py @@ -1,7 +0,0 @@ -import balanced - -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") - - -bank_account = balanced.BankAccount.find("/v1/bank_accounts/BA3CGZogWn0gWzoYA5jALkZs") -bank_account.delete() \ No newline at end of file diff --git a/scenarios/bank_account_find_and_delete/python.mako b/scenarios/bank_account_find_and_delete/python.mako index 2eb47e2..138bb5e 100644 --- a/scenarios/bank_account_find_and_delete/python.mako +++ b/scenarios/bank_account_find_and_delete/python.mako @@ -2,12 +2,6 @@ % else: -import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") - - -bank_account = balanced.BankAccount.find("/v1/bank_accounts/BA3CGZogWn0gWzoYA5jALkZs") -bank_account.delete() % endif \ No newline at end of file diff --git a/scenarios/bank_account_find_and_delete/request.mako b/scenarios/bank_account_find_and_delete/request.mako index 3cc26a3..e69de29 100644 --- a/scenarios/bank_account_find_and_delete/request.mako +++ b/scenarios/bank_account_find_and_delete/request.mako @@ -1,7 +0,0 @@ -import balanced - -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") - - -bank_account = balanced.BankAccount.find("/v1/bank_accounts/BA3CGZogWn0gWzoYA5jALkZs") -bank_account.delete() \ No newline at end of file diff --git a/scenarios/bank_account_invalid_routing_number/bank_account_invalid_routing_number.py b/scenarios/bank_account_invalid_routing_number/bank_account_invalid_routing_number.py index d905a04..05f48f4 100644 --- a/scenarios/bank_account_invalid_routing_number/bank_account_invalid_routing_number.py +++ b/scenarios/bank_account_invalid_routing_number/bank_account_invalid_routing_number.py @@ -1,6 +1,6 @@ import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") bank_account = balanced.BankAccount( diff --git a/scenarios/bank_account_invalid_routing_number/python.mako b/scenarios/bank_account_invalid_routing_number/python.mako index 1f10b61..0f64316 100644 --- a/scenarios/bank_account_invalid_routing_number/python.mako +++ b/scenarios/bank_account_invalid_routing_number/python.mako @@ -4,7 +4,7 @@ balanced.exc.HTTPError % else: import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") bank_account = balanced.BankAccount( diff --git a/scenarios/bank_account_invalid_routing_number/request.mako b/scenarios/bank_account_invalid_routing_number/request.mako index d905a04..40e1a59 100644 --- a/scenarios/bank_account_invalid_routing_number/request.mako +++ b/scenarios/bank_account_invalid_routing_number/request.mako @@ -1,13 +1,8 @@ -import balanced - -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") - - +${main.python_boilerplate()} bank_account = balanced.BankAccount( - routing_number='111111118', - type='checking', - account_number='9900000001', - name='Johann Bernoulli', +% for k, v in payload.iteritems(): + ${k}='${v}', +% endfor ) try: diff --git a/scenarios/bank_account_list/bank_account_list.py b/scenarios/bank_account_list/bank_account_list.py index e41c93a..95e53b5 100644 --- a/scenarios/bank_account_list/bank_account_list.py +++ b/scenarios/bank_account_list/bank_account_list.py @@ -1,6 +1,6 @@ import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") bank_accounts = balanced.BankAccount.query.all() \ No newline at end of file diff --git a/scenarios/bank_account_list/python.mako b/scenarios/bank_account_list/python.mako index 0a08557..d5071e7 100644 --- a/scenarios/bank_account_list/python.mako +++ b/scenarios/bank_account_list/python.mako @@ -4,7 +4,7 @@ balanced.BankAccount.query() % else: import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") bank_accounts = balanced.BankAccount.query.all() diff --git a/scenarios/bank_account_list/request.mako b/scenarios/bank_account_list/request.mako index e41c93a..c022e1d 100644 --- a/scenarios/bank_account_list/request.mako +++ b/scenarios/bank_account_list/request.mako @@ -1,6 +1,2 @@ -import balanced - -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") - - +${main.python_boilerplate()} bank_accounts = balanced.BankAccount.query.all() \ No newline at end of file diff --git a/scenarios/bank_account_show/bank_account_show.py b/scenarios/bank_account_show/bank_account_show.py index cccb3f3..1efd43e 100644 --- a/scenarios/bank_account_show/bank_account_show.py +++ b/scenarios/bank_account_show/bank_account_show.py @@ -1,6 +1,6 @@ import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") -bank_account = balanced.BankAccount.find("/v1/bank_accounts/BA2fU4b0MNuBHuI3NrvyOsTE") \ No newline at end of file +bank_account = balanced.BankAccount.find("/v1/bank_accounts/BA4xg7wvGiKLcFipQYWsVDJR") \ No newline at end of file diff --git a/scenarios/bank_account_show/python.mako b/scenarios/bank_account_show/python.mako index fee083d..3cf0500 100644 --- a/scenarios/bank_account_show/python.mako +++ b/scenarios/bank_account_show/python.mako @@ -4,9 +4,9 @@ balanced.BankAccount.find % else: import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") -bank_account = balanced.BankAccount.find("/v1/bank_accounts/BA2fU4b0MNuBHuI3NrvyOsTE") +bank_account = balanced.BankAccount.find("/v1/bank_accounts/BA4xg7wvGiKLcFipQYWsVDJR") % endif \ No newline at end of file diff --git a/scenarios/bank_account_show/request.mako b/scenarios/bank_account_show/request.mako index cccb3f3..4e9b037 100644 --- a/scenarios/bank_account_show/request.mako +++ b/scenarios/bank_account_show/request.mako @@ -1,6 +1,2 @@ -import balanced - -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") - - -bank_account = balanced.BankAccount.find("/v1/bank_accounts/BA2fU4b0MNuBHuI3NrvyOsTE") \ No newline at end of file +${main.python_boilerplate()} +bank_account = balanced.BankAccount.find("${request['uri']}") \ No newline at end of file diff --git a/scenarios/bank_account_verification_create/bank_account_verification_create.py b/scenarios/bank_account_verification_create/bank_account_verification_create.py index 5aee92d..2ece95e 100644 --- a/scenarios/bank_account_verification_create/bank_account_verification_create.py +++ b/scenarios/bank_account_verification_create/bank_account_verification_create.py @@ -1,7 +1,7 @@ import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") -bank_account = balanced.BankAccount.find("/v1/bank_accounts/BA2k3nC4a9llhZFWsBjdGuKI") +bank_account = balanced.BankAccount.find("/v1/bank_accounts/BA4nq1HLwfp2rdKClyX39lRu") verification = bank_account.verify() \ No newline at end of file diff --git a/scenarios/bank_account_verification_create/python.mako b/scenarios/bank_account_verification_create/python.mako index 4e8ec28..dd460fb 100644 --- a/scenarios/bank_account_verification_create/python.mako +++ b/scenarios/bank_account_verification_create/python.mako @@ -4,10 +4,10 @@ balanced.Verification().save() % else: import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") -bank_account = balanced.BankAccount.find("/v1/bank_accounts/BA2k3nC4a9llhZFWsBjdGuKI") +bank_account = balanced.BankAccount.find("/v1/bank_accounts/BA4nq1HLwfp2rdKClyX39lRu") verification = bank_account.verify() % endif \ No newline at end of file diff --git a/scenarios/bank_account_verification_create/request.mako b/scenarios/bank_account_verification_create/request.mako index 5aee92d..e48a40f 100644 --- a/scenarios/bank_account_verification_create/request.mako +++ b/scenarios/bank_account_verification_create/request.mako @@ -1,7 +1,3 @@ -import balanced - -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") - - -bank_account = balanced.BankAccount.find("/v1/bank_accounts/BA2k3nC4a9llhZFWsBjdGuKI") +${main.python_boilerplate()} +bank_account = balanced.BankAccount.find("${request['bank_account_uri']}") verification = bank_account.verify() \ No newline at end of file diff --git a/scenarios/bank_account_verification_show/bank_account_verification_show.py b/scenarios/bank_account_verification_show/bank_account_verification_show.py index 9cbf7fb..abd3773 100644 --- a/scenarios/bank_account_verification_show/bank_account_verification_show.py +++ b/scenarios/bank_account_verification_show/bank_account_verification_show.py @@ -1,8 +1,8 @@ import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") -bank_account = balanced.BankAccount.find("/v1/bank_accounts/BA2mettVyrsL0krXEXeS1kes") +bank_account = balanced.BankAccount.find("/v1/bank_accounts/BA4oTAYv3ma0dGTWzRAJjBP9") verification = bank_account.verification \ No newline at end of file diff --git a/scenarios/bank_account_verification_show/python.mako b/scenarios/bank_account_verification_show/python.mako index b8dea9a..95ee050 100644 --- a/scenarios/bank_account_verification_show/python.mako +++ b/scenarios/bank_account_verification_show/python.mako @@ -4,11 +4,11 @@ balanced.Verification.find % else: import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") -bank_account = balanced.BankAccount.find("/v1/bank_accounts/BA2mettVyrsL0krXEXeS1kes") +bank_account = balanced.BankAccount.find("/v1/bank_accounts/BA4oTAYv3ma0dGTWzRAJjBP9") verification = bank_account.verification % endif \ No newline at end of file diff --git a/scenarios/bank_account_verification_show/request.mako b/scenarios/bank_account_verification_show/request.mako index 9cbf7fb..2d1676d 100644 --- a/scenarios/bank_account_verification_show/request.mako +++ b/scenarios/bank_account_verification_show/request.mako @@ -1,8 +1,4 @@ -import balanced +${main.python_boilerplate()} -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") - - - -bank_account = balanced.BankAccount.find("/v1/bank_accounts/BA2mettVyrsL0krXEXeS1kes") +bank_account = balanced.BankAccount.find("${request['bank_account_uri']}") verification = bank_account.verification \ No newline at end of file diff --git a/scenarios/bank_account_verification_update/bank_account_verification_update.py b/scenarios/bank_account_verification_update/bank_account_verification_update.py index 25d2e2d..a4c7036 100644 --- a/scenarios/bank_account_verification_update/bank_account_verification_update.py +++ b/scenarios/bank_account_verification_update/bank_account_verification_update.py @@ -1,9 +1,9 @@ import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") -bank_account = balanced.BankAccount.find('/v1/bank_accounts/BA2q0W6DqBAtytLyfBAD4p3y') +bank_account = balanced.BankAccount.find('/v1/bank_accounts/BA4sfKpb9c7jNeC6iHKvFwDc') verification = bank_account.verification verification.amount_1 = 1 verification.amount_2 = 1 diff --git a/scenarios/bank_account_verification_update/python.mako b/scenarios/bank_account_verification_update/python.mako index 843dd87..5da3245 100644 --- a/scenarios/bank_account_verification_update/python.mako +++ b/scenarios/bank_account_verification_update/python.mako @@ -4,10 +4,10 @@ balanced.Verification.save % else: import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") -bank_account = balanced.BankAccount.find('/v1/bank_accounts/BA2q0W6DqBAtytLyfBAD4p3y') +bank_account = balanced.BankAccount.find('/v1/bank_accounts/BA4sfKpb9c7jNeC6iHKvFwDc') verification = bank_account.verification verification.amount_1 = 1 verification.amount_2 = 1 diff --git a/scenarios/bank_account_verification_update/request.mako b/scenarios/bank_account_verification_update/request.mako index 25d2e2d..95eb346 100644 --- a/scenarios/bank_account_verification_update/request.mako +++ b/scenarios/bank_account_verification_update/request.mako @@ -1,10 +1,7 @@ -import balanced - -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") - - -bank_account = balanced.BankAccount.find('/v1/bank_accounts/BA2q0W6DqBAtytLyfBAD4p3y') +${main.python_boilerplate()} +bank_account = balanced.BankAccount.find('${request['bank_account_uri']}') verification = bank_account.verification -verification.amount_1 = 1 -verification.amount_2 = 1 + % for k, v in payload.iteritems(): +verification.${k} = ${v} + % endfor verification.save \ No newline at end of file diff --git a/scenarios/callback_create/definition.mako b/scenarios/callback_create/definition.mako index e69de29..c87c1bc 100644 --- a/scenarios/callback_create/definition.mako +++ b/scenarios/callback_create/definition.mako @@ -0,0 +1 @@ +balanced.Callback().save() \ No newline at end of file diff --git a/scenarios/callback_create/python.mako b/scenarios/callback_create/python.mako index 138bb5e..036eda2 100644 --- a/scenarios/callback_create/python.mako +++ b/scenarios/callback_create/python.mako @@ -1,6 +1,6 @@ % if mode == 'definition': - +balanced.Callback().save() % else: diff --git a/scenarios/callback_create/request.mako b/scenarios/callback_create/request.mako index e69de29..291920c 100644 --- a/scenarios/callback_create/request.mako +++ b/scenarios/callback_create/request.mako @@ -0,0 +1,6 @@ +${main.python_boilerplate()} + callback = balanced.Callback( + % for k, v in payload.iteritems(): + ${k}='${v}', + % endfor + ).save() \ No newline at end of file diff --git a/scenarios/customer_capture_hold/python.mako b/scenarios/callback_delete/callback_delete.py similarity index 100% rename from scenarios/customer_capture_hold/python.mako rename to scenarios/callback_delete/callback_delete.py diff --git a/scenarios/callback_delete/python.mako b/scenarios/callback_delete/python.mako index e69de29..2c3f807 100644 --- a/scenarios/callback_delete/python.mako +++ b/scenarios/callback_delete/python.mako @@ -0,0 +1,7 @@ +% if mode == 'definition': + +balanced.Callback().delete() +% else: + + +% endif \ No newline at end of file diff --git a/scenarios/callback_list/definition.mako b/scenarios/callback_list/definition.mako index e69de29..1442adf 100644 --- a/scenarios/callback_list/definition.mako +++ b/scenarios/callback_list/definition.mako @@ -0,0 +1 @@ +balanced.Callback.query \ No newline at end of file diff --git a/scenarios/callback_list/python.mako b/scenarios/callback_list/python.mako index 138bb5e..44f67b3 100644 --- a/scenarios/callback_list/python.mako +++ b/scenarios/callback_list/python.mako @@ -1,6 +1,6 @@ % if mode == 'definition': - +balanced.Callback.query % else: diff --git a/scenarios/callback_list/request.mako b/scenarios/callback_list/request.mako index e69de29..fb73a8f 100644 --- a/scenarios/callback_list/request.mako +++ b/scenarios/callback_list/request.mako @@ -0,0 +1,2 @@ +${main.python_boilerplate()} +callbacks = balanced.Callback.query.all(); \ No newline at end of file diff --git a/scenarios/callback_show/callback_show.py b/scenarios/callback_show/callback_show.py new file mode 100644 index 0000000..e69de29 diff --git a/scenarios/callback_show/python.mako b/scenarios/callback_show/python.mako index e69de29..d700a9d 100644 --- a/scenarios/callback_show/python.mako +++ b/scenarios/callback_show/python.mako @@ -0,0 +1,7 @@ +% if mode == 'definition': + +balanced.Callback.find +% else: + + +% endif \ No newline at end of file diff --git a/scenarios/card_create/card_create.py b/scenarios/card_create/card_create.py index 8a4c95b..bec4180 100644 --- a/scenarios/card_create/card_create.py +++ b/scenarios/card_create/card_create.py @@ -1,6 +1,6 @@ import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") card = balanced.Card( diff --git a/scenarios/card_create/python.mako b/scenarios/card_create/python.mako index 575f74a..80d5a8c 100644 --- a/scenarios/card_create/python.mako +++ b/scenarios/card_create/python.mako @@ -4,7 +4,7 @@ balanced.Card.save() % else: import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") card = balanced.Card( diff --git a/scenarios/card_create/request.mako b/scenarios/card_create/request.mako index 8a4c95b..3297882 100644 --- a/scenarios/card_create/request.mako +++ b/scenarios/card_create/request.mako @@ -1,11 +1,6 @@ -import balanced - -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") - - +${main.python_boilerplate()} card = balanced.Card( - expiration_month='12', - security_code='123', - card_number='5105105105105100', - expiration_year='2020', +% for k, v in payload.iteritems(): + ${k}='${v}', +% endfor ).save() \ No newline at end of file diff --git a/scenarios/card_delete/card_delete.py b/scenarios/card_delete/card_delete.py deleted file mode 100644 index 6813837..0000000 --- a/scenarios/card_delete/card_delete.py +++ /dev/null @@ -1,7 +0,0 @@ -import balanced - -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") - - -card = balanced.Card.find("/v1/bank_accounts/BA2af6ai3i6WZZ0FMrI4OKhk") -card.unstore() \ No newline at end of file diff --git a/scenarios/card_delete/definition.mako b/scenarios/card_delete/definition.mako deleted file mode 100644 index 52e2dee..0000000 --- a/scenarios/card_delete/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.Card.unstore() \ No newline at end of file diff --git a/scenarios/card_delete/python.mako b/scenarios/card_delete/python.mako deleted file mode 100644 index 9edbc03..0000000 --- a/scenarios/card_delete/python.mako +++ /dev/null @@ -1,13 +0,0 @@ -% if mode == 'definition': - -balanced.Card.unstore() -% else: -import balanced - -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") - - -card = balanced.Card.find("/v1/bank_accounts/BA2af6ai3i6WZZ0FMrI4OKhk") -card.unstore() - -% endif \ No newline at end of file diff --git a/scenarios/card_delete/request.mako b/scenarios/card_delete/request.mako deleted file mode 100644 index 6813837..0000000 --- a/scenarios/card_delete/request.mako +++ /dev/null @@ -1,7 +0,0 @@ -import balanced - -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") - - -card = balanced.Card.find("/v1/bank_accounts/BA2af6ai3i6WZZ0FMrI4OKhk") -card.unstore() \ No newline at end of file diff --git a/scenarios/card_invalidate/card_invalidate.py b/scenarios/card_invalidate/card_invalidate.py index 4b777e5..9e61b57 100644 --- a/scenarios/card_invalidate/card_invalidate.py +++ b/scenarios/card_invalidate/card_invalidate.py @@ -1,8 +1,8 @@ import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") -card = balanced.Card.find('/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/cards/CC2thwNijAS2qdwoWtqanNh6') +card = balanced.Card.find('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/cards/CC4DcM3FqXvWA3oIzVgwrG2s') card.is_valid = False card.save() \ No newline at end of file diff --git a/scenarios/card_invalidate/python.mako b/scenarios/card_invalidate/python.mako index aa1f219..7ef740a 100644 --- a/scenarios/card_invalidate/python.mako +++ b/scenarios/card_invalidate/python.mako @@ -4,10 +4,10 @@ balanced.Card.save() % else: import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") -card = balanced.Card.find('/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/cards/CC2thwNijAS2qdwoWtqanNh6') +card = balanced.Card.find('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/cards/CC4DcM3FqXvWA3oIzVgwrG2s') card.is_valid = False card.save() diff --git a/scenarios/card_invalidate/request.mako b/scenarios/card_invalidate/request.mako index 4b777e5..b497951 100644 --- a/scenarios/card_invalidate/request.mako +++ b/scenarios/card_invalidate/request.mako @@ -1,8 +1,4 @@ -import balanced - -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") - - -card = balanced.Card.find('/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/cards/CC2thwNijAS2qdwoWtqanNh6') +${main.python_boilerplate()} +card = balanced.Card.find('${request['uri']}') card.is_valid = False card.save() \ No newline at end of file diff --git a/scenarios/card_list/card_list.py b/scenarios/card_list/card_list.py index f4c7adc..80b0f23 100644 --- a/scenarios/card_list/card_list.py +++ b/scenarios/card_list/card_list.py @@ -1,6 +1,6 @@ import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") cards = balanced.Card.query.all(); \ No newline at end of file diff --git a/scenarios/card_list/python.mako b/scenarios/card_list/python.mako index 5308715..8a5a23a 100644 --- a/scenarios/card_list/python.mako +++ b/scenarios/card_list/python.mako @@ -4,7 +4,7 @@ balanced.Card.query() % else: import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") cards = balanced.Card.query.all(); diff --git a/scenarios/card_list/request.mako b/scenarios/card_list/request.mako index f4c7adc..3b20b41 100644 --- a/scenarios/card_list/request.mako +++ b/scenarios/card_list/request.mako @@ -1,6 +1,2 @@ -import balanced - -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") - - +${main.python_boilerplate()} cards = balanced.Card.query.all(); \ No newline at end of file diff --git a/scenarios/card_show/card_show.py b/scenarios/card_show/card_show.py index 91f5fe0..627a315 100644 --- a/scenarios/card_show/card_show.py +++ b/scenarios/card_show/card_show.py @@ -1,6 +1,6 @@ import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") -card = balanced.Card.find("/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/cards/CC2thwNijAS2qdwoWtqanNh6") \ No newline at end of file +card = balanced.Card.find("/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/cards/CC4DcM3FqXvWA3oIzVgwrG2s") \ No newline at end of file diff --git a/scenarios/card_show/python.mako b/scenarios/card_show/python.mako index 12deff1..e782ffa 100644 --- a/scenarios/card_show/python.mako +++ b/scenarios/card_show/python.mako @@ -4,9 +4,9 @@ balanced.Card.find % else: import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") -card = balanced.Card.find("/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/cards/CC2thwNijAS2qdwoWtqanNh6") +card = balanced.Card.find("/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/cards/CC4DcM3FqXvWA3oIzVgwrG2s") % endif \ No newline at end of file diff --git a/scenarios/card_show/request.mako b/scenarios/card_show/request.mako index 91f5fe0..d4c8c0b 100644 --- a/scenarios/card_show/request.mako +++ b/scenarios/card_show/request.mako @@ -1,6 +1,2 @@ -import balanced - -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") - - -card = balanced.Card.find("/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/cards/CC2thwNijAS2qdwoWtqanNh6") \ No newline at end of file +${main.python_boilerplate()} +card = balanced.Card.find("${request['uri']}") \ No newline at end of file diff --git a/scenarios/card_update/card_update.py b/scenarios/card_update/card_update.py index e27fbde..74d8b9b 100644 --- a/scenarios/card_update/card_update.py +++ b/scenarios/card_update/card_update.py @@ -1,9 +1,9 @@ import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") -card = balanced.Card.find('/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/cards/CC2thwNijAS2qdwoWtqanNh6') +card = balanced.Card.find('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/cards/CC4DcM3FqXvWA3oIzVgwrG2s') card.meta = { 'twitter.id': '1234987650', 'facebook.user_id': '0192837465', diff --git a/scenarios/card_update/python.mako b/scenarios/card_update/python.mako index 1af51a1..e73fc13 100644 --- a/scenarios/card_update/python.mako +++ b/scenarios/card_update/python.mako @@ -4,10 +4,10 @@ balanced.Card.save() % else: import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") -card = balanced.Card.find('/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/cards/CC2thwNijAS2qdwoWtqanNh6') +card = balanced.Card.find('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/cards/CC4DcM3FqXvWA3oIzVgwrG2s') card.meta = { 'twitter.id': '1234987650', 'facebook.user_id': '0192837465', diff --git a/scenarios/card_update/request.mako b/scenarios/card_update/request.mako index e27fbde..892ac55 100644 --- a/scenarios/card_update/request.mako +++ b/scenarios/card_update/request.mako @@ -1,12 +1,8 @@ -import balanced - -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") - - -card = balanced.Card.find('/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/cards/CC2thwNijAS2qdwoWtqanNh6') +${main.python_boilerplate()} +card = balanced.Card.find('${request['uri']}') card.meta = { - 'twitter.id': '1234987650', - 'facebook.user_id': '0192837465', - 'my-own-customer-id': '12345', +% for k, v in payload['meta'].iteritems(): + '${k}': '${v}', +% endfor } card.save() \ No newline at end of file diff --git a/scenarios/credit_account_list/credit_account_list.py b/scenarios/credit_account_list/credit_account_list.py index e69de29..65998c0 100644 --- a/scenarios/credit_account_list/credit_account_list.py +++ b/scenarios/credit_account_list/credit_account_list.py @@ -0,0 +1,7 @@ +import balanced + +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") + + +merchant = balanced.Account.find('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg') +credits = merchant.credits.all() \ No newline at end of file diff --git a/scenarios/credit_account_list/python.mako b/scenarios/credit_account_list/python.mako index 5b35f6d..b973899 100644 --- a/scenarios/credit_account_list/python.mako +++ b/scenarios/credit_account_list/python.mako @@ -2,6 +2,12 @@ balanced.Account.credits % else: +import balanced +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") + + +merchant = balanced.Account.find('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg') +credits = merchant.credits.all() % endif \ No newline at end of file diff --git a/scenarios/credit_account_list/request.mako b/scenarios/credit_account_list/request.mako index e69de29..fd563a6 100644 --- a/scenarios/credit_account_list/request.mako +++ b/scenarios/credit_account_list/request.mako @@ -0,0 +1,3 @@ +${main.python_boilerplate()} +merchant = balanced.Account.find('${request['account_uri']}') +credits = merchant.credits.all() \ No newline at end of file diff --git a/scenarios/credit_account_merchant_create/credit_account_merchant_create.py b/scenarios/credit_account_merchant_create/credit_account_merchant_create.py index e69de29..f6fb0e1 100644 --- a/scenarios/credit_account_merchant_create/credit_account_merchant_create.py +++ b/scenarios/credit_account_merchant_create/credit_account_merchant_create.py @@ -0,0 +1,7 @@ +import balanced + +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") + + +merchant = balanced.Account.find('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg') +merchant.credit(100) \ No newline at end of file diff --git a/scenarios/credit_account_merchant_create/python.mako b/scenarios/credit_account_merchant_create/python.mako index b6b4c46..6230459 100644 --- a/scenarios/credit_account_merchant_create/python.mako +++ b/scenarios/credit_account_merchant_create/python.mako @@ -2,6 +2,12 @@ balanced.Account.credit() % else: +import balanced +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") + + +merchant = balanced.Account.find('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg') +merchant.credit(100) % endif \ No newline at end of file diff --git a/scenarios/credit_account_merchant_create/request.mako b/scenarios/credit_account_merchant_create/request.mako index e69de29..7339d9e 100644 --- a/scenarios/credit_account_merchant_create/request.mako +++ b/scenarios/credit_account_merchant_create/request.mako @@ -0,0 +1,3 @@ +${main.python_boilerplate()} +merchant = balanced.Account.find('${request['account_uri']}') +merchant.credit(${payload['amount']}) \ No newline at end of file diff --git a/scenarios/credit_bank_account_list/credit_bank_account_list.py b/scenarios/credit_bank_account_list/credit_bank_account_list.py index 10ac232..1cf85de 100644 --- a/scenarios/credit_bank_account_list/credit_bank_account_list.py +++ b/scenarios/credit_bank_account_list/credit_bank_account_list.py @@ -1,7 +1,7 @@ import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") -bank_account = balanced.BankAccount.find('/v1/bank_accounts/BA2fU4b0MNuBHuI3NrvyOsTE') +bank_account = balanced.BankAccount.find('/v1/bank_accounts/BA4xg7wvGiKLcFipQYWsVDJR') credits = bank_account.credits.all() \ No newline at end of file diff --git a/scenarios/credit_bank_account_list/python.mako b/scenarios/credit_bank_account_list/python.mako index 7eea03e..b08dd83 100644 --- a/scenarios/credit_bank_account_list/python.mako +++ b/scenarios/credit_bank_account_list/python.mako @@ -4,10 +4,10 @@ balanced.BankAccount.credits % else: import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") -bank_account = balanced.BankAccount.find('/v1/bank_accounts/BA2fU4b0MNuBHuI3NrvyOsTE') +bank_account = balanced.BankAccount.find('/v1/bank_accounts/BA4xg7wvGiKLcFipQYWsVDJR') credits = bank_account.credits.all() % endif \ No newline at end of file diff --git a/scenarios/credit_bank_account_list/request.mako b/scenarios/credit_bank_account_list/request.mako index 10ac232..39161cc 100644 --- a/scenarios/credit_bank_account_list/request.mako +++ b/scenarios/credit_bank_account_list/request.mako @@ -1,7 +1,3 @@ -import balanced - -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") - - -bank_account = balanced.BankAccount.find('/v1/bank_accounts/BA2fU4b0MNuBHuI3NrvyOsTE') +${main.python_boilerplate()} +bank_account = balanced.BankAccount.find('${request['uri']}') credits = bank_account.credits.all() \ No newline at end of file diff --git a/scenarios/credit_create_existing_bank_account/credit_create_existing_bank_account.py b/scenarios/credit_create_existing_bank_account/credit_create_existing_bank_account.py index 382d4e2..ebd3002 100644 --- a/scenarios/credit_create_existing_bank_account/credit_create_existing_bank_account.py +++ b/scenarios/credit_create_existing_bank_account/credit_create_existing_bank_account.py @@ -1,7 +1,7 @@ import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") -bank_account = balanced.BankAccount.find('/v1/bank_accounts/BA2fU4b0MNuBHuI3NrvyOsTE') +bank_account = balanced.BankAccount.find('/v1/bank_accounts/BA4xg7wvGiKLcFipQYWsVDJR') credit = bank_account.credit(10000) \ No newline at end of file diff --git a/scenarios/credit_create_existing_bank_account/python.mako b/scenarios/credit_create_existing_bank_account/python.mako index 8c3d929..a4949ff 100644 --- a/scenarios/credit_create_existing_bank_account/python.mako +++ b/scenarios/credit_create_existing_bank_account/python.mako @@ -4,10 +4,10 @@ balanced.BankAccount.credit() % else: import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") -bank_account = balanced.BankAccount.find('/v1/bank_accounts/BA2fU4b0MNuBHuI3NrvyOsTE') +bank_account = balanced.BankAccount.find('/v1/bank_accounts/BA4xg7wvGiKLcFipQYWsVDJR') credit = bank_account.credit(10000) % endif \ No newline at end of file diff --git a/scenarios/credit_create_existing_bank_account/request.mako b/scenarios/credit_create_existing_bank_account/request.mako index 382d4e2..843c824 100644 --- a/scenarios/credit_create_existing_bank_account/request.mako +++ b/scenarios/credit_create_existing_bank_account/request.mako @@ -1,7 +1,3 @@ -import balanced - -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") - - -bank_account = balanced.BankAccount.find('/v1/bank_accounts/BA2fU4b0MNuBHuI3NrvyOsTE') -credit = bank_account.credit(10000) \ No newline at end of file +${main.python_boilerplate()} +bank_account = balanced.BankAccount.find('${request['uri']}') +credit = bank_account.credit(${payload['amount']}) \ No newline at end of file diff --git a/scenarios/credit_create_new_bank_account/credit_create_new_bank_account.py b/scenarios/credit_create_new_bank_account/credit_create_new_bank_account.py index a171545..93a5e7e 100644 --- a/scenarios/credit_create_new_bank_account/credit_create_new_bank_account.py +++ b/scenarios/credit_create_new_bank_account/credit_create_new_bank_account.py @@ -1,6 +1,6 @@ import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") bank_account_info = dict( diff --git a/scenarios/credit_create_new_bank_account/python.mako b/scenarios/credit_create_new_bank_account/python.mako index 393d42f..4980fc2 100644 --- a/scenarios/credit_create_new_bank_account/python.mako +++ b/scenarios/credit_create_new_bank_account/python.mako @@ -4,7 +4,7 @@ balanced.Credit.save() % else: import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") bank_account_info = dict( diff --git a/scenarios/credit_create_new_bank_account/request.mako b/scenarios/credit_create_new_bank_account/request.mako index a171545..a2f4f53 100644 --- a/scenarios/credit_create_new_bank_account/request.mako +++ b/scenarios/credit_create_new_bank_account/request.mako @@ -1,15 +1,10 @@ -import balanced - -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") - - +${main.python_boilerplate()} bank_account_info = dict( - routing_number='121000358', - type='checking', - account_number='9900000001', - name='Johann Bernoulli', +% for k, v in request['bank_account'].iteritems(): + ${k}='${v}', +% endfor ) credit = balanced.Credit( - amount=10000, + amount=${request['amount']}, bank_account=bank_account_info ).save() \ No newline at end of file diff --git a/scenarios/credit_customer_list/credit_customer_list.py b/scenarios/credit_customer_list/credit_customer_list.py deleted file mode 100644 index d15c6d9..0000000 --- a/scenarios/credit_customer_list/credit_customer_list.py +++ /dev/null @@ -1,7 +0,0 @@ -import balanced - -balanced.configure("c72cb360d3ae11e29593026ba7d31e6f") - - -customer = balanced.Customer.find('/v1/customers/CU6PXyMacKRYKNJPJFKtONK0') -credits = customer.credits.all() \ No newline at end of file diff --git a/scenarios/credit_customer_list/definition.mako b/scenarios/credit_customer_list/definition.mako deleted file mode 100644 index ea1513c..0000000 --- a/scenarios/credit_customer_list/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.Customer.credits \ No newline at end of file diff --git a/scenarios/credit_customer_list/python.mako b/scenarios/credit_customer_list/python.mako deleted file mode 100644 index e6a59e9..0000000 --- a/scenarios/credit_customer_list/python.mako +++ /dev/null @@ -1,13 +0,0 @@ -% if mode == 'definition': - -balanced.Customer.credits -% else: -import balanced - -balanced.configure("c72cb360d3ae11e29593026ba7d31e6f") - - -customer = balanced.Customer.find('/v1/customers/CU6PXyMacKRYKNJPJFKtONK0') -credits = customer.credits.all() - -% endif \ No newline at end of file diff --git a/scenarios/credit_customer_list/request.mako b/scenarios/credit_customer_list/request.mako deleted file mode 100644 index d15c6d9..0000000 --- a/scenarios/credit_customer_list/request.mako +++ /dev/null @@ -1,7 +0,0 @@ -import balanced - -balanced.configure("c72cb360d3ae11e29593026ba7d31e6f") - - -customer = balanced.Customer.find('/v1/customers/CU6PXyMacKRYKNJPJFKtONK0') -credits = customer.credits.all() \ No newline at end of file diff --git a/scenarios/credit_failed_state/credit_failed_state.py b/scenarios/credit_failed_state/credit_failed_state.py index 3d88d3d..90fe568 100644 --- a/scenarios/credit_failed_state/credit_failed_state.py +++ b/scenarios/credit_failed_state/credit_failed_state.py @@ -1,12 +1,12 @@ import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") bank_account_info = dict( routing_number='121000358', type='checking', - account_number='9900000005', + account_number='9900000004', name='Johann Bernoulli', ) credit = balanced.Credit( diff --git a/scenarios/credit_failed_state/python.mako b/scenarios/credit_failed_state/python.mako index 6f0a334..fbbe853 100644 --- a/scenarios/credit_failed_state/python.mako +++ b/scenarios/credit_failed_state/python.mako @@ -4,13 +4,13 @@ balanced.Credit.save() % else: import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") bank_account_info = dict( routing_number='121000358', type='checking', - account_number='9900000005', + account_number='9900000004', name='Johann Bernoulli', ) credit = balanced.Credit( diff --git a/scenarios/credit_failed_state/request.mako b/scenarios/credit_failed_state/request.mako index 3d88d3d..a2f4f53 100644 --- a/scenarios/credit_failed_state/request.mako +++ b/scenarios/credit_failed_state/request.mako @@ -1,15 +1,10 @@ -import balanced - -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") - - +${main.python_boilerplate()} bank_account_info = dict( - routing_number='121000358', - type='checking', - account_number='9900000005', - name='Johann Bernoulli', +% for k, v in request['bank_account'].iteritems(): + ${k}='${v}', +% endfor ) credit = balanced.Credit( - amount=10000, + amount=${request['amount']}, bank_account=bank_account_info ).save() \ No newline at end of file diff --git a/scenarios/credit_list/credit_list.py b/scenarios/credit_list/credit_list.py index 40a7c16..c808046 100644 --- a/scenarios/credit_list/credit_list.py +++ b/scenarios/credit_list/credit_list.py @@ -1,6 +1,6 @@ import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") credits = balanced.Credit.query.all() \ No newline at end of file diff --git a/scenarios/credit_list/python.mako b/scenarios/credit_list/python.mako index 03be2cd..5b5300c 100644 --- a/scenarios/credit_list/python.mako +++ b/scenarios/credit_list/python.mako @@ -4,7 +4,7 @@ balanced.Credit.query % else: import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") credits = balanced.Credit.query.all() diff --git a/scenarios/credit_list/request.mako b/scenarios/credit_list/request.mako index 40a7c16..0ec47b6 100644 --- a/scenarios/credit_list/request.mako +++ b/scenarios/credit_list/request.mako @@ -1,6 +1,2 @@ -import balanced - -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") - - +${main.python_boilerplate()} credits = balanced.Credit.query.all() \ No newline at end of file diff --git a/scenarios/credit_paid_state/credit_paid_state.py b/scenarios/credit_paid_state/credit_paid_state.py index ead1543..b81dc4e 100644 --- a/scenarios/credit_paid_state/credit_paid_state.py +++ b/scenarios/credit_paid_state/credit_paid_state.py @@ -1,12 +1,12 @@ import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") bank_account_info = dict( routing_number='121000358', type='checking', - account_number='9900000002', + account_number='9900000003', name='Johann Bernoulli', ) credit = balanced.Credit( diff --git a/scenarios/credit_paid_state/python.mako b/scenarios/credit_paid_state/python.mako index 4341260..f58d808 100644 --- a/scenarios/credit_paid_state/python.mako +++ b/scenarios/credit_paid_state/python.mako @@ -4,13 +4,13 @@ balanced.Credit.save() % else: import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") bank_account_info = dict( routing_number='121000358', type='checking', - account_number='9900000002', + account_number='9900000003', name='Johann Bernoulli', ) credit = balanced.Credit( diff --git a/scenarios/credit_paid_state/request.mako b/scenarios/credit_paid_state/request.mako index ead1543..a2f4f53 100644 --- a/scenarios/credit_paid_state/request.mako +++ b/scenarios/credit_paid_state/request.mako @@ -1,15 +1,10 @@ -import balanced - -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") - - +${main.python_boilerplate()} bank_account_info = dict( - routing_number='121000358', - type='checking', - account_number='9900000002', - name='Johann Bernoulli', +% for k, v in request['bank_account'].iteritems(): + ${k}='${v}', +% endfor ) credit = balanced.Credit( - amount=10000, + amount=${request['amount']}, bank_account=bank_account_info ).save() \ No newline at end of file diff --git a/scenarios/credit_pending_state/credit_pending_state.py b/scenarios/credit_pending_state/credit_pending_state.py index a171545..93a5e7e 100644 --- a/scenarios/credit_pending_state/credit_pending_state.py +++ b/scenarios/credit_pending_state/credit_pending_state.py @@ -1,6 +1,6 @@ import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") bank_account_info = dict( diff --git a/scenarios/credit_pending_state/python.mako b/scenarios/credit_pending_state/python.mako index 393d42f..4980fc2 100644 --- a/scenarios/credit_pending_state/python.mako +++ b/scenarios/credit_pending_state/python.mako @@ -4,7 +4,7 @@ balanced.Credit.save() % else: import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") bank_account_info = dict( diff --git a/scenarios/credit_pending_state/request.mako b/scenarios/credit_pending_state/request.mako index a171545..a2f4f53 100644 --- a/scenarios/credit_pending_state/request.mako +++ b/scenarios/credit_pending_state/request.mako @@ -1,15 +1,10 @@ -import balanced - -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") - - +${main.python_boilerplate()} bank_account_info = dict( - routing_number='121000358', - type='checking', - account_number='9900000001', - name='Johann Bernoulli', +% for k, v in request['bank_account'].iteritems(): + ${k}='${v}', +% endfor ) credit = balanced.Credit( - amount=10000, + amount=${request['amount']}, bank_account=bank_account_info ).save() \ No newline at end of file diff --git a/scenarios/credit_show/credit_show.py b/scenarios/credit_show/credit_show.py index 2610a87..f1c93ac 100644 --- a/scenarios/credit_show/credit_show.py +++ b/scenarios/credit_show/credit_show.py @@ -1,6 +1,6 @@ import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") -credit = balanced.Credit.find('/v1/credits/CR2M7u0Orut0VyFgtba8GAMf') \ No newline at end of file +credit = balanced.Credit.find('/v1/credits/CR4L4fINGRljGmx0jbwH32RA') \ No newline at end of file diff --git a/scenarios/credit_show/python.mako b/scenarios/credit_show/python.mako index 2adc70a..2afb5cd 100644 --- a/scenarios/credit_show/python.mako +++ b/scenarios/credit_show/python.mako @@ -4,9 +4,9 @@ balanced.Credit.find() % else: import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") -credit = balanced.Credit.find('/v1/credits/CR2M7u0Orut0VyFgtba8GAMf') +credit = balanced.Credit.find('/v1/credits/CR4L4fINGRljGmx0jbwH32RA') % endif \ No newline at end of file diff --git a/scenarios/credit_show/request.mako b/scenarios/credit_show/request.mako index 2610a87..9e6d155 100644 --- a/scenarios/credit_show/request.mako +++ b/scenarios/credit_show/request.mako @@ -1,6 +1,2 @@ -import balanced - -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") - - -credit = balanced.Credit.find('/v1/credits/CR2M7u0Orut0VyFgtba8GAMf') \ No newline at end of file +${main.python_boilerplate()} +credit = balanced.Credit.find('${request['uri']}') \ No newline at end of file diff --git a/scenarios/customer_add_bank_account/customer_add_bank_account.py b/scenarios/customer_add_bank_account/customer_add_bank_account.py index 9e4e2e7..c6bcb63 100644 --- a/scenarios/customer_add_bank_account/customer_add_bank_account.py +++ b/scenarios/customer_add_bank_account/customer_add_bank_account.py @@ -1,7 +1,7 @@ import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") -customer = balanced.Customer.find('/v1/customers/CU3Bv5nYd7GOtfJGzw64JfbE') -customer.add_bank_account('/v1/bank_accounts/BA3CGZogWn0gWzoYA5jALkZs') \ No newline at end of file +customer = balanced.Customer.find('/v1/customers/CU54O6mXfm2zETAzuQeMxHpS') +customer.add_bank_account('/v1/bank_accounts/BA55EaXnaE4Yos3ihJawNiaK') \ No newline at end of file diff --git a/scenarios/customer_add_bank_account/python.mako b/scenarios/customer_add_bank_account/python.mako index 7251bb9..59a448f 100644 --- a/scenarios/customer_add_bank_account/python.mako +++ b/scenarios/customer_add_bank_account/python.mako @@ -4,10 +4,10 @@ balanced.Customer.add_bank_account % else: import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") -customer = balanced.Customer.find('/v1/customers/CU3Bv5nYd7GOtfJGzw64JfbE') -customer.add_bank_account('/v1/bank_accounts/BA3CGZogWn0gWzoYA5jALkZs') +customer = balanced.Customer.find('/v1/customers/CU54O6mXfm2zETAzuQeMxHpS') +customer.add_bank_account('/v1/bank_accounts/BA55EaXnaE4Yos3ihJawNiaK') % endif \ No newline at end of file diff --git a/scenarios/customer_add_bank_account/request.mako b/scenarios/customer_add_bank_account/request.mako index 9e4e2e7..a5da127 100644 --- a/scenarios/customer_add_bank_account/request.mako +++ b/scenarios/customer_add_bank_account/request.mako @@ -1,7 +1,3 @@ -import balanced - -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") - - -customer = balanced.Customer.find('/v1/customers/CU3Bv5nYd7GOtfJGzw64JfbE') -customer.add_bank_account('/v1/bank_accounts/BA3CGZogWn0gWzoYA5jALkZs') \ No newline at end of file +${main.python_boilerplate()} +customer = balanced.Customer.find('${request['uri']}') +customer.add_bank_account('${payload['bank_account_uri']}') \ No newline at end of file diff --git a/scenarios/customer_add_card/customer_add_card.py b/scenarios/customer_add_card/customer_add_card.py index c1d4315..8ac7c15 100644 --- a/scenarios/customer_add_card/customer_add_card.py +++ b/scenarios/customer_add_card/customer_add_card.py @@ -1,7 +1,7 @@ import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") -customer = balanced.Customer.find('/v1/customers/CU3yjAGMemMoFZobP2nTfFmo') -customer.add_card('/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/cards/CC3zvlRrKda8oJ5jUNIdk7rg') \ No newline at end of file +customer = balanced.Customer.find('/v1/customers/CU50w7Cg6mD57vSK0K5nMi2i') +customer.add_card('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/cards/CC523BGAwIKAD6qmDRggQW9V') \ No newline at end of file diff --git a/scenarios/customer_add_card/python.mako b/scenarios/customer_add_card/python.mako index da54f98..a482182 100644 --- a/scenarios/customer_add_card/python.mako +++ b/scenarios/customer_add_card/python.mako @@ -4,10 +4,10 @@ balanced.Customer.add_card % else: import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") -customer = balanced.Customer.find('/v1/customers/CU3yjAGMemMoFZobP2nTfFmo') -customer.add_card('/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/cards/CC3zvlRrKda8oJ5jUNIdk7rg') +customer = balanced.Customer.find('/v1/customers/CU50w7Cg6mD57vSK0K5nMi2i') +customer.add_card('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/cards/CC523BGAwIKAD6qmDRggQW9V') % endif \ No newline at end of file diff --git a/scenarios/customer_add_card/request.mako b/scenarios/customer_add_card/request.mako index c1d4315..60dc1e0 100644 --- a/scenarios/customer_add_card/request.mako +++ b/scenarios/customer_add_card/request.mako @@ -1,7 +1,3 @@ -import balanced - -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") - - -customer = balanced.Customer.find('/v1/customers/CU3yjAGMemMoFZobP2nTfFmo') -customer.add_card('/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/cards/CC3zvlRrKda8oJ5jUNIdk7rg') \ No newline at end of file +${main.python_boilerplate()} +customer = balanced.Customer.find('${request['uri']}') +customer.add_card('${payload['card_uri']}') \ No newline at end of file diff --git a/scenarios/customer_capture_hold/definition.mako b/scenarios/customer_capture_hold/definition.mako deleted file mode 100644 index a75cd4c..0000000 --- a/scenarios/customer_capture_hold/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.Customer.debit() \ No newline at end of file diff --git a/scenarios/customer_capture_hold/request.mako b/scenarios/customer_capture_hold/request.mako deleted file mode 100644 index 50191b6..0000000 --- a/scenarios/customer_capture_hold/request.mako +++ /dev/null @@ -1,3 +0,0 @@ -${main.python_boilerplate()} -customer = balanced.Customer.find('${request['customer_uri']}') -customer.debit(amount=${payload['amount']}, hold_uri='${payload['hold_uri']}') \ No newline at end of file diff --git a/scenarios/customer_create/customer_create.py b/scenarios/customer_create/customer_create.py index d33662d..31e2adc 100644 --- a/scenarios/customer_create/customer_create.py +++ b/scenarios/customer_create/customer_create.py @@ -1,6 +1,6 @@ import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") customer = balanced.Customer().save() \ No newline at end of file diff --git a/scenarios/customer_create/python.mako b/scenarios/customer_create/python.mako index 6473d62..b7d5059 100644 --- a/scenarios/customer_create/python.mako +++ b/scenarios/customer_create/python.mako @@ -4,7 +4,7 @@ balanced.Customer(...).save() % else: import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") customer = balanced.Customer().save() diff --git a/scenarios/customer_create/request.mako b/scenarios/customer_create/request.mako index d33662d..86d1590 100644 --- a/scenarios/customer_create/request.mako +++ b/scenarios/customer_create/request.mako @@ -1,6 +1,2 @@ -import balanced - -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") - - +${main.python_boilerplate()} customer = balanced.Customer().save() \ No newline at end of file diff --git a/scenarios/customer_create_debit/customer_create_debit.py b/scenarios/customer_create_debit/customer_create_debit.py deleted file mode 100644 index e8f6b65..0000000 --- a/scenarios/customer_create_debit/customer_create_debit.py +++ /dev/null @@ -1,7 +0,0 @@ -import balanced - -balanced.configure("c72cb360d3ae11e29593026ba7d31e6f") - - -customer = balanced.Customer.find('/v1/customers/CU7GuPv9Y2F8ySwJHuHL0YWq') -customer.debit(amount='1000') \ No newline at end of file diff --git a/scenarios/customer_create_debit/definition.mako b/scenarios/customer_create_debit/definition.mako deleted file mode 100644 index a75cd4c..0000000 --- a/scenarios/customer_create_debit/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.Customer.debit() \ No newline at end of file diff --git a/scenarios/customer_create_debit/python.mako b/scenarios/customer_create_debit/python.mako deleted file mode 100644 index 2be2b4e..0000000 --- a/scenarios/customer_create_debit/python.mako +++ /dev/null @@ -1,13 +0,0 @@ -% if mode == 'definition': - -balanced.Customer.debit() -% else: -import balanced - -balanced.configure("c72cb360d3ae11e29593026ba7d31e6f") - - -customer = balanced.Customer.find('/v1/customers/CU7GuPv9Y2F8ySwJHuHL0YWq') -customer.debit(amount='1000') - -% endif \ No newline at end of file diff --git a/scenarios/customer_create_debit/request.mako b/scenarios/customer_create_debit/request.mako deleted file mode 100644 index e8f6b65..0000000 --- a/scenarios/customer_create_debit/request.mako +++ /dev/null @@ -1,7 +0,0 @@ -import balanced - -balanced.configure("c72cb360d3ae11e29593026ba7d31e6f") - - -customer = balanced.Customer.find('/v1/customers/CU7GuPv9Y2F8ySwJHuHL0YWq') -customer.debit(amount='1000') \ No newline at end of file diff --git a/scenarios/customer_create_hold/customer_create_hold.py b/scenarios/customer_create_hold/customer_create_hold.py deleted file mode 100644 index 4d88ec3..0000000 --- a/scenarios/customer_create_hold/customer_create_hold.py +++ /dev/null @@ -1,7 +0,0 @@ -import balanced - -balanced.configure("c72cb360d3ae11e29593026ba7d31e6f") - - -customer = balanced.Customer.find('/v1/customers/CU7GuPv9Y2F8ySwJHuHL0YWq') -customer.hold(amount='1000') \ No newline at end of file diff --git a/scenarios/customer_create_hold/definition.mako b/scenarios/customer_create_hold/definition.mako deleted file mode 100644 index a75cd4c..0000000 --- a/scenarios/customer_create_hold/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.Customer.debit() \ No newline at end of file diff --git a/scenarios/customer_create_hold/python.mako b/scenarios/customer_create_hold/python.mako deleted file mode 100644 index 9e71d1b..0000000 --- a/scenarios/customer_create_hold/python.mako +++ /dev/null @@ -1,13 +0,0 @@ -% if mode == 'definition': - -balanced.Customer.debit() -% else: -import balanced - -balanced.configure("c72cb360d3ae11e29593026ba7d31e6f") - - -customer = balanced.Customer.find('/v1/customers/CU7GuPv9Y2F8ySwJHuHL0YWq') -customer.hold(amount='1000') - -% endif \ No newline at end of file diff --git a/scenarios/customer_create_hold/request.mako b/scenarios/customer_create_hold/request.mako deleted file mode 100644 index 4d88ec3..0000000 --- a/scenarios/customer_create_hold/request.mako +++ /dev/null @@ -1,7 +0,0 @@ -import balanced - -balanced.configure("c72cb360d3ae11e29593026ba7d31e6f") - - -customer = balanced.Customer.find('/v1/customers/CU7GuPv9Y2F8ySwJHuHL0YWq') -customer.hold(amount='1000') \ No newline at end of file diff --git a/scenarios/customer_credit/customer_credit.py b/scenarios/customer_credit/customer_credit.py deleted file mode 100644 index 5d01b22..0000000 --- a/scenarios/customer_credit/customer_credit.py +++ /dev/null @@ -1,7 +0,0 @@ -import balanced - -balanced.configure("c72cb360d3ae11e29593026ba7d31e6f") - - -customer = balanced.Customer.find('/v1/customers/CU6PXyMacKRYKNJPJFKtONK0') -customer.credit(100) \ No newline at end of file diff --git a/scenarios/customer_credit/definition.mako b/scenarios/customer_credit/definition.mako deleted file mode 100644 index 3dac8ae..0000000 --- a/scenarios/customer_credit/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.Customer.credit() \ No newline at end of file diff --git a/scenarios/customer_credit/python.mako b/scenarios/customer_credit/python.mako deleted file mode 100644 index 2baba54..0000000 --- a/scenarios/customer_credit/python.mako +++ /dev/null @@ -1,13 +0,0 @@ -% if mode == 'definition': - -balanced.Customer.credit() -% else: -import balanced - -balanced.configure("c72cb360d3ae11e29593026ba7d31e6f") - - -customer = balanced.Customer.find('/v1/customers/CU6PXyMacKRYKNJPJFKtONK0') -customer.credit(100) - -% endif \ No newline at end of file diff --git a/scenarios/customer_credit/request.mako b/scenarios/customer_credit/request.mako deleted file mode 100644 index 5d01b22..0000000 --- a/scenarios/customer_credit/request.mako +++ /dev/null @@ -1,7 +0,0 @@ -import balanced - -balanced.configure("c72cb360d3ae11e29593026ba7d31e6f") - - -customer = balanced.Customer.find('/v1/customers/CU6PXyMacKRYKNJPJFKtONK0') -customer.credit(100) \ No newline at end of file diff --git a/scenarios/debit_account_list/debit_account_list.py b/scenarios/debit_account_list/debit_account_list.py index e69de29..8322fdb 100644 --- a/scenarios/debit_account_list/debit_account_list.py +++ b/scenarios/debit_account_list/debit_account_list.py @@ -0,0 +1,7 @@ +import balanced + +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") + + +account = balanced.Account.find('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg') +debits = account.debits.all() \ No newline at end of file diff --git a/scenarios/debit_account_list/python.mako b/scenarios/debit_account_list/python.mako index 44ccbac..543bea0 100644 --- a/scenarios/debit_account_list/python.mako +++ b/scenarios/debit_account_list/python.mako @@ -2,6 +2,12 @@ balanced.Account.debits % else: +import balanced +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") + + +account = balanced.Account.find('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg') +debits = account.debits.all() % endif \ No newline at end of file diff --git a/scenarios/debit_account_list/request.mako b/scenarios/debit_account_list/request.mako index e69de29..2014349 100644 --- a/scenarios/debit_account_list/request.mako +++ b/scenarios/debit_account_list/request.mako @@ -0,0 +1,3 @@ +${main.python_boilerplate()} +account = balanced.Account.find('${request['uri']}') +debits = account.debits.all() \ No newline at end of file diff --git a/scenarios/debit_create/debit_create.py b/scenarios/debit_create/debit_create.py index d64061c..c7bc7a1 100644 --- a/scenarios/debit_create/debit_create.py +++ b/scenarios/debit_create/debit_create.py @@ -1,10 +1,10 @@ import balanced -balanced.configure("c72cb360d3ae11e29593026ba7d31e6f") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") -customer = balanced.Customer.find('/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe') -customer.debit( +buyer = balanced.Account.find('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg') +buyer.debit( appears_on_statement_as='Statement text', amount='5000', description='Some descriptive text for the debit in the dashboard', diff --git a/scenarios/debit_create/definition.mako b/scenarios/debit_create/definition.mako index b1c724b..4577f9c 100644 --- a/scenarios/debit_create/definition.mako +++ b/scenarios/debit_create/definition.mako @@ -1 +1 @@ -balanced.Customer.debit(...) \ No newline at end of file +balanced.Account.debit(...) \ No newline at end of file diff --git a/scenarios/debit_create/python.mako b/scenarios/debit_create/python.mako index a82a306..c54bab2 100644 --- a/scenarios/debit_create/python.mako +++ b/scenarios/debit_create/python.mako @@ -1,14 +1,14 @@ % if mode == 'definition': -balanced.Customer.debit(...) +balanced.Account.debit(...) % else: import balanced -balanced.configure("c72cb360d3ae11e29593026ba7d31e6f") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") -customer = balanced.Customer.find('/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe') -customer.debit( +buyer = balanced.Account.find('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg') +buyer.debit( appears_on_statement_as='Statement text', amount='5000', description='Some descriptive text for the debit in the dashboard', diff --git a/scenarios/debit_create/request.mako b/scenarios/debit_create/request.mako index d64061c..1e74a04 100644 --- a/scenarios/debit_create/request.mako +++ b/scenarios/debit_create/request.mako @@ -1,11 +1,7 @@ -import balanced - -balanced.configure("c72cb360d3ae11e29593026ba7d31e6f") - - -customer = balanced.Customer.find('/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe') -customer.debit( - appears_on_statement_as='Statement text', - amount='5000', - description='Some descriptive text for the debit in the dashboard', +${main.python_boilerplate()} +buyer = balanced.Account.find('${request['account_uri']}') +buyer.debit( +% for k, v in payload.iteritems(): + ${k}='${v}', +% endfor ) \ No newline at end of file diff --git a/scenarios/debit_customer_list/debit_customer_list.py b/scenarios/debit_customer_list/debit_customer_list.py deleted file mode 100644 index ec1696e..0000000 --- a/scenarios/debit_customer_list/debit_customer_list.py +++ /dev/null @@ -1,7 +0,0 @@ -import balanced - -balanced.configure("c72cb360d3ae11e29593026ba7d31e6f") - - -customer = balanced.Customer.find('/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe') -debits = customer.debits.all() \ No newline at end of file diff --git a/scenarios/debit_customer_list/definition.mako b/scenarios/debit_customer_list/definition.mako deleted file mode 100644 index fee5ae3..0000000 --- a/scenarios/debit_customer_list/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.Customer.debits \ No newline at end of file diff --git a/scenarios/debit_customer_list/python.mako b/scenarios/debit_customer_list/python.mako deleted file mode 100644 index 0afc815..0000000 --- a/scenarios/debit_customer_list/python.mako +++ /dev/null @@ -1,13 +0,0 @@ -% if mode == 'definition': - -balanced.Customer.debits -% else: -import balanced - -balanced.configure("c72cb360d3ae11e29593026ba7d31e6f") - - -customer = balanced.Customer.find('/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe') -debits = customer.debits.all() - -% endif \ No newline at end of file diff --git a/scenarios/debit_customer_list/request.mako b/scenarios/debit_customer_list/request.mako deleted file mode 100644 index ec1696e..0000000 --- a/scenarios/debit_customer_list/request.mako +++ /dev/null @@ -1,7 +0,0 @@ -import balanced - -balanced.configure("c72cb360d3ae11e29593026ba7d31e6f") - - -customer = balanced.Customer.find('/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe') -debits = customer.debits.all() \ No newline at end of file diff --git a/scenarios/debit_list/debit_list.py b/scenarios/debit_list/debit_list.py index e343b38..7b2ec35 100644 --- a/scenarios/debit_list/debit_list.py +++ b/scenarios/debit_list/debit_list.py @@ -1,6 +1,6 @@ import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") debits = balanced.Debit.query.all(); \ No newline at end of file diff --git a/scenarios/debit_list/python.mako b/scenarios/debit_list/python.mako index 4a364fd..9b21258 100644 --- a/scenarios/debit_list/python.mako +++ b/scenarios/debit_list/python.mako @@ -4,7 +4,7 @@ balanced.Debit.query() % else: import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") debits = balanced.Debit.query.all(); diff --git a/scenarios/debit_list/request.mako b/scenarios/debit_list/request.mako index e343b38..8aff9dc 100644 --- a/scenarios/debit_list/request.mako +++ b/scenarios/debit_list/request.mako @@ -1,6 +1,2 @@ -import balanced - -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") - - +${main.python_boilerplate()} debits = balanced.Debit.query.all(); \ No newline at end of file diff --git a/scenarios/debit_refund/debit_refund.py b/scenarios/debit_refund/debit_refund.py index 0514240..4daa2eb 100644 --- a/scenarios/debit_refund/debit_refund.py +++ b/scenarios/debit_refund/debit_refund.py @@ -1,7 +1,7 @@ import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") -debit = balanced.Debit.find('/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/debits/WD34DXMbIYa7VCEu6uZFmgZk') +debit = balanced.Debit.find('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/debits/WD5hKOubxx6UWLzsJnQGv5F5') debit.refund() \ No newline at end of file diff --git a/scenarios/debit_refund/python.mako b/scenarios/debit_refund/python.mako index cc7055d..715a803 100644 --- a/scenarios/debit_refund/python.mako +++ b/scenarios/debit_refund/python.mako @@ -4,10 +4,10 @@ balanced.Debit.refund() % else: import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") -debit = balanced.Debit.find('/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/debits/WD34DXMbIYa7VCEu6uZFmgZk') +debit = balanced.Debit.find('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/debits/WD5hKOubxx6UWLzsJnQGv5F5') debit.refund() % endif \ No newline at end of file diff --git a/scenarios/debit_refund/request.mako b/scenarios/debit_refund/request.mako index 0514240..58ff9c6 100644 --- a/scenarios/debit_refund/request.mako +++ b/scenarios/debit_refund/request.mako @@ -1,7 +1,3 @@ -import balanced - -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") - - -debit = balanced.Debit.find('/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/debits/WD34DXMbIYa7VCEu6uZFmgZk') +${main.python_boilerplate()} +debit = balanced.Debit.find('${request['debit_uri']}') debit.refund() \ No newline at end of file diff --git a/scenarios/debit_show/debit_show.py b/scenarios/debit_show/debit_show.py index 23aceef..00d052a 100644 --- a/scenarios/debit_show/debit_show.py +++ b/scenarios/debit_show/debit_show.py @@ -1,6 +1,6 @@ import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") -debit = balanced.Debit.find("/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/debits/WD2WxgyBFgXDKw942umEDHa8") \ No newline at end of file +debit = balanced.Debit.find("/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/debits/WD58hSdghkuQKA1H1urhDwVa") \ No newline at end of file diff --git a/scenarios/debit_show/python.mako b/scenarios/debit_show/python.mako index 8772112..0bc48a9 100644 --- a/scenarios/debit_show/python.mako +++ b/scenarios/debit_show/python.mako @@ -4,9 +4,9 @@ balanced.Debit.find % else: import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") -debit = balanced.Debit.find("/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/debits/WD2WxgyBFgXDKw942umEDHa8") +debit = balanced.Debit.find("/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/debits/WD58hSdghkuQKA1H1urhDwVa") % endif \ No newline at end of file diff --git a/scenarios/debit_show/request.mako b/scenarios/debit_show/request.mako index 23aceef..3efd546 100644 --- a/scenarios/debit_show/request.mako +++ b/scenarios/debit_show/request.mako @@ -1,6 +1,2 @@ -import balanced - -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") - - -debit = balanced.Debit.find("/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/debits/WD2WxgyBFgXDKw942umEDHa8") \ No newline at end of file +${main.python_boilerplate()} +debit = balanced.Debit.find("${request['uri']}") \ No newline at end of file diff --git a/scenarios/debit_update/debit_update.py b/scenarios/debit_update/debit_update.py index 286952f..935cf71 100644 --- a/scenarios/debit_update/debit_update.py +++ b/scenarios/debit_update/debit_update.py @@ -1,9 +1,9 @@ import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") -debit = balanced.Debit.find('/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/debits/WD2WxgyBFgXDKw942umEDHa8') +debit = balanced.Debit.find('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/debits/WD58hSdghkuQKA1H1urhDwVa') debit.description = 'New description for debit' debit.meta = { 'facebook.id': '1234567890', diff --git a/scenarios/debit_update/python.mako b/scenarios/debit_update/python.mako index 3f301b3..f3b32c0 100644 --- a/scenarios/debit_update/python.mako +++ b/scenarios/debit_update/python.mako @@ -4,10 +4,10 @@ balanced.Debit.save() % else: import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") -debit = balanced.Debit.find('/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/debits/WD2WxgyBFgXDKw942umEDHa8') +debit = balanced.Debit.find('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/debits/WD58hSdghkuQKA1H1urhDwVa') debit.description = 'New description for debit' debit.meta = { 'facebook.id': '1234567890', diff --git a/scenarios/debit_update/request.mako b/scenarios/debit_update/request.mako index 286952f..6c89189 100644 --- a/scenarios/debit_update/request.mako +++ b/scenarios/debit_update/request.mako @@ -1,12 +1,9 @@ -import balanced - -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") - - -debit = balanced.Debit.find('/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/debits/WD2WxgyBFgXDKw942umEDHa8') -debit.description = 'New description for debit' +${main.python_boilerplate()} +debit = balanced.Debit.find('${request['uri']}') +debit.description = '${payload['description']}' debit.meta = { - 'facebook.id': '1234567890', - 'anykey': 'valuegoeshere', +% for k, v in payload['meta'].iteritems(): + '${k}': '${v}', +% endfor } debit.save() \ No newline at end of file diff --git a/scenarios/event_list/event_list.py b/scenarios/event_list/event_list.py index 7d0fb49..fa53948 100644 --- a/scenarios/event_list/event_list.py +++ b/scenarios/event_list/event_list.py @@ -1,6 +1,6 @@ import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") callbacks = balanced.Event.query.all(); \ No newline at end of file diff --git a/scenarios/event_list/python.mako b/scenarios/event_list/python.mako index e8e53a6..4066c5c 100644 --- a/scenarios/event_list/python.mako +++ b/scenarios/event_list/python.mako @@ -4,7 +4,7 @@ balanced.Event.query % else: import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") callbacks = balanced.Event.query.all(); diff --git a/scenarios/event_list/request.mako b/scenarios/event_list/request.mako index 7d0fb49..536c350 100644 --- a/scenarios/event_list/request.mako +++ b/scenarios/event_list/request.mako @@ -1,6 +1,2 @@ -import balanced - -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") - - +${main.python_boilerplate()} callbacks = balanced.Event.query.all(); \ No newline at end of file diff --git a/scenarios/event_show/event_show.py b/scenarios/event_show/event_show.py index 8a69877..3901207 100644 --- a/scenarios/event_show/event_show.py +++ b/scenarios/event_show/event_show.py @@ -1,6 +1,6 @@ import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") -event = balanced.Event.find("/v1/events/EV46e176b8cd8811e28d53026ba7cac9da") \ No newline at end of file +event = balanced.Event.find("/v1/events/EV83d04cdcfeea11e2abcb026ba7cd33d0") \ No newline at end of file diff --git a/scenarios/event_show/python.mako b/scenarios/event_show/python.mako index 02fe24e..afb1828 100644 --- a/scenarios/event_show/python.mako +++ b/scenarios/event_show/python.mako @@ -4,9 +4,9 @@ balanced.Event.find % else: import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") -event = balanced.Event.find("/v1/events/EV46e176b8cd8811e28d53026ba7cac9da") +event = balanced.Event.find("/v1/events/EV83d04cdcfeea11e2abcb026ba7cd33d0") % endif \ No newline at end of file diff --git a/scenarios/event_show/request.mako b/scenarios/event_show/request.mako index 8a69877..35b103a 100644 --- a/scenarios/event_show/request.mako +++ b/scenarios/event_show/request.mako @@ -1,6 +1,2 @@ -import balanced - -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") - - -event = balanced.Event.find("/v1/events/EV46e176b8cd8811e28d53026ba7cac9da") \ No newline at end of file +${main.python_boilerplate()} +event = balanced.Event.find("${request['uri']}") \ No newline at end of file diff --git a/scenarios/hold_account_list/hold_account_list.py b/scenarios/hold_account_list/hold_account_list.py index e69de29..759abda 100644 --- a/scenarios/hold_account_list/hold_account_list.py +++ b/scenarios/hold_account_list/hold_account_list.py @@ -0,0 +1,7 @@ +import balanced + +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") + + +account = balanced.Account.find('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg') +holds = account.holds.all() \ No newline at end of file diff --git a/scenarios/hold_account_list/python.mako b/scenarios/hold_account_list/python.mako index 86527d3..c7b4eb8 100644 --- a/scenarios/hold_account_list/python.mako +++ b/scenarios/hold_account_list/python.mako @@ -2,6 +2,12 @@ balanced.Account.holds % else: +import balanced +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") + + +account = balanced.Account.find('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg') +holds = account.holds.all() % endif \ No newline at end of file diff --git a/scenarios/hold_account_list/request.mako b/scenarios/hold_account_list/request.mako index e69de29..71fbc32 100644 --- a/scenarios/hold_account_list/request.mako +++ b/scenarios/hold_account_list/request.mako @@ -0,0 +1,3 @@ +${main.python_boilerplate()} +account = balanced.Account.find('${request['account_uri']}') +holds = account.holds.all() \ No newline at end of file diff --git a/scenarios/hold_capture/hold_capture.py b/scenarios/hold_capture/hold_capture.py index c781f8c..b129e2b 100644 --- a/scenarios/hold_capture/hold_capture.py +++ b/scenarios/hold_capture/hold_capture.py @@ -1,9 +1,9 @@ import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") -hold = balanced.Hold.find('/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/holds/HL3eEBWviWudXZlBXN7FLrTA') +hold = balanced.Hold.find('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/holds/HL5zdhxmKBk5X1Nn0ZS21UYE') debit = hold.capture( appears_on_statement_as='ShowsUpOnStmt', description='Some descriptive text for the debit in the dashboard', diff --git a/scenarios/hold_capture/python.mako b/scenarios/hold_capture/python.mako index 8bbcdf2..6ee1aa6 100644 --- a/scenarios/hold_capture/python.mako +++ b/scenarios/hold_capture/python.mako @@ -4,10 +4,10 @@ balanced.Hold.capture(...) % else: import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") -hold = balanced.Hold.find('/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/holds/HL3eEBWviWudXZlBXN7FLrTA') +hold = balanced.Hold.find('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/holds/HL5zdhxmKBk5X1Nn0ZS21UYE') debit = hold.capture( appears_on_statement_as='ShowsUpOnStmt', description='Some descriptive text for the debit in the dashboard', diff --git a/scenarios/hold_capture/request.mako b/scenarios/hold_capture/request.mako index c781f8c..99f660f 100644 --- a/scenarios/hold_capture/request.mako +++ b/scenarios/hold_capture/request.mako @@ -1,10 +1,6 @@ -import balanced - -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") - - -hold = balanced.Hold.find('/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/holds/HL3eEBWviWudXZlBXN7FLrTA') +${main.python_boilerplate()} +hold = balanced.Hold.find('${request['hold_uri']}') debit = hold.capture( - appears_on_statement_as='ShowsUpOnStmt', - description='Some descriptive text for the debit in the dashboard', -) \ No newline at end of file +% for k, v in payload.iteritems(): + % if k != 'hold_uri': + ${k}='${v}', \ No newline at end of file diff --git a/scenarios/hold_create/definition.mako b/scenarios/hold_create/definition.mako index 05b700a..e13d121 100644 --- a/scenarios/hold_create/definition.mako +++ b/scenarios/hold_create/definition.mako @@ -1 +1 @@ -balanced.Customer.hold(...) \ No newline at end of file +balanced.Account.hold(...) \ No newline at end of file diff --git a/scenarios/hold_create/hold_create.py b/scenarios/hold_create/hold_create.py index b855e76..2b7b33b 100644 --- a/scenarios/hold_create/hold_create.py +++ b/scenarios/hold_create/hold_create.py @@ -1,10 +1,10 @@ import balanced -balanced.configure("c72cb360d3ae11e29593026ba7d31e6f") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") -customer = balanced.Customer.find('/v1/customers/CU7GuPv9Y2F8ySwJHuHL0YWq') -customer.hold( +buyer = balanced.Account.find('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg') +buyer.hold( amount='5000', description='Some descriptive text for the debit in the dashboard', ) \ No newline at end of file diff --git a/scenarios/hold_create/python.mako b/scenarios/hold_create/python.mako index dfcdb59..99a7eca 100644 --- a/scenarios/hold_create/python.mako +++ b/scenarios/hold_create/python.mako @@ -1,14 +1,14 @@ % if mode == 'definition': -balanced.Customer.hold(...) +balanced.Account.hold(...) % else: import balanced -balanced.configure("c72cb360d3ae11e29593026ba7d31e6f") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") -customer = balanced.Customer.find('/v1/customers/CU7GuPv9Y2F8ySwJHuHL0YWq') -customer.hold( +buyer = balanced.Account.find('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg') +buyer.hold( amount='5000', description='Some descriptive text for the debit in the dashboard', ) diff --git a/scenarios/hold_create/request.mako b/scenarios/hold_create/request.mako index b855e76..a0e92b2 100644 --- a/scenarios/hold_create/request.mako +++ b/scenarios/hold_create/request.mako @@ -1,10 +1,7 @@ -import balanced - -balanced.configure("c72cb360d3ae11e29593026ba7d31e6f") - - -customer = balanced.Customer.find('/v1/customers/CU7GuPv9Y2F8ySwJHuHL0YWq') -customer.hold( - amount='5000', - description='Some descriptive text for the debit in the dashboard', +${main.python_boilerplate()} +buyer = balanced.Account.find('${request['account_uri']}') +buyer.hold( +% for k, v in payload.iteritems(): + ${k}='${v}', +% endfor ) \ No newline at end of file diff --git a/scenarios/hold_customer_list/definition.mako b/scenarios/hold_customer_list/definition.mako deleted file mode 100644 index 194ed53..0000000 --- a/scenarios/hold_customer_list/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.Customer.holds \ No newline at end of file diff --git a/scenarios/hold_customer_list/hold_customer_list.py b/scenarios/hold_customer_list/hold_customer_list.py deleted file mode 100644 index 668990f..0000000 --- a/scenarios/hold_customer_list/hold_customer_list.py +++ /dev/null @@ -1,7 +0,0 @@ -import balanced - -balanced.configure("c72cb360d3ae11e29593026ba7d31e6f") - - -customer = balanced.Customer.find('/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe') -holds = customer.holds.all() \ No newline at end of file diff --git a/scenarios/hold_customer_list/python.mako b/scenarios/hold_customer_list/python.mako deleted file mode 100644 index a84245c..0000000 --- a/scenarios/hold_customer_list/python.mako +++ /dev/null @@ -1,13 +0,0 @@ -% if mode == 'definition': - -balanced.Customer.holds -% else: -import balanced - -balanced.configure("c72cb360d3ae11e29593026ba7d31e6f") - - -customer = balanced.Customer.find('/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe') -holds = customer.holds.all() - -% endif \ No newline at end of file diff --git a/scenarios/hold_customer_list/request.mako b/scenarios/hold_customer_list/request.mako deleted file mode 100644 index 668990f..0000000 --- a/scenarios/hold_customer_list/request.mako +++ /dev/null @@ -1,7 +0,0 @@ -import balanced - -balanced.configure("c72cb360d3ae11e29593026ba7d31e6f") - - -customer = balanced.Customer.find('/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe') -holds = customer.holds.all() \ No newline at end of file diff --git a/scenarios/hold_list/hold_list.py b/scenarios/hold_list/hold_list.py index 00dc493..179f565 100644 --- a/scenarios/hold_list/hold_list.py +++ b/scenarios/hold_list/hold_list.py @@ -1,6 +1,6 @@ import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") holds = balanced.Hold.query.all(); \ No newline at end of file diff --git a/scenarios/hold_list/python.mako b/scenarios/hold_list/python.mako index 693d68d..dadac45 100644 --- a/scenarios/hold_list/python.mako +++ b/scenarios/hold_list/python.mako @@ -4,7 +4,7 @@ balanced.Hold.query() % else: import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") holds = balanced.Hold.query.all(); diff --git a/scenarios/hold_list/request.mako b/scenarios/hold_list/request.mako index 00dc493..f91d31d 100644 --- a/scenarios/hold_list/request.mako +++ b/scenarios/hold_list/request.mako @@ -1,6 +1,2 @@ -import balanced - -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") - - +${main.python_boilerplate()} holds = balanced.Hold.query.all(); \ No newline at end of file diff --git a/scenarios/hold_show/hold_show.py b/scenarios/hold_show/hold_show.py index d1e2f80..80bece1 100644 --- a/scenarios/hold_show/hold_show.py +++ b/scenarios/hold_show/hold_show.py @@ -1,6 +1,6 @@ import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") -hold = balanced.Hold.find("/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/holds/HL37VojBNnK7JE1PrViGScmQ") \ No newline at end of file +hold = balanced.Hold.find("/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/holds/HL5rHLGFY2NMLve5y2yPJC06") \ No newline at end of file diff --git a/scenarios/hold_show/python.mako b/scenarios/hold_show/python.mako index 57bf58f..52d47ac 100644 --- a/scenarios/hold_show/python.mako +++ b/scenarios/hold_show/python.mako @@ -4,9 +4,9 @@ balanced.Hold.find % else: import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") -hold = balanced.Hold.find("/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/holds/HL37VojBNnK7JE1PrViGScmQ") +hold = balanced.Hold.find("/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/holds/HL5rHLGFY2NMLve5y2yPJC06") % endif \ No newline at end of file diff --git a/scenarios/hold_show/request.mako b/scenarios/hold_show/request.mako index d1e2f80..639113f 100644 --- a/scenarios/hold_show/request.mako +++ b/scenarios/hold_show/request.mako @@ -1,6 +1,2 @@ -import balanced - -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") - - -hold = balanced.Hold.find("/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/holds/HL37VojBNnK7JE1PrViGScmQ") \ No newline at end of file +${main.python_boilerplate()} +hold = balanced.Hold.find("${request['uri']}") \ No newline at end of file diff --git a/scenarios/hold_update/hold_update.py b/scenarios/hold_update/hold_update.py index d7e6f23..c42d820 100644 --- a/scenarios/hold_update/hold_update.py +++ b/scenarios/hold_update/hold_update.py @@ -1,9 +1,9 @@ import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") -hold = balanced.Hold.find('/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/holds/HL37VojBNnK7JE1PrViGScmQ') +hold = balanced.Hold.find('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/holds/HL5rHLGFY2NMLve5y2yPJC06') hold.description = 'update this description' hold.meta = { 'holding.for': 'user1', diff --git a/scenarios/hold_update/python.mako b/scenarios/hold_update/python.mako index 653c768..e0e6949 100644 --- a/scenarios/hold_update/python.mako +++ b/scenarios/hold_update/python.mako @@ -4,10 +4,10 @@ balanced.Hold.save() % else: import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") -hold = balanced.Hold.find('/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/holds/HL37VojBNnK7JE1PrViGScmQ') +hold = balanced.Hold.find('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/holds/HL5rHLGFY2NMLve5y2yPJC06') hold.description = 'update this description' hold.meta = { 'holding.for': 'user1', diff --git a/scenarios/hold_update/request.mako b/scenarios/hold_update/request.mako index d7e6f23..34800dd 100644 --- a/scenarios/hold_update/request.mako +++ b/scenarios/hold_update/request.mako @@ -1,12 +1,9 @@ -import balanced - -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") - - -hold = balanced.Hold.find('/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/holds/HL37VojBNnK7JE1PrViGScmQ') -hold.description = 'update this description' +${main.python_boilerplate()} +hold = balanced.Hold.find('${request['uri']}') +hold.description = '${payload['description']}' hold.meta = { - 'holding.for': 'user1', - 'meaningful.key': 'some.value', +% for k, v in payload['meta'].iteritems(): + '${k}': '${v}', +% endfor } hold.save() \ No newline at end of file diff --git a/scenarios/hold_void/hold_void.py b/scenarios/hold_void/hold_void.py index 3bd578f..cedc0bc 100644 --- a/scenarios/hold_void/hold_void.py +++ b/scenarios/hold_void/hold_void.py @@ -1,7 +1,7 @@ import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") -hold = balanced.Hold.find('/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/holds/HL3hEt8bLti69i3rvYVuQ2WC') +hold = balanced.Hold.find('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/holds/HL5DjCcU0FHDkiNj6X2ITrhm') hold.void() \ No newline at end of file diff --git a/scenarios/hold_void/python.mako b/scenarios/hold_void/python.mako index abbb706..b35cfba 100644 --- a/scenarios/hold_void/python.mako +++ b/scenarios/hold_void/python.mako @@ -4,10 +4,10 @@ balanced.Hold.void() % else: import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") -hold = balanced.Hold.find('/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/holds/HL3hEt8bLti69i3rvYVuQ2WC') +hold = balanced.Hold.find('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/holds/HL5DjCcU0FHDkiNj6X2ITrhm') hold.void() % endif \ No newline at end of file diff --git a/scenarios/hold_void/request.mako b/scenarios/hold_void/request.mako index 3bd578f..cb4aafb 100644 --- a/scenarios/hold_void/request.mako +++ b/scenarios/hold_void/request.mako @@ -1,7 +1,3 @@ -import balanced - -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") - - -hold = balanced.Hold.find('/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/holds/HL3hEt8bLti69i3rvYVuQ2WC') +${main.python_boilerplate()} +hold = balanced.Hold.find('${request['uri']}') hold.void() \ No newline at end of file diff --git a/scenarios/refund_account_list/python.mako b/scenarios/refund_account_list/python.mako index 5d09cfb..afd8ed4 100644 --- a/scenarios/refund_account_list/python.mako +++ b/scenarios/refund_account_list/python.mako @@ -2,6 +2,12 @@ balanced.Account.refunds % else: +import balanced +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") + + +buyer = balanced.Account.find('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg') +refunds = buyer.refunds.all() % endif \ No newline at end of file diff --git a/scenarios/refund_account_list/refund_account_list.py b/scenarios/refund_account_list/refund_account_list.py index e69de29..75925cd 100644 --- a/scenarios/refund_account_list/refund_account_list.py +++ b/scenarios/refund_account_list/refund_account_list.py @@ -0,0 +1,7 @@ +import balanced + +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") + + +buyer = balanced.Account.find('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg') +refunds = buyer.refunds.all() \ No newline at end of file diff --git a/scenarios/refund_account_list/request.mako b/scenarios/refund_account_list/request.mako index e69de29..bf93d9e 100644 --- a/scenarios/refund_account_list/request.mako +++ b/scenarios/refund_account_list/request.mako @@ -0,0 +1,3 @@ +${main.python_boilerplate()} +buyer = balanced.Account.find('${request['account_uri']}') +refunds = buyer.refunds.all() \ No newline at end of file diff --git a/scenarios/refund_create/python.mako b/scenarios/refund_create/python.mako index 0d94f4e..3842cce 100644 --- a/scenarios/refund_create/python.mako +++ b/scenarios/refund_create/python.mako @@ -4,10 +4,10 @@ balanced.Debit.refund() % else: import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") -debit = balanced.Debit.find('/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/debits/WD3lDAXDcPpgK8tHFcdXEO2Y') +debit = balanced.Debit.find('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/debits/WD5Gv7XetHvx1CHUqkDKiZYY') debit.refund( description='Refund for Order #1111', meta={ diff --git a/scenarios/refund_create/refund_create.py b/scenarios/refund_create/refund_create.py index 7cd0d99..ddc6274 100644 --- a/scenarios/refund_create/refund_create.py +++ b/scenarios/refund_create/refund_create.py @@ -1,9 +1,9 @@ import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") -debit = balanced.Debit.find('/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/debits/WD3lDAXDcPpgK8tHFcdXEO2Y') +debit = balanced.Debit.find('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/debits/WD5Gv7XetHvx1CHUqkDKiZYY') debit.refund( description='Refund for Order #1111', meta={ diff --git a/scenarios/refund_create/request.mako b/scenarios/refund_create/request.mako index 7cd0d99..da6f73c 100644 --- a/scenarios/refund_create/request.mako +++ b/scenarios/refund_create/request.mako @@ -1,14 +1,10 @@ -import balanced - -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") - - -debit = balanced.Debit.find('/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/debits/WD3lDAXDcPpgK8tHFcdXEO2Y') +${main.python_boilerplate()} +debit = balanced.Debit.find('${request['debit_uri']}') debit.refund( - description='Refund for Order #1111', + description='${payload['description']}', meta={ - 'fulfillment.item.condition': 'OK', - 'user.refund_reason': 'not happy with product', - 'merchant.feedback': 'positive', + % for k, v in payload['meta'].iteritems(): + '${k}': '${v}', + % endfor }, ) \ No newline at end of file diff --git a/scenarios/refund_customer_list/definition.mako b/scenarios/refund_customer_list/definition.mako deleted file mode 100644 index 2d52a91..0000000 --- a/scenarios/refund_customer_list/definition.mako +++ /dev/null @@ -1 +0,0 @@ -balanced.Customer.refunds \ No newline at end of file diff --git a/scenarios/refund_customer_list/python.mako b/scenarios/refund_customer_list/python.mako deleted file mode 100644 index 5a135d3..0000000 --- a/scenarios/refund_customer_list/python.mako +++ /dev/null @@ -1,13 +0,0 @@ -% if mode == 'definition': - -balanced.Customer.refunds -% else: -import balanced - -balanced.configure("c72cb360d3ae11e29593026ba7d31e6f") - - -customer = balanced.Customer.find('/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe') -refunds = customer.refunds.all() - -% endif \ No newline at end of file diff --git a/scenarios/refund_customer_list/refund_customer_list.py b/scenarios/refund_customer_list/refund_customer_list.py deleted file mode 100644 index 1d1db39..0000000 --- a/scenarios/refund_customer_list/refund_customer_list.py +++ /dev/null @@ -1,7 +0,0 @@ -import balanced - -balanced.configure("c72cb360d3ae11e29593026ba7d31e6f") - - -customer = balanced.Customer.find('/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe') -refunds = customer.refunds.all() \ No newline at end of file diff --git a/scenarios/refund_customer_list/request.mako b/scenarios/refund_customer_list/request.mako deleted file mode 100644 index 1d1db39..0000000 --- a/scenarios/refund_customer_list/request.mako +++ /dev/null @@ -1,7 +0,0 @@ -import balanced - -balanced.configure("c72cb360d3ae11e29593026ba7d31e6f") - - -customer = balanced.Customer.find('/v1/customers/CU6W5pSk2CUXQxhENqyGRvQe') -refunds = customer.refunds.all() \ No newline at end of file diff --git a/scenarios/refund_list/python.mako b/scenarios/refund_list/python.mako index 6254b5b..73ed328 100644 --- a/scenarios/refund_list/python.mako +++ b/scenarios/refund_list/python.mako @@ -4,7 +4,7 @@ balanced.Refund.query() % else: import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") refunds = balanced.Refund.query.all(); diff --git a/scenarios/refund_list/refund_list.py b/scenarios/refund_list/refund_list.py index d8c4be2..f5f3c4a 100644 --- a/scenarios/refund_list/refund_list.py +++ b/scenarios/refund_list/refund_list.py @@ -1,6 +1,6 @@ import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") refunds = balanced.Refund.query.all(); \ No newline at end of file diff --git a/scenarios/refund_list/request.mako b/scenarios/refund_list/request.mako index d8c4be2..98dd310 100644 --- a/scenarios/refund_list/request.mako +++ b/scenarios/refund_list/request.mako @@ -1,6 +1,2 @@ -import balanced - -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") - - +${main.python_boilerplate()} refunds = balanced.Refund.query.all(); \ No newline at end of file diff --git a/scenarios/refund_show/python.mako b/scenarios/refund_show/python.mako index 2df2268..c420cd6 100644 --- a/scenarios/refund_show/python.mako +++ b/scenarios/refund_show/python.mako @@ -4,9 +4,9 @@ balanced.Refund.find % else: import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") -refund = balanced.Refund.find("/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/refunds/RF3n0NOGtl7IeHTwp1c5Bvfw") +refund = balanced.Refund.find("/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/refunds/RF5IbmNudG8OWk1TzjdwmvOu") % endif \ No newline at end of file diff --git a/scenarios/refund_show/refund_show.py b/scenarios/refund_show/refund_show.py index f3f812f..13363d5 100644 --- a/scenarios/refund_show/refund_show.py +++ b/scenarios/refund_show/refund_show.py @@ -1,6 +1,6 @@ import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") -refund = balanced.Refund.find("/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/refunds/RF3n0NOGtl7IeHTwp1c5Bvfw") \ No newline at end of file +refund = balanced.Refund.find("/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/refunds/RF5IbmNudG8OWk1TzjdwmvOu") \ No newline at end of file diff --git a/scenarios/refund_show/request.mako b/scenarios/refund_show/request.mako index f3f812f..dd699c9 100644 --- a/scenarios/refund_show/request.mako +++ b/scenarios/refund_show/request.mako @@ -1,6 +1,2 @@ -import balanced - -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") - - -refund = balanced.Refund.find("/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/refunds/RF3n0NOGtl7IeHTwp1c5Bvfw") \ No newline at end of file +${main.python_boilerplate()} +refund = balanced.Refund.find("${request['uri']}") \ No newline at end of file diff --git a/scenarios/refund_update/python.mako b/scenarios/refund_update/python.mako index e301330..c189198 100644 --- a/scenarios/refund_update/python.mako +++ b/scenarios/refund_update/python.mako @@ -4,10 +4,10 @@ balanced.Refund.save() % else: import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") -refund = balanced.Refund.find('/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/refunds/RF3n0NOGtl7IeHTwp1c5Bvfw') +refund = balanced.Refund.find('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/refunds/RF5IbmNudG8OWk1TzjdwmvOu') refund.description = 'update this description' refund.meta = { 'user.refund.count': '3', diff --git a/scenarios/refund_update/refund_update.py b/scenarios/refund_update/refund_update.py index e34c315..77c67db 100644 --- a/scenarios/refund_update/refund_update.py +++ b/scenarios/refund_update/refund_update.py @@ -1,9 +1,9 @@ import balanced -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") +balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") -refund = balanced.Refund.find('/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/refunds/RF3n0NOGtl7IeHTwp1c5Bvfw') +refund = balanced.Refund.find('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/refunds/RF5IbmNudG8OWk1TzjdwmvOu') refund.description = 'update this description' refund.meta = { 'user.refund.count': '3', diff --git a/scenarios/refund_update/request.mako b/scenarios/refund_update/request.mako index e34c315..b920750 100644 --- a/scenarios/refund_update/request.mako +++ b/scenarios/refund_update/request.mako @@ -1,13 +1,9 @@ -import balanced - -balanced.configure("46c08048cd8811e2acae026ba7c1aba6") - - -refund = balanced.Refund.find('/v1/marketplaces/TEST-MP29J5STPtZVvnjAFndM0N62/refunds/RF3n0NOGtl7IeHTwp1c5Bvfw') -refund.description = 'update this description' +${main.python_boilerplate()} +refund = balanced.Refund.find('${request['uri']}') +refund.description = '${payload['description']}' refund.meta = { - 'user.refund.count': '3', - 'refund.reason': 'user not happy with product', - 'user.notes': 'very polite on the phone', +% for k, v in payload['meta'].iteritems(): + '${k}': '${v}', +% endfor } refund.save() \ No newline at end of file From 049ce3e2a9d4902162397066e11a942785c5cc6b Mon Sep 17 00:00:00 2001 From: Parham Negahdar Date: Tue, 6 Aug 2013 18:26:15 -0700 Subject: [PATCH 2/2] Pruned .py files --- .../account_add_card/account_add_card.py | 7 ---- .../account_capture_hold.py | 7 ---- scenarios/account_create/account_create.py | 6 ---- .../account_create_buyer.py | 8 ----- .../account_create_debit.py | 7 ---- .../account_create_hold.py | 7 ---- .../account_create_merchant.py | 7 ---- .../account_underwrite_business.py | 32 ------------------- .../account_underwrite_person.py | 25 --------------- .../bank_account_create.py | 11 ------- .../bank_account_delete.py | 7 ---- .../bank_account_find_and_credit.py | 0 .../bank_account_find_and_delete.py | 0 .../bank_account_invalid_routing_number.py | 18 ----------- .../bank_account_list/bank_account_list.py | 6 ---- .../bank_account_show/bank_account_show.py | 6 ---- .../bank_account_verification_create.py | 7 ---- .../bank_account_verification_show.py | 8 ----- .../bank_account_verification_update.py | 10 ------ scenarios/callback_create/callback_create.py | 0 scenarios/callback_delete/callback_delete.py | 0 scenarios/callback_list/callback_list.py | 0 scenarios/callback_show/callback_show.py | 0 scenarios/card_create/card_create.py | 11 ------- scenarios/card_invalidate/card_invalidate.py | 8 ----- scenarios/card_list/card_list.py | 6 ---- scenarios/card_show/card_show.py | 6 ---- scenarios/card_update/card_update.py | 12 ------- .../credit_account_list.py | 7 ---- .../credit_account_merchant_create.py | 7 ---- .../credit_bank_account_list.py | 7 ---- .../credit_create_existing_bank_account.py | 7 ---- .../credit_create_new_bank_account.py | 15 --------- .../credit_failed_state.py | 15 --------- scenarios/credit_list/credit_list.py | 6 ---- .../credit_paid_state/credit_paid_state.py | 15 --------- .../credit_pending_state.py | 15 --------- scenarios/credit_show/credit_show.py | 6 ---- .../customer_add_bank_account.py | 7 ---- .../customer_add_card/customer_add_card.py | 7 ---- scenarios/customer_create/customer_create.py | 6 ---- .../debit_account_list/debit_account_list.py | 7 ---- scenarios/debit_create/debit_create.py | 11 ------- scenarios/debit_list/debit_list.py | 6 ---- scenarios/debit_refund/debit_refund.py | 7 ---- scenarios/debit_show/debit_show.py | 6 ---- scenarios/debit_update/debit_update.py | 12 ------- scenarios/event_list/event_list.py | 6 ---- scenarios/event_replay/event_replay.py | 0 scenarios/event_show/event_show.py | 6 ---- .../hold_account_list/hold_account_list.py | 7 ---- scenarios/hold_capture/hold_capture.py | 10 ------ scenarios/hold_create/hold_create.py | 10 ------ scenarios/hold_list/hold_list.py | 6 ---- scenarios/hold_show/hold_show.py | 6 ---- scenarios/hold_update/hold_update.py | 12 ------- scenarios/hold_void/hold_void.py | 7 ---- .../refund_account_list.py | 7 ---- scenarios/refund_create/refund_create.py | 14 -------- scenarios/refund_list/refund_list.py | 6 ---- scenarios/refund_show/refund_show.py | 6 ---- scenarios/refund_update/refund_update.py | 13 -------- 62 files changed, 507 deletions(-) delete mode 100644 scenarios/account_add_card/account_add_card.py delete mode 100644 scenarios/account_capture_hold/account_capture_hold.py delete mode 100644 scenarios/account_create/account_create.py delete mode 100644 scenarios/account_create_buyer/account_create_buyer.py delete mode 100644 scenarios/account_create_debit/account_create_debit.py delete mode 100644 scenarios/account_create_hold/account_create_hold.py delete mode 100644 scenarios/account_create_merchant/account_create_merchant.py delete mode 100644 scenarios/account_underwrite_business/account_underwrite_business.py delete mode 100644 scenarios/account_underwrite_person/account_underwrite_person.py delete mode 100644 scenarios/bank_account_create/bank_account_create.py delete mode 100644 scenarios/bank_account_delete/bank_account_delete.py delete mode 100644 scenarios/bank_account_find_and_credit/bank_account_find_and_credit.py delete mode 100644 scenarios/bank_account_find_and_delete/bank_account_find_and_delete.py delete mode 100644 scenarios/bank_account_invalid_routing_number/bank_account_invalid_routing_number.py delete mode 100644 scenarios/bank_account_list/bank_account_list.py delete mode 100644 scenarios/bank_account_show/bank_account_show.py delete mode 100644 scenarios/bank_account_verification_create/bank_account_verification_create.py delete mode 100644 scenarios/bank_account_verification_show/bank_account_verification_show.py delete mode 100644 scenarios/bank_account_verification_update/bank_account_verification_update.py delete mode 100644 scenarios/callback_create/callback_create.py delete mode 100644 scenarios/callback_delete/callback_delete.py delete mode 100644 scenarios/callback_list/callback_list.py delete mode 100644 scenarios/callback_show/callback_show.py delete mode 100644 scenarios/card_create/card_create.py delete mode 100644 scenarios/card_invalidate/card_invalidate.py delete mode 100644 scenarios/card_list/card_list.py delete mode 100644 scenarios/card_show/card_show.py delete mode 100644 scenarios/card_update/card_update.py delete mode 100644 scenarios/credit_account_list/credit_account_list.py delete mode 100644 scenarios/credit_account_merchant_create/credit_account_merchant_create.py delete mode 100644 scenarios/credit_bank_account_list/credit_bank_account_list.py delete mode 100644 scenarios/credit_create_existing_bank_account/credit_create_existing_bank_account.py delete mode 100644 scenarios/credit_create_new_bank_account/credit_create_new_bank_account.py delete mode 100644 scenarios/credit_failed_state/credit_failed_state.py delete mode 100644 scenarios/credit_list/credit_list.py delete mode 100644 scenarios/credit_paid_state/credit_paid_state.py delete mode 100644 scenarios/credit_pending_state/credit_pending_state.py delete mode 100644 scenarios/credit_show/credit_show.py delete mode 100644 scenarios/customer_add_bank_account/customer_add_bank_account.py delete mode 100644 scenarios/customer_add_card/customer_add_card.py delete mode 100644 scenarios/customer_create/customer_create.py delete mode 100644 scenarios/debit_account_list/debit_account_list.py delete mode 100644 scenarios/debit_create/debit_create.py delete mode 100644 scenarios/debit_list/debit_list.py delete mode 100644 scenarios/debit_refund/debit_refund.py delete mode 100644 scenarios/debit_show/debit_show.py delete mode 100644 scenarios/debit_update/debit_update.py delete mode 100644 scenarios/event_list/event_list.py delete mode 100644 scenarios/event_replay/event_replay.py delete mode 100644 scenarios/event_show/event_show.py delete mode 100644 scenarios/hold_account_list/hold_account_list.py delete mode 100644 scenarios/hold_capture/hold_capture.py delete mode 100644 scenarios/hold_create/hold_create.py delete mode 100644 scenarios/hold_list/hold_list.py delete mode 100644 scenarios/hold_show/hold_show.py delete mode 100644 scenarios/hold_update/hold_update.py delete mode 100644 scenarios/hold_void/hold_void.py delete mode 100644 scenarios/refund_account_list/refund_account_list.py delete mode 100644 scenarios/refund_create/refund_create.py delete mode 100644 scenarios/refund_list/refund_list.py delete mode 100644 scenarios/refund_show/refund_show.py delete mode 100644 scenarios/refund_update/refund_update.py diff --git a/scenarios/account_add_card/account_add_card.py b/scenarios/account_add_card/account_add_card.py deleted file mode 100644 index 017ae21..0000000 --- a/scenarios/account_add_card/account_add_card.py +++ /dev/null @@ -1,7 +0,0 @@ -import balanced - -balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") - - -account = balanced.Account.find('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg') -account.add_card('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/cards/CC4ejBuNLWYWy2Pb6Hxbv6A0') \ No newline at end of file diff --git a/scenarios/account_capture_hold/account_capture_hold.py b/scenarios/account_capture_hold/account_capture_hold.py deleted file mode 100644 index 87f6705..0000000 --- a/scenarios/account_capture_hold/account_capture_hold.py +++ /dev/null @@ -1,7 +0,0 @@ -import balanced - -balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") - - -account = balanced.Account.find('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC5YbzH94PeuRxZicqtxCmE8') -account.debit(amount=1000, hold_uri='/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/holds/HL6ckujG3wcPvCI2yQscEV7W') \ No newline at end of file diff --git a/scenarios/account_create/account_create.py b/scenarios/account_create/account_create.py deleted file mode 100644 index 482d995..0000000 --- a/scenarios/account_create/account_create.py +++ /dev/null @@ -1,6 +0,0 @@ -import balanced - -balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") - - -account = balanced.Account().save() \ No newline at end of file diff --git a/scenarios/account_create_buyer/account_create_buyer.py b/scenarios/account_create_buyer/account_create_buyer.py deleted file mode 100644 index 8e6661d..0000000 --- a/scenarios/account_create_buyer/account_create_buyer.py +++ /dev/null @@ -1,8 +0,0 @@ -import balanced - -balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") - - -buyer = balanced.Marketplace.my_marketplace.create_buyer( - card_uri='/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/cards/CC5WnLs62QL0arljSl7Q5LVC', -) \ No newline at end of file diff --git a/scenarios/account_create_debit/account_create_debit.py b/scenarios/account_create_debit/account_create_debit.py deleted file mode 100644 index ad4bbac..0000000 --- a/scenarios/account_create_debit/account_create_debit.py +++ /dev/null @@ -1,7 +0,0 @@ -import balanced - -balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") - - -account = balanced.Account.find('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC5YbzH94PeuRxZicqtxCmE8') -account.debit(amount='1000') \ No newline at end of file diff --git a/scenarios/account_create_hold/account_create_hold.py b/scenarios/account_create_hold/account_create_hold.py deleted file mode 100644 index f2d4886..0000000 --- a/scenarios/account_create_hold/account_create_hold.py +++ /dev/null @@ -1,7 +0,0 @@ -import balanced - -balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") - - -account = balanced.Account.find('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC5YbzH94PeuRxZicqtxCmE8') -account.hold(amount='1000') \ No newline at end of file diff --git a/scenarios/account_create_merchant/account_create_merchant.py b/scenarios/account_create_merchant/account_create_merchant.py deleted file mode 100644 index ddef028..0000000 --- a/scenarios/account_create_merchant/account_create_merchant.py +++ /dev/null @@ -1,7 +0,0 @@ -import balanced - -balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") - - -account = balanced.Account.find('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg') -account.add_bank_account('/v1/bank_accounts/BA4gGTZiAgLomq8IjMjYcB32') \ No newline at end of file diff --git a/scenarios/account_underwrite_business/account_underwrite_business.py b/scenarios/account_underwrite_business/account_underwrite_business.py deleted file mode 100644 index 1f01625..0000000 --- a/scenarios/account_underwrite_business/account_underwrite_business.py +++ /dev/null @@ -1,32 +0,0 @@ -import balanced - -balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") - - -merchant_data = { - 'phone_number': '+140899188155', - 'name': 'Skripts4Kids', - 'postal_code': '91111', - 'type': 'business', - 'street_address': '555 VoidMain Road', - 'tax_id': '211111111', - 'person': { - 'dob': '1989-12', - 'phone_number': '+14089999999', - 'postal_code': '94110', - 'name': 'Timmy Q. CopyPasta', - 'street_address': '121 Skriptkid Row', - }, -} - - -account = balanced.Account().save() - -try: - account.add_merchant(merchant_data) -except balanced.exc.MoreInformationRequiredError as ex: - # could not identify this account. - print 'redirect merchant to:', ex.redirect_uri -except balanced.exc.HTTPError as error: - # TODO: handle 400 and 409 exceptions as required - raise \ No newline at end of file diff --git a/scenarios/account_underwrite_person/account_underwrite_person.py b/scenarios/account_underwrite_person/account_underwrite_person.py deleted file mode 100644 index 29c06f9..0000000 --- a/scenarios/account_underwrite_person/account_underwrite_person.py +++ /dev/null @@ -1,25 +0,0 @@ -import balanced - -balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") - - -merchant_data = { - 'phone_number': '+14089999999', - 'name': 'Timmy Q. CopyPasta', - 'dob': '1989-12', - 'postal_code': '94110', - 'type': 'person', - 'street_address': '121 Skriptkid Row', -} - - -account = balanced.Account().save() - -try: - account.add_merchant(merchant_data) -except balanced.exc.MoreInformationRequiredError as ex: - # could not identify this account. - print 'redirect merchant to:', ex.redirect_uri -except balanced.exc.HTTPError as error: - # TODO: handle 400 and 409 exceptions as required - raise \ No newline at end of file diff --git a/scenarios/bank_account_create/bank_account_create.py b/scenarios/bank_account_create/bank_account_create.py deleted file mode 100644 index c57c346..0000000 --- a/scenarios/bank_account_create/bank_account_create.py +++ /dev/null @@ -1,11 +0,0 @@ -import balanced - -balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") - - -bank_account = balanced.BankAccount( - routing_number='121000358', - type='checking', - account_number='9900000001', - name='Johann Bernoulli', -).save() \ No newline at end of file diff --git a/scenarios/bank_account_delete/bank_account_delete.py b/scenarios/bank_account_delete/bank_account_delete.py deleted file mode 100644 index 58b7a50..0000000 --- a/scenarios/bank_account_delete/bank_account_delete.py +++ /dev/null @@ -1,7 +0,0 @@ -import balanced - -balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") - - -bank_account = balanced.BankAccount.find("/v1/bank_accounts/BA4sfKpb9c7jNeC6iHKvFwDc") -bank_account.delete() \ No newline at end of file diff --git a/scenarios/bank_account_find_and_credit/bank_account_find_and_credit.py b/scenarios/bank_account_find_and_credit/bank_account_find_and_credit.py deleted file mode 100644 index e69de29..0000000 diff --git a/scenarios/bank_account_find_and_delete/bank_account_find_and_delete.py b/scenarios/bank_account_find_and_delete/bank_account_find_and_delete.py deleted file mode 100644 index e69de29..0000000 diff --git a/scenarios/bank_account_invalid_routing_number/bank_account_invalid_routing_number.py b/scenarios/bank_account_invalid_routing_number/bank_account_invalid_routing_number.py deleted file mode 100644 index 05f48f4..0000000 --- a/scenarios/bank_account_invalid_routing_number/bank_account_invalid_routing_number.py +++ /dev/null @@ -1,18 +0,0 @@ -import balanced - -balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") - - -bank_account = balanced.BankAccount( - routing_number='111111118', - type='checking', - account_number='9900000001', - name='Johann Bernoulli', -) - -try: - bank_account.save() -except balanced.exc.HTTPError, ex: - assert ex.status_code == 400 - assert 'Routing number is invalid' in ex.description - assert ex.request_id is not None \ No newline at end of file diff --git a/scenarios/bank_account_list/bank_account_list.py b/scenarios/bank_account_list/bank_account_list.py deleted file mode 100644 index 95e53b5..0000000 --- a/scenarios/bank_account_list/bank_account_list.py +++ /dev/null @@ -1,6 +0,0 @@ -import balanced - -balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") - - -bank_accounts = balanced.BankAccount.query.all() \ No newline at end of file diff --git a/scenarios/bank_account_show/bank_account_show.py b/scenarios/bank_account_show/bank_account_show.py deleted file mode 100644 index 1efd43e..0000000 --- a/scenarios/bank_account_show/bank_account_show.py +++ /dev/null @@ -1,6 +0,0 @@ -import balanced - -balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") - - -bank_account = balanced.BankAccount.find("/v1/bank_accounts/BA4xg7wvGiKLcFipQYWsVDJR") \ No newline at end of file diff --git a/scenarios/bank_account_verification_create/bank_account_verification_create.py b/scenarios/bank_account_verification_create/bank_account_verification_create.py deleted file mode 100644 index 2ece95e..0000000 --- a/scenarios/bank_account_verification_create/bank_account_verification_create.py +++ /dev/null @@ -1,7 +0,0 @@ -import balanced - -balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") - - -bank_account = balanced.BankAccount.find("/v1/bank_accounts/BA4nq1HLwfp2rdKClyX39lRu") -verification = bank_account.verify() \ No newline at end of file diff --git a/scenarios/bank_account_verification_show/bank_account_verification_show.py b/scenarios/bank_account_verification_show/bank_account_verification_show.py deleted file mode 100644 index abd3773..0000000 --- a/scenarios/bank_account_verification_show/bank_account_verification_show.py +++ /dev/null @@ -1,8 +0,0 @@ -import balanced - -balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") - - - -bank_account = balanced.BankAccount.find("/v1/bank_accounts/BA4oTAYv3ma0dGTWzRAJjBP9") -verification = bank_account.verification \ No newline at end of file diff --git a/scenarios/bank_account_verification_update/bank_account_verification_update.py b/scenarios/bank_account_verification_update/bank_account_verification_update.py deleted file mode 100644 index a4c7036..0000000 --- a/scenarios/bank_account_verification_update/bank_account_verification_update.py +++ /dev/null @@ -1,10 +0,0 @@ -import balanced - -balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") - - -bank_account = balanced.BankAccount.find('/v1/bank_accounts/BA4sfKpb9c7jNeC6iHKvFwDc') -verification = bank_account.verification -verification.amount_1 = 1 -verification.amount_2 = 1 -verification.save \ No newline at end of file diff --git a/scenarios/callback_create/callback_create.py b/scenarios/callback_create/callback_create.py deleted file mode 100644 index e69de29..0000000 diff --git a/scenarios/callback_delete/callback_delete.py b/scenarios/callback_delete/callback_delete.py deleted file mode 100644 index e69de29..0000000 diff --git a/scenarios/callback_list/callback_list.py b/scenarios/callback_list/callback_list.py deleted file mode 100644 index e69de29..0000000 diff --git a/scenarios/callback_show/callback_show.py b/scenarios/callback_show/callback_show.py deleted file mode 100644 index e69de29..0000000 diff --git a/scenarios/card_create/card_create.py b/scenarios/card_create/card_create.py deleted file mode 100644 index bec4180..0000000 --- a/scenarios/card_create/card_create.py +++ /dev/null @@ -1,11 +0,0 @@ -import balanced - -balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") - - -card = balanced.Card( - expiration_month='12', - security_code='123', - card_number='5105105105105100', - expiration_year='2020', -).save() \ No newline at end of file diff --git a/scenarios/card_invalidate/card_invalidate.py b/scenarios/card_invalidate/card_invalidate.py deleted file mode 100644 index 9e61b57..0000000 --- a/scenarios/card_invalidate/card_invalidate.py +++ /dev/null @@ -1,8 +0,0 @@ -import balanced - -balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") - - -card = balanced.Card.find('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/cards/CC4DcM3FqXvWA3oIzVgwrG2s') -card.is_valid = False -card.save() \ No newline at end of file diff --git a/scenarios/card_list/card_list.py b/scenarios/card_list/card_list.py deleted file mode 100644 index 80b0f23..0000000 --- a/scenarios/card_list/card_list.py +++ /dev/null @@ -1,6 +0,0 @@ -import balanced - -balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") - - -cards = balanced.Card.query.all(); \ No newline at end of file diff --git a/scenarios/card_show/card_show.py b/scenarios/card_show/card_show.py deleted file mode 100644 index 627a315..0000000 --- a/scenarios/card_show/card_show.py +++ /dev/null @@ -1,6 +0,0 @@ -import balanced - -balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") - - -card = balanced.Card.find("/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/cards/CC4DcM3FqXvWA3oIzVgwrG2s") \ No newline at end of file diff --git a/scenarios/card_update/card_update.py b/scenarios/card_update/card_update.py deleted file mode 100644 index 74d8b9b..0000000 --- a/scenarios/card_update/card_update.py +++ /dev/null @@ -1,12 +0,0 @@ -import balanced - -balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") - - -card = balanced.Card.find('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/cards/CC4DcM3FqXvWA3oIzVgwrG2s') -card.meta = { - 'twitter.id': '1234987650', - 'facebook.user_id': '0192837465', - 'my-own-customer-id': '12345', -} -card.save() \ No newline at end of file diff --git a/scenarios/credit_account_list/credit_account_list.py b/scenarios/credit_account_list/credit_account_list.py deleted file mode 100644 index 65998c0..0000000 --- a/scenarios/credit_account_list/credit_account_list.py +++ /dev/null @@ -1,7 +0,0 @@ -import balanced - -balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") - - -merchant = balanced.Account.find('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg') -credits = merchant.credits.all() \ No newline at end of file diff --git a/scenarios/credit_account_merchant_create/credit_account_merchant_create.py b/scenarios/credit_account_merchant_create/credit_account_merchant_create.py deleted file mode 100644 index f6fb0e1..0000000 --- a/scenarios/credit_account_merchant_create/credit_account_merchant_create.py +++ /dev/null @@ -1,7 +0,0 @@ -import balanced - -balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") - - -merchant = balanced.Account.find('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg') -merchant.credit(100) \ No newline at end of file diff --git a/scenarios/credit_bank_account_list/credit_bank_account_list.py b/scenarios/credit_bank_account_list/credit_bank_account_list.py deleted file mode 100644 index 1cf85de..0000000 --- a/scenarios/credit_bank_account_list/credit_bank_account_list.py +++ /dev/null @@ -1,7 +0,0 @@ -import balanced - -balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") - - -bank_account = balanced.BankAccount.find('/v1/bank_accounts/BA4xg7wvGiKLcFipQYWsVDJR') -credits = bank_account.credits.all() \ No newline at end of file diff --git a/scenarios/credit_create_existing_bank_account/credit_create_existing_bank_account.py b/scenarios/credit_create_existing_bank_account/credit_create_existing_bank_account.py deleted file mode 100644 index ebd3002..0000000 --- a/scenarios/credit_create_existing_bank_account/credit_create_existing_bank_account.py +++ /dev/null @@ -1,7 +0,0 @@ -import balanced - -balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") - - -bank_account = balanced.BankAccount.find('/v1/bank_accounts/BA4xg7wvGiKLcFipQYWsVDJR') -credit = bank_account.credit(10000) \ No newline at end of file diff --git a/scenarios/credit_create_new_bank_account/credit_create_new_bank_account.py b/scenarios/credit_create_new_bank_account/credit_create_new_bank_account.py deleted file mode 100644 index 93a5e7e..0000000 --- a/scenarios/credit_create_new_bank_account/credit_create_new_bank_account.py +++ /dev/null @@ -1,15 +0,0 @@ -import balanced - -balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") - - -bank_account_info = dict( - routing_number='121000358', - type='checking', - account_number='9900000001', - name='Johann Bernoulli', -) -credit = balanced.Credit( - amount=10000, - bank_account=bank_account_info -).save() \ No newline at end of file diff --git a/scenarios/credit_failed_state/credit_failed_state.py b/scenarios/credit_failed_state/credit_failed_state.py deleted file mode 100644 index 90fe568..0000000 --- a/scenarios/credit_failed_state/credit_failed_state.py +++ /dev/null @@ -1,15 +0,0 @@ -import balanced - -balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") - - -bank_account_info = dict( - routing_number='121000358', - type='checking', - account_number='9900000004', - name='Johann Bernoulli', -) -credit = balanced.Credit( - amount=10000, - bank_account=bank_account_info -).save() \ No newline at end of file diff --git a/scenarios/credit_list/credit_list.py b/scenarios/credit_list/credit_list.py deleted file mode 100644 index c808046..0000000 --- a/scenarios/credit_list/credit_list.py +++ /dev/null @@ -1,6 +0,0 @@ -import balanced - -balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") - - -credits = balanced.Credit.query.all() \ No newline at end of file diff --git a/scenarios/credit_paid_state/credit_paid_state.py b/scenarios/credit_paid_state/credit_paid_state.py deleted file mode 100644 index b81dc4e..0000000 --- a/scenarios/credit_paid_state/credit_paid_state.py +++ /dev/null @@ -1,15 +0,0 @@ -import balanced - -balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") - - -bank_account_info = dict( - routing_number='121000358', - type='checking', - account_number='9900000003', - name='Johann Bernoulli', -) -credit = balanced.Credit( - amount=10000, - bank_account=bank_account_info -).save() \ No newline at end of file diff --git a/scenarios/credit_pending_state/credit_pending_state.py b/scenarios/credit_pending_state/credit_pending_state.py deleted file mode 100644 index 93a5e7e..0000000 --- a/scenarios/credit_pending_state/credit_pending_state.py +++ /dev/null @@ -1,15 +0,0 @@ -import balanced - -balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") - - -bank_account_info = dict( - routing_number='121000358', - type='checking', - account_number='9900000001', - name='Johann Bernoulli', -) -credit = balanced.Credit( - amount=10000, - bank_account=bank_account_info -).save() \ No newline at end of file diff --git a/scenarios/credit_show/credit_show.py b/scenarios/credit_show/credit_show.py deleted file mode 100644 index f1c93ac..0000000 --- a/scenarios/credit_show/credit_show.py +++ /dev/null @@ -1,6 +0,0 @@ -import balanced - -balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") - - -credit = balanced.Credit.find('/v1/credits/CR4L4fINGRljGmx0jbwH32RA') \ No newline at end of file diff --git a/scenarios/customer_add_bank_account/customer_add_bank_account.py b/scenarios/customer_add_bank_account/customer_add_bank_account.py deleted file mode 100644 index c6bcb63..0000000 --- a/scenarios/customer_add_bank_account/customer_add_bank_account.py +++ /dev/null @@ -1,7 +0,0 @@ -import balanced - -balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") - - -customer = balanced.Customer.find('/v1/customers/CU54O6mXfm2zETAzuQeMxHpS') -customer.add_bank_account('/v1/bank_accounts/BA55EaXnaE4Yos3ihJawNiaK') \ No newline at end of file diff --git a/scenarios/customer_add_card/customer_add_card.py b/scenarios/customer_add_card/customer_add_card.py deleted file mode 100644 index 8ac7c15..0000000 --- a/scenarios/customer_add_card/customer_add_card.py +++ /dev/null @@ -1,7 +0,0 @@ -import balanced - -balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") - - -customer = balanced.Customer.find('/v1/customers/CU50w7Cg6mD57vSK0K5nMi2i') -customer.add_card('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/cards/CC523BGAwIKAD6qmDRggQW9V') \ No newline at end of file diff --git a/scenarios/customer_create/customer_create.py b/scenarios/customer_create/customer_create.py deleted file mode 100644 index 31e2adc..0000000 --- a/scenarios/customer_create/customer_create.py +++ /dev/null @@ -1,6 +0,0 @@ -import balanced - -balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") - - -customer = balanced.Customer().save() \ No newline at end of file diff --git a/scenarios/debit_account_list/debit_account_list.py b/scenarios/debit_account_list/debit_account_list.py deleted file mode 100644 index 8322fdb..0000000 --- a/scenarios/debit_account_list/debit_account_list.py +++ /dev/null @@ -1,7 +0,0 @@ -import balanced - -balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") - - -account = balanced.Account.find('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg') -debits = account.debits.all() \ No newline at end of file diff --git a/scenarios/debit_create/debit_create.py b/scenarios/debit_create/debit_create.py deleted file mode 100644 index c7bc7a1..0000000 --- a/scenarios/debit_create/debit_create.py +++ /dev/null @@ -1,11 +0,0 @@ -import balanced - -balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") - - -buyer = balanced.Account.find('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg') -buyer.debit( - appears_on_statement_as='Statement text', - amount='5000', - description='Some descriptive text for the debit in the dashboard', -) \ No newline at end of file diff --git a/scenarios/debit_list/debit_list.py b/scenarios/debit_list/debit_list.py deleted file mode 100644 index 7b2ec35..0000000 --- a/scenarios/debit_list/debit_list.py +++ /dev/null @@ -1,6 +0,0 @@ -import balanced - -balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") - - -debits = balanced.Debit.query.all(); \ No newline at end of file diff --git a/scenarios/debit_refund/debit_refund.py b/scenarios/debit_refund/debit_refund.py deleted file mode 100644 index 4daa2eb..0000000 --- a/scenarios/debit_refund/debit_refund.py +++ /dev/null @@ -1,7 +0,0 @@ -import balanced - -balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") - - -debit = balanced.Debit.find('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/debits/WD5hKOubxx6UWLzsJnQGv5F5') -debit.refund() \ No newline at end of file diff --git a/scenarios/debit_show/debit_show.py b/scenarios/debit_show/debit_show.py deleted file mode 100644 index 00d052a..0000000 --- a/scenarios/debit_show/debit_show.py +++ /dev/null @@ -1,6 +0,0 @@ -import balanced - -balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") - - -debit = balanced.Debit.find("/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/debits/WD58hSdghkuQKA1H1urhDwVa") \ No newline at end of file diff --git a/scenarios/debit_update/debit_update.py b/scenarios/debit_update/debit_update.py deleted file mode 100644 index 935cf71..0000000 --- a/scenarios/debit_update/debit_update.py +++ /dev/null @@ -1,12 +0,0 @@ -import balanced - -balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") - - -debit = balanced.Debit.find('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/debits/WD58hSdghkuQKA1H1urhDwVa') -debit.description = 'New description for debit' -debit.meta = { - 'facebook.id': '1234567890', - 'anykey': 'valuegoeshere', -} -debit.save() \ No newline at end of file diff --git a/scenarios/event_list/event_list.py b/scenarios/event_list/event_list.py deleted file mode 100644 index fa53948..0000000 --- a/scenarios/event_list/event_list.py +++ /dev/null @@ -1,6 +0,0 @@ -import balanced - -balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") - - -callbacks = balanced.Event.query.all(); \ No newline at end of file diff --git a/scenarios/event_replay/event_replay.py b/scenarios/event_replay/event_replay.py deleted file mode 100644 index e69de29..0000000 diff --git a/scenarios/event_show/event_show.py b/scenarios/event_show/event_show.py deleted file mode 100644 index 3901207..0000000 --- a/scenarios/event_show/event_show.py +++ /dev/null @@ -1,6 +0,0 @@ -import balanced - -balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") - - -event = balanced.Event.find("/v1/events/EV83d04cdcfeea11e2abcb026ba7cd33d0") \ No newline at end of file diff --git a/scenarios/hold_account_list/hold_account_list.py b/scenarios/hold_account_list/hold_account_list.py deleted file mode 100644 index 759abda..0000000 --- a/scenarios/hold_account_list/hold_account_list.py +++ /dev/null @@ -1,7 +0,0 @@ -import balanced - -balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") - - -account = balanced.Account.find('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg') -holds = account.holds.all() \ No newline at end of file diff --git a/scenarios/hold_capture/hold_capture.py b/scenarios/hold_capture/hold_capture.py deleted file mode 100644 index b129e2b..0000000 --- a/scenarios/hold_capture/hold_capture.py +++ /dev/null @@ -1,10 +0,0 @@ -import balanced - -balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") - - -hold = balanced.Hold.find('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/holds/HL5zdhxmKBk5X1Nn0ZS21UYE') -debit = hold.capture( - appears_on_statement_as='ShowsUpOnStmt', - description='Some descriptive text for the debit in the dashboard', -) \ No newline at end of file diff --git a/scenarios/hold_create/hold_create.py b/scenarios/hold_create/hold_create.py deleted file mode 100644 index 2b7b33b..0000000 --- a/scenarios/hold_create/hold_create.py +++ /dev/null @@ -1,10 +0,0 @@ -import balanced - -balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") - - -buyer = balanced.Account.find('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg') -buyer.hold( - amount='5000', - description='Some descriptive text for the debit in the dashboard', -) \ No newline at end of file diff --git a/scenarios/hold_list/hold_list.py b/scenarios/hold_list/hold_list.py deleted file mode 100644 index 179f565..0000000 --- a/scenarios/hold_list/hold_list.py +++ /dev/null @@ -1,6 +0,0 @@ -import balanced - -balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") - - -holds = balanced.Hold.query.all(); \ No newline at end of file diff --git a/scenarios/hold_show/hold_show.py b/scenarios/hold_show/hold_show.py deleted file mode 100644 index 80bece1..0000000 --- a/scenarios/hold_show/hold_show.py +++ /dev/null @@ -1,6 +0,0 @@ -import balanced - -balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") - - -hold = balanced.Hold.find("/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/holds/HL5rHLGFY2NMLve5y2yPJC06") \ No newline at end of file diff --git a/scenarios/hold_update/hold_update.py b/scenarios/hold_update/hold_update.py deleted file mode 100644 index c42d820..0000000 --- a/scenarios/hold_update/hold_update.py +++ /dev/null @@ -1,12 +0,0 @@ -import balanced - -balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") - - -hold = balanced.Hold.find('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/holds/HL5rHLGFY2NMLve5y2yPJC06') -hold.description = 'update this description' -hold.meta = { - 'holding.for': 'user1', - 'meaningful.key': 'some.value', -} -hold.save() \ No newline at end of file diff --git a/scenarios/hold_void/hold_void.py b/scenarios/hold_void/hold_void.py deleted file mode 100644 index cedc0bc..0000000 --- a/scenarios/hold_void/hold_void.py +++ /dev/null @@ -1,7 +0,0 @@ -import balanced - -balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") - - -hold = balanced.Hold.find('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/holds/HL5DjCcU0FHDkiNj6X2ITrhm') -hold.void() \ No newline at end of file diff --git a/scenarios/refund_account_list/refund_account_list.py b/scenarios/refund_account_list/refund_account_list.py deleted file mode 100644 index 75925cd..0000000 --- a/scenarios/refund_account_list/refund_account_list.py +++ /dev/null @@ -1,7 +0,0 @@ -import balanced - -balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") - - -buyer = balanced.Account.find('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/accounts/AC4aHI8dZiHocr1M5FARdZzg') -refunds = buyer.refunds.all() \ No newline at end of file diff --git a/scenarios/refund_create/refund_create.py b/scenarios/refund_create/refund_create.py deleted file mode 100644 index ddc6274..0000000 --- a/scenarios/refund_create/refund_create.py +++ /dev/null @@ -1,14 +0,0 @@ -import balanced - -balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") - - -debit = balanced.Debit.find('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/debits/WD5Gv7XetHvx1CHUqkDKiZYY') -debit.refund( - description='Refund for Order #1111', - meta={ - 'fulfillment.item.condition': 'OK', - 'user.refund_reason': 'not happy with product', - 'merchant.feedback': 'positive', - }, -) \ No newline at end of file diff --git a/scenarios/refund_list/refund_list.py b/scenarios/refund_list/refund_list.py deleted file mode 100644 index f5f3c4a..0000000 --- a/scenarios/refund_list/refund_list.py +++ /dev/null @@ -1,6 +0,0 @@ -import balanced - -balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") - - -refunds = balanced.Refund.query.all(); \ No newline at end of file diff --git a/scenarios/refund_show/refund_show.py b/scenarios/refund_show/refund_show.py deleted file mode 100644 index 13363d5..0000000 --- a/scenarios/refund_show/refund_show.py +++ /dev/null @@ -1,6 +0,0 @@ -import balanced - -balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") - - -refund = balanced.Refund.find("/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/refunds/RF5IbmNudG8OWk1TzjdwmvOu") \ No newline at end of file diff --git a/scenarios/refund_update/refund_update.py b/scenarios/refund_update/refund_update.py deleted file mode 100644 index 77c67db..0000000 --- a/scenarios/refund_update/refund_update.py +++ /dev/null @@ -1,13 +0,0 @@ -import balanced - -balanced.configure("8386409cfeea11e2b3ee026ba7c1aba6") - - -refund = balanced.Refund.find('/v1/marketplaces/TEST-MP40BcQ7XUk3TlZOupT5Y3Nm/refunds/RF5IbmNudG8OWk1TzjdwmvOu') -refund.description = 'update this description' -refund.meta = { - 'user.refund.count': '3', - 'refund.reason': 'user not happy with product', - 'user.notes': 'very polite on the phone', -} -refund.save() \ No newline at end of file