2016-04-06 15:57:27 +02:00
|
|
|
---
|
|
|
|
http_interactions:
|
|
|
|
- request:
|
|
|
|
method: post
|
|
|
|
uri: https://api.stripe.com/v1/tokens
|
|
|
|
body:
|
|
|
|
encoding: UTF-8
|
2017-09-18 11:00:20 +02:00
|
|
|
string: card[number]=4242424242424242&card[exp_month]=4&card[exp_year]=2018&card[cvc]=314
|
2016-04-06 15:57:27 +02:00
|
|
|
headers:
|
|
|
|
Accept:
|
|
|
|
- "*/*; q=0.5, application/xml"
|
|
|
|
Accept-Encoding:
|
|
|
|
- gzip, deflate
|
|
|
|
User-Agent:
|
|
|
|
- Stripe/v1 RubyBindings/1.30.2
|
|
|
|
Authorization:
|
2016-04-12 16:43:10 +02:00
|
|
|
- Bearer sk_test_testfaketestfaketestfake
|
2016-04-06 15:57:27 +02:00
|
|
|
Content-Type:
|
|
|
|
- application/x-www-form-urlencoded
|
|
|
|
X-Stripe-Client-User-Agent:
|
|
|
|
- '{"bindings_version":"1.30.2","lang":"ruby","lang_version":"2.3.0 p0 (2015-12-25)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
|
2017-09-18 11:00:20 +02:00
|
|
|
version 4.10.0-33-generic (buildd@lgw01-22) (gcc version 5.4.0 20160609 (Ubuntu
|
|
|
|
5.4.0-6ubuntu1~16.04.4) ) #37~16.04.1-Ubuntu SMP Fri Aug 11 14:07:24 UTC 2017","hostname":"Sleede-SylvainPC"}'
|
2016-04-06 15:57:27 +02:00
|
|
|
Content-Length:
|
|
|
|
- '81'
|
|
|
|
response:
|
|
|
|
status:
|
|
|
|
code: 200
|
|
|
|
message: OK
|
|
|
|
headers:
|
|
|
|
Server:
|
|
|
|
- nginx
|
|
|
|
Date:
|
2017-09-18 11:00:20 +02:00
|
|
|
- Mon, 18 Sep 2017 08:54:50 GMT
|
2016-04-06 15:57:27 +02:00
|
|
|
Content-Type:
|
|
|
|
- application/json
|
|
|
|
Content-Length:
|
2016-04-11 18:37:06 +02:00
|
|
|
- '779'
|
2016-04-06 15:57:27 +02:00
|
|
|
Connection:
|
|
|
|
- keep-alive
|
|
|
|
Access-Control-Allow-Credentials:
|
|
|
|
- 'true'
|
|
|
|
Access-Control-Allow-Methods:
|
|
|
|
- GET, POST, HEAD, OPTIONS, DELETE
|
|
|
|
Access-Control-Allow-Origin:
|
|
|
|
- "*"
|
2017-09-18 11:00:20 +02:00
|
|
|
Access-Control-Expose-Headers:
|
|
|
|
- X-Stripe-Privileged-Session-Required,stripe-manage-version,X-Stripe-External-Auth-Required
|
2016-04-06 15:57:27 +02:00
|
|
|
Access-Control-Max-Age:
|
|
|
|
- '300'
|
|
|
|
Cache-Control:
|
|
|
|
- no-cache, no-store
|
|
|
|
Request-Id:
|
2017-09-18 11:00:20 +02:00
|
|
|
- req_xGDFaSDmVbL2m9
|
2016-04-06 15:57:27 +02:00
|
|
|
Stripe-Version:
|
|
|
|
- '2015-10-16'
|
|
|
|
Strict-Transport-Security:
|
|
|
|
- max-age=31556926; includeSubDomains
|
|
|
|
body:
|
|
|
|
encoding: UTF-8
|
|
|
|
string: |
|
|
|
|
{
|
2017-09-18 11:00:20 +02:00
|
|
|
"id": "tok_1B3L1i2sOmf47Nz9CpbaBivb",
|
2016-04-06 15:57:27 +02:00
|
|
|
"object": "token",
|
|
|
|
"card": {
|
2017-09-18 11:00:20 +02:00
|
|
|
"id": "card_1B3L1h2sOmf47Nz9NAHrANqS",
|
2016-04-06 15:57:27 +02:00
|
|
|
"object": "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": "US",
|
|
|
|
"cvc_check": "unchecked",
|
|
|
|
"dynamic_last4": null,
|
|
|
|
"exp_month": 4,
|
2017-09-18 11:00:20 +02:00
|
|
|
"exp_year": 2018,
|
2016-04-06 15:57:27 +02:00
|
|
|
"fingerprint": "o52jybR7bnmNn6AT",
|
|
|
|
"funding": "credit",
|
|
|
|
"last4": "4242",
|
|
|
|
"metadata": {},
|
|
|
|
"name": null,
|
|
|
|
"tokenization_method": null
|
|
|
|
},
|
2017-09-18 11:00:20 +02:00
|
|
|
"client_ip": "90.112.59.71",
|
|
|
|
"created": 1505724890,
|
2016-04-06 15:57:27 +02:00
|
|
|
"livemode": false,
|
|
|
|
"type": "card",
|
|
|
|
"used": false
|
|
|
|
}
|
2017-09-18 11:00:20 +02:00
|
|
|
http_version:
|
|
|
|
recorded_at: Mon, 18 Sep 2017 08:54:50 GMT
|
2016-04-06 15:57:27 +02:00
|
|
|
- request:
|
|
|
|
method: get
|
2017-09-18 11:00:20 +02:00
|
|
|
uri: https://api.stripe.com/v1/customers/cus_8Di1wjdVktv5kt
|
2016-04-06 15:57:27 +02:00
|
|
|
body:
|
|
|
|
encoding: US-ASCII
|
|
|
|
string: ''
|
|
|
|
headers:
|
|
|
|
Accept:
|
|
|
|
- "*/*; q=0.5, application/xml"
|
|
|
|
Accept-Encoding:
|
|
|
|
- gzip, deflate
|
|
|
|
User-Agent:
|
|
|
|
- Stripe/v1 RubyBindings/1.30.2
|
|
|
|
Authorization:
|
2016-04-12 16:43:10 +02:00
|
|
|
- Bearer sk_test_testfaketestfaketestfake
|
2016-04-06 15:57:27 +02:00
|
|
|
Content-Type:
|
|
|
|
- application/x-www-form-urlencoded
|
|
|
|
X-Stripe-Client-User-Agent:
|
|
|
|
- '{"bindings_version":"1.30.2","lang":"ruby","lang_version":"2.3.0 p0 (2015-12-25)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
|
2017-09-18 11:00:20 +02:00
|
|
|
version 4.10.0-33-generic (buildd@lgw01-22) (gcc version 5.4.0 20160609 (Ubuntu
|
|
|
|
5.4.0-6ubuntu1~16.04.4) ) #37~16.04.1-Ubuntu SMP Fri Aug 11 14:07:24 UTC 2017","hostname":"Sleede-SylvainPC"}'
|
2016-04-06 15:57:27 +02:00
|
|
|
response:
|
|
|
|
status:
|
|
|
|
code: 200
|
|
|
|
message: OK
|
|
|
|
headers:
|
|
|
|
Server:
|
|
|
|
- nginx
|
|
|
|
Date:
|
2017-09-18 11:00:20 +02:00
|
|
|
- Mon, 18 Sep 2017 08:54:51 GMT
|
2016-04-06 15:57:27 +02:00
|
|
|
Content-Type:
|
|
|
|
- application/json
|
|
|
|
Content-Length:
|
2017-09-18 11:00:20 +02:00
|
|
|
- '7733'
|
2016-04-06 15:57:27 +02:00
|
|
|
Connection:
|
|
|
|
- keep-alive
|
|
|
|
Access-Control-Allow-Credentials:
|
|
|
|
- 'true'
|
|
|
|
Access-Control-Allow-Methods:
|
|
|
|
- GET, POST, HEAD, OPTIONS, DELETE
|
|
|
|
Access-Control-Allow-Origin:
|
|
|
|
- "*"
|
2017-09-18 11:00:20 +02:00
|
|
|
Access-Control-Expose-Headers:
|
|
|
|
- X-Stripe-Privileged-Session-Required,stripe-manage-version,X-Stripe-External-Auth-Required
|
2016-04-06 15:57:27 +02:00
|
|
|
Access-Control-Max-Age:
|
|
|
|
- '300'
|
|
|
|
Cache-Control:
|
|
|
|
- no-cache, no-store
|
|
|
|
Request-Id:
|
2017-09-18 11:00:20 +02:00
|
|
|
- req_jc6NgRbYP6JYBW
|
2016-04-06 15:57:27 +02:00
|
|
|
Stripe-Version:
|
|
|
|
- '2015-10-16'
|
|
|
|
Strict-Transport-Security:
|
|
|
|
- max-age=31556926; includeSubDomains
|
|
|
|
body:
|
|
|
|
encoding: UTF-8
|
|
|
|
string: |
|
|
|
|
{
|
2017-09-18 11:00:20 +02:00
|
|
|
"id": "cus_8Di1wjdVktv5kt",
|
|
|
|
"object": "customer",
|
|
|
|
"account_balance": 0,
|
|
|
|
"created": 1459948888,
|
|
|
|
"currency": "usd",
|
|
|
|
"default_source": "card_1B3Kzy2sOmf47Nz9TT6Gk2oJ",
|
|
|
|
"delinquent": false,
|
|
|
|
"description": "Jean Dupond",
|
|
|
|
"discount": null,
|
|
|
|
"email": "jean.dupond@gmail.com",
|
2016-04-11 18:37:06 +02:00
|
|
|
"livemode": false,
|
2017-09-18 11:00:20 +02:00
|
|
|
"metadata": {},
|
|
|
|
"shipping": null,
|
|
|
|
"sources": {
|
|
|
|
"object": "list",
|
|
|
|
"data": [
|
|
|
|
{
|
|
|
|
"id": "card_1B3Kzy2sOmf47Nz9TT6Gk2oJ",
|
|
|
|
"object": "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": "US",
|
|
|
|
"customer": "cus_8Di1wjdVktv5kt",
|
|
|
|
"cvc_check": "pass",
|
|
|
|
"dynamic_last4": null,
|
|
|
|
"exp_month": 4,
|
|
|
|
"exp_year": 2018,
|
|
|
|
"fingerprint": "o52jybR7bnmNn6AT",
|
|
|
|
"funding": "credit",
|
|
|
|
"last4": "4242",
|
|
|
|
"metadata": {},
|
|
|
|
"name": null,
|
|
|
|
"tokenization_method": null
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"has_more": false,
|
|
|
|
"total_count": 1,
|
|
|
|
"url": "/v1/customers/cus_8Di1wjdVktv5kt/sources"
|
|
|
|
},
|
|
|
|
"subscriptions": {
|
|
|
|
"object": "list",
|
|
|
|
"data": [
|
|
|
|
{
|
|
|
|
"id": "sub_BQBMKKS6nutZLr",
|
|
|
|
"object": "subscription",
|
|
|
|
"application_fee_percent": null,
|
|
|
|
"billing": "charge_automatically",
|
|
|
|
"cancel_at_period_end": true,
|
|
|
|
"canceled_at": 1505724793,
|
|
|
|
"created": 1505724789,
|
|
|
|
"current_period_end": 1508316789,
|
|
|
|
"current_period_start": 1505724789,
|
|
|
|
"customer": "cus_8Di1wjdVktv5kt",
|
|
|
|
"discount": null,
|
|
|
|
"ended_at": null,
|
|
|
|
"items": {
|
|
|
|
"object": "list",
|
|
|
|
"data": [
|
|
|
|
{
|
|
|
|
"id": "si_1B3L052sOmf47Nz9MoxGlk6i",
|
|
|
|
"object": "subscription_item",
|
|
|
|
"created": 1505724789,
|
|
|
|
"metadata": {},
|
|
|
|
"plan": {
|
|
|
|
"id": "mensuel-standard-month-20160404171519",
|
|
|
|
"object": "plan",
|
|
|
|
"amount": 3000,
|
|
|
|
"created": 1459782921,
|
|
|
|
"currency": "usd",
|
|
|
|
"interval": "month",
|
|
|
|
"interval_count": 1,
|
|
|
|
"livemode": false,
|
|
|
|
"metadata": {},
|
|
|
|
"name": "Mensuel - standard, association - month",
|
|
|
|
"statement_descriptor": null,
|
|
|
|
"trial_period_days": null
|
|
|
|
},
|
|
|
|
"quantity": 1
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"has_more": false,
|
|
|
|
"total_count": 1,
|
|
|
|
"url": "/v1/subscription_items?subscription=sub_BQBMKKS6nutZLr"
|
|
|
|
},
|
|
|
|
"livemode": false,
|
|
|
|
"metadata": {},
|
|
|
|
"plan": {
|
|
|
|
"id": "mensuel-standard-month-20160404171519",
|
|
|
|
"object": "plan",
|
|
|
|
"amount": 3000,
|
|
|
|
"created": 1459782921,
|
|
|
|
"currency": "usd",
|
|
|
|
"interval": "month",
|
|
|
|
"interval_count": 1,
|
|
|
|
"livemode": false,
|
|
|
|
"metadata": {},
|
|
|
|
"name": "Mensuel - standard, association - month",
|
|
|
|
"statement_descriptor": null,
|
|
|
|
"trial_period_days": null
|
|
|
|
},
|
|
|
|
"quantity": 1,
|
|
|
|
"start": 1505724789,
|
|
|
|
"status": "active",
|
|
|
|
"tax_percent": null,
|
|
|
|
"trial_end": null,
|
|
|
|
"trial_start": null
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "sub_BQBH03MUz5WO4y",
|
|
|
|
"object": "subscription",
|
|
|
|
"application_fee_percent": null,
|
|
|
|
"billing": "charge_automatically",
|
|
|
|
"cancel_at_period_end": true,
|
|
|
|
"canceled_at": 1505724499,
|
|
|
|
"created": 1505724494,
|
|
|
|
"current_period_end": 1508316494,
|
|
|
|
"current_period_start": 1505724494,
|
|
|
|
"customer": "cus_8Di1wjdVktv5kt",
|
|
|
|
"discount": null,
|
|
|
|
"ended_at": null,
|
|
|
|
"items": {
|
|
|
|
"object": "list",
|
|
|
|
"data": [
|
|
|
|
{
|
|
|
|
"id": "si_1B3KvK2sOmf47Nz9mNLN0l2q",
|
|
|
|
"object": "subscription_item",
|
|
|
|
"created": 1505724494,
|
|
|
|
"metadata": {},
|
|
|
|
"plan": {
|
|
|
|
"id": "mensuel-standard-month-20160404171519",
|
|
|
|
"object": "plan",
|
|
|
|
"amount": 3000,
|
|
|
|
"created": 1459782921,
|
|
|
|
"currency": "usd",
|
|
|
|
"interval": "month",
|
|
|
|
"interval_count": 1,
|
|
|
|
"livemode": false,
|
|
|
|
"metadata": {},
|
|
|
|
"name": "Mensuel - standard, association - month",
|
|
|
|
"statement_descriptor": null,
|
|
|
|
"trial_period_days": null
|
|
|
|
},
|
|
|
|
"quantity": 1
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"has_more": false,
|
|
|
|
"total_count": 1,
|
|
|
|
"url": "/v1/subscription_items?subscription=sub_BQBH03MUz5WO4y"
|
|
|
|
},
|
|
|
|
"livemode": false,
|
|
|
|
"metadata": {},
|
|
|
|
"plan": {
|
|
|
|
"id": "mensuel-standard-month-20160404171519",
|
|
|
|
"object": "plan",
|
|
|
|
"amount": 3000,
|
|
|
|
"created": 1459782921,
|
|
|
|
"currency": "usd",
|
|
|
|
"interval": "month",
|
|
|
|
"interval_count": 1,
|
|
|
|
"livemode": false,
|
|
|
|
"metadata": {},
|
|
|
|
"name": "Mensuel - standard, association - month",
|
|
|
|
"statement_descriptor": null,
|
|
|
|
"trial_period_days": null
|
|
|
|
},
|
|
|
|
"quantity": 1,
|
|
|
|
"start": 1505724494,
|
|
|
|
"status": "active",
|
|
|
|
"tax_percent": null,
|
|
|
|
"trial_end": null,
|
|
|
|
"trial_start": null
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "sub_BQBGRftUBikhtm",
|
|
|
|
"object": "subscription",
|
|
|
|
"application_fee_percent": null,
|
|
|
|
"billing": "charge_automatically",
|
|
|
|
"cancel_at_period_end": true,
|
|
|
|
"canceled_at": 1505724425,
|
|
|
|
"created": 1505724421,
|
|
|
|
"current_period_end": 1508316421,
|
|
|
|
"current_period_start": 1505724421,
|
|
|
|
"customer": "cus_8Di1wjdVktv5kt",
|
|
|
|
"discount": null,
|
|
|
|
"ended_at": null,
|
|
|
|
"items": {
|
|
|
|
"object": "list",
|
|
|
|
"data": [
|
|
|
|
{
|
|
|
|
"id": "si_1B3Ku92sOmf47Nz9sdo927vf",
|
|
|
|
"object": "subscription_item",
|
|
|
|
"created": 1505724421,
|
|
|
|
"metadata": {},
|
|
|
|
"plan": {
|
|
|
|
"id": "mensuel-standard-month-20160404171519",
|
|
|
|
"object": "plan",
|
|
|
|
"amount": 3000,
|
|
|
|
"created": 1459782921,
|
|
|
|
"currency": "usd",
|
|
|
|
"interval": "month",
|
|
|
|
"interval_count": 1,
|
|
|
|
"livemode": false,
|
|
|
|
"metadata": {},
|
|
|
|
"name": "Mensuel - standard, association - month",
|
|
|
|
"statement_descriptor": null,
|
|
|
|
"trial_period_days": null
|
|
|
|
},
|
|
|
|
"quantity": 1
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"has_more": false,
|
|
|
|
"total_count": 1,
|
|
|
|
"url": "/v1/subscription_items?subscription=sub_BQBGRftUBikhtm"
|
|
|
|
},
|
|
|
|
"livemode": false,
|
|
|
|
"metadata": {},
|
|
|
|
"plan": {
|
|
|
|
"id": "mensuel-standard-month-20160404171519",
|
|
|
|
"object": "plan",
|
|
|
|
"amount": 3000,
|
|
|
|
"created": 1459782921,
|
|
|
|
"currency": "usd",
|
|
|
|
"interval": "month",
|
|
|
|
"interval_count": 1,
|
|
|
|
"livemode": false,
|
|
|
|
"metadata": {},
|
|
|
|
"name": "Mensuel - standard, association - month",
|
|
|
|
"statement_descriptor": null,
|
|
|
|
"trial_period_days": null
|
|
|
|
},
|
|
|
|
"quantity": 1,
|
|
|
|
"start": 1505724421,
|
|
|
|
"status": "active",
|
|
|
|
"tax_percent": null,
|
|
|
|
"trial_end": null,
|
|
|
|
"trial_start": null
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"has_more": false,
|
|
|
|
"total_count": 3,
|
|
|
|
"url": "/v1/customers/cus_8Di1wjdVktv5kt/subscriptions"
|
|
|
|
}
|
2016-04-06 15:57:27 +02:00
|
|
|
}
|
2017-09-18 11:00:20 +02:00
|
|
|
http_version:
|
|
|
|
recorded_at: Mon, 18 Sep 2017 08:54:52 GMT
|
2016-04-06 15:57:27 +02:00
|
|
|
- request:
|
|
|
|
method: post
|
|
|
|
uri: https://api.stripe.com/v1/customers/cus_8Di1wjdVktv5kt/subscriptions
|
|
|
|
body:
|
|
|
|
encoding: UTF-8
|
2017-09-18 11:00:20 +02:00
|
|
|
string: plan=mensuel-standard-month-20160404171519&source=tok_1B3L1i2sOmf47Nz9CpbaBivb
|
2016-04-06 15:57:27 +02:00
|
|
|
headers:
|
|
|
|
Accept:
|
|
|
|
- "*/*; q=0.5, application/xml"
|
|
|
|
Accept-Encoding:
|
|
|
|
- gzip, deflate
|
|
|
|
User-Agent:
|
|
|
|
- Stripe/v1 RubyBindings/1.30.2
|
|
|
|
Authorization:
|
2016-04-12 16:43:10 +02:00
|
|
|
- Bearer sk_test_testfaketestfaketestfake
|
2016-04-06 15:57:27 +02:00
|
|
|
Content-Type:
|
|
|
|
- application/x-www-form-urlencoded
|
|
|
|
X-Stripe-Client-User-Agent:
|
|
|
|
- '{"bindings_version":"1.30.2","lang":"ruby","lang_version":"2.3.0 p0 (2015-12-25)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
|
2017-09-18 11:00:20 +02:00
|
|
|
version 4.10.0-33-generic (buildd@lgw01-22) (gcc version 5.4.0 20160609 (Ubuntu
|
|
|
|
5.4.0-6ubuntu1~16.04.4) ) #37~16.04.1-Ubuntu SMP Fri Aug 11 14:07:24 UTC 2017","hostname":"Sleede-SylvainPC"}'
|
2016-04-06 15:57:27 +02:00
|
|
|
Content-Length:
|
2017-09-18 11:00:20 +02:00
|
|
|
- '78'
|
2016-04-06 15:57:27 +02:00
|
|
|
response:
|
|
|
|
status:
|
|
|
|
code: 200
|
|
|
|
message: OK
|
|
|
|
headers:
|
|
|
|
Server:
|
|
|
|
- nginx
|
|
|
|
Date:
|
2017-09-18 11:00:20 +02:00
|
|
|
- Mon, 18 Sep 2017 08:54:53 GMT
|
2016-04-06 15:57:27 +02:00
|
|
|
Content-Type:
|
|
|
|
- application/json
|
|
|
|
Content-Length:
|
2017-09-18 11:00:20 +02:00
|
|
|
- '1711'
|
2016-04-06 15:57:27 +02:00
|
|
|
Connection:
|
|
|
|
- keep-alive
|
|
|
|
Access-Control-Allow-Credentials:
|
|
|
|
- 'true'
|
|
|
|
Access-Control-Allow-Methods:
|
|
|
|
- GET, POST, HEAD, OPTIONS, DELETE
|
|
|
|
Access-Control-Allow-Origin:
|
|
|
|
- "*"
|
2017-09-18 11:00:20 +02:00
|
|
|
Access-Control-Expose-Headers:
|
|
|
|
- X-Stripe-Privileged-Session-Required,stripe-manage-version,X-Stripe-External-Auth-Required
|
2016-04-06 15:57:27 +02:00
|
|
|
Access-Control-Max-Age:
|
|
|
|
- '300'
|
|
|
|
Cache-Control:
|
|
|
|
- no-cache, no-store
|
|
|
|
Request-Id:
|
2017-09-18 11:00:20 +02:00
|
|
|
- req_w127ZjwMeU3Ikd
|
2016-04-06 15:57:27 +02:00
|
|
|
Stripe-Version:
|
|
|
|
- '2015-10-16'
|
|
|
|
Strict-Transport-Security:
|
|
|
|
- max-age=31556926; includeSubDomains
|
|
|
|
body:
|
|
|
|
encoding: UTF-8
|
|
|
|
string: |
|
|
|
|
{
|
2017-09-18 11:00:20 +02:00
|
|
|
"id": "sub_BQBOHLXRrG3Z1Q",
|
2016-04-06 15:57:27 +02:00
|
|
|
"object": "subscription",
|
|
|
|
"application_fee_percent": null,
|
2017-09-18 11:00:20 +02:00
|
|
|
"billing": "charge_automatically",
|
2016-04-06 15:57:27 +02:00
|
|
|
"cancel_at_period_end": false,
|
|
|
|
"canceled_at": null,
|
2017-09-18 11:00:20 +02:00
|
|
|
"created": 1505724892,
|
|
|
|
"current_period_end": 1508316892,
|
|
|
|
"current_period_start": 1505724892,
|
2016-04-06 15:57:27 +02:00
|
|
|
"customer": "cus_8Di1wjdVktv5kt",
|
|
|
|
"discount": null,
|
|
|
|
"ended_at": null,
|
2017-09-18 11:00:20 +02:00
|
|
|
"items": {
|
|
|
|
"object": "list",
|
|
|
|
"data": [
|
|
|
|
{
|
|
|
|
"id": "si_1B3L1k2sOmf47Nz9Ua5wYTNH",
|
|
|
|
"object": "subscription_item",
|
|
|
|
"created": 1505724893,
|
|
|
|
"metadata": {},
|
|
|
|
"plan": {
|
|
|
|
"id": "mensuel-standard-month-20160404171519",
|
|
|
|
"object": "plan",
|
|
|
|
"amount": 3000,
|
|
|
|
"created": 1459782921,
|
|
|
|
"currency": "usd",
|
|
|
|
"interval": "month",
|
|
|
|
"interval_count": 1,
|
|
|
|
"livemode": false,
|
|
|
|
"metadata": {},
|
|
|
|
"name": "Mensuel - standard, association - month",
|
|
|
|
"statement_descriptor": null,
|
|
|
|
"trial_period_days": null
|
|
|
|
},
|
|
|
|
"quantity": 1
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"has_more": false,
|
|
|
|
"total_count": 1,
|
|
|
|
"url": "/v1/subscription_items?subscription=sub_BQBOHLXRrG3Z1Q"
|
|
|
|
},
|
|
|
|
"livemode": false,
|
2016-04-06 15:57:27 +02:00
|
|
|
"metadata": {},
|
|
|
|
"plan": {
|
|
|
|
"id": "mensuel-standard-month-20160404171519",
|
|
|
|
"object": "plan",
|
|
|
|
"amount": 3000,
|
|
|
|
"created": 1459782921,
|
|
|
|
"currency": "usd",
|
|
|
|
"interval": "month",
|
|
|
|
"interval_count": 1,
|
|
|
|
"livemode": false,
|
|
|
|
"metadata": {},
|
|
|
|
"name": "Mensuel - standard, association - month",
|
|
|
|
"statement_descriptor": null,
|
|
|
|
"trial_period_days": null
|
|
|
|
},
|
|
|
|
"quantity": 1,
|
2017-09-18 11:00:20 +02:00
|
|
|
"start": 1505724892,
|
2016-04-06 15:57:27 +02:00
|
|
|
"status": "active",
|
|
|
|
"tax_percent": null,
|
|
|
|
"trial_end": null,
|
|
|
|
"trial_start": null
|
|
|
|
}
|
2017-09-18 11:00:20 +02:00
|
|
|
http_version:
|
|
|
|
recorded_at: Mon, 18 Sep 2017 08:54:53 GMT
|
2016-04-06 15:57:27 +02:00
|
|
|
- request:
|
|
|
|
method: get
|
|
|
|
uri: https://api.stripe.com/v1/invoices?customer=cus_8Di1wjdVktv5kt&limit=1
|
|
|
|
body:
|
|
|
|
encoding: US-ASCII
|
|
|
|
string: ''
|
|
|
|
headers:
|
|
|
|
Accept:
|
|
|
|
- "*/*; q=0.5, application/xml"
|
|
|
|
Accept-Encoding:
|
|
|
|
- gzip, deflate
|
|
|
|
User-Agent:
|
|
|
|
- Stripe/v1 RubyBindings/1.30.2
|
|
|
|
Authorization:
|
2016-04-12 16:43:10 +02:00
|
|
|
- Bearer sk_test_testfaketestfaketestfake
|
2016-04-06 15:57:27 +02:00
|
|
|
Content-Type:
|
|
|
|
- application/x-www-form-urlencoded
|
|
|
|
X-Stripe-Client-User-Agent:
|
|
|
|
- '{"bindings_version":"1.30.2","lang":"ruby","lang_version":"2.3.0 p0 (2015-12-25)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
|
2017-09-18 11:00:20 +02:00
|
|
|
version 4.10.0-33-generic (buildd@lgw01-22) (gcc version 5.4.0 20160609 (Ubuntu
|
|
|
|
5.4.0-6ubuntu1~16.04.4) ) #37~16.04.1-Ubuntu SMP Fri Aug 11 14:07:24 UTC 2017","hostname":"Sleede-SylvainPC"}'
|
2016-04-06 15:57:27 +02:00
|
|
|
response:
|
|
|
|
status:
|
|
|
|
code: 200
|
|
|
|
message: OK
|
|
|
|
headers:
|
|
|
|
Server:
|
|
|
|
- nginx
|
|
|
|
Date:
|
2017-09-18 11:00:20 +02:00
|
|
|
- Mon, 18 Sep 2017 08:54:54 GMT
|
2016-04-06 15:57:27 +02:00
|
|
|
Content-Type:
|
|
|
|
- application/json
|
|
|
|
Content-Length:
|
2017-09-18 11:00:20 +02:00
|
|
|
- '2960'
|
2016-04-06 15:57:27 +02:00
|
|
|
Connection:
|
|
|
|
- keep-alive
|
|
|
|
Access-Control-Allow-Credentials:
|
|
|
|
- 'true'
|
|
|
|
Access-Control-Allow-Methods:
|
|
|
|
- GET, POST, HEAD, OPTIONS, DELETE
|
|
|
|
Access-Control-Allow-Origin:
|
|
|
|
- "*"
|
2017-09-18 11:00:20 +02:00
|
|
|
Access-Control-Expose-Headers:
|
|
|
|
- X-Stripe-Privileged-Session-Required,stripe-manage-version,X-Stripe-External-Auth-Required
|
2016-04-06 15:57:27 +02:00
|
|
|
Access-Control-Max-Age:
|
|
|
|
- '300'
|
|
|
|
Cache-Control:
|
|
|
|
- no-cache, no-store
|
|
|
|
Request-Id:
|
2017-09-18 11:00:20 +02:00
|
|
|
- req_Mh3Lj8hxg2TXFk
|
2016-04-06 15:57:27 +02:00
|
|
|
Stripe-Version:
|
|
|
|
- '2015-10-16'
|
|
|
|
Strict-Transport-Security:
|
|
|
|
- max-age=31556926; includeSubDomains
|
|
|
|
body:
|
|
|
|
encoding: UTF-8
|
|
|
|
string: |
|
|
|
|
{
|
|
|
|
"object": "list",
|
|
|
|
"data": [
|
|
|
|
{
|
2017-09-18 11:00:20 +02:00
|
|
|
"id": "in_1B3L1k2sOmf47Nz9WrVocGx4",
|
2016-04-06 15:57:27 +02:00
|
|
|
"object": "invoice",
|
2017-09-18 11:00:20 +02:00
|
|
|
"amount_due": 8100,
|
2016-04-06 15:57:27 +02:00
|
|
|
"application_fee": null,
|
|
|
|
"attempt_count": 1,
|
|
|
|
"attempted": true,
|
2017-09-18 11:00:20 +02:00
|
|
|
"billing": "charge_automatically",
|
|
|
|
"charge": "ch_1B3L1k2sOmf47Nz9lkDNMQnv",
|
2016-04-06 15:57:27 +02:00
|
|
|
"closed": true,
|
|
|
|
"currency": "usd",
|
|
|
|
"customer": "cus_8Di1wjdVktv5kt",
|
2017-09-18 11:00:20 +02:00
|
|
|
"date": 1505724892,
|
2016-04-06 15:57:27 +02:00
|
|
|
"description": null,
|
|
|
|
"discount": null,
|
|
|
|
"ending_balance": 0,
|
|
|
|
"forgiven": false,
|
|
|
|
"lines": {
|
|
|
|
"object": "list",
|
|
|
|
"data": [
|
|
|
|
{
|
2017-09-18 11:00:20 +02:00
|
|
|
"id": "ii_1B3L0k2sOmf47Nz9y87SMg3r",
|
|
|
|
"object": "line_item",
|
|
|
|
"amount": 5100,
|
|
|
|
"currency": "usd",
|
|
|
|
"description": "Formation Imprimante 3D September 18, 2017 08:00 - 09:00 AM",
|
|
|
|
"discountable": true,
|
|
|
|
"livemode": false,
|
|
|
|
"metadata": {},
|
|
|
|
"period": {
|
|
|
|
"start": 1505724830,
|
|
|
|
"end": 1505724830
|
|
|
|
},
|
|
|
|
"plan": null,
|
|
|
|
"proration": false,
|
|
|
|
"quantity": null,
|
|
|
|
"subscription": null,
|
|
|
|
"type": "invoiceitem"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "sub_BQBOHLXRrG3Z1Q",
|
2016-04-06 15:57:27 +02:00
|
|
|
"object": "line_item",
|
|
|
|
"amount": 3000,
|
|
|
|
"currency": "usd",
|
|
|
|
"description": null,
|
|
|
|
"discountable": true,
|
|
|
|
"livemode": false,
|
|
|
|
"metadata": {},
|
|
|
|
"period": {
|
2017-09-18 11:00:20 +02:00
|
|
|
"start": 1505724892,
|
|
|
|
"end": 1508316892
|
2016-04-06 15:57:27 +02:00
|
|
|
},
|
|
|
|
"plan": {
|
|
|
|
"id": "mensuel-standard-month-20160404171519",
|
|
|
|
"object": "plan",
|
|
|
|
"amount": 3000,
|
|
|
|
"created": 1459782921,
|
|
|
|
"currency": "usd",
|
|
|
|
"interval": "month",
|
|
|
|
"interval_count": 1,
|
|
|
|
"livemode": false,
|
|
|
|
"metadata": {},
|
|
|
|
"name": "Mensuel - standard, association - month",
|
|
|
|
"statement_descriptor": null,
|
|
|
|
"trial_period_days": null
|
|
|
|
},
|
|
|
|
"proration": false,
|
|
|
|
"quantity": 1,
|
|
|
|
"subscription": null,
|
2017-09-18 11:00:20 +02:00
|
|
|
"subscription_item": "si_1B3L1k2sOmf47Nz9Ua5wYTNH",
|
2016-04-06 15:57:27 +02:00
|
|
|
"type": "subscription"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"has_more": false,
|
2017-09-18 11:00:20 +02:00
|
|
|
"total_count": 2,
|
|
|
|
"url": "/v1/invoices/in_1B3L1k2sOmf47Nz9WrVocGx4/lines"
|
2016-04-06 15:57:27 +02:00
|
|
|
},
|
|
|
|
"livemode": false,
|
|
|
|
"metadata": {},
|
|
|
|
"next_payment_attempt": null,
|
2017-09-18 11:00:20 +02:00
|
|
|
"number": "d4cc0e661c-0008",
|
2016-04-06 15:57:27 +02:00
|
|
|
"paid": true,
|
2017-09-18 11:00:20 +02:00
|
|
|
"period_end": 1505724892,
|
|
|
|
"period_start": 1505724421,
|
2016-04-06 15:57:27 +02:00
|
|
|
"receipt_number": null,
|
|
|
|
"starting_balance": 0,
|
|
|
|
"statement_descriptor": null,
|
2017-09-18 11:00:20 +02:00
|
|
|
"subscription": "sub_BQBOHLXRrG3Z1Q",
|
|
|
|
"subtotal": 8100,
|
2016-04-06 15:57:27 +02:00
|
|
|
"tax": null,
|
|
|
|
"tax_percent": null,
|
2017-09-18 11:00:20 +02:00
|
|
|
"total": 8100,
|
|
|
|
"webhooks_delivered_at": 1505724893
|
2016-04-06 15:57:27 +02:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"has_more": true,
|
|
|
|
"url": "/v1/invoices"
|
|
|
|
}
|
2017-09-18 11:00:20 +02:00
|
|
|
http_version:
|
|
|
|
recorded_at: Mon, 18 Sep 2017 08:54:54 GMT
|
2016-04-06 15:57:27 +02:00
|
|
|
- request:
|
|
|
|
method: get
|
|
|
|
uri: https://api.stripe.com/v1/customers/cus_8Di1wjdVktv5kt
|
|
|
|
body:
|
|
|
|
encoding: US-ASCII
|
|
|
|
string: ''
|
|
|
|
headers:
|
|
|
|
Accept:
|
|
|
|
- "*/*; q=0.5, application/xml"
|
|
|
|
Accept-Encoding:
|
|
|
|
- gzip, deflate
|
|
|
|
User-Agent:
|
|
|
|
- Stripe/v1 RubyBindings/1.30.2
|
|
|
|
Authorization:
|
2016-04-12 16:43:10 +02:00
|
|
|
- Bearer sk_test_testfaketestfaketestfake
|
2016-04-06 15:57:27 +02:00
|
|
|
Content-Type:
|
|
|
|
- application/x-www-form-urlencoded
|
|
|
|
X-Stripe-Client-User-Agent:
|
|
|
|
- '{"bindings_version":"1.30.2","lang":"ruby","lang_version":"2.3.0 p0 (2015-12-25)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
|
2017-09-18 11:00:20 +02:00
|
|
|
version 4.10.0-33-generic (buildd@lgw01-22) (gcc version 5.4.0 20160609 (Ubuntu
|
|
|
|
5.4.0-6ubuntu1~16.04.4) ) #37~16.04.1-Ubuntu SMP Fri Aug 11 14:07:24 UTC 2017","hostname":"Sleede-SylvainPC"}'
|
2016-04-06 15:57:27 +02:00
|
|
|
response:
|
|
|
|
status:
|
|
|
|
code: 200
|
|
|
|
message: OK
|
|
|
|
headers:
|
|
|
|
Server:
|
|
|
|
- nginx
|
|
|
|
Date:
|
2017-09-18 11:00:20 +02:00
|
|
|
- Mon, 18 Sep 2017 08:54:55 GMT
|
2016-04-06 15:57:27 +02:00
|
|
|
Content-Type:
|
|
|
|
- application/json
|
|
|
|
Content-Length:
|
2017-09-18 11:00:20 +02:00
|
|
|
- '9835'
|
2016-04-06 15:57:27 +02:00
|
|
|
Connection:
|
|
|
|
- keep-alive
|
|
|
|
Access-Control-Allow-Credentials:
|
|
|
|
- 'true'
|
|
|
|
Access-Control-Allow-Methods:
|
|
|
|
- GET, POST, HEAD, OPTIONS, DELETE
|
|
|
|
Access-Control-Allow-Origin:
|
|
|
|
- "*"
|
2017-09-18 11:00:20 +02:00
|
|
|
Access-Control-Expose-Headers:
|
|
|
|
- X-Stripe-Privileged-Session-Required,stripe-manage-version,X-Stripe-External-Auth-Required
|
2016-04-06 15:57:27 +02:00
|
|
|
Access-Control-Max-Age:
|
|
|
|
- '300'
|
|
|
|
Cache-Control:
|
|
|
|
- no-cache, no-store
|
|
|
|
Request-Id:
|
2017-09-18 11:00:20 +02:00
|
|
|
- req_TcwwuN6UqqEKmV
|
2016-04-06 15:57:27 +02:00
|
|
|
Stripe-Version:
|
|
|
|
- '2015-10-16'
|
|
|
|
Strict-Transport-Security:
|
|
|
|
- max-age=31556926; includeSubDomains
|
|
|
|
body:
|
2017-09-18 11:00:20 +02:00
|
|
|
encoding: UTF-8
|
|
|
|
string: |
|
|
|
|
{
|
|
|
|
"id": "cus_8Di1wjdVktv5kt",
|
|
|
|
"object": "customer",
|
|
|
|
"account_balance": 0,
|
|
|
|
"created": 1459948888,
|
|
|
|
"currency": "usd",
|
|
|
|
"default_source": "card_1B3L1h2sOmf47Nz9NAHrANqS",
|
|
|
|
"delinquent": false,
|
|
|
|
"description": "Jean Dupond",
|
|
|
|
"discount": null,
|
|
|
|
"email": "jean.dupond@gmail.com",
|
|
|
|
"livemode": false,
|
|
|
|
"metadata": {},
|
|
|
|
"shipping": null,
|
|
|
|
"sources": {
|
|
|
|
"object": "list",
|
|
|
|
"data": [
|
|
|
|
{
|
|
|
|
"id": "card_1B3L1h2sOmf47Nz9NAHrANqS",
|
|
|
|
"object": "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": "US",
|
|
|
|
"customer": "cus_8Di1wjdVktv5kt",
|
|
|
|
"cvc_check": "pass",
|
|
|
|
"dynamic_last4": null,
|
|
|
|
"exp_month": 4,
|
|
|
|
"exp_year": 2018,
|
|
|
|
"fingerprint": "o52jybR7bnmNn6AT",
|
|
|
|
"funding": "credit",
|
|
|
|
"last4": "4242",
|
|
|
|
"metadata": {},
|
|
|
|
"name": null,
|
|
|
|
"tokenization_method": null
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"has_more": false,
|
|
|
|
"total_count": 1,
|
|
|
|
"url": "/v1/customers/cus_8Di1wjdVktv5kt/sources"
|
|
|
|
},
|
|
|
|
"subscriptions": {
|
|
|
|
"object": "list",
|
|
|
|
"data": [
|
|
|
|
{
|
|
|
|
"id": "sub_BQBOHLXRrG3Z1Q",
|
|
|
|
"object": "subscription",
|
|
|
|
"application_fee_percent": null,
|
|
|
|
"billing": "charge_automatically",
|
|
|
|
"cancel_at_period_end": false,
|
|
|
|
"canceled_at": null,
|
|
|
|
"created": 1505724892,
|
|
|
|
"current_period_end": 1508316892,
|
|
|
|
"current_period_start": 1505724892,
|
|
|
|
"customer": "cus_8Di1wjdVktv5kt",
|
|
|
|
"discount": null,
|
|
|
|
"ended_at": null,
|
|
|
|
"items": {
|
|
|
|
"object": "list",
|
|
|
|
"data": [
|
|
|
|
{
|
|
|
|
"id": "si_1B3L1k2sOmf47Nz9Ua5wYTNH",
|
|
|
|
"object": "subscription_item",
|
|
|
|
"created": 1505724893,
|
|
|
|
"metadata": {},
|
|
|
|
"plan": {
|
|
|
|
"id": "mensuel-standard-month-20160404171519",
|
|
|
|
"object": "plan",
|
|
|
|
"amount": 3000,
|
|
|
|
"created": 1459782921,
|
|
|
|
"currency": "usd",
|
|
|
|
"interval": "month",
|
|
|
|
"interval_count": 1,
|
|
|
|
"livemode": false,
|
|
|
|
"metadata": {},
|
|
|
|
"name": "Mensuel - standard, association - month",
|
|
|
|
"statement_descriptor": null,
|
|
|
|
"trial_period_days": null
|
|
|
|
},
|
|
|
|
"quantity": 1
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"has_more": false,
|
|
|
|
"total_count": 1,
|
|
|
|
"url": "/v1/subscription_items?subscription=sub_BQBOHLXRrG3Z1Q"
|
|
|
|
},
|
|
|
|
"livemode": false,
|
|
|
|
"metadata": {},
|
|
|
|
"plan": {
|
|
|
|
"id": "mensuel-standard-month-20160404171519",
|
|
|
|
"object": "plan",
|
|
|
|
"amount": 3000,
|
|
|
|
"created": 1459782921,
|
|
|
|
"currency": "usd",
|
|
|
|
"interval": "month",
|
|
|
|
"interval_count": 1,
|
|
|
|
"livemode": false,
|
|
|
|
"metadata": {},
|
|
|
|
"name": "Mensuel - standard, association - month",
|
|
|
|
"statement_descriptor": null,
|
|
|
|
"trial_period_days": null
|
|
|
|
},
|
|
|
|
"quantity": 1,
|
|
|
|
"start": 1505724892,
|
|
|
|
"status": "active",
|
|
|
|
"tax_percent": null,
|
|
|
|
"trial_end": null,
|
|
|
|
"trial_start": null
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "sub_BQBMKKS6nutZLr",
|
|
|
|
"object": "subscription",
|
|
|
|
"application_fee_percent": null,
|
|
|
|
"billing": "charge_automatically",
|
|
|
|
"cancel_at_period_end": true,
|
|
|
|
"canceled_at": 1505724793,
|
|
|
|
"created": 1505724789,
|
|
|
|
"current_period_end": 1508316789,
|
|
|
|
"current_period_start": 1505724789,
|
|
|
|
"customer": "cus_8Di1wjdVktv5kt",
|
|
|
|
"discount": null,
|
|
|
|
"ended_at": null,
|
|
|
|
"items": {
|
|
|
|
"object": "list",
|
|
|
|
"data": [
|
|
|
|
{
|
|
|
|
"id": "si_1B3L052sOmf47Nz9MoxGlk6i",
|
|
|
|
"object": "subscription_item",
|
|
|
|
"created": 1505724789,
|
|
|
|
"metadata": {},
|
|
|
|
"plan": {
|
|
|
|
"id": "mensuel-standard-month-20160404171519",
|
|
|
|
"object": "plan",
|
|
|
|
"amount": 3000,
|
|
|
|
"created": 1459782921,
|
|
|
|
"currency": "usd",
|
|
|
|
"interval": "month",
|
|
|
|
"interval_count": 1,
|
|
|
|
"livemode": false,
|
|
|
|
"metadata": {},
|
|
|
|
"name": "Mensuel - standard, association - month",
|
|
|
|
"statement_descriptor": null,
|
|
|
|
"trial_period_days": null
|
|
|
|
},
|
|
|
|
"quantity": 1
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"has_more": false,
|
|
|
|
"total_count": 1,
|
|
|
|
"url": "/v1/subscription_items?subscription=sub_BQBMKKS6nutZLr"
|
|
|
|
},
|
|
|
|
"livemode": false,
|
|
|
|
"metadata": {},
|
|
|
|
"plan": {
|
|
|
|
"id": "mensuel-standard-month-20160404171519",
|
|
|
|
"object": "plan",
|
|
|
|
"amount": 3000,
|
|
|
|
"created": 1459782921,
|
|
|
|
"currency": "usd",
|
|
|
|
"interval": "month",
|
|
|
|
"interval_count": 1,
|
|
|
|
"livemode": false,
|
|
|
|
"metadata": {},
|
|
|
|
"name": "Mensuel - standard, association - month",
|
|
|
|
"statement_descriptor": null,
|
|
|
|
"trial_period_days": null
|
|
|
|
},
|
|
|
|
"quantity": 1,
|
|
|
|
"start": 1505724789,
|
|
|
|
"status": "active",
|
|
|
|
"tax_percent": null,
|
|
|
|
"trial_end": null,
|
|
|
|
"trial_start": null
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "sub_BQBH03MUz5WO4y",
|
|
|
|
"object": "subscription",
|
|
|
|
"application_fee_percent": null,
|
|
|
|
"billing": "charge_automatically",
|
|
|
|
"cancel_at_period_end": true,
|
|
|
|
"canceled_at": 1505724499,
|
|
|
|
"created": 1505724494,
|
|
|
|
"current_period_end": 1508316494,
|
|
|
|
"current_period_start": 1505724494,
|
|
|
|
"customer": "cus_8Di1wjdVktv5kt",
|
|
|
|
"discount": null,
|
|
|
|
"ended_at": null,
|
|
|
|
"items": {
|
|
|
|
"object": "list",
|
|
|
|
"data": [
|
|
|
|
{
|
|
|
|
"id": "si_1B3KvK2sOmf47Nz9mNLN0l2q",
|
|
|
|
"object": "subscription_item",
|
|
|
|
"created": 1505724494,
|
|
|
|
"metadata": {},
|
|
|
|
"plan": {
|
|
|
|
"id": "mensuel-standard-month-20160404171519",
|
|
|
|
"object": "plan",
|
|
|
|
"amount": 3000,
|
|
|
|
"created": 1459782921,
|
|
|
|
"currency": "usd",
|
|
|
|
"interval": "month",
|
|
|
|
"interval_count": 1,
|
|
|
|
"livemode": false,
|
|
|
|
"metadata": {},
|
|
|
|
"name": "Mensuel - standard, association - month",
|
|
|
|
"statement_descriptor": null,
|
|
|
|
"trial_period_days": null
|
|
|
|
},
|
|
|
|
"quantity": 1
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"has_more": false,
|
|
|
|
"total_count": 1,
|
|
|
|
"url": "/v1/subscription_items?subscription=sub_BQBH03MUz5WO4y"
|
|
|
|
},
|
|
|
|
"livemode": false,
|
|
|
|
"metadata": {},
|
|
|
|
"plan": {
|
|
|
|
"id": "mensuel-standard-month-20160404171519",
|
|
|
|
"object": "plan",
|
|
|
|
"amount": 3000,
|
|
|
|
"created": 1459782921,
|
|
|
|
"currency": "usd",
|
|
|
|
"interval": "month",
|
|
|
|
"interval_count": 1,
|
|
|
|
"livemode": false,
|
|
|
|
"metadata": {},
|
|
|
|
"name": "Mensuel - standard, association - month",
|
|
|
|
"statement_descriptor": null,
|
|
|
|
"trial_period_days": null
|
|
|
|
},
|
|
|
|
"quantity": 1,
|
|
|
|
"start": 1505724494,
|
|
|
|
"status": "active",
|
|
|
|
"tax_percent": null,
|
|
|
|
"trial_end": null,
|
|
|
|
"trial_start": null
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "sub_BQBGRftUBikhtm",
|
|
|
|
"object": "subscription",
|
|
|
|
"application_fee_percent": null,
|
|
|
|
"billing": "charge_automatically",
|
|
|
|
"cancel_at_period_end": true,
|
|
|
|
"canceled_at": 1505724425,
|
|
|
|
"created": 1505724421,
|
|
|
|
"current_period_end": 1508316421,
|
|
|
|
"current_period_start": 1505724421,
|
|
|
|
"customer": "cus_8Di1wjdVktv5kt",
|
|
|
|
"discount": null,
|
|
|
|
"ended_at": null,
|
|
|
|
"items": {
|
|
|
|
"object": "list",
|
|
|
|
"data": [
|
|
|
|
{
|
|
|
|
"id": "si_1B3Ku92sOmf47Nz9sdo927vf",
|
|
|
|
"object": "subscription_item",
|
|
|
|
"created": 1505724421,
|
|
|
|
"metadata": {},
|
|
|
|
"plan": {
|
|
|
|
"id": "mensuel-standard-month-20160404171519",
|
|
|
|
"object": "plan",
|
|
|
|
"amount": 3000,
|
|
|
|
"created": 1459782921,
|
|
|
|
"currency": "usd",
|
|
|
|
"interval": "month",
|
|
|
|
"interval_count": 1,
|
|
|
|
"livemode": false,
|
|
|
|
"metadata": {},
|
|
|
|
"name": "Mensuel - standard, association - month",
|
|
|
|
"statement_descriptor": null,
|
|
|
|
"trial_period_days": null
|
|
|
|
},
|
|
|
|
"quantity": 1
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"has_more": false,
|
|
|
|
"total_count": 1,
|
|
|
|
"url": "/v1/subscription_items?subscription=sub_BQBGRftUBikhtm"
|
|
|
|
},
|
|
|
|
"livemode": false,
|
|
|
|
"metadata": {},
|
|
|
|
"plan": {
|
|
|
|
"id": "mensuel-standard-month-20160404171519",
|
|
|
|
"object": "plan",
|
|
|
|
"amount": 3000,
|
|
|
|
"created": 1459782921,
|
|
|
|
"currency": "usd",
|
|
|
|
"interval": "month",
|
|
|
|
"interval_count": 1,
|
|
|
|
"livemode": false,
|
|
|
|
"metadata": {},
|
|
|
|
"name": "Mensuel - standard, association - month",
|
|
|
|
"statement_descriptor": null,
|
|
|
|
"trial_period_days": null
|
|
|
|
},
|
|
|
|
"quantity": 1,
|
|
|
|
"start": 1505724421,
|
|
|
|
"status": "active",
|
|
|
|
"tax_percent": null,
|
|
|
|
"trial_end": null,
|
|
|
|
"trial_start": null
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"has_more": false,
|
|
|
|
"total_count": 4,
|
|
|
|
"url": "/v1/customers/cus_8Di1wjdVktv5kt/subscriptions"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
http_version:
|
|
|
|
recorded_at: Mon, 18 Sep 2017 08:54:55 GMT
|
2016-04-06 15:57:27 +02:00
|
|
|
- request:
|
|
|
|
method: get
|
2017-09-18 11:00:20 +02:00
|
|
|
uri: https://api.stripe.com/v1/customers/cus_8Di1wjdVktv5kt/subscriptions/sub_BQBOHLXRrG3Z1Q
|
2016-04-06 15:57:27 +02:00
|
|
|
body:
|
|
|
|
encoding: US-ASCII
|
|
|
|
string: ''
|
|
|
|
headers:
|
|
|
|
Accept:
|
|
|
|
- "*/*; q=0.5, application/xml"
|
|
|
|
Accept-Encoding:
|
|
|
|
- gzip, deflate
|
|
|
|
User-Agent:
|
|
|
|
- Stripe/v1 RubyBindings/1.30.2
|
|
|
|
Authorization:
|
2016-04-12 16:43:10 +02:00
|
|
|
- Bearer sk_test_testfaketestfaketestfake
|
2016-04-06 15:57:27 +02:00
|
|
|
Content-Type:
|
|
|
|
- application/x-www-form-urlencoded
|
|
|
|
X-Stripe-Client-User-Agent:
|
|
|
|
- '{"bindings_version":"1.30.2","lang":"ruby","lang_version":"2.3.0 p0 (2015-12-25)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
|
2017-09-18 11:00:20 +02:00
|
|
|
version 4.10.0-33-generic (buildd@lgw01-22) (gcc version 5.4.0 20160609 (Ubuntu
|
|
|
|
5.4.0-6ubuntu1~16.04.4) ) #37~16.04.1-Ubuntu SMP Fri Aug 11 14:07:24 UTC 2017","hostname":"Sleede-SylvainPC"}'
|
2016-04-06 15:57:27 +02:00
|
|
|
response:
|
|
|
|
status:
|
|
|
|
code: 200
|
|
|
|
message: OK
|
|
|
|
headers:
|
|
|
|
Server:
|
|
|
|
- nginx
|
|
|
|
Date:
|
2017-09-18 11:00:20 +02:00
|
|
|
- Mon, 18 Sep 2017 08:54:56 GMT
|
2016-04-06 15:57:27 +02:00
|
|
|
Content-Type:
|
|
|
|
- application/json
|
|
|
|
Content-Length:
|
2017-09-18 11:00:20 +02:00
|
|
|
- '1711'
|
2016-04-06 15:57:27 +02:00
|
|
|
Connection:
|
|
|
|
- keep-alive
|
|
|
|
Access-Control-Allow-Credentials:
|
|
|
|
- 'true'
|
|
|
|
Access-Control-Allow-Methods:
|
|
|
|
- GET, POST, HEAD, OPTIONS, DELETE
|
|
|
|
Access-Control-Allow-Origin:
|
|
|
|
- "*"
|
2017-09-18 11:00:20 +02:00
|
|
|
Access-Control-Expose-Headers:
|
|
|
|
- X-Stripe-Privileged-Session-Required,stripe-manage-version,X-Stripe-External-Auth-Required
|
2016-04-06 15:57:27 +02:00
|
|
|
Access-Control-Max-Age:
|
|
|
|
- '300'
|
|
|
|
Cache-Control:
|
|
|
|
- no-cache, no-store
|
|
|
|
Request-Id:
|
2017-09-18 11:00:20 +02:00
|
|
|
- req_ZjIgDQ34jlghLo
|
2016-04-06 15:57:27 +02:00
|
|
|
Stripe-Version:
|
|
|
|
- '2015-10-16'
|
|
|
|
Strict-Transport-Security:
|
|
|
|
- max-age=31556926; includeSubDomains
|
|
|
|
body:
|
|
|
|
encoding: UTF-8
|
|
|
|
string: |
|
|
|
|
{
|
2017-09-18 11:00:20 +02:00
|
|
|
"id": "sub_BQBOHLXRrG3Z1Q",
|
2016-04-06 15:57:27 +02:00
|
|
|
"object": "subscription",
|
|
|
|
"application_fee_percent": null,
|
2017-09-18 11:00:20 +02:00
|
|
|
"billing": "charge_automatically",
|
2016-04-06 15:57:27 +02:00
|
|
|
"cancel_at_period_end": false,
|
|
|
|
"canceled_at": null,
|
2017-09-18 11:00:20 +02:00
|
|
|
"created": 1505724892,
|
|
|
|
"current_period_end": 1508316892,
|
|
|
|
"current_period_start": 1505724892,
|
2016-04-06 15:57:27 +02:00
|
|
|
"customer": "cus_8Di1wjdVktv5kt",
|
|
|
|
"discount": null,
|
|
|
|
"ended_at": null,
|
2017-09-18 11:00:20 +02:00
|
|
|
"items": {
|
|
|
|
"object": "list",
|
|
|
|
"data": [
|
|
|
|
{
|
|
|
|
"id": "si_1B3L1k2sOmf47Nz9Ua5wYTNH",
|
|
|
|
"object": "subscription_item",
|
|
|
|
"created": 1505724893,
|
|
|
|
"metadata": {},
|
|
|
|
"plan": {
|
|
|
|
"id": "mensuel-standard-month-20160404171519",
|
|
|
|
"object": "plan",
|
|
|
|
"amount": 3000,
|
|
|
|
"created": 1459782921,
|
|
|
|
"currency": "usd",
|
|
|
|
"interval": "month",
|
|
|
|
"interval_count": 1,
|
|
|
|
"livemode": false,
|
|
|
|
"metadata": {},
|
|
|
|
"name": "Mensuel - standard, association - month",
|
|
|
|
"statement_descriptor": null,
|
|
|
|
"trial_period_days": null
|
|
|
|
},
|
|
|
|
"quantity": 1
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"has_more": false,
|
|
|
|
"total_count": 1,
|
|
|
|
"url": "/v1/subscription_items?subscription=sub_BQBOHLXRrG3Z1Q"
|
|
|
|
},
|
|
|
|
"livemode": false,
|
2016-04-06 15:57:27 +02:00
|
|
|
"metadata": {},
|
|
|
|
"plan": {
|
|
|
|
"id": "mensuel-standard-month-20160404171519",
|
|
|
|
"object": "plan",
|
|
|
|
"amount": 3000,
|
|
|
|
"created": 1459782921,
|
|
|
|
"currency": "usd",
|
|
|
|
"interval": "month",
|
|
|
|
"interval_count": 1,
|
|
|
|
"livemode": false,
|
|
|
|
"metadata": {},
|
|
|
|
"name": "Mensuel - standard, association - month",
|
|
|
|
"statement_descriptor": null,
|
|
|
|
"trial_period_days": null
|
|
|
|
},
|
|
|
|
"quantity": 1,
|
2017-09-18 11:00:20 +02:00
|
|
|
"start": 1505724892,
|
2016-04-06 15:57:27 +02:00
|
|
|
"status": "active",
|
|
|
|
"tax_percent": null,
|
|
|
|
"trial_end": null,
|
|
|
|
"trial_start": null
|
|
|
|
}
|
2017-09-18 11:00:20 +02:00
|
|
|
http_version:
|
|
|
|
recorded_at: Mon, 18 Sep 2017 08:54:56 GMT
|
2016-04-06 15:57:27 +02:00
|
|
|
- request:
|
|
|
|
method: delete
|
2017-09-18 11:00:20 +02:00
|
|
|
uri: https://api.stripe.com/v1/customers/cus_8Di1wjdVktv5kt/subscriptions/sub_BQBOHLXRrG3Z1Q?at_period_end=true
|
2016-04-06 15:57:27 +02:00
|
|
|
body:
|
|
|
|
encoding: US-ASCII
|
|
|
|
string: ''
|
|
|
|
headers:
|
|
|
|
Accept:
|
|
|
|
- "*/*; q=0.5, application/xml"
|
|
|
|
Accept-Encoding:
|
|
|
|
- gzip, deflate
|
|
|
|
User-Agent:
|
|
|
|
- Stripe/v1 RubyBindings/1.30.2
|
|
|
|
Authorization:
|
2016-04-12 16:43:10 +02:00
|
|
|
- Bearer sk_test_testfaketestfaketestfake
|
2016-04-06 15:57:27 +02:00
|
|
|
Content-Type:
|
|
|
|
- application/x-www-form-urlencoded
|
|
|
|
X-Stripe-Client-User-Agent:
|
|
|
|
- '{"bindings_version":"1.30.2","lang":"ruby","lang_version":"2.3.0 p0 (2015-12-25)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
|
2017-09-18 11:00:20 +02:00
|
|
|
version 4.10.0-33-generic (buildd@lgw01-22) (gcc version 5.4.0 20160609 (Ubuntu
|
|
|
|
5.4.0-6ubuntu1~16.04.4) ) #37~16.04.1-Ubuntu SMP Fri Aug 11 14:07:24 UTC 2017","hostname":"Sleede-SylvainPC"}'
|
2016-04-06 15:57:27 +02:00
|
|
|
response:
|
|
|
|
status:
|
|
|
|
code: 200
|
|
|
|
message: OK
|
|
|
|
headers:
|
|
|
|
Server:
|
|
|
|
- nginx
|
|
|
|
Date:
|
2017-09-18 11:00:20 +02:00
|
|
|
- Mon, 18 Sep 2017 08:54:57 GMT
|
2016-04-06 15:57:27 +02:00
|
|
|
Content-Type:
|
|
|
|
- application/json
|
|
|
|
Content-Length:
|
2017-09-18 11:00:20 +02:00
|
|
|
- '1716'
|
2016-04-06 15:57:27 +02:00
|
|
|
Connection:
|
|
|
|
- keep-alive
|
|
|
|
Access-Control-Allow-Credentials:
|
|
|
|
- 'true'
|
|
|
|
Access-Control-Allow-Methods:
|
|
|
|
- GET, POST, HEAD, OPTIONS, DELETE
|
|
|
|
Access-Control-Allow-Origin:
|
|
|
|
- "*"
|
2017-09-18 11:00:20 +02:00
|
|
|
Access-Control-Expose-Headers:
|
|
|
|
- X-Stripe-Privileged-Session-Required,stripe-manage-version,X-Stripe-External-Auth-Required
|
2016-04-06 15:57:27 +02:00
|
|
|
Access-Control-Max-Age:
|
|
|
|
- '300'
|
|
|
|
Cache-Control:
|
|
|
|
- no-cache, no-store
|
|
|
|
Request-Id:
|
2017-09-18 11:00:20 +02:00
|
|
|
- req_KxbHmVYfDwpiHi
|
2016-04-06 15:57:27 +02:00
|
|
|
Stripe-Version:
|
|
|
|
- '2015-10-16'
|
|
|
|
Strict-Transport-Security:
|
|
|
|
- max-age=31556926; includeSubDomains
|
|
|
|
body:
|
|
|
|
encoding: UTF-8
|
|
|
|
string: |
|
|
|
|
{
|
2017-09-18 11:00:20 +02:00
|
|
|
"id": "sub_BQBOHLXRrG3Z1Q",
|
2016-04-06 15:57:27 +02:00
|
|
|
"object": "subscription",
|
|
|
|
"application_fee_percent": null,
|
2017-09-18 11:00:20 +02:00
|
|
|
"billing": "charge_automatically",
|
2016-04-06 15:57:27 +02:00
|
|
|
"cancel_at_period_end": true,
|
2017-09-18 11:00:20 +02:00
|
|
|
"canceled_at": 1505724897,
|
|
|
|
"created": 1505724892,
|
|
|
|
"current_period_end": 1508316892,
|
|
|
|
"current_period_start": 1505724892,
|
2016-04-06 15:57:27 +02:00
|
|
|
"customer": "cus_8Di1wjdVktv5kt",
|
|
|
|
"discount": null,
|
|
|
|
"ended_at": null,
|
2017-09-18 11:00:20 +02:00
|
|
|
"items": {
|
|
|
|
"object": "list",
|
|
|
|
"data": [
|
|
|
|
{
|
|
|
|
"id": "si_1B3L1k2sOmf47Nz9Ua5wYTNH",
|
|
|
|
"object": "subscription_item",
|
|
|
|
"created": 1505724893,
|
|
|
|
"metadata": {},
|
|
|
|
"plan": {
|
|
|
|
"id": "mensuel-standard-month-20160404171519",
|
|
|
|
"object": "plan",
|
|
|
|
"amount": 3000,
|
|
|
|
"created": 1459782921,
|
|
|
|
"currency": "usd",
|
|
|
|
"interval": "month",
|
|
|
|
"interval_count": 1,
|
|
|
|
"livemode": false,
|
|
|
|
"metadata": {},
|
|
|
|
"name": "Mensuel - standard, association - month",
|
|
|
|
"statement_descriptor": null,
|
|
|
|
"trial_period_days": null
|
|
|
|
},
|
|
|
|
"quantity": 1
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"has_more": false,
|
|
|
|
"total_count": 1,
|
|
|
|
"url": "/v1/subscription_items?subscription=sub_BQBOHLXRrG3Z1Q"
|
|
|
|
},
|
|
|
|
"livemode": false,
|
2016-04-06 15:57:27 +02:00
|
|
|
"metadata": {},
|
|
|
|
"plan": {
|
|
|
|
"id": "mensuel-standard-month-20160404171519",
|
|
|
|
"object": "plan",
|
|
|
|
"amount": 3000,
|
|
|
|
"created": 1459782921,
|
|
|
|
"currency": "usd",
|
|
|
|
"interval": "month",
|
|
|
|
"interval_count": 1,
|
|
|
|
"livemode": false,
|
|
|
|
"metadata": {},
|
|
|
|
"name": "Mensuel - standard, association - month",
|
|
|
|
"statement_descriptor": null,
|
|
|
|
"trial_period_days": null
|
|
|
|
},
|
|
|
|
"quantity": 1,
|
2017-09-18 11:00:20 +02:00
|
|
|
"start": 1505724892,
|
2016-04-06 15:57:27 +02:00
|
|
|
"status": "active",
|
|
|
|
"tax_percent": null,
|
|
|
|
"trial_end": null,
|
|
|
|
"trial_start": null
|
|
|
|
}
|
2017-09-18 11:00:20 +02:00
|
|
|
http_version:
|
|
|
|
recorded_at: Mon, 18 Sep 2017 08:54:57 GMT
|
2016-04-06 15:57:27 +02:00
|
|
|
recorded_with: VCR 3.0.1
|