openapi/fixtures.json in stripe-2.1.0 vs openapi/fixtures.json in stripe-2.2.0
- old
+ new
@@ -1,1397 +1,1468 @@
{
- "account": {
- "active_payment_methods": [
+ "resources": {
+ "account": {
+ "active_payment_methods": [
- ],
- "bank_accounts": {
+ ],
+ "bank_accounts": {
+ },
+ "business_logo": "",
+ "business_name": "",
+ "business_primary_color": "",
+ "business_url": "",
+ "charges_enabled": false,
+ "country": "US",
+ "debit_negative_balances": true,
+ "decline_charge_on": {
+ "avs_failure": true,
+ "cvc_failure": true
+ },
+ "default_currency": "usd",
+ "details_submitted": false,
+ "display_name": "",
+ "email": "site@stripe.com",
+ "external_accounts": {
+ "data": [
+
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 0,
+ "url": "/v1/accounts/acct_19tLK7DSlTMT26Mk/external_accounts"
+ },
+ "fake_account": false,
+ "id": "acct_19tLK7DSlTMT26Mk",
+ "legal_entity": {
+ "address": {
+ "city": null,
+ "country": "US",
+ "line1": null,
+ "line2": null,
+ "postal_code": null,
+ "state": null
+ },
+ "business_name": null,
+ "business_tax_id_provided": false,
+ "dob": {
+ "day": null,
+ "month": null,
+ "year": null
+ },
+ "first_name": null,
+ "last_name": null,
+ "personal_address": {
+ "city": null,
+ "country": "US",
+ "line1": null,
+ "line2": null,
+ "postal_code": null,
+ "state": null
+ },
+ "ssn_last_4_provided": false,
+ "type": null,
+ "verification": {
+ "details": null,
+ "details_code": null,
+ "document": null,
+ "status": "unverified"
+ }
+ },
+ "light": false,
+ "managed": true,
+ "mcc": "",
+ "metadata": {
+ },
+ "object": "account",
+ "orders": {
+ },
+ "payout_schedule": {
+ "delay_days": 2,
+ "interval": "daily"
+ },
+ "payout_statement_descriptor": "",
+ "payouts_enabled": false,
+ "product_description": "",
+ "risk_details": {
+ },
+ "statement_descriptor": "",
+ "support_address": {
+ },
+ "support_email": "",
+ "support_phone": "",
+ "support_url": "",
+ "timezone": "Etc/UTC",
+ "tos_acceptance": {
+ "date": null,
+ "ip": null,
+ "user_agent": null
+ },
+ "verification": {
+ "disabled_reason": "fields_needed",
+ "due_by": null,
+ "fields_needed": [
+ "business_url",
+ "external_account",
+ "product_description",
+ "support_phone",
+ "tos_acceptance.date",
+ "tos_acceptance.ip"
+ ]
+ }
},
- "business_logo": "",
- "business_name": "",
- "business_primary_color": "",
- "business_url": "",
- "charges_enabled": false,
- "country": "US",
- "debit_negative_balances": true,
- "decline_charge_on": {
- "avs_failure": false,
- "cvc_failure": false
- },
- "default_currency": "usd",
- "details_submitted": false,
- "display_name": "",
- "email": "foo+os4pphkove@example.com",
- "external_accounts": {
- "data": [
+ "account_with_keys": {
+ "active_payment_methods": [
],
- "has_more": false,
- "object": "list",
- "total_count": 0,
- "url": "/v1/accounts/acct_19y6HAAylotNGqt3/external_accounts"
- },
- "fake_account": false,
- "id": "acct_19y6HAAylotNGqt3",
- "legal_entity": {
- "additional_owners": null,
- "address": {
- "city": null,
- "country": "US",
- "line1": null,
- "line2": null,
- "postal_code": null,
- "state": null
+ "bank_accounts": {
},
- "business_name": null,
- "business_name_kana": null,
- "business_name_kanji": null,
- "business_tax_id_provided": false,
- "business_vat_id_provided": false,
- "dob": {
- "day": null,
- "month": null,
- "year": null
+ "business_logo": "",
+ "business_name": "",
+ "business_primary_color": "",
+ "business_url": "",
+ "charges_enabled": false,
+ "country": "US",
+ "debit_negative_balances": false,
+ "decline_charge_on": {
},
- "first_name": null,
- "first_name_kana": null,
- "first_name_kanji": null,
- "gender": null,
- "last_name": null,
- "last_name_kana": null,
- "last_name_kanji": null,
- "maiden_name": null,
- "personal_address": {
- "city": null,
- "country": "US",
- "line1": null,
- "line2": null,
- "postal_code": null,
- "state": null
+ "default_currency": "usd",
+ "details_submitted": false,
+ "display_name": "",
+ "email": "site@stripe.com",
+ "external_accounts": {
},
- "personal_id_number_provided": false,
- "phone_number": null,
- "ssn_last_4_provided": false,
- "type": null,
+ "fake_account": false,
+ "id": "acct_19tLK7DSlTMT26Mk",
+ "keys": {
+ },
+ "legal_entity": {
+ },
+ "light": false,
+ "managed": false,
+ "mcc": "",
+ "metadata": {
+ },
+ "object": "account",
+ "orders": {
+ },
+ "payout_schedule": {
+ },
+ "payout_statement_descriptor": "",
+ "payouts_enabled": false,
+ "product_description": "",
+ "risk_details": {
+ },
+ "statement_descriptor": "",
+ "support_address": {
+ },
+ "support_email": "",
+ "support_phone": "",
+ "support_url": "",
+ "timezone": "Etc/UTC",
+ "tos_acceptance": {
+ },
"verification": {
- "details": null,
- "details_code": null,
- "document": null,
- "status": "unverified"
}
},
- "light": false,
- "managed": true,
- "mcc": "",
- "metadata": {
+ "alipay_account": {
+ "created": 1234567890,
+ "customer": "",
+ "fingerprint": "NYUNwalrZGyUB5WV",
+ "id": "aliacc_19zuujDSlTMT26MkefiECdjT",
+ "livemode": false,
+ "metadata": {
+ },
+ "object": "alipay_account",
+ "payment_amount": 1000,
+ "payment_currency": "usd",
+ "reusable": false,
+ "used": false,
+ "username": "test@example.com"
},
- "object": "account",
- "orders": {
+ "apple_pay_domain": {
+ "created": 1234567890,
+ "domain_name": "example.com",
+ "id": "apwc_19zuugDSlTMT26MkaEqesPjq",
+ "livemode": true,
+ "object": "apple_pay_domain"
},
- "product_description": "",
- "risk_details": {
- },
- "statement_descriptor": "",
- "support_address": {
- },
- "support_email": "",
- "support_phone": "",
- "support_url": "",
- "timezone": "Etc/UTC",
- "tos_acceptance": {
- "date": null,
- "ip": null,
- "user_agent": null
- },
- "transfer_schedule": {
- "delay_days": 7,
- "interval": "daily"
- },
- "transfer_statement_descriptor": "",
- "transfers_enabled": false,
- "verification": {
- "disabled_reason": "fields_needed",
- "due_by": null,
- "fields_needed": [
- "business_url",
- "external_account",
- "product_description",
- "support_phone",
- "tos_acceptance.date",
- "tos_acceptance.ip"
- ]
- }
- },
- "account_with_keys": {
- "active_payment_methods": [
-
- ],
- "bank_accounts": {
- },
- "business_logo": "",
- "business_name": "",
- "business_primary_color": "",
- "business_url": "",
- "charges_enabled": false,
- "country": "US",
- "debit_negative_balances": false,
- "decline_charge_on": {
- },
- "default_currency": "usd",
- "details_submitted": false,
- "display_name": "",
- "email": "foo+os4pphkove@example.com",
- "external_accounts": {
- },
- "fake_account": false,
- "id": "acct_19y6HAAylotNGqt3",
- "keys": {
- },
- "legal_entity": {
- },
- "light": false,
- "managed": false,
- "mcc": "",
- "metadata": {
- },
- "object": "account",
- "orders": {
- },
- "product_description": "",
- "risk_details": {
- },
- "statement_descriptor": "",
- "support_address": {
- },
- "support_email": "",
- "support_phone": "",
- "support_url": "",
- "timezone": "Etc/UTC",
- "tos_acceptance": {
- },
- "transfer_schedule": {
- },
- "transfer_statement_descriptor": "",
- "transfers_enabled": false,
- "verification": {
- }
- },
- "alipay_account": {
- "created": 1234567890,
- "customer": "",
- "fingerprint": "eiRpjVAne6V7vzjH",
- "id": "aliacc_19y6HIAylotNGqt3CWxIarua",
- "livemode": false,
- "metadata": {
- },
- "object": "alipay_account",
- "payment_amount": 1000,
- "payment_currency": "usd",
- "reusable": false,
- "used": false,
- "username": "test@example.com"
- },
- "apple_pay_domain": {
- "created": 1234567890,
- "domain_name": "example.com",
- "id": "apwc_19y6HHAylotNGqt3514QiFTd",
- "livemode": true,
- "object": "apple_pay_domain"
- },
- "balance": {
- "available": [
- {
- "amount": 0,
- "currency": "usd",
- "source_types": {
- "card": 0
+ "balance": {
+ "available": [
+ {
+ "amount": 0,
+ "currency": "usd",
+ "source_types": {
+ "card": 0
+ }
}
- }
- ],
- "connect_reserved": [
+ ],
+ "connect_reserved": [
- ],
- "livemode": false,
- "object": "balance",
- "pending": [
- {
- "amount": 0,
- "currency": "usd",
- "source_types": {
- "card": 0
+ ],
+ "livemode": false,
+ "object": "balance",
+ "pending": [
+ {
+ "amount": 0,
+ "currency": "usd",
+ "source_types": {
+ "card": 0
+ }
}
- }
- ]
- },
- "balance_transaction": {
- "amount": 100,
- "automatic_transfer": {
+ ]
},
- "available_on": 1234567890,
- "created": 1234567890,
- "currency": "usd",
- "description": "",
- "fee": 0,
- "fee_details": [
+ "balance_transaction": {
+ "amount": 100,
+ "automatic_transfer": {
+ },
+ "available_on": 1234567890,
+ "created": 1234567890,
+ "currency": "usd",
+ "description": "",
+ "fee": 0,
+ "fee_details": [
- ],
- "id": "txn_19y6HHAylotNGqt33AMqhSaS",
- "net": 100,
- "object": "balance_transaction",
- "source": "ch_19y6HHAylotNGqt3dguVG1mI",
- "sourced_transfers": {
+ ],
+ "id": "txn_19zuuhDSlTMT26Mk2gJnG0ti",
+ "net": 100,
+ "object": "balance_transaction",
+ "source": "ch_19zuuhDSlTMT26MkKLSiekJ9",
+ "sourced_transfers": {
+ },
+ "status": "pending",
+ "type": "charge"
},
- "status": "pending",
- "type": "charge"
- },
- "bank_account": {
- "account": "acct_19y6HAAylotNGqt3",
- "account_holder_name": "Jane Austen",
- "account_holder_type": "individual",
- "address_city": "",
- "address_line1": "",
- "address_line2": "",
- "address_state": "",
- "address_zip": "",
- "allows_debits": false,
- "bank_name": "STRIPE TEST BANK",
- "bank_phone_number": "",
- "country": "US",
- "currency": "usd",
- "customer": "",
- "customer_reference": "",
- "default_for_currency": false,
- "fingerprint": "G8AlCiZpIixKrovm",
- "id": "ba_19y6HIAylotNGqt37Bbh2BEi",
- "last4": "6789",
- "metadata": {
+ "bank_account": {
+ "account": "acct_19tLK7DSlTMT26Mk",
+ "account_holder_name": "Jane Austen",
+ "account_holder_type": "individual",
+ "address_city": "",
+ "address_line1": "",
+ "address_line2": "",
+ "address_state": "",
+ "address_zip": "",
+ "allows_debits": false,
+ "bank_name": "STRIPE TEST BANK",
+ "bank_phone_number": "",
+ "country": "US",
+ "currency": "usd",
+ "customer": "",
+ "customer_reference": "",
+ "default_for_currency": false,
+ "fingerprint": "ryfzKJTPWAUfw2iL",
+ "id": "ba_19zuuiDSlTMT26Mk8HQCpGLE",
+ "last4": "6789",
+ "metadata": {
+ },
+ "object": "bank_account",
+ "reusable": false,
+ "routing_number": "110000000",
+ "status": "new",
+ "used": false
},
- "object": "bank_account",
- "reusable": false,
- "routing_number": "110000000",
- "status": "new",
- "used": false
- },
- "bitcoin_receiver": {
- "active": false,
- "amount": 100,
- "amount_received": 0,
- "bitcoin_amount": 1757908,
- "bitcoin_amount_received": 0,
- "bitcoin_uri": "bitcoin:test_7i9Fo4b5wXcUAuoVBFrc7nc9HDxD1?amount=0.01757908",
- "created": 1234567890,
- "currency": "usd",
- "customer": "",
- "description": "Receiver for John Doe",
- "email": "test@example.com",
- "filled": false,
- "id": "btcrcv_19y6HIAylotNGqt3PPrzs2zr",
- "inbound_address": "test_7i9Fo4b5wXcUAuoVBFrc7nc9HDxD1",
- "livemode": false,
- "metadata": {
+ "bitcoin_receiver": {
+ "active": false,
+ "amount": 100,
+ "amount_received": 0,
+ "bitcoin_amount": 1757908,
+ "bitcoin_amount_received": 0,
+ "bitcoin_uri": "bitcoin:test_7i9Fo4b5wXcUAuoVBFrc7nc9HDxD1?amount=0.01757908",
+ "created": 1234567890,
+ "currency": "usd",
+ "customer": "",
+ "description": "Receiver for John Doe",
+ "email": "test@example.com",
+ "filled": false,
+ "id": "btcrcv_19zYqFDSlTMT26Mk31J1pMex",
+ "inbound_address": "test_7i9Fo4b5wXcUAuoVBFrc7nc9HDxD1",
+ "livemode": false,
+ "metadata": {
+ },
+ "object": "bitcoin_receiver",
+ "payment": "",
+ "refund_address": "",
+ "transactions": {
+ },
+ "uncaptured_funds": false,
+ "used_for_payment": false
},
- "object": "bitcoin_receiver",
- "payment": "",
- "refund_address": "",
- "transactions": {
+ "bitcoin_transaction": {
+ "amount": 100,
+ "bitcoin_amount": 1757908,
+ "created": 1234567890,
+ "currency": "usd",
+ "id": "btctxn_19zuujDSlTMT26MkHOZALNf7",
+ "object": "bitcoin_transaction",
+ "receiver": "btcrcv_19zYqFDSlTMT26Mk31J1pMex"
},
- "uncaptured_funds": false,
- "used_for_payment": false
- },
- "bitcoin_transaction": {
- "amount": 100,
- "bitcoin_amount": 1757908,
- "created": 1234567890,
- "currency": "usd",
- "id": "btctxn_19y6HIAylotNGqt3ufx7IrFQ",
- "object": "bitcoin_transaction",
- "receiver": "btcrcv_19y6HIBBq8Um5VVVjcO0R7nU"
- },
- "card": {
- "3d_secure": {
- },
- "account": "",
- "address_city": "",
- "address_country": "",
- "address_line1": "",
- "address_line1_check": "",
- "address_line2": "",
- "address_state": "",
- "address_zip": "",
- "address_zip_check": "",
- "available_payout_methods": [
-
- ],
- "brand": "Visa",
- "country": "",
- "currency": "",
- "customer": "",
- "cvc_check": "",
- "default_for_currency": false,
- "description": "",
- "dynamic_last4": "",
- "emv_auth_data": "",
- "estimated_availability": "",
- "exp_month": 8,
- "exp_year": 2018,
- "fingerprint": "",
- "funding": "unknown",
- "google_reference": "",
- "id": "card_19y6HHAylotNGqt3SvYv7I1c",
- "iin": "",
- "issuer": "",
- "last4": "4242",
- "metadata": {
- },
- "name": "",
- "object": "card",
- "recipient": "",
- "three_d_secure": {
- },
- "tokenization_method": ""
- },
- "charge": {
- "alternate_statement_descriptors": {
- },
- "amount": 100,
- "amount_authorized": 0,
- "amount_captured": 0,
- "amount_refunded": 0,
- "application": "",
- "application_fee": "",
- "application_fees_refunded": 0,
- "authorization_code": "",
- "balance_transaction": "txn_19y6HHAylotNGqt33AMqhSaS",
- "captured": true,
"card": {
- },
- "created": 1234567890,
- "currency": "usd",
- "customer": "",
- "description": "My First Test Charge (created for API docs)",
- "destination": "",
- "dispute": "",
- "failure_code": "",
- "failure_message": "",
- "fee_balance_transactions": {
- },
- "fraud_details": {
- },
- "id": "ch_19y6HHAylotNGqt3dguVG1mI",
- "invoice": "",
- "level3": {
- },
- "livemode": false,
- "metadata": {
- },
- "object": "charge",
- "on_behalf_of": "",
- "order": "",
- "outcome": {
- },
- "paid": true,
- "receipt_email": "",
- "receipt_number": "",
- "refunded": false,
- "refunds": {
- "data": [
+ "3d_secure": {
+ },
+ "account": "",
+ "address_city": "",
+ "address_country": "",
+ "address_line1": "",
+ "address_line1_check": "",
+ "address_line2": "",
+ "address_state": "",
+ "address_zip": "",
+ "address_zip_check": "",
+ "available_payout_methods": [
],
- "has_more": false,
- "object": "list",
- "total_count": 0,
- "url": "/v1/charges/ch_19y6HHAylotNGqt3dguVG1mI/refunds"
- },
- "review": "",
- "shipping": {
- },
- "source": {
- "address_city": null,
- "address_country": null,
- "address_line1": null,
- "address_line1_check": null,
- "address_line2": null,
- "address_state": null,
- "address_zip": null,
- "address_zip_check": null,
"brand": "Visa",
- "country": null,
- "customer": null,
- "cvc_check": null,
- "dynamic_last4": null,
+ "country": "",
+ "currency": "",
+ "customer": "",
+ "cvc_check": "",
+ "default_for_currency": false,
+ "description": "",
+ "dynamic_last4": "",
+ "emv_auth_data": "",
+ "estimated_availability": "",
"exp_month": 8,
"exp_year": 2018,
+ "fingerprint": "",
"funding": "unknown",
- "id": "card_19y6HHAylotNGqt3SvYv7I1c",
+ "google_reference": "",
+ "id": "card_19tLKYDSlTMT26Mkl7bixGYc",
+ "iin": "",
+ "issuer": "",
"last4": "4242",
"metadata": {
},
- "name": null,
+ "name": "",
"object": "card",
- "tokenization_method": null
+ "recipient": "",
+ "three_d_secure": {
+ },
+ "tokenization_method": ""
},
- "source_transfer": "",
- "statement_descriptor": "",
- "status": "succeeded",
- "transfer": "",
- "transfer_group": "",
- "trust": {
- }
- },
- "country_spec": {
- "default_currency": "usd",
- "field_schemas": {
- },
- "id": "US",
- "object": "country_spec",
- "supported_bank_account_currencies": {
- "usd": [
- "US"
- ]
- },
- "supported_payment_currencies": [
- "...",
- "aed",
- "afn",
- "usd"
- ],
- "supported_payment_methods": [
- "alipay",
- "card",
- "stripe"
- ],
- "verification_fields": {
- "company": {
- "additional": [
-
- ],
- "minimum": [
-
- ]
+ "charge": {
+ "alternate_statement_descriptors": {
},
- "individual": {
- "additional": [
+ "amount": 100,
+ "amount_authorized": 0,
+ "amount_captured": 0,
+ "amount_refunded": 0,
+ "application": "",
+ "application_fee": "",
+ "application_fees_refunded": 0,
+ "authorization_code": "",
+ "balance_transaction": "txn_19zuuhDSlTMT26Mk2gJnG0ti",
+ "captured": true,
+ "captured_at": 1234567890,
+ "card": {
+ },
+ "created": 1234567890,
+ "currency": "usd",
+ "customer": "",
+ "description": "My First Test Charge (created for API docs)",
+ "destination": "",
+ "dispute": "",
+ "failure_code": "",
+ "failure_message": "",
+ "fee_balance_transactions": {
+ },
+ "fraud_details": {
+ },
+ "id": "ch_19zuuhDSlTMT26MkKLSiekJ9",
+ "invoice": "",
+ "level3": {
+ },
+ "livemode": false,
+ "metadata": {
+ },
+ "object": "charge",
+ "on_behalf_of": "",
+ "order": "",
+ "outcome": {
+ },
+ "paid": true,
+ "receipt_email": "",
+ "receipt_number": "",
+ "refunded": false,
+ "refunds": {
+ "data": [
],
- "minimum": [
-
- ]
+ "has_more": false,
+ "object": "list",
+ "total_count": 0,
+ "url": "/v1/charges/ch_19zuuhDSlTMT26MkKLSiekJ9/refunds"
+ },
+ "review": "",
+ "shipping": {
+ },
+ "source": {
+ "address_city": null,
+ "address_country": null,
+ "address_line1": null,
+ "address_line1_check": null,
+ "address_line2": null,
+ "address_state": null,
+ "address_zip": null,
+ "address_zip_check": null,
+ "brand": "Visa",
+ "country": null,
+ "customer": null,
+ "cvc_check": null,
+ "dynamic_last4": null,
+ "exp_month": 8,
+ "exp_year": 2018,
+ "funding": "unknown",
+ "id": "card_19tLKYDSlTMT26Mkl7bixGYc",
+ "last4": "4242",
+ "metadata": {
+ },
+ "name": null,
+ "object": "card",
+ "tokenization_method": null
+ },
+ "source_transfer": "",
+ "statement_descriptor": "",
+ "status": "succeeded",
+ "transfer": "",
+ "transfer_group": "",
+ "trust": {
}
- }
- },
- "coupon": {
- "amount_off": 0,
- "created": 1234567890,
- "currency": "usd",
- "duration": "repeating",
- "duration_in_months": 3,
- "id": "25OFF",
- "livemode": false,
- "max_redemptions": 0,
- "metadata": {
},
- "object": "coupon",
- "percent_off": 25,
- "redeem_by": 1234567890,
- "times_redeemed": 0,
- "valid": true
- },
- "customer": {
- "account_balance": 0,
- "alipay_accounts": {
- },
- "bank_accounts": {
- },
- "business_vat_id": "",
- "cards": {
- },
- "created": 1234567890,
- "currency": "usd",
- "default_bank_account": "",
- "default_card": "",
- "default_source": "",
- "default_source_type": "",
- "delinquent": false,
- "description": "",
- "discount": {
- },
- "email": "",
- "id": "cus_AIhgCDhEsqLqXq",
- "livemode": false,
- "metadata": {
- },
- "object": "customer",
- "shipping": {
- },
- "sources": {
- "data": [
-
+ "country_spec": {
+ "default_currency": "usd",
+ "field_schemas": {
+ },
+ "id": "US",
+ "object": "country_spec",
+ "supported_bank_account_currencies": {
+ "usd": [
+ "US"
+ ]
+ },
+ "supported_payment_currencies": [
+ "...",
+ "aed",
+ "afn",
+ "usd"
],
- "has_more": false,
- "object": "list",
- "total_count": 0,
- "url": "/v1/customers/cus_AIhgCDhEsqLqXq/sources"
+ "supported_payment_methods": [
+ "alipay",
+ "card",
+ "stripe"
+ ],
+ "verification_fields": {
+ "company": {
+ "additional": [
+ "legal_entity.verification.document"
+ ],
+ "minimum": [
+ "external_account",
+ "legal_entity.address.city",
+ "legal_entity.address.line1",
+ "legal_entity.address.postal_code",
+ "legal_entity.address.state",
+ "legal_entity.business_name",
+ "legal_entity.business_tax_id",
+ "legal_entity.dob.day",
+ "legal_entity.dob.month",
+ "legal_entity.dob.year",
+ "legal_entity.first_name",
+ "legal_entity.last_name",
+ "legal_entity.ssn_last_4",
+ "legal_entity.type",
+ "tos_acceptance.date",
+ "tos_acceptance.ip"
+ ]
+ },
+ "individual": {
+ "additional": [
+ "legal_entity.verification.document"
+ ],
+ "minimum": [
+ "external_account",
+ "legal_entity.address.city",
+ "legal_entity.address.line1",
+ "legal_entity.address.postal_code",
+ "legal_entity.address.state",
+ "legal_entity.dob.day",
+ "legal_entity.dob.month",
+ "legal_entity.dob.year",
+ "legal_entity.first_name",
+ "legal_entity.last_name",
+ "legal_entity.ssn_last_4",
+ "legal_entity.type",
+ "tos_acceptance.date",
+ "tos_acceptance.ip"
+ ]
+ }
+ }
},
- "subscription": {
- },
- "subscriptions": {
- },
- "trust": {
- }
- },
- "customer_source": {
- "customer": "",
- "id": "ba_19y6HIAylotNGqt37Bbh2BEi",
- "metadata": {
- },
- "object": "bank_account"
- },
- "discount": {
"coupon": {
- "amount_off": null,
- "created": 1489700220,
+ "amount_off": 0,
+ "created": 1234567890,
"currency": "usd",
"duration": "repeating",
"duration_in_months": 3,
"id": "25OFF",
"livemode": false,
- "max_redemptions": null,
+ "max_redemptions": 0,
"metadata": {
},
"object": "coupon",
"percent_off": 25,
- "redeem_by": null,
+ "redeem_by": 1234567890,
"times_redeemed": 0,
"valid": true
},
- "customer": "cus_AIhgCDhEsqLqXq",
- "end": 1234567890,
- "object": "discount",
- "start": 1234567890,
- "subscription": ""
- },
- "dispute": {
- "accepted_at": 1234567890,
- "amount": 1000,
- "balance_transaction": "",
- "balance_transactions": [
+ "customer": {
+ "account_balance": 0,
+ "alipay_accounts": {
+ },
+ "bank_accounts": {
+ },
+ "business_vat_id": "",
+ "cards": {
+ },
+ "created": 1234567890,
+ "currency": "usd",
+ "default_bank_account": "",
+ "default_card": "",
+ "default_source": "",
+ "default_source_type": "",
+ "delinquent": false,
+ "description": "",
+ "discount": {
+ },
+ "email": "",
+ "id": "cus_ADmuABetLS15eF",
+ "livemode": false,
+ "metadata": {
+ },
+ "object": "customer",
+ "shipping": {
+ },
+ "sources": {
+ "data": [
- ],
- "charge": "ch_19y6HHAylotNGqt3dguVG1mI",
- "closed_at": 1234567890,
- "created": 1234567890,
- "currency": "usd",
- "escalated_at": 1234567890,
- "evidence": {
- "access_activity_log": null,
- "billing_address": null,
- "cancellation_policy": null,
- "cancellation_policy_disclosure": null,
- "cancellation_rebuttal": null,
- "customer_communication": null,
- "customer_email_address": null,
- "customer_name": null,
- "customer_purchase_ip": null,
- "customer_signature": null,
- "duplicate_charge_documentation": null,
- "duplicate_charge_explanation": null,
- "duplicate_charge_id": null,
- "product_description": null,
- "receipt": null,
- "refund_policy": null,
- "refund_policy_disclosure": null,
- "refund_refusal_explanation": null,
- "service_date": null,
- "service_documentation": null,
- "shipping_address": null,
- "shipping_carrier": null,
- "shipping_date": null,
- "shipping_documentation": null,
- "shipping_tracking_number": null,
- "uncategorized_file": null,
- "uncategorized_text": null
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 0,
+ "url": "/v1/customers/cus_ADmuABetLS15eF/sources"
+ },
+ "subscription": {
+ },
+ "subscriptions": {
+ },
+ "trust": {
+ }
},
- "evidence_details": {
- "due_by": 1491350399,
- "has_evidence": false,
- "past_due": false,
- "submission_count": 0
+ "customer_source": {
+ "customer": "",
+ "id": "ba_19zuuiDSlTMT26Mk8HQCpGLE",
+ "metadata": {
+ },
+ "object": "bank_account"
},
- "evidence_submitted_at": [
-
- ],
- "id": "dp_19y6HHAylotNGqt3bvR7ZOnH",
- "is_charge_refundable": false,
- "is_protected": false,
- "livemode": false,
- "metadata": {
- },
- "network_reason_code": "",
- "object": "dispute",
- "reason": "general",
- "status": "needs_response"
- },
- "event": {
- "api_version": "",
- "created": 1234567890,
- "customer_email": "",
- "data": {
- "object": {
- "amount": 2000,
- "created": 1489700220,
+ "discount": {
+ "coupon": {
+ "amount_off": null,
+ "created": 1490133192,
"currency": "usd",
- "id": "gold",
- "interval": "month",
- "interval_count": 1,
+ "duration": "repeating",
+ "duration_in_months": 3,
+ "id": "25OFF",
"livemode": false,
+ "max_redemptions": null,
"metadata": {
},
- "name": "Gold Special",
- "object": "plan",
- "statement_descriptor": null,
- "trial_period_days": null
- }
+ "object": "coupon",
+ "percent_off": 25,
+ "redeem_by": null,
+ "times_redeemed": 0,
+ "valid": true
+ },
+ "customer": "cus_ADmuABetLS15eF",
+ "end": 1234567890,
+ "object": "discount",
+ "start": 1234567890,
+ "subscription": ""
},
- "id": "evt_19y6HIAylotNGqt349zSXYCk",
- "livemode": false,
- "object": "event",
- "pending_webhooks": 0,
- "recipient_best_description": "",
- "request": "",
- "type": "plan.created"
- },
- "external_account_source": {
- "account": "acct_19y6HAAylotNGqt3",
- "address_city": "",
- "address_line1": "",
- "address_line2": "",
- "address_state": "",
- "address_zip": "",
- "country": "US",
- "currency": "usd",
- "customer": "",
- "default_for_currency": false,
- "fingerprint": "G8AlCiZpIixKrovm",
- "id": "ba_19y6HIAylotNGqt37Bbh2BEi",
- "last4": "6789",
- "metadata": {
+ "dispute": {
+ "accepted_at": 1234567890,
+ "amount": 1000,
+ "balance_transaction": "",
+ "balance_transactions": [
+
+ ],
+ "charge": "ch_19zuuhDSlTMT26MkKLSiekJ9",
+ "closed_at": 1234567890,
+ "created": 1234567890,
+ "currency": "usd",
+ "escalated_at": 1234567890,
+ "evidence": {
+ "access_activity_log": null,
+ "billing_address": null,
+ "cancellation_policy": null,
+ "cancellation_policy_disclosure": null,
+ "cancellation_rebuttal": null,
+ "customer_communication": null,
+ "customer_email_address": null,
+ "customer_name": null,
+ "customer_purchase_ip": null,
+ "customer_signature": null,
+ "duplicate_charge_documentation": null,
+ "duplicate_charge_explanation": null,
+ "duplicate_charge_id": null,
+ "product_description": null,
+ "receipt": null,
+ "refund_policy": null,
+ "refund_policy_disclosure": null,
+ "refund_refusal_explanation": null,
+ "service_date": null,
+ "service_documentation": null,
+ "shipping_address": null,
+ "shipping_carrier": null,
+ "shipping_date": null,
+ "shipping_documentation": null,
+ "shipping_tracking_number": null,
+ "uncategorized_file": null,
+ "uncategorized_text": null
+ },
+ "evidence_details": {
+ "due_by": 1491782399,
+ "has_evidence": false,
+ "past_due": false,
+ "submission_count": 0
+ },
+ "evidence_submitted_at": [
+
+ ],
+ "id": "dp_19zuuhDSlTMT26Mkp7PHaa4O",
+ "is_charge_refundable": false,
+ "is_protected": false,
+ "livemode": false,
+ "metadata": {
+ },
+ "network_reason_code": "",
+ "object": "dispute",
+ "reason": "general",
+ "status": "needs_response"
},
- "object": "bank_account"
- },
- "fee_refund": {
- "amount": 100,
- "balance_transaction": "",
- "created": 1234567890,
- "currency": "usd",
- "fee": "fee_19y6HIAylotNGqt3iEVMbEmJ",
- "id": "fr_AIhghI4mXRpLEw",
- "metadata": {
- },
- "object": "fee_refund"
- },
- "invoice": {
- "amount_due": 0,
- "application_fee": 0,
- "attempt_count": 0,
- "attempted": false,
- "billing": "",
- "charge": "",
- "closed": false,
- "currency": "usd",
- "customer": "cus_AIhgCDhEsqLqXq",
- "date": 1234567890,
- "description": "",
- "discount": {
- },
- "due_date": 1234567890,
- "ending_balance": 0,
- "forgiven": false,
- "id": "in_19y6HIAylotNGqt3Kq1NUy5r",
- "lines": {
- "data": [
- {
- "amount": 2000,
+ "event": {
+ "api_version": "2017-02-14",
+ "created": 1234567890,
+ "customer_email": "",
+ "data": {
+ "object": {
+ "account_balance": 0,
+ "created": 1488566449,
"currency": "usd",
+ "default_source": null,
+ "delinquent": false,
"description": null,
- "discountable": true,
- "id": "sub_AIhgP3KgCUJMuh",
- "livemode": true,
+ "discount": null,
+ "email": null,
+ "id": "cus_ADmuABetLS15eF",
+ "livemode": false,
"metadata": {
},
- "object": "line_item",
- "period": {
- "end": 1494970619,
- "start": 1492378619
+ "object": "customer",
+ "shipping": null,
+ "sources": {
+ "data": [
+
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 0,
+ "url": "/v1/customers/cus_ADmuABetLS15eF/sources"
},
- "plan": {
+ "subscriptions": {
+ "data": [
+
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 0,
+ "url": "/v1/customers/cus_ADmuABetLS15eF/subscriptions"
+ }
+ }
+ },
+ "id": "evt_19tLKfDSlTMT26MkKD3pohqX",
+ "livemode": false,
+ "object": "event",
+ "pending_webhooks": 0,
+ "recipient_best_description": "",
+ "request": "",
+ "type": "customer.created"
+ },
+ "external_account_source": {
+ "account": "acct_19tLK7DSlTMT26Mk",
+ "address_city": "",
+ "address_line1": "",
+ "address_line2": "",
+ "address_state": "",
+ "address_zip": "",
+ "country": "US",
+ "currency": "usd",
+ "customer": "",
+ "default_for_currency": false,
+ "fingerprint": "ryfzKJTPWAUfw2iL",
+ "id": "ba_19zuuiDSlTMT26Mk8HQCpGLE",
+ "last4": "6789",
+ "metadata": {
+ },
+ "object": "bank_account"
+ },
+ "fee_refund": {
+ "amount": 100,
+ "balance_transaction": "",
+ "created": 1234567890,
+ "currency": "usd",
+ "fee": "fee_19zuujDSlTMT26MkEMvXUsIx",
+ "id": "fr_AKa4dv904Dvl5q",
+ "metadata": {
+ },
+ "object": "fee_refund"
+ },
+ "invoice": {
+ "amount_due": 0,
+ "application_fee": 0,
+ "attempt_count": 0,
+ "attempted": false,
+ "billing": "",
+ "charge": "",
+ "closed": false,
+ "currency": "usd",
+ "customer": "cus_ADmuABetLS15eF",
+ "date": 1234567890,
+ "description": "",
+ "discount": {
+ },
+ "due_date": 1234567890,
+ "ending_balance": 0,
+ "forgiven": false,
+ "id": "in_19zuuiDSlTMT26Mk1XitxqCb",
+ "lines": {
+ "data": [
+ {
"amount": 2000,
- "created": 1489700220,
"currency": "usd",
- "id": "gold",
- "interval": "month",
- "interval_count": 1,
- "livemode": false,
+ "description": null,
+ "discountable": true,
+ "id": "sub_AKa4uss8vCMAZC",
+ "livemode": true,
"metadata": {
},
- "name": "Gold Special",
- "object": "plan",
- "statement_descriptor": null,
- "trial_period_days": null
- },
- "proration": false,
- "quantity": 1,
- "subscription": null,
- "subscription_item": "si_19y6HHBBq8Um5VVVeabmVesw",
- "type": "subscription"
- }
- ],
- "object": "list",
- "total_count": 1,
- "url": "/v1/invoices/in_19y6HIAylotNGqt3Kq1NUy5r/lines"
+ "object": "line_item",
+ "period": {
+ "end": 1495403592,
+ "start": 1492811592
+ },
+ "plan": {
+ "amount": 2000,
+ "created": 1488566449,
+ "currency": "usd",
+ "id": "gold",
+ "interval": "month",
+ "interval_count": 1,
+ "livemode": false,
+ "metadata": {
+ },
+ "name": "Gold Special",
+ "object": "plan",
+ "statement_descriptor": null,
+ "trial_period_days": null
+ },
+ "proration": false,
+ "quantity": 1,
+ "subscription": null,
+ "subscription_item": "si_19zuuiDSlTMT26Mk9HayBPe9",
+ "type": "subscription"
+ }
+ ],
+ "object": "list",
+ "total_count": 1,
+ "url": "/v1/invoices/in_19zuuiDSlTMT26Mk1XitxqCb/lines"
+ },
+ "livemode": false,
+ "metadata": {
+ },
+ "next_payment_attempt": 1234567890,
+ "number": "",
+ "object": "invoice",
+ "paid": false,
+ "period_end": 1234567890,
+ "period_start": 1234567890,
+ "receipt_number": "",
+ "send_next_at": 1234567890,
+ "starting_balance": 0,
+ "statement_descriptor": "",
+ "subscription": "",
+ "subscription_proration_date": 0,
+ "subtotal": 0,
+ "tax": 0,
+ "tax_percent": 0.0,
+ "total": 0,
+ "webhooks_delivered_at": 1234567890
},
- "livemode": false,
- "metadata": {
+ "invoice_item": {
+ "amount": 1000,
+ "currency": "usd",
+ "customer": "cus_ADmuABetLS15eF",
+ "date": 1234567890,
+ "description": "My First Invoice Item (created for API docs)",
+ "discountable": true,
+ "id": "ii_19zuuiDSlTMT26MkvsaAgAi7",
+ "invoice": "",
+ "livemode": false,
+ "metadata": {
+ },
+ "object": "invoiceitem",
+ "period": {
+ "end": 1490133192,
+ "start": 1490133192
+ },
+ "plan": {
+ },
+ "proration": false,
+ "quantity": 0,
+ "subscription": "",
+ "subscription_item": ""
},
- "next_payment_attempt": 1234567890,
- "number": "",
- "object": "invoice",
- "paid": false,
- "period_end": 1234567890,
- "period_start": 1234567890,
- "receipt_number": "",
- "starting_balance": 0,
- "statement_descriptor": "",
- "subscription": "",
- "subscription_proration_date": 0,
- "subtotal": 0,
- "tax": 0,
- "tax_percent": 0.0,
- "total": 0,
- "webhooks_delivered_at": 1234567890
- },
- "invoice_item": {
- "amount": 1000,
- "currency": "usd",
- "customer": "cus_AIhgCDhEsqLqXq",
- "date": 1234567890,
- "description": "My First Invoice Item (created for API docs)",
- "discountable": true,
- "id": "ii_19y6HIAylotNGqt36BYYgGHq",
- "invoice": "",
- "livemode": false,
- "metadata": {
+ "invoice_line_item": {
+ "amount": 1000,
+ "currency": "usd",
+ "description": "My First Invoice Item (created for API docs)",
+ "discountable": true,
+ "id": "ii_19zuuiDSlTMT26MkvsaAgAi7",
+ "livemode": false,
+ "metadata": {
+ },
+ "object": "line_item",
+ "period": {
+ "end": 1490133192,
+ "start": 1490133192
+ },
+ "plan": {
+ },
+ "proration": false,
+ "quantity": 0,
+ "subscription": "",
+ "subscription_item": "",
+ "type": "invoiceitem"
},
- "object": "invoiceitem",
- "period": {
- "end": 1489700220,
- "start": 1489700220
- },
- "plan": {
- },
- "proration": false,
- "quantity": 0,
- "subscription": "",
- "subscription_item": ""
- },
- "invoice_line_item": {
- "amount": 1000,
- "currency": "usd",
- "description": "My First Invoice Item (created for API docs)",
- "discountable": true,
- "id": "ii_19y6HIAylotNGqt36BYYgGHq",
- "livemode": false,
- "metadata": {
- },
- "object": "line_item",
- "period": {
- "end": 1489700220,
- "start": 1489700220
- },
- "plan": {
- },
- "proration": false,
- "quantity": 0,
- "subscription": "",
- "subscription_item": "",
- "type": "invoiceitem"
- },
- "legacy_transfer": {
- "amount": 1100,
- "amount_reversed": 0,
- "application_fee": "",
- "auto": false,
- "balance_transaction": "",
- "bank_account": {
- },
- "card": {
- },
- "created": 1234567890,
- "currency": "usd",
- "date": 1234567890,
- "delay_reason": "",
- "description": "Transfer to test@example.com",
- "destination": "ba_19y6HIAylotNGqt3Tk6btLgn",
- "destination_payment": "",
- "failure_code": "",
- "failure_message": "",
- "id": "tr_19y6HIAylotNGqt3ph4EjS38",
- "legacy_date": 1234567890,
- "livemode": false,
- "metadata": {
- },
- "method": "standard",
- "object": "transfer",
- "recipient": "",
- "reversals": {
- "data": [
+ "legacy_transfer": {
+ "amount": 1100,
+ "amount_reversed": 0,
+ "application_fee": "",
+ "auto": false,
+ "balance_transaction": "",
+ "bank_account": {
+ },
+ "card": {
+ },
+ "created": 1234567890,
+ "currency": "usd",
+ "date": 1234567890,
+ "delay_reason": "",
+ "description": "Transfer to test@example.com",
+ "destination": "ba_19zuujDSlTMT26MkRkpqv9Ud",
+ "destination_payment": "",
+ "failure_code": "",
+ "failure_message": "",
+ "id": "tr_19zuujDSlTMT26Mk81npuLjT",
+ "legacy_date": 1234567890,
+ "livemode": false,
+ "metadata": {
+ },
+ "method": "standard",
+ "object": "transfer",
+ "recipient": "",
+ "reversals": {
+ "data": [
- ],
- "has_more": false,
- "object": "list",
- "total_count": 0,
- "url": "/v1/transfers/tr_19y6HIAylotNGqt3ph4EjS38/reversals"
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 0,
+ "url": "/v1/transfers/tr_19zuujDSlTMT26Mk81npuLjT/reversals"
+ },
+ "reversed": false,
+ "source_transaction": "",
+ "source_type": "card",
+ "statement_descriptor": "",
+ "status": "in_transit",
+ "transfer_group": "",
+ "type": "bank_account",
+ "user_visible_date": 1234567890
},
- "reversed": false,
- "source_transaction": "",
- "source_type": "card",
- "statement_descriptor": "",
- "status": "in_transit",
- "transfer_group": "",
- "type": "bank_account",
- "user_visible_date": 1234567890
- },
- "order": {
- "amount": 1500,
- "amount_returned": 0,
- "application": "",
- "application_fee": 0,
- "charge": "",
- "created": 1234567890,
- "currency": "usd",
- "customer": "",
- "email": "",
- "external_coupon_code": "",
- "external_sku_ids": [
+ "order": {
+ "amount": 1500,
+ "amount_returned": 0,
+ "application": "",
+ "application_fee": 0,
+ "charge": "",
+ "created": 1234567890,
+ "currency": "usd",
+ "customer": "",
+ "email": "",
+ "external_coupon_code": "",
+ "external_sku_ids": [
- ],
- "id": "or_19y6HJAylotNGqt3bov4Z4DC",
- "items": [
- {
- "amount": 1500,
- "currency": "usd",
- "description": "T-shirt",
- "object": "order_item",
- "parent": "sk_19y6HJAylotNGqt3oddcLh9L",
- "quantity": null,
- "type": "sku"
- }
- ],
- "livemode": false,
- "metadata": {
- },
- "object": "order",
- "returns": {
- "data": [
-
],
- "has_more": false,
- "object": "list",
- "total_count": 0,
- "url": "/v1/order_returns?order=or_19y6HJAylotNGqt3bov4Z4DC"
- },
- "selected_shipping_method": "",
- "shipping": {
- "address": {
- "city": "Anytown",
- "country": "US",
- "line1": "1234 Main street",
- "line2": null,
- "postal_code": "123456",
- "state": null
+ "id": "or_19zuukDSlTMT26MktR8hwCzJ",
+ "items": [
+ {
+ "amount": 1500,
+ "currency": "usd",
+ "description": "T-shirt",
+ "object": "order_item",
+ "parent": "sk_19tLKeDSlTMT26MkWafeCAS4",
+ "quantity": null,
+ "type": "sku"
+ }
+ ],
+ "livemode": false,
+ "metadata": {
},
- "carrier": null,
- "name": "Jenny Rosen",
- "phone": null,
- "tracking_number": null
- },
- "shipping_methods": {
- },
- "signature": "",
- "status": "created",
- "status_transitions": {
- },
- "updated": 1234567890,
- "upstream_id": ""
- },
- "order_return": {
- "amount": 1500,
- "created": 1234567890,
- "currency": "usd",
- "id": "orret_19y6HJAylotNGqt3bd5YsAXz",
- "items": [
- {
- "amount": 1500,
- "currency": "usd",
- "description": "T-shirt",
- "object": "order_item",
- "parent": "sk_19y6HJAylotNGqt3oddcLh9L",
- "quantity": null,
- "type": "sku"
- }
- ],
- "livemode": false,
- "object": "order_return",
- "order": "or_19y6HJAylotNGqt36m18HzRj",
- "refund": "re_19y6HJAylotNGqt3rTe2A05C"
- },
- "plan": {
- "amount": 2000,
- "created": 1234567890,
- "currency": "usd",
- "id": "gold",
- "interval": "month",
- "interval_count": 1,
- "livemode": false,
- "metadata": {
- },
- "name": "Gold Special",
- "object": "plan",
- "statement_descriptor": "",
- "trial_period_days": 0
- },
- "platform_earning": {
- "account": "acct_19y6HAAylotNGqt3",
- "amount": 100,
- "amount_refunded": 0,
- "application": "ca_AIhgFq8kWIDlYSeaCcuycCoERZL0J0ls",
- "balance_transaction": "txn_19y6HHAylotNGqt33AMqhSaS",
- "charge": "ch_19y6HHAylotNGqt3dguVG1mI",
- "created": 1234567890,
- "currency": "usd",
- "id": "fee_19y6HIAylotNGqt3iEVMbEmJ",
- "livemode": false,
- "object": "application_fee",
- "originating_transaction": "",
- "refunded": false,
- "refunds": {
- "data": [
+ "object": "order",
+ "returns": {
+ "data": [
- ],
- "has_more": false,
- "object": "list",
- "total_count": 0,
- "url": "/v1/application_fees/fee_19y6HIAylotNGqt3iEVMbEmJ/refunds"
- }
- },
- "product": {
- "active": true,
- "attributes": [
- "gender",
- "size"
- ],
- "caption": "",
- "created": 1234567890,
- "deactivate_on": [
-
- ],
- "description": "Comfortable gray cotton t-shirts",
- "donation": false,
- "id": "prod_AIhgWPx5D86mh1",
- "images": [
-
- ],
- "livemode": false,
- "metadata": {
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 0,
+ "url": "/v1/order_returns?order=or_19zuukDSlTMT26MktR8hwCzJ"
+ },
+ "selected_shipping_method": "",
+ "shipping": {
+ "address": {
+ "city": "Anytown",
+ "country": "US",
+ "line1": "1234 Main street",
+ "line2": null,
+ "postal_code": "123456",
+ "state": null
+ },
+ "carrier": null,
+ "name": "Jenny Rosen",
+ "phone": null,
+ "tracking_number": null
+ },
+ "shipping_methods": {
+ },
+ "signature": "",
+ "status": "created",
+ "status_transitions": {
+ "canceled": null,
+ "fulfiled": null,
+ "paid": null,
+ "returned": null
+ },
+ "updated": 1234567890,
+ "upstream_id": ""
},
- "name": "T-shirt",
- "object": "product",
- "package_dimensions": {
- },
- "reason_product_not_tweetable": "",
- "shippable": true,
- "skus": {
- "data": [
-
- ],
- "has_more": false,
- "object": "list",
- "total_count": 0,
- "url": "/v1/skus?product=prod_AIhgWPx5D86mh1\u0026active=true"
- },
- "tweetable_url": "",
- "updated": 1234567890,
- "url": ""
- },
- "refund": {
- "amount": 100,
- "balance_transaction": "",
- "charge": "ch_19y6HHAylotNGqt3dguVG1mI",
- "created": 1234567890,
- "currency": "usd",
- "description": "",
- "fee_balance_transactions": {
- },
- "id": "re_19y6HHAylotNGqt3o9CUC2fJ",
- "metadata": {
- },
- "object": "refund",
- "reason": "",
- "receipt_number": "",
- "status": "succeeded",
- "type": ""
- },
- "sku": {
- "active": true,
- "attributes": {
- "gender": "Unisex",
- "size": "Medium"
- },
- "created": 1234567890,
- "currency": "usd",
- "id": "sku_AIhgANg1XshOPI",
- "image": "",
- "inventory": {
- "quantity": 50,
- "type": "finite",
- "value": null
- },
- "livemode": false,
- "metadata": {
- },
- "object": "sku",
- "package_dimensions": {
- },
- "price": 1500,
- "product": "prod_AIhgWPx5D86mh1",
- "updated": 1234567890
- },
- "source": {
- "amount": 1000,
- "client_secret": "src_client_secret_UxYHcfjreLYKMVWptfFyAsxp",
- "code_verification": {
- },
- "created": 1234567890,
- "currency": "usd",
- "customer": "",
- "flow": "receiver",
- "id": "src_19y6HJAylotNGqt3wfuVnNWw",
- "livemode": false,
- "metadata": {
- },
- "object": "source",
- "order": "",
- "owner": {
- "address": null,
- "email": "jenny.rosen@example.com",
- "name": null,
- "phone": null,
- "verified_address": null,
- "verified_email": null,
- "verified_name": null,
- "verified_phone": null
- },
- "receiver": {
- "address": "test_1MBhWS3uv4ynCfQXF3xQjJkzFPukr4K56N",
- "amount_charged": 0,
- "amount_received": 0,
- "amount_returned": 0,
- "refund_attributes_method": "email",
- "refund_attributes_status": "missing"
- },
- "redirect": {
- },
- "status": "pending",
- "type": "bitcoin",
- "usage": "single_use"
- },
- "subscription": {
- "account_balance": 0,
- "application_fee_percent": 0.0,
- "billing": "",
- "cancel_at_period_end": false,
- "canceled_at": 1234567890,
- "created": 1234567890,
- "current_period_end": 1234567890,
- "current_period_start": 1234567890,
- "customer": "cus_AIhg2AZ0oZn9hq",
- "days_until_due": 0,
- "discount": {
- },
- "ended_at": 1234567890,
- "id": "sub_AIhgP3KgCUJMuh",
- "items": {
- "data": [
+ "order_return": {
+ "amount": 1500,
+ "created": 1234567890,
+ "currency": "usd",
+ "id": "orret_19zuukDSlTMT26Mkxjz1bcqv",
+ "items": [
{
- "created": 1489700220,
- "id": "si_19y6HHBBq8Um5VVVeabmVesw",
- "object": "subscription_item",
- "plan": {
- "amount": 2000,
- "created": 1489700219,
- "currency": "usd",
- "id": "gold",
- "interval": "month",
- "interval_count": 1,
- "livemode": false,
- "metadata": {
- },
- "name": "Gold Special",
- "object": "plan",
- "statement_descriptor": null,
- "trial_period_days": null
- },
- "quantity": 1
+ "amount": 1500,
+ "currency": "usd",
+ "description": "T-shirt",
+ "object": "order_item",
+ "parent": "sk_19zuukDSlTMT26MkepWkJtmm",
+ "quantity": null,
+ "type": "sku"
}
],
- "has_more": false,
- "object": "list",
- "total_count": 1,
- "url": "/v1/subscription_items?subscription=sub_AIhgP3KgCUJMuh"
+ "livemode": false,
+ "object": "order_return",
+ "order": "or_19zuukDSlTMT26MkL38GRWYx",
+ "refund": "re_19zuukDSlTMT26MkKx6aokup"
},
- "livemode": false,
- "max_occurrences": 0,
- "metadata": {
+ "payout": {
+ "amount": 1100,
+ "arrival_date": 1234567890,
+ "auto": false,
+ "balance_transaction": "txn_1A5hBeDSlTMT26MkXlw0Jzki",
+ "bank_account": {
+ },
+ "card": {
+ },
+ "created": 1234567890,
+ "currency": "usd",
+ "destination": "acct_19tLK7DSlTMT26Mk",
+ "failure_balance_transaction": "",
+ "failure_code": "",
+ "failure_message": "",
+ "id": "tr_1A5hBfDSlTMT26MkB9QceCEw",
+ "livemode": false,
+ "metadata": {
+ },
+ "method": "standard",
+ "object": "payout",
+ "source_type": "card",
+ "statement_descriptor": "",
+ "status": "in_transit",
+ "type": "stripe_account"
},
- "object": "subscription",
- "on_behalf_of": "",
"plan": {
"amount": 2000,
- "created": 1489700219,
+ "created": 1234567890,
"currency": "usd",
"id": "gold",
"interval": "month",
"interval_count": 1,
"livemode": false,
"metadata": {
},
"name": "Gold Special",
"object": "plan",
- "statement_descriptor": null,
- "trial_period_days": null
+ "statement_descriptor": "",
+ "trial_period_days": 0
},
- "quantity": 1,
- "retains_own_balance": false,
- "start": 1234567890,
- "status": "active",
- "tax_percent": 0.0,
- "trial_end": 1234567890,
- "trial_start": 1234567890
- },
- "subscription_item": {
- "created": 1489700220,
- "id": "si_19y6HHBBq8Um5VVVWtAse22Z",
- "object": "subscription_item",
- "plan": {
- "amount": 2000,
- "created": 1489700219,
+ "platform_earning": {
+ "account": "acct_19tLK7DSlTMT26Mk",
+ "amount": 100,
+ "amount_refunded": 0,
+ "application": "ca_AKa4xbTjCsfO9n8mgC6PyMNf6FCnXMyM",
+ "balance_transaction": "txn_19zuuhDSlTMT26Mk2gJnG0ti",
+ "charge": "ch_19zuuhDSlTMT26MkKLSiekJ9",
+ "created": 1234567890,
"currency": "usd",
- "id": "gold",
- "interval": "month",
- "interval_count": 1,
+ "id": "fee_19zuujDSlTMT26MkEMvXUsIx",
"livemode": false,
+ "object": "application_fee",
+ "originating_transaction": "",
+ "refunded": false,
+ "refunds": {
+ "data": [
+
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 0,
+ "url": "/v1/application_fees/fee_19zuujDSlTMT26MkEMvXUsIx/refunds"
+ }
+ },
+ "product": {
+ "active": true,
+ "attributes": [
+ "gender",
+ "size"
+ ],
+ "caption": "",
+ "created": 1234567890,
+ "deactivate_on": [
+
+ ],
+ "description": "Comfortable gray cotton t-shirts",
+ "donation": false,
+ "id": "prod_AKa4nDYkPszdDl",
+ "images": [
+
+ ],
+ "livemode": false,
"metadata": {
},
- "name": "Gold Special",
- "object": "plan",
- "statement_descriptor": null,
- "trial_period_days": null
+ "name": "T-shirt",
+ "object": "product",
+ "package_dimensions": {
+ },
+ "reason_product_not_tweetable": "",
+ "shippable": true,
+ "skus": {
+ "data": [
+
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 0,
+ "url": "/v1/skus?product=prod_AKa4nDYkPszdDl&active=true"
+ },
+ "tweetable_url": "",
+ "updated": 1234567890,
+ "url": ""
},
- "quantity": 1
- },
- "three_d_secure": {
- "amount": 1500,
- "authenticated": false,
- "card": {
- "address_city": null,
- "address_country": null,
- "address_line1": null,
- "address_line1_check": null,
- "address_line2": null,
- "address_state": null,
- "address_zip": null,
- "address_zip_check": null,
- "brand": "Visa",
- "country": null,
- "customer": null,
- "cvc_check": null,
- "dynamic_last4": null,
- "exp_month": 8,
- "exp_year": 2018,
- "funding": "unknown",
- "id": "card_19y6HIAylotNGqt3tSobdlid",
- "last4": "4242",
+ "refund": {
+ "amount": 100,
+ "balance_transaction": "",
+ "charge": "ch_19zuuhDSlTMT26MkKLSiekJ9",
+ "created": 1234567890,
+ "currency": "usd",
+ "description": "",
+ "fee_balance_transactions": {
+ },
+ "id": "re_19zuuhDSlTMT26MkpLosorvD",
"metadata": {
},
- "name": null,
- "object": "card",
- "tokenization_method": null
+ "object": "refund",
+ "reason": "",
+ "receipt_number": "",
+ "status": "succeeded",
+ "type": ""
},
- "created": 1234567890,
- "currency": "usd",
- "id": "tdsrc_AIhge8Euw6YKbc",
- "livemode": false,
- "object": "three_d_secure",
- "redirect_url": "http://127.0.0.1:6080/3d_secure/authenticate/tdsrc_AIhge8Euw6YKbc",
- "status": "redirect_pending"
- },
- "token": {
- "account_details": {
+ "sku": {
+ "active": true,
+ "attributes": {
+ "gender": "Unisex",
+ "size": "Medium"
+ },
+ "created": 1234567890,
+ "currency": "usd",
+ "id": "sku_AKa48dqsB87bsK",
+ "image": "",
+ "inventory": {
+ "quantity": 50,
+ "type": "finite",
+ "value": null
+ },
+ "livemode": false,
+ "metadata": {
+ },
+ "object": "sku",
+ "package_dimensions": {
+ },
+ "price": 1500,
+ "product": "prod_AKa4nDYkPszdDl",
+ "updated": 1234567890
},
- "alipay_account": {
+ "source": {
+ "amount": 1000,
+ "client_secret": "src_client_secret_G7TlNFAGB2mThKeaF9jOBdWt",
+ "code_verification": {
+ },
+ "created": 1234567890,
+ "currency": "usd",
+ "customer": "",
+ "flow": "receiver",
+ "id": "src_19zuukDSlTMT26MkL5AZBjwf",
+ "livemode": false,
+ "metadata": {
+ },
+ "object": "source",
+ "order": "",
+ "owner": {
+ "address": null,
+ "email": "jenny.rosen@example.com",
+ "name": null,
+ "phone": null,
+ "verified_address": null,
+ "verified_email": null,
+ "verified_name": null,
+ "verified_phone": null
+ },
+ "receiver": {
+ "address": "test_1MBhWS3uv4ynCfQXF3xQjJkzFPukr4K56N",
+ "amount_charged": 0,
+ "amount_received": 0,
+ "amount_returned": 0,
+ "refund_attributes_method": "email",
+ "refund_attributes_status": "missing"
+ },
+ "redirect": {
+ },
+ "status": "pending",
+ "type": "bitcoin",
+ "usage": "single_use"
},
- "bank_account": {
- },
- "card": {
- "address_city": null,
- "address_country": null,
- "address_line1": null,
- "address_line1_check": null,
- "address_line2": null,
- "address_state": null,
- "address_zip": null,
- "address_zip_check": null,
- "brand": "Visa",
- "country": null,
- "cvc_check": null,
- "dynamic_last4": null,
- "exp_month": 8,
- "exp_year": 2018,
- "funding": "unknown",
- "id": "card_19y6HIAylotNGqt3tSobdlid",
- "last4": "4242",
+ "subscription": {
+ "account_balance": 0,
+ "application_fee_percent": 0.0,
+ "billing": "",
+ "cancel_at_period_end": false,
+ "canceled_at": 1234567890,
+ "created": 1234567890,
+ "current_period_end": 1234567890,
+ "current_period_start": 1234567890,
+ "customer": "cus_ADmuABetLS15eF",
+ "days_until_due": 0,
+ "discount": {
+ },
+ "ended_at": 1234567890,
+ "id": "sub_AKa4uss8vCMAZC",
+ "items": {
+ "data": [
+ {
+ "created": 1490133192,
+ "id": "si_19zuuiDSlTMT26Mk9HayBPe9",
+ "object": "subscription_item",
+ "plan": {
+ "amount": 2000,
+ "created": 1488566449,
+ "currency": "usd",
+ "id": "gold",
+ "interval": "month",
+ "interval_count": 1,
+ "livemode": false,
+ "metadata": {
+ },
+ "name": "Gold Special",
+ "object": "plan",
+ "statement_descriptor": null,
+ "trial_period_days": null
+ },
+ "quantity": 1
+ }
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 1,
+ "url": "/v1/subscription_items?subscription=sub_AKa4uss8vCMAZC"
+ },
+ "livemode": false,
+ "max_occurrences": 0,
"metadata": {
},
- "name": null,
- "object": "card",
- "tokenization_method": null
+ "object": "subscription",
+ "on_behalf_of": "",
+ "plan": {
+ "amount": 2000,
+ "created": 1488566449,
+ "currency": "usd",
+ "id": "gold",
+ "interval": "month",
+ "interval_count": 1,
+ "livemode": false,
+ "metadata": {
+ },
+ "name": "Gold Special",
+ "object": "plan",
+ "statement_descriptor": null,
+ "trial_period_days": null
+ },
+ "quantity": 1,
+ "retains_own_balance": false,
+ "start": 1234567890,
+ "status": "active",
+ "tax_percent": 0.0,
+ "trial_end": 1234567890,
+ "trial_start": 1234567890
},
- "client_ip": "",
- "created": 1234567890,
- "description": "",
- "email": "",
- "id": "tok_19y6HIAylotNGqt3RgAWCZVp",
- "livemode": false,
- "object": "token",
- "type": "card",
- "usage": "",
- "used": false
- },
- "transfer": {
- "amount": 1100,
- "amount_reversed": 0,
- "balance_transaction": "txn_19y6HHAylotNGqt33AMqhSaS",
- "created": 1234567890,
- "currency": "usd",
- "destination": "ba_19y6HIAylotNGqt3Tk6btLgn",
- "destination_payment": "",
- "id": "tr_19y6HIAylotNGqt3ph4EjS38",
- "livemode": false,
- "metadata": {
+ "subscription_item": {
+ "created": 1490133192,
+ "id": "si_19zuuiDSlTMT26MkkbqEeSG7",
+ "object": "subscription_item",
+ "plan": {
+ "amount": 2000,
+ "created": 1488566449,
+ "currency": "usd",
+ "id": "gold",
+ "interval": "month",
+ "interval_count": 1,
+ "livemode": false,
+ "metadata": {
+ },
+ "name": "Gold Special",
+ "object": "plan",
+ "statement_descriptor": null,
+ "trial_period_days": null
+ },
+ "quantity": 1
},
- "object": "transfer",
- "reversals": {
- "data": [
-
- ],
- "has_more": false,
- "object": "list",
- "total_count": 0,
- "url": "/v1/transfers/tr_19y6HIAylotNGqt3ph4EjS38/reversals"
+ "three_d_secure": {
+ "amount": 1500,
+ "authenticated": false,
+ "card": {
+ "address_city": null,
+ "address_country": null,
+ "address_line1": null,
+ "address_line1_check": null,
+ "address_line2": null,
+ "address_state": null,
+ "address_zip": null,
+ "address_zip_check": null,
+ "brand": "Visa",
+ "country": null,
+ "customer": null,
+ "cvc_check": null,
+ "dynamic_last4": null,
+ "exp_month": 8,
+ "exp_year": 2018,
+ "funding": "unknown",
+ "id": "card_19tLKYDSlTMT26Mkl7bixGYc",
+ "last4": "4242",
+ "metadata": {
+ },
+ "name": null,
+ "object": "card",
+ "tokenization_method": null
+ },
+ "created": 1234567890,
+ "currency": "usd",
+ "id": "tdsrc_AKa4JYO98pZnbv",
+ "livemode": false,
+ "object": "three_d_secure",
+ "redirect_url": "http://127.0.0.1:6080/3d_secure/authenticate/tdsrc_AKa4JYO98pZnbv",
+ "status": "redirect_pending"
},
- "reversed": false,
- "transfer_group": ""
- },
- "transfer_recipient": {
- "active_account": {
+ "token": {
+ "account_details": {
+ },
+ "alipay_account": {
+ },
+ "bank_account": {
+ },
+ "card": {
+ "address_city": null,
+ "address_country": null,
+ "address_line1": null,
+ "address_line1_check": null,
+ "address_line2": null,
+ "address_state": null,
+ "address_zip": null,
+ "address_zip_check": null,
+ "brand": "Visa",
+ "country": null,
+ "cvc_check": null,
+ "dynamic_last4": null,
+ "exp_month": 8,
+ "exp_year": 2018,
+ "funding": "unknown",
+ "id": "card_19tLKYDSlTMT26MkxAeJBsQn",
+ "last4": "4242",
+ "metadata": {
+ },
+ "name": null,
+ "object": "card",
+ "tokenization_method": null
+ },
+ "client_ip": "",
+ "created": 1234567890,
+ "description": "",
+ "email": "",
+ "id": "tok_19tLKYDSlTMT26MkK7YyXpCy",
+ "livemode": false,
+ "object": "token",
+ "type": "card",
+ "usage": "",
+ "used": false
},
- "address_city": "",
- "address_country": "",
- "address_line1": "",
- "address_line2": "",
- "address_state": "",
- "address_zip": "",
- "cards": {
- "data": [
+ "transfer": {
+ "amount": 1100,
+ "amount_reversed": 0,
+ "balance_transaction": "txn_19zuuhDSlTMT26Mk2gJnG0ti",
+ "created": 1234567890,
+ "currency": "usd",
+ "destination": "ba_19zuujDSlTMT26MkRkpqv9Ud",
+ "destination_payment": "",
+ "id": "tr_19zuujDSlTMT26Mk81npuLjT",
+ "livemode": false,
+ "metadata": {
+ },
+ "object": "transfer",
+ "reversals": {
+ "data": [
- ],
- "has_more": false,
- "object": "list",
- "total_count": 0,
- "url": "/v1/recipients/rp_19y6HIAylotNGqt3CTykthsz/cards"
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 0,
+ "url": "/v1/transfers/tr_19zuujDSlTMT26Mk81npuLjT/reversals"
+ },
+ "reversed": false,
+ "source_type": "card",
+ "transfer_group": ""
},
- "country": "",
- "created": 1234567890,
- "default_card": "",
- "description": "Recipient for John Doe",
- "dob_day": "",
- "dob_month": "",
- "dob_year": "",
- "email": "test@example.com",
- "id": "rp_19y6HIAylotNGqt3CTykthsz",
- "livemode": false,
- "metadata": {
- },
- "migrated_to": "",
- "name": "John Doe",
- "object": "recipient",
- "tin": "",
- "tin_verification_pending": false,
- "type": "individual",
- "verified": false
- },
- "transfer_reversal": {
- "amount": 1100,
- "balance_transaction": "",
- "created": 1234567890,
- "currency": "usd",
- "id": "trr_19y6HIAylotNGqt3nITPrdUW",
- "metadata": {
- },
- "object": "transfer_reversal",
- "transfer": "tr_19y6HIAylotNGqt3ph4EjS38"
- },
- "upcoming_invoice": {
- "amount_due": 0,
- "application_fee": 0,
- "attempt_count": 0,
- "attempted": false,
- "billing": "",
- "charge": "",
- "closed": false,
- "currency": "usd",
- "customer": "cus_AIhgCDhEsqLqXq",
- "date": 1234567890,
- "description": "",
- "discount": {
- },
- "due_date": 1234567890,
- "ending_balance": 0,
- "forgiven": false,
- "lines": {
- "data": [
+ "transfer_recipient": {
+ "active_account": {
+ },
+ "address_city": "",
+ "address_country": "",
+ "address_line1": "",
+ "address_line2": "",
+ "address_state": "",
+ "address_zip": "",
+ "cards": {
+ "data": [
- ],
- "has_more": false,
- "object": "list",
- "total_count": 0,
- "url": "/v1/invoices/in_19y6HIAylotNGqt3Kq1NUy5r/lines"
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 0,
+ "url": "/v1/recipients/rp_19zuujDSlTMT26MkZ3ZnkXL2/cards"
+ },
+ "country": "",
+ "created": 1234567890,
+ "default_card": "",
+ "description": "Recipient for John Doe",
+ "dob_day": "",
+ "dob_month": "",
+ "dob_year": "",
+ "email": "test@example.com",
+ "id": "rp_19zuujDSlTMT26MkZ3ZnkXL2",
+ "livemode": false,
+ "metadata": {
+ },
+ "migrated_to": "",
+ "name": "John Doe",
+ "object": "recipient",
+ "tin": "",
+ "tin_verification_pending": false,
+ "type": "individual",
+ "verified": false
},
- "livemode": false,
- "metadata": {
+ "transfer_reversal": {
+ "amount": 1100,
+ "balance_transaction": "",
+ "created": 1234567890,
+ "currency": "usd",
+ "id": "trr_19zuujDSlTMT26Mkg0q2NfQu",
+ "metadata": {
+ },
+ "object": "transfer_reversal",
+ "transfer": "tr_19zuujDSlTMT26Mk81npuLjT"
},
- "next_payment_attempt": 1234567890,
- "number": "",
- "object": "invoice",
- "paid": false,
- "period_end": 1234567890,
- "period_start": 1234567890,
- "receipt_number": "",
- "starting_balance": 0,
- "statement_descriptor": "",
- "subscription": "",
- "subscription_proration_date": 0,
- "subtotal": 0,
- "tax": 0,
- "tax_percent": 0.0,
- "total": 0,
- "webhooks_delivered_at": 1234567890
+ "upcoming_invoice": {
+ "amount_due": 0,
+ "application_fee": 0,
+ "attempt_count": 0,
+ "attempted": false,
+ "billing": "",
+ "charge": "",
+ "closed": false,
+ "currency": "usd",
+ "customer": "cus_ADmuABetLS15eF",
+ "date": 1234567890,
+ "description": "",
+ "discount": {
+ },
+ "due_date": 1234567890,
+ "ending_balance": 0,
+ "forgiven": false,
+ "lines": {
+ "data": [
+
+ ],
+ "has_more": false,
+ "object": "list",
+ "total_count": 0,
+ "url": "/v1/invoices/in_19zuuiDSlTMT26Mk1XitxqCb/lines"
+ },
+ "livemode": false,
+ "metadata": {
+ },
+ "next_payment_attempt": 1234567890,
+ "number": "",
+ "object": "invoice",
+ "paid": false,
+ "period_end": 1234567890,
+ "period_start": 1234567890,
+ "receipt_number": "",
+ "send_next_at": 1234567890,
+ "starting_balance": 0,
+ "statement_descriptor": "",
+ "subscription": "",
+ "subscription_proration_date": 0,
+ "subtotal": 0,
+ "tax": 0,
+ "tax_percent": 0.0,
+ "total": 0,
+ "webhooks_delivered_at": 1234567890
+ }
}
}
\ No newline at end of file