diff --git a/APIFolder/api.htm b/APIFolder/api.htm index 9ed6c0be6..f007036f1 100644 --- a/APIFolder/api.htm +++ b/APIFolder/api.htm @@ -46,17 +46,6 @@ -
In Mifos X, any number of "Sets" of "Additional Fields" can be configured for a Mifos X database table ("Type"). -
-For example, portfolio_client is the database table that holds client data. Typically, MFI's want more client related fields than is provided by Mifos X out-of-the-box. +
+For example, portfolio_client is the database table that holds client data. Typically, MFI's want more client related fields than is provided by Mifos X out-of-the-box. The MFI might add a Set called "Additional Info" containing some fields that are typically input when creating a client. They might then add another Set called "Highly Improbable Info" containing some fields that are only input in exceptional circumstances. -
-+
+The additional fields resource allows you to retrieve and update any Additional Fields data that has been configured in Mifos X. -
-+
+The Mifos X Individual Lending client application uses a JQuery plugin called stretchydata which, itself, uses this additional fields resource to provide a pretty flexible additional fields User Interface (UI). Put a link to an example here. -
- - -+Returns the Set of Additional Fields data for the ID provided. The ID is the id field of the Type table e.g. portfolio_client might have an id value of 4. The output is a JSON formatted "Generic Resultset". The Generic Resultset contains Column Heading as well as Data information. The Column Heading information may include allowed values (columnValues array). +
+Example Request: + http://localhost:8080/mifosng-provider/api/v1/additionalfields/portfolio_client/Additional Information/2 +
+- Runs a report and returns the report output. -
-Example Request: - http://localhost:8080/mifosng-provider/api/v1/reports/Client%20Listing?R_officeId=1 -
- -GET https://thedomainname/v1/reports/{REPORTNAME}
- {
+
+ GET https://thedomainname/v1/additionalfields/{TYPE}/{SET}/{ID}
+ {
"columnHeaders": [
{
- "columnName": "Office/Branch",
- "columnType": "VARCHAR",
- "columnLength": null,
+ "columnName": "Ethnic Group",
+ "columnType": "String",
+ "columnLength": 50,
+ "columnDisplayType": "List",
+ "columnValues": [
+ "Bedouin",
+ "Berber",
+ "Italian",
+ "Miknasa",
+ "Mrazig",
+ "Other",
+ "Unknown"
+ ]
+ },
+ {
+ "columnName": "Ethnic Group Other",
+ "columnType": "String",
+ "columnLength": 50,
"columnDisplayType": null,
"columnValues": []
},
{
- "columnName": "Name",
- "columnType": "VARCHAR",
- "columnLength": null,
+ "columnName": "Household Location",
+ "columnType": "String",
+ "columnLength": 50,
+ "columnDisplayType": "List",
+ "columnValues": [
+ "East Sikkim",
+ "North Sikkim",
+ "South Sikkim",
+ "West Sikkim",
+ "Other"
+ ]
+ },
+ {
+ "columnName": "Household Location Other",
+ "columnType": "String",
+ "columnLength": 50,
"columnDisplayType": null,
"columnValues": []
},
{
- "columnName": "Joining Date",
- "columnType": "DATE",
- "columnLength": null,
+ "columnName": "Religion",
+ "columnType": "String",
+ "columnLength": 50,
+ "columnDisplayType": "List",
+ "columnValues": [
+ "Protestant",
+ "Catholic",
+ "Muslim",
+ "Animist",
+ "Atheist",
+ "Other",
+ "Unknown"
+ ]
+ },
+ {
+ "columnName": "Religion Other",
+ "columnType": "String",
+ "columnLength": 50,
+ "columnDisplayType": null,
+ "columnValues": []
+ },
+ {
+ "columnName": "Knowledge of Person",
+ "columnType": "String",
+ "columnLength": 50,
+ "columnDisplayType": "List",
+ "columnValues": [
+ "Staff member",
+ "Spouse of staff member",
+ "Son/daughter of staff member",
+ "Friend of staff member",
+ "Not known by any staff member",
+ "Other"
+ ]
+ },
+ {
+ "columnName": "Gender",
+ "columnType": "String",
+ "columnLength": 10,
+ "columnDisplayType": "List",
+ "columnValues": [
+ "Female",
+ "Male"
+ ]
+ },
+ {
+ "columnName": "Whois",
+ "columnType": "Text",
+ "columnLength": 0,
"columnDisplayType": null,
"columnValues": []
}
@@ -435,115 +481,67 @@ The Mifos X Individual Lending client application uses a JQuery plugin called st
"data": [
{
"row": [
- "Demo MFI Head Office",
- "O'Meara, Patrick",
- "2009-01-04"
+ "Berber",
+ null,
+ "East Sikkim",
+ null,
+ "Animist",
+ "jjjjjjj",
+ "Son/daughter of staff member",
+ "Female",
+ "its\r\nme of\r\ncourse\r\nyes\r\nend and the end of it all"
]
- },
- {
- "row": [
- "Demo MFI Head Office",
- "O'Meara, Dennis",
- "2009-01-04"
- ]
- },
- {
- "row": [
- "Demo MFI Head Office",
- "Smith, John",
- "2009-01-11"
- ]
- },
-... more "row" entries
- ]
-}
-
-- Runs a report and returns the report output. -
-Example Request: - http://localhost:8080/mifosng-provider/api/v1/reports/Client%20Listing?R_officeId=1 -
- -GET https://thedomainname/v1/reports/{REPORTNAME}
- {
- "columnHeaders": [
- {
- "columnName": "Office/Branch",
- "columnType": "VARCHAR",
- "columnLength": null,
- "columnDisplayType": null,
- "columnValues": []
- },
- {
- "columnName": "Name",
- "columnType": "VARCHAR",
- "columnLength": null,
- "columnDisplayType": null,
- "columnValues": []
- },
- {
- "columnName": "Joining Date",
- "columnType": "DATE",
- "columnLength": null,
- "columnDisplayType": null,
- "columnValues": []
}
- ],
- "data": [
- {
- "row": [
- "Demo MFI Head Office",
- "O'Meara, Patrick",
- "2009-01-04"
- ]
- },
- {
- "row": [
- "Demo MFI Head Office",
- "O'Meara, Dennis",
- "2009-01-04"
- ]
- },
- {
- "row": [
- "Demo MFI Head Office",
- "Smith, John",
- "2009-01-11"
- ]
- },
-... more "row" entries
]
-}
- +Updates the Set of Additional Fields data for the ID provided. The ID is the id field of the Type table e.g. portfolio_client might have an id value of 4. +
++JPW note: currently using ed_transType = "E" for edit and ed_transType = "A" for new... probably need to not do that. +
+POST https://thedomainname/v1/additionalfields/{TYPE}/{SET}/{ID}
+ http://localhost:8080/mifosng-provider/api/v1/additionalfields/portfolio_client/Additional Information/2
+
+Request Body:
+Content-Type: application/json
+{
+"ed_transType":"E",
+"Ethnic_Group":"Berber",
+"Ethnic_Group_Other":"",
+"Household_Location":"East Sikkim",
+"Household_Location_Other":"",
+"Religion":"Animist",
+"Religion_Other":"jjjjjjj",
+"Knowledge_of_Person":"Son/daughter of staff member",
+"Gender":"Female",
+"Whois":"its\r\nme of\r\ncourse\r\nyes\r\nend and the end of it all"
+}
+
+ {
+ "entityId": 2
+}
+
+
+ - Creates a new customer object. -
- -- Returns a customer object if the call succeeded. The - returned object will have information about - subscriptions, discount, and cards, if that information - has been provided. If a non-free plan is specified and - a card is not provided (unless the plan has a trial period), the call will return an error. - If a non-existent plan or a non-existent or expired - coupon is provided, the call will return an error. -
-- If a card has been attached to the customer, the - returned customer object will have an active_card - attribute containing the card's details. -
- -POST https://api.stripe.com/v1/customers
-
- curl https://api.stripe.com/v1/customers \
- -u vtUQeOtUnYr7PGCLQ96Ul4zqpDUO4sOE: \
- -d "description=Customer for site@stripe.com" \
- -d "card[number]=4242424242424242" \
- -d "card[exp_month]=5" \
- -d "card[exp_year]=2013"
-
-
- {
- "discount": {
- "end": 1339507966,
- "start": 1336829566,
- "object": "discount",
- "customer": "cus_QEvO1l6xtJNbTI",
- "id": "di_Ogh2mPRH0Y200d",
- "coupon": {
- "times_redeemed": 1,
- "duration_in_months": null,
- "livemode": false,
- "redeem_by": null,
- "object": "coupon",
- "duration": "once",
- "percent_off": 10,
- "id": "JAVA-COUPON-fa8e8918-2f9e-4def-9675-ed19d6f4d41b",
- "max_redemptions": null
- }
- },
- "livemode": false,
- "delinquent": false,
- "object": "customer",
- "email": null,
- "subscription": null,
- "account_balance": 0,
- "description": null,
- "id": "cus_QEvO1l6xtJNbTI",
- "active_card": null,
- "created": 1336829566
-}
-
- {
- "error": {
- "type": "invalid_request_error",
- "message": "You must supply a valid card"
- }
-}
-
- - Retrieves the details of an existing customer. You need - only supply the unique customer identifier that was - returned upon customer creation. -
- -- Like with a charge, you can view the retrieved customer - directly in your browser. -
- -- https://vtUQeOtUnYr7PGCLQ96Ul4zqpDUO4sOE@api.stripe.com/v1/customers/ch_I7HoyUbJDACuPe -
- -- Returns a customer object if a valid identifier was provided. - When requesting the ID of a customer that has been deleted, - a subset of the customer's information will be returned, - including a "deleted" property, which will be true. -
-GET https://api.stripe.com/v1/customers/{CUSTOMER_ID}
-
- curl https://api.stripe.com/v1/customers/cus_QEvO1l6xtJNbTI \
- -u vtUQeOtUnYr7PGCLQ96Ul4zqpDUO4sOE:
-
-
- {
- "discount": {
- "end": 1339507966,
- "start": 1336829566,
- "object": "discount",
- "customer": "cus_QEvO1l6xtJNbTI",
- "id": "di_Ogh2mPRH0Y200d",
- "coupon": {
- "times_redeemed": 1,
- "duration_in_months": null,
- "livemode": false,
- "redeem_by": null,
- "object": "coupon",
- "duration": "once",
- "percent_off": 10,
- "id": "JAVA-COUPON-fa8e8918-2f9e-4def-9675-ed19d6f4d41b",
- "max_redemptions": null
- }
- },
- "livemode": false,
- "delinquent": false,
- "object": "customer",
- "email": null,
- "subscription": null,
- "account_balance": 0,
- "description": null,
- "id": "cus_QEvO1l6xtJNbTI",
- "active_card": null,
- "created": 1336829566
-}
-
- {
- "error": {
- "type": "invalid_request_error",
- "message": "No such customer: cus_QEvO1l6xtJNbTI"
- }
-}
-
- - Updates the specified customer by setting the values of - the parameters passed. Any parameters not provided will - be left unchanged. For example, if you pass - the card parameter, that becomes the - customer's active card which will be used for all - charges in future. -
- -- This request accepts mostly the same arguments as the - customer creation call. However, subscription-related - arguments (plan and - trial_end) are not accepted. To - change those, one must - update the customer's subscription directly. -
- --
- Returns the customer object if the update succeeded. - Errors will be thrown if update parameters are invalid. - For example, specifying an invalid coupon or - an invalid card will return an error. -
-POST https://api.stripe.com/v1/customers/{CUSTOMER_ID}
-
- curl https://api.stripe.com/v1/customers/cus_QEvO1l6xtJNbTI \
- -u vtUQeOtUnYr7PGCLQ96Ul4zqpDUO4sOE: \
- -d "description=Customer for site@stripe.com"
-
-
- {
- "discount": {
- "end": 1339507966,
- "start": 1336829566,
- "object": "discount",
- "customer": "cus_QEvO1l6xtJNbTI",
- "id": "di_Ogh2mPRH0Y200d",
- "coupon": {
- "times_redeemed": 1,
- "duration_in_months": null,
- "livemode": false,
- "redeem_by": null,
- "object": "coupon",
- "duration": "once",
- "percent_off": 10,
- "id": "JAVA-COUPON-fa8e8918-2f9e-4def-9675-ed19d6f4d41b",
- "max_redemptions": null
- }
- },
- "livemode": false,
- "delinquent": false,
- "object": "customer",
- "email": null,
- "subscription": null,
- "account_balance": 0,
- "description": "Customer for site@stripe.com",
- "id": "cus_QEvO1l6xtJNbTI",
- "active_card": null,
- "created": 1336829566
-}
-
- {
- "error": {
- "type": "invalid_request_error",
- "message": "No such customer: cus_QEvO1l6xtJNbTI"
- }
-}
-
- Permanently deletes a customer. It cannot be undone.
- -- Returns an object with a deleted parameter on success. - If the customer ID does not exist, an error is returned. -
-- Unlike other objects, deleted customers can still be - retrieved through the API, in order to be able to track - the history of customers while still removing their - credit card details and preventing any further operations - to be performed (such as adding a new subscription). -
-DELETE https://api.stripe.com/v1/customers/{CUSTOMER_ID}
-
- curl https://api.stripe.com/v1/customers/cus_QEvO1l6xtJNbTI \
- -u vtUQeOtUnYr7PGCLQ96Ul4zqpDUO4sOE: \
- -X DELETE
-
-
- {
- "discount": {
- "end": 1339507966,
- "start": 1336829566,
- "object": "discount",
- "customer": "cus_QEvO1l6xtJNbTI",
- "id": "di_Ogh2mPRH0Y200d",
- "coupon": {
- "times_redeemed": 1,
- "duration_in_months": null,
- "livemode": false,
- "redeem_by": null,
- "object": "coupon",
- "duration": "once",
- "percent_off": 10,
- "id": "JAVA-COUPON-fa8e8918-2f9e-4def-9675-ed19d6f4d41b",
- "max_redemptions": null
- }
- },
- "livemode": false,
- "delinquent": false,
- "object": "customer",
- "email": null,
- "subscription": null,
- "account_balance": 0,
- "description": null,
- "id": "cus_QEvO1l6xtJNbTI",
- "active_card": null,
- "created": 1336829566
-}
-
- {
- "error": {
- "type": "invalid_request_error",
- "message": "No such customer: cus_QEvO1l6xtJNbTI"
- }
-}
-
- - Returns a list of your customers. The customers are - returned sorted by creation date, with the most recently - created customers appearing first. -
- -- Like with an individual customer, you can view the list - of customers directly in your browser. -
- -- https://vtUQeOtUnYr7PGCLQ96Ul4zqpDUO4sOE@api.stripe.com/v1/customers -
- -- A dictionary with a data - property that contains an array of up to count customers, - starting at index offset. Each entry - in the array is a separate customer object. If no more - customers are available, the resulting array will be - empty. This request should never return an error. -
-GET https://api.stripe.com/v1/customers
-
- curl https://api.stripe.com/v1/customers \
- -u vtUQeOtUnYr7PGCLQ96Ul4zqpDUO4sOE:
-
-
- {
- data: [
- {
- "discount": {
- "end": 1339507966,
- "start": 1336829566,
- "object": "discount",
- "customer": "cus_QEvO1l6xtJNbTI",
- "id": "di_Ogh2mPRH0Y200d",
- "coupon": {
- "times_redeemed": 1,
- "duration_in_months": null,
- "livemode": false,
- "redeem_by": null,
- "object": "coupon",
- "duration": "once",
- "percent_off": 10,
- "id": "JAVA-COUPON-fa8e8918-2f9e-4def-9675-ed19d6f4d41b",
- "max_redemptions": null
- }
- },
- "livemode": false,
- "delinquent": false,
- "object": "customer",
- "email": null,
- "subscription": null,
- "account_balance": 0,
- "description": null,
- "id": "cus_QEvO1l6xtJNbTI",
- "active_card": null,
- "created": 1336829566
- },
- {...},
- {...}
- ]
-}
-
- - Customer objects allow you to perform recurring charges - and track multiple charges that are associated with the - same customer. The API allows you to create, delete, - and update your customers. You can retrieve individual - customers as well as a list of all your customers. -
-{
- "discount": {
- "end": 1339507966,
- "start": 1336829566,
- "object": "discount",
- "customer": "cus_QEvO1l6xtJNbTI",
- "id": "di_Ogh2mPRH0Y200d",
- "coupon": {
- "times_redeemed": 1,
- "duration_in_months": null,
- "livemode": false,
- "redeem_by": null,
- "object": "coupon",
- "duration": "once",
- "percent_off": 10,
- "id": "JAVA-COUPON-fa8e8918-2f9e-4def-9675-ed19d6f4d41b",
- "max_redemptions": null
- }
- },
- "livemode": false,
- "delinquent": false,
- "object": "customer",
- "email": null,
- "subscription": null,
- "account_balance": 0,
- "description": null,
- "id": "cus_QEvO1l6xtJNbTI",
- "active_card": null,
- "created": 1336829566
-}
- - Creates a new customer object. -
- -- Returns a customer object if the call succeeded. The - returned object will have information about - subscriptions, discount, and cards, if that information - has been provided. If a non-free plan is specified and - a card is not provided (unless the plan has a trial period), the call will return an error. - If a non-existent plan or a non-existent or expired - coupon is provided, the call will return an error. -
-- If a card has been attached to the customer, the - returned customer object will have an active_card - attribute containing the card's details. -
- -POST https://api.stripe.com/v1/customers
-
- curl https://api.stripe.com/v1/customers \
- -u vtUQeOtUnYr7PGCLQ96Ul4zqpDUO4sOE: \
- -d "description=Customer for site@stripe.com" \
- -d "card[number]=4242424242424242" \
- -d "card[exp_month]=5" \
- -d "card[exp_year]=2013"
-
-
- {
- "discount": {
- "end": 1339507966,
- "start": 1336829566,
- "object": "discount",
- "customer": "cus_QEvO1l6xtJNbTI",
- "id": "di_Ogh2mPRH0Y200d",
- "coupon": {
- "times_redeemed": 1,
- "duration_in_months": null,
- "livemode": false,
- "redeem_by": null,
- "object": "coupon",
- "duration": "once",
- "percent_off": 10,
- "id": "JAVA-COUPON-fa8e8918-2f9e-4def-9675-ed19d6f4d41b",
- "max_redemptions": null
- }
- },
- "livemode": false,
- "delinquent": false,
- "object": "customer",
- "email": null,
- "subscription": null,
- "account_balance": 0,
- "description": null,
- "id": "cus_QEvO1l6xtJNbTI",
- "active_card": null,
- "created": 1336829566
-}
-
- {
- "error": {
- "type": "invalid_request_error",
- "message": "You must supply a valid card"
- }
-}
-
- - Retrieves the details of an existing customer. You need - only supply the unique customer identifier that was - returned upon customer creation. -
- -- Like with a charge, you can view the retrieved customer - directly in your browser. -
- -- https://vtUQeOtUnYr7PGCLQ96Ul4zqpDUO4sOE@api.stripe.com/v1/customers/ch_I7HoyUbJDACuPe -
- -- Returns a customer object if a valid identifier was provided. - When requesting the ID of a customer that has been deleted, - a subset of the customer's information will be returned, - including a "deleted" property, which will be true. -
-GET https://api.stripe.com/v1/customers/{CUSTOMER_ID}
-
- curl https://api.stripe.com/v1/customers/cus_QEvO1l6xtJNbTI \
- -u vtUQeOtUnYr7PGCLQ96Ul4zqpDUO4sOE:
-
-
- {
- "discount": {
- "end": 1339507966,
- "start": 1336829566,
- "object": "discount",
- "customer": "cus_QEvO1l6xtJNbTI",
- "id": "di_Ogh2mPRH0Y200d",
- "coupon": {
- "times_redeemed": 1,
- "duration_in_months": null,
- "livemode": false,
- "redeem_by": null,
- "object": "coupon",
- "duration": "once",
- "percent_off": 10,
- "id": "JAVA-COUPON-fa8e8918-2f9e-4def-9675-ed19d6f4d41b",
- "max_redemptions": null
- }
- },
- "livemode": false,
- "delinquent": false,
- "object": "customer",
- "email": null,
- "subscription": null,
- "account_balance": 0,
- "description": null,
- "id": "cus_QEvO1l6xtJNbTI",
- "active_card": null,
- "created": 1336829566
-}
-
- {
- "error": {
- "type": "invalid_request_error",
- "message": "No such customer: cus_QEvO1l6xtJNbTI"
- }
-}
-
- - Updates the specified customer by setting the values of - the parameters passed. Any parameters not provided will - be left unchanged. For example, if you pass - the card parameter, that becomes the - customer's active card which will be used for all - charges in future. -
- -- This request accepts mostly the same arguments as the - customer creation call. However, subscription-related - arguments (plan and - trial_end) are not accepted. To - change those, one must - update the customer's subscription directly. -
- --
- Returns the customer object if the update succeeded. - Errors will be thrown if update parameters are invalid. - For example, specifying an invalid coupon or - an invalid card will return an error. -
-POST https://api.stripe.com/v1/customers/{CUSTOMER_ID}
-
- curl https://api.stripe.com/v1/customers/cus_QEvO1l6xtJNbTI \
- -u vtUQeOtUnYr7PGCLQ96Ul4zqpDUO4sOE: \
- -d "description=Customer for site@stripe.com"
-
-
- {
- "discount": {
- "end": 1339507966,
- "start": 1336829566,
- "object": "discount",
- "customer": "cus_QEvO1l6xtJNbTI",
- "id": "di_Ogh2mPRH0Y200d",
- "coupon": {
- "times_redeemed": 1,
- "duration_in_months": null,
- "livemode": false,
- "redeem_by": null,
- "object": "coupon",
- "duration": "once",
- "percent_off": 10,
- "id": "JAVA-COUPON-fa8e8918-2f9e-4def-9675-ed19d6f4d41b",
- "max_redemptions": null
- }
- },
- "livemode": false,
- "delinquent": false,
- "object": "customer",
- "email": null,
- "subscription": null,
- "account_balance": 0,
- "description": "Customer for site@stripe.com",
- "id": "cus_QEvO1l6xtJNbTI",
- "active_card": null,
- "created": 1336829566
-}
-
- {
- "error": {
- "type": "invalid_request_error",
- "message": "No such customer: cus_QEvO1l6xtJNbTI"
- }
-}
-
- Permanently deletes a customer. It cannot be undone.
- -- Returns an object with a deleted parameter on success. - If the customer ID does not exist, an error is returned. -
-- Unlike other objects, deleted customers can still be - retrieved through the API, in order to be able to track - the history of customers while still removing their - credit card details and preventing any further operations - to be performed (such as adding a new subscription). -
-DELETE https://api.stripe.com/v1/customers/{CUSTOMER_ID}
-
- curl https://api.stripe.com/v1/customers/cus_QEvO1l6xtJNbTI \
- -u vtUQeOtUnYr7PGCLQ96Ul4zqpDUO4sOE: \
- -X DELETE
-
-
- {
- "discount": {
- "end": 1339507966,
- "start": 1336829566,
- "object": "discount",
- "customer": "cus_QEvO1l6xtJNbTI",
- "id": "di_Ogh2mPRH0Y200d",
- "coupon": {
- "times_redeemed": 1,
- "duration_in_months": null,
- "livemode": false,
- "redeem_by": null,
- "object": "coupon",
- "duration": "once",
- "percent_off": 10,
- "id": "JAVA-COUPON-fa8e8918-2f9e-4def-9675-ed19d6f4d41b",
- "max_redemptions": null
- }
- },
- "livemode": false,
- "delinquent": false,
- "object": "customer",
- "email": null,
- "subscription": null,
- "account_balance": 0,
- "description": null,
- "id": "cus_QEvO1l6xtJNbTI",
- "active_card": null,
- "created": 1336829566
-}
-
- {
- "error": {
- "type": "invalid_request_error",
- "message": "No such customer: cus_QEvO1l6xtJNbTI"
- }
-}
-
- - Returns a list of your customers. The customers are - returned sorted by creation date, with the most recently - created customers appearing first. -
- -- Like with an individual customer, you can view the list - of customers directly in your browser. -
- -- https://vtUQeOtUnYr7PGCLQ96Ul4zqpDUO4sOE@api.stripe.com/v1/customers -
- -- A dictionary with a data - property that contains an array of up to count customers, - starting at index offset. Each entry - in the array is a separate customer object. If no more - customers are available, the resulting array will be - empty. This request should never return an error. -
-GET https://api.stripe.com/v1/customers
-
- curl https://api.stripe.com/v1/customers \
- -u vtUQeOtUnYr7PGCLQ96Ul4zqpDUO4sOE:
-
-
- {
- data: [
- {
- "discount": {
- "end": 1339507966,
- "start": 1336829566,
- "object": "discount",
- "customer": "cus_QEvO1l6xtJNbTI",
- "id": "di_Ogh2mPRH0Y200d",
- "coupon": {
- "times_redeemed": 1,
- "duration_in_months": null,
- "livemode": false,
- "redeem_by": null,
- "object": "coupon",
- "duration": "once",
- "percent_off": 10,
- "id": "JAVA-COUPON-fa8e8918-2f9e-4def-9675-ed19d6f4d41b",
- "max_redemptions": null
- }
- },
- "livemode": false,
- "delinquent": false,
- "object": "customer",
- "email": null,
- "subscription": null,
- "account_balance": 0,
- "description": null,
- "id": "cus_QEvO1l6xtJNbTI",
- "active_card": null,
- "created": 1336829566
- },
- {...},
- {...}
- ]
-}
-
-