Created
October 14, 2013 12:09
Fastbill Automatic Webhooks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mögliche Notifications: | |
----------------------- | |
- subscription.created | |
- subscription.changed | |
- subscription.canceled | |
- payment.created | |
- payment.failed | |
- payment.refunded | |
- payment.canceled | |
1. subscription.created (subscription.canceled) (JSON) | |
------------------------------------------------------ | |
{ | |
"id": 6067, | |
"type": "subscription.created", | |
"customer": { | |
"customer_id": "297279", | |
"customer_ext_uid": null, | |
"customer_number": "74", | |
"companyname": "Demo Data GmbH", | |
"salutation": "", | |
"firstname": "Ben", | |
"lastname": "Stone", | |
"address": "Demostr. 123", | |
"address_2": "", | |
"zipcode": "12345", | |
"city": "Demown", | |
"country_code": "DE", | |
"email": "developers@fastbill.com", | |
"payment_data_url": "https:\/\/automatic.fastbill.com\/accountdata\/c2e2b29d9894668803983b31e8b57804\/23b7c0af64803e0139aa873f381a8dd4", | |
"dashboard_url": "https:\/\/automatic.fastbill.com\/dashboard\/c2e2b29d9894668803983b31e8b57804\/23b7c0af64803e0139aa873f381a8dd4" | |
}, | |
"subscription": { | |
"subscription_id": 2427, | |
"subscription_ext_uid": "", | |
"article_code": "code-3", | |
"start_date": "2013-09-18 12:15:26", | |
"last_event": "2013-09-18 12:15:27", | |
"next_event": "2013-10-15 12:15:27", | |
"cancellation_date": "0000-00-00 00:00:00", | |
"status": "active", | |
"addons": [{ | |
"article_code": "6", | |
"quantity": "1" | |
}], | |
"x_attributes": { | |
"x_domain": "www.test.com" | |
} | |
}, | |
"created": "2013-09-18 12:15:30" | |
} | |
2. subscription.changed | |
------------------------ | |
{ | |
"id": 7150, | |
"type": "subscription.changed", | |
"customer": { | |
"customer_id": "296716", | |
"customer_ext_uid": "ST", | |
"customer_number": "21", | |
"companyname": "Wadson Gbr", | |
"salutation": "", | |
"firstname": "", | |
"lastname": "", | |
"address": "Burgstr 17", | |
"address_2": "", | |
"zipcode": "10010", | |
"city": "Berlin", | |
"country_code": "DE", | |
"email": "wadson@fastbill.com", | |
"payment_data_url": "https:\/\/automatic.fastbill.com\/accountdata\/c2e2b29d9894668803983b31e8b57804\/c607c5fd342e9eba46eefd59cd7e2dbb", | |
"dashboard_url": "https:\/\/automatic.fastbill.com\/dashboard\/c2e2b29d9894668803983b31e8b57804\/c607c5fd342e9eba46eefd59cd7e2dbb" | |
}, | |
"subscription": { | |
"subscription_id": 407, | |
"subscription_ext_uid": "", | |
"article_code": "code-3", | |
"start_date": "2013-07-05 14:44:21", | |
"last_event": "2013-07-05 14:44:21", | |
"next_event": "2013-08-05 14:44:21", | |
"cancellation_date": "0000-00-00 00:00:00", | |
"status": "active", | |
"addons": [{ | |
"article_code": "6", | |
"quantity": "2" | |
}, { | |
"article_code": "7", | |
"quantity": 0, | |
"change_quantity": -1, | |
"change_date": "2013-08-05 14:44:21" | |
}] | |
}, | |
"created": "2013-09-19 17:43:59" | |
} | |
3. payment.created (payment.refunded, payment.failed, payment.canceled) | |
------------------------------------------------------------------------ | |
{ | |
"id": 6066, | |
"type": "payment.created", | |
"customer": { | |
"customer_id": "297279", | |
"customer_ext_uid": null, | |
"customer_number": "74", | |
"companyname": "Demo Data GmbH", | |
"salutation": "", | |
"firstname": "Ben", | |
"lastname": "Stone", | |
"address": "Demostr. 123", | |
"address_2": "", | |
"zipcode": "12345", | |
"city": "Demown", | |
"country_code": "DE", | |
"email": "developers@fastbill.com", | |
"payment_data_url": "https:\/\/automatic.fastbill.com\/accountdata\/c2e2b29d9894668803983b31e8b57804\/23b7c0af64803e0139aa873f381a8dd4", | |
"dashboard_url": "https:\/\/automatic.fastbill.com\/dashboard\/c2e2b29d9894668803983b31e8b57804\/23b7c0af64803e0139aa873f381a8dd4" | |
}, | |
"subscription": { | |
"subscription_id": 2427, | |
"subscription_ext_uid": null, | |
"article_code": "code-3", | |
"addons": [{ | |
"article_code": "6", | |
"quantity": "1" | |
}], | |
"x_attributes": { | |
"x_domain": "www.test.com" | |
} | |
}, | |
"payment": { | |
"payment_id": 3016, | |
"invoice_id": 368177, | |
"invoice_number": "489", | |
"invoice_url": "https:\/\/automatic.fastbill.com\/download\/WqcwQg48fal3dMM.dpEJfwwoWqjvi1EKP1avraqJ0O.PbLN40RARw6WZbE7OID", | |
"total_amount": 102.102, | |
"currency": "USD", | |
"method": "creditcard", | |
"gateway": "Paymill", | |
"reference": "tran_840952220e758be195d9c3305253", | |
"test": 1, | |
"type": "charge", | |
"status": "closed", | |
"next_event": "2013-10-15 12:15:27", | |
"created": "2013-09-18 12:15:27" | |
}, | |
"created": "2013-09-18 12:15:29" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment