{ "openapi": "3.0.0", "info": { "title": "Customer Credit API", "description": "With Customer Credit your store can enable **credit payments** through the checkout. You can also control **invoices** and the **credit limits** of your clients.\r\n\r\nLearn more about Customer Credit in our [Help Center article](https://help.vtex.com/en/tracks/customer-credit-getting-started--1hCRg21lXYy2seOKgqQ2CC/36grlQ69NK6OCuioeekyCs).\r\n\r\nAll requests need the **authorization header**.\r\n\r\nAdditionally, you can find more information on installment payments for an order in the `customData` field found in the [Get Order](https://developers.vtex.com/docs/api-reference/orders-api#get-/api/oms/pvt/orders/-orderId-) endpoint of the Orders API. This includes the number of installments, amount and due dates.\r\n\r\nThis API allows two kinds of authorization:\r\n1. Authorization header containing the VTEX ID authentication token.\r\n2. VTEX Appkey and Apptoken headers.\r\n\r\n## Customer Credit API Index\r\n\r\n### Invoices\r\n\r\n- `GET` [Search all invoices](https:\/\/developers.vtex.com\/docs\/api-reference\/customer-credit-api#get-\/api\/creditcontrol\/invoices)\r\n- `GET` [Retrieve Invoice by Id](https:\/\/developers.vtex.com\/docs\/api-reference\/customer-credit-api#get-\/api\/creditcontrol\/accounts\/-creditAccountId-\/invoices\/-invoiceId-)\r\n- `PUT` [Change Invoice](https:\/\/developers.vtex.com\/docs\/api-reference\/customer-credit-api#put-\/api\/creditcontrol\/accounts\/-creditAccountId-\/invoices\/-invoiceId-)\r\n- `DELETE` [Cancel Invoice](https:\/\/developers.vtex.com\/docs\/api-reference\/customer-credit-api#delete-\/api\/creditcontrol\/accounts\/-creditAccountId-\/invoices\/-invoiceId-)\r\n- `GET` [Retrieve invoice by creditAccountId](https:\/\/developers.vtex.com\/docs\/api-reference\/customer-credit-api#get-\/api\/creditcontrol\/accounts\/-creditAccountId-\/invoices)\r\n- `POST` [Mark an invoice as Paid](https:\/\/developers.vtex.com\/docs\/api-reference\/customer-credit-api#post-\/api\/creditcontrol\/accounts\/-creditAccountId-\/invoices\/-invoiceId-\/payments)\r\n- `PUT` [Postpone an invoice](https:\/\/developers.vtex.com\/docs\/api-reference\/customer-credit-api#put-\/api\/creditcontrol\/accounts\/-creditAccountId-\/invoices\/-invoiceId-\/postponement)\r\n\r\n### Account\r\n\r\n- `GET` [Search all accounts](https:\/\/developers.vtex.com\/docs\/api-reference\/customer-credit-api#get-\/api\/creditcontrol\/accounts)\r\n- `POST` [Open an Account](https:\/\/developers.vtex.com\/docs\/api-reference\/customer-credit-api#post-\/api\/creditcontrol\/accounts)\r\n- `GET` [Retrieve an Account by Id](https:\/\/developers.vtex.com\/docs\/api-reference\/customer-credit-api#get-\/api\/creditcontrol\/accounts\/-creditAccountId-)\r\n- `DELETE` [Close an Account](https:\/\/developers.vtex.com\/docs\/api-reference\/customer-credit-api#delete-\/api\/creditcontrol\/accounts\/-creditAccountId-)\r\n- `PUT` [Update email and description of a account](https:\/\/developers.vtex.com\/docs\/api-reference\/customer-credit-api#put-\/api\/creditcontrol\/accounts\/-creditAccountId-)\r\n- `GET` [Account statements](https:\/\/developers.vtex.com\/docs\/api-reference\/customer-credit-api#get-\/api\/creditcontrol\/accounts\/-creditAccountId-\/statements)\r\n- `PUT` [Open or Change Account](https:\/\/developers.vtex.com\/docs\/api-reference\/customer-credit-api#put-\/api\/creditcontrol\/accounts\/-accountId-)\r\n- `PUT` [Change credit limit of an Account](https:\/\/developers.vtex.com\/docs\/api-reference\/customer-credit-api#put-\/api\/creditcontrol\/accounts\/-creditAccountId-\/creditlimit)\r\n- `PUT` [Decrease balance of an account](https:\/\/developers.vtex.com\/docs\/api-reference\/customer-credit-api#put-\/api\/creditcontrol\/accounts\/-creditAccountId-\/statements\/-statementId-)\r\n- `PUT` [Create or Update Settlement](https:\/\/developers.vtex.com\/docs\/api-reference\/customer-credit-api#put-\/api\/creditcontrol\/accounts\/-creditAccountId-\/transactions\/-transactionId-\/settlement)\r\n- `POST` [Create a Pre-Authorization](https:\/\/developers.vtex.com\/docs\/api-reference\/customer-credit-api#post-\/api\/creditcontrol\/accounts\/-creditAccountId-\/transaction)\r\n- `PUT` [Update a Pre-Authorization](https:\/\/developers.vtex.com\/docs\/api-reference\/customer-credit-api#put-\/api\/creditcontrol\/accounts\/-creditAccountId-\/transactions\/-transactionId-)\r\n- `DELETE` [Cancel a Pre-Authorization](https:\/\/developers.vtex.com\/docs\/api-reference\/customer-credit-api#delete-\/api\/creditcontrol\/accounts\/-creditAccountId-\/transactions\/-transactionId-)\r\n- `POST` [Add an account Holder](https:\/\/developers.vtex.com\/docs\/api-reference\/customer-credit-api#post-\/api\/creditcontrol\/accounts\/-creditAccountId-\/holders)\r\n- `DELETE` [Delete an account holder](https:\/\/developers.vtex.com\/docs\/api-reference\/customer-credit-api#delete-\/api\/creditcontrol\/accounts\/-creditAccountId-\/holders\/-holderId-)\r\n- `PUT` [Change tolerance of an account](https:\/\/developers.vtex.com\/docs\/api-reference\/customer-credit-api#put-\/api\/creditcontrol\/accounts\/-creditAccountId-\/tolerance)\r\n- `POST` [Partial or Total Refund a Settlement](https:\/\/developers.vtex.com\/docs\/api-reference\/customer-credit-api#post-\/api\/creditcontrol\/accounts\/-creditAccountId-\/transactions\/-transactionId-\/refunds)\r\n\r\n### Store Configuration\r\n\r\n- `GET` [Retrieve store configuration](https:\/\/developers.vtex.com\/docs\/api-reference\/customer-credit-api#get-\/api\/creditcontrol\/storeconfig)\r\n- `PUT` [Create or change store configuration](https:\/\/developers.vtex.com\/docs\/api-reference\/customer-credit-api#put-\/api\/creditcontrol\/storeconfig)\r\n\r\n", "contact": {}, "version": "1.0" }, "servers": [ { "url": "https://{accountName}.{environment}.com.br", "description": "VTEX server URL.", "variables": { "accountName": { "description": "Name of the VTEX account. Used as part of the URL", "default": "apiexamples" }, "environment": { "description": "Environment to use. Used as part of the URL.", "enum": [ "vtexcommercestable" ], "default": "vtexcommercestable" } } } ], "paths": { "/api/creditcontrol/invoices": { "get": { "tags": ["Invoices"], "summary": "Search all invoices", "description": "Returns a list of invoices filtered by the query params informed in the request.\r\n\r\n>ℹ️ The query params can be used individually or combined.\r\n\r\n### Queries to filter results\r\n\r\n- **By the location of the invoices in the list (quantity of invoices)**: `?from={int}&to={int}`\r\n- **By creation date**: `?createdDateFrom={dateISO8601}&createDateTo={dateISO8601}`. The dates should be in ISO8601 format.\r\n- **By due date**: `?dueDateFrom={dateISO8601}&dueDateTo={dateISO8601}`. The dates should be in ISO8601 format.\r\n- **By value**: `?value={decimal}`\r\n- **By status**: `?status={string}`\r\n- **By Id**: `?friendlyId={string}`\r\n- **By observation**: `?observation={string}`\r\n- **By creditAccountId**: `?creditAccountId={creditAcountId}`\r\n\r\n### Combining filters\r\n\r\nYou can use the `op` query parameter to specify if filters will be evaluated as `AND` or `OR` for the query. The default behavior when there is more than one query parameter is `AND`.\r\n\r\nExample:\r\n\r\nFor the query `?value=100&status=Paid`, the criteria will build **value = 100 AND status = Paid**.\r\n\r\nFor the same query, adding the `op` parameter (`?value=100&status=Paid&op=or`), the criteria will build **value = 100 OR status = Paid**.", "operationId": "Searchallinvoices", "parameters": [ { "name": "Content-Type", "in": "header", "description": "Type of the content being sent.", "required": true, "style": "simple", "schema": { "type": "string", "default": "application/json" } }, { "name": "Accept", "in": "header", "description": "HTTP Client Negotiation _Accept_ Header. Indicates the types of responses the client can understand.", "required": true, "style": "simple", "schema": { "type": "string", "default": "application/json" } }, { "name": "from", "in": "query", "description": "Indicates the starting position of the invoice to be searched in the invoice list. Example, value \"1\" indicates that the first invoice in the list will be returned.", "required": false, "style": "form", "schema": { "type": "string", "default": 1 } }, { "name": "to", "in": "query", "description": "Indicates the final position of the invoice to be searched in the invoice list. Example, if the value of \"from\" is equal to 1 and \"to\" is 300, information from 300 invoices will be displayed in the response body of the request.", "required": false, "style": "form", "schema": { "type": "string", "example": 300 } }, { "name": "createdDateFrom", "in": "query", "description": "Indicates the initial creation date of invoices that should be searched in the invoice list based on their creation date. The dates should be in ISO8601 format.", "required": false, "style": "form", "schema": { "type": "string", "example": "2023-01-20" } }, { "name": "createdDateTo", "in": "query", "description": "Indicates the final creation date of invoices that should be searched in the invoice list based on their creation date. The dates should be in ISO8601 format.", "required": false, "style": "form", "schema": { "type": "string", "example": "2023-01-25" } }, { "name": "dueDateFrom", "in": "query", "description": "Indicates the initial due date of invoices that should be searched in the invoice list based on their creation date. The dates should be in ISO8601 format.", "required": false, "style": "form", "schema": { "type": "string", "example": "2023-01-20" } }, { "name": "dueDateTo", "in": "query", "description": "Indicates the final due date of invoices that should be searched in the invoice list based on their creation date. The dates should be in ISO8601 format.", "required": false, "style": "form", "schema": { "type": "string", "example": "2023-01-25" } }, { "name": "value", "in": "query", "description": "Indicates the value of which invoices should be searched for in the invoice list. It must be completed with a decimal value.", "required": false, "style": "form", "schema": { "type": "number", "example": "101.22" } }, { "name": "status", "in": "query", "description": "Indicates the status of which invoices should be searched for in the invoice list.. It must be completed with \"Paid\", \"Cancelled\" or \"Open\" value.", "required": false, "style": "form", "schema": { "type": "string", "example": "Paid" } }, { "name": "friendlyId", "in": "query", "description": "Simplified identification invoice's generate by the merchant (optional).It consists of a 8 digit random id (of numbers and letters) and the installment.", "required": false, "style": "form", "schema": { "type": "string", "example": "aaaa-0001" } }, { "name": "observation", "in": "query", "description": "Some observation about the invoice.", "required": false, "style": "form", "schema": { "type": "string", "example": "Some observation about the invoice" } }, { "name": "creditAccountId", "in": "query", "description": "Credit account's identification.", "required": false, "style": "form", "schema": { "type": "string", "example": "01bce461-9g03-12ds-8217-b3d39271e15b" } } ], "responses": { "200": { "description": "", "headers": { "Connection": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "close" } } }, "Content-Encoding": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "gzip" } } }, "Date": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "Wed, 12 Jul 2017 18:56:52 GMT" } } }, "Server": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "nginx" } } }, "Vary": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "Accept-Encoding" } } }, "X-CDNIgnore": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "1" } } }, "X-Powered-by-VTEX-Janus-Edge": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "v1.36.4" } } }, "X-Track": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "stable" } } }, "X-VTEX-Janus-Router-Backend-App": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "cc-v0.1.6-stable+62" } } } }, "content": { "application/json; charset=utf-8": { "schema": { "title": "Paidinvoices", "required": ["data", "summary"], "type": "object", "properties": { "data": { "type": "array", "items": { "title": "Datum", "required": [ "id", "status", "value", "checkingAccountId", "createdAt", "updatedAt", "paymentLink", "originalDueDate", "dueDate", "description", "observation" ], "type": "object", "properties": { "id": { "type": "string" }, "status": { "type": "string" }, "value": { "type": "number" }, "checkingAccountId": { "type": "string" }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" }, "paymentLink": { "type": "string", "nullable": true }, "originalDueDate": { "type": "string" }, "dueDate": { "type": "string" }, "description": { "type": "string" }, "observation": { "type": "string", "nullable": true } }, "example": { "id": "ce02c68b2b584d5ba15a63bc485d43f1", "status": "Paid", "value": 100, "checkingAccountId": "14443385797_CPF", "createdAt": "2017-06-19T01:53:54", "updatedAt": "2017-06-27T05:58:24", "paymentLink": "", "originalDueDate": "2017-07-27T05:58:24", "dueDate": "2017-07-27T05:58:24", "description": "Invoice from debit of 100M. Installment 1/1", "observation": "" } }, "description": "" }, "summary": { "title": "Summary", "required": ["total", "count"], "type": "object", "properties": { "total": { "type": "number" }, "count": { "type": "integer", "format": "int32" } }, "example": { "total": 500, "count": 5 } } }, "example": { "data": [ { "id": "ce02c68b2b584d5ba15a63bc485d43f1", "status": "Paid", "value": 100, "checkingAccountId": "14443385797_CPF", "createdAt": "2017-06-19T01:53:54", "updatedAt": "2017-06-27T05:58:24", "paymentLink": "", "originalDueDate": "2017-07-27T05:58:24", "dueDate": "2017-07-27T05:58:24", "description": "Invoice from debit of 100M. Installment 1/1", "observation": "" }, { "id": "11ff8f52407047c2966649c3484285bd", "status": "Paid", "value": 100, "checkingAccountId": "06100326744_CPF", "createdAt": "2017-04-27T01:48:27", "updatedAt": "2017-04-27T07:58:42", "paymentLink": null, "originalDueDate": "", "dueDate": "2017-05-27T07:58:42", "description": "Invoice from debit of 100M. Installment 1/1", "observation": "" }, { "id": "2828a856363a4f82b3f5c18b3ef09620", "status": "Paid", "value": 100, "checkingAccountId": "06100326744_CPF", "createdAt": "2017-04-27T01:48:27", "updatedAt": "2017-04-27T07:58:30", "paymentLink": null, "originalDueDate": "", "dueDate": "2017-05-27T07:58:30", "description": "Invoice from debit of 100M. Installment 1/1", "observation": "" }, { "id": "06c8f6160f7a4a50ae43c26a37fe1946", "status": "Paid", "value": 100, "checkingAccountId": "06100326744_CPF", "createdAt": "2017-04-27T01:48:27", "updatedAt": "2017-04-27T07:58:52", "paymentLink": null, "originalDueDate": "", "dueDate": "2017-05-27T07:58:52", "description": "Invoice from debit of 100M. Installment 1/1", "observation": "" }, { "id": "105e79997fbe452ba33ffa69b408f9bf", "status": "Paid", "value": 100, "checkingAccountId": "14443385797_CPF", "createdAt": "2017-04-11T04:50:34", "updatedAt": "2017-04-11T05:26:07", "paymentLink": null, "originalDueDate": "", "dueDate": "2017-05-11T05:26:07", "description": "Invoice from debit of 100M. Installment 1/1", "observation": null } ], "summary": { "total": 500, "count": 5 } } }, "example": { "data": [ { "id": "ce02c68b2b584d5ba15a63bc485d43f1", "status": "Paid", "value": 100, "checkingAccountId": "14443385797_CPF", "createdAt": "2017-06-19T01:53:54", "updatedAt": "2017-06-27T05:58:24", "paymentLink": "", "originalDueDate": "2017-07-27T05:58:24", "dueDate": "2017-07-27T05:58:24", "description": "Invoice from debit of 100M. Installment 1/1", "observation": "" }, { "id": "11ff8f52407047c2966649c3484285bd", "status": "Paid", "value": 100, "checkingAccountId": "06100326744_CPF", "createdAt": "2017-04-27T01:48:27", "updatedAt": "2017-04-27T07:58:42", "paymentLink": null, "originalDueDate": "", "dueDate": "2017-05-27T07:58:42", "description": "Invoice from debit of 100M. Installment 1/1", "observation": "" }, { "id": "2828a856363a4f82b3f5c18b3ef09620", "status": "Paid", "value": 100, "checkingAccountId": "06100326744_CPF", "createdAt": "2017-04-27T01:48:27", "updatedAt": "2017-04-27T07:58:30", "paymentLink": null, "originalDueDate": "", "dueDate": "2017-05-27T07:58:30", "description": "Invoice from debit of 100M. Installment 1/1", "observation": "" }, { "id": "06c8f6160f7a4a50ae43c26a37fe1946", "status": "Paid", "value": 100, "checkingAccountId": "06100326744_CPF", "createdAt": "2017-04-27T01:48:27", "updatedAt": "2017-04-27T07:58:52", "paymentLink": null, "originalDueDate": "", "dueDate": "2017-05-27T07:58:52", "description": "Invoice from debit of 100M. Installment 1/1", "observation": "" }, { "id": "105e79997fbe452ba33ffa69b408f9bf", "status": "Paid", "value": 100, "checkingAccountId": "14443385797_CPF", "createdAt": "2017-04-11T04:50:34", "updatedAt": "2017-04-11T05:26:07", "paymentLink": null, "originalDueDate": "", "dueDate": "2017-05-11T05:26:07", "description": "Invoice from debit of 100M. Installment 1/1", "observation": null } ], "summary": { "total": 500, "count": 5 } } } } } }, "deprecated": false } }, "/api/creditcontrol/accounts/{creditAccountId}/invoices/{invoiceId}": { "get": { "tags": ["Invoices"], "summary": "Retrieve Invoice by Id", "description": "Returns associated data for the specified Invoice Id, like status and value, for example.", "operationId": "RetrieveInvoicebyId", "parameters": [ { "name": "Content-Type", "in": "header", "description": "Type of the content being sent.", "required": true, "style": "simple", "schema": { "type": "string", "default": "application/json" } }, { "name": "Accept", "in": "header", "description": "HTTP Client Negotiation _Accept_ Header. Indicates the types of responses the client can understand.", "required": true, "style": "simple", "schema": { "type": "string", "default": "application/json" } }, { "name": "creditAccountId", "in": "path", "description": "Credit account's identification.", "required": true, "style": "simple", "schema": { "type": "string", "example": "01bce461-9g03-12ds-8217-b3d39271e15b" } }, { "name": "invoiceId", "in": "path", "description": "Invoice identification.", "required": true, "style": "simple", "schema": { "type": "string", "example": "109G739FHE3138F9C152D4BH27093B6BC-01" } } ], "responses": { "200": { "description": "", "headers": { "Connection": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "keep-alive" } } }, "Content-Length": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "383" } } }, "Date": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "Wed, 12 Jul 2017 20:53:42 GMT" } } }, "Server": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "nginx" } } }, "X-CDNIgnore": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "1" } } }, "X-Powered-by-VTEX-Janus-Edge": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "v1.36.4" } } }, "X-Track": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "stable" } } }, "X-VTEX-Janus-Router-Backend-App": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "cc-v0.1.6-stable+62" } } } }, "content": { "application/json; charset=utf-8": { "schema": { "title": "Retrievedinvoice", "required": [ "id", "status", "value", "checkingAccountId", "createdAt", "updatedAt", "paymentLink", "originalDueDate", "dueDate", "description", "observation" ], "type": "object", "properties": { "id": { "type": "string" }, "status": { "type": "string" }, "value": { "type": "number" }, "checkingAccountId": { "type": "string" }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" }, "paymentLink": { "type": "string" }, "originalDueDate": { "type": "string" }, "dueDate": { "type": "string" }, "description": { "type": "string" }, "observation": { "type": "string" } }, "example": { "id": "029f4009-ac4b-4739-8644-50df050f34ca", "status": "Opened", "value": 50, "checkingAccountId": "76655291437_CPF", "createdAt": "2017-07-12T08:53:04", "updatedAt": "2017-07-12T08:53:04", "paymentLink": "http://foo.bar", "originalDueDate": "2017-07-27T08:53:04", "dueDate": "2017-07-27T08:53:04", "description": "Invoice issued from a API call", "observation": "Some observation about the invoice" } }, "example": { "id": "029f4009-ac4b-4739-8644-50df050f34ca", "status": "Opened", "value": 50, "checkingAccountId": "76655291437_CPF", "createdAt": "2017-07-12T08:53:04", "updatedAt": "2017-07-12T08:53:04", "paymentLink": "http://foo.bar", "originalDueDate": "2017-07-27T08:53:04", "dueDate": "2017-07-27T08:53:04", "description": "Invoice issued from a API call", "observation": "Some observation about the invoice" } } } } }, "deprecated": false }, "put": { "tags": ["Invoices"], "summary": "Change Invoice", "description": "Updates invoice's attributes `status`, `paymentLink` and `observation`.", "operationId": "ChangeInvoice", "parameters": [ { "name": "Content-Type", "in": "header", "description": "Type of the content being sent.", "required": true, "style": "simple", "schema": { "type": "string", "default": "application/json" } }, { "name": "Accept", "in": "header", "description": "HTTP Client Negotiation _Accept_ Header. Indicates the types of responses the client can understand.", "required": true, "style": "simple", "schema": { "type": "string", "default": "application/json" } }, { "name": "creditAccountId", "in": "path", "description": "Credit account's identification.", "required": true, "style": "simple", "schema": { "type": "string", "example": "01bce461-9g03-12ds-8217-b3d39271e15b" } }, { "name": "invoiceId", "in": "path", "description": "Invoice identification.", "required": true, "style": "simple", "schema": { "type": "string", "example": "109G739FHE3138F9C152D4BH27093B6BC-01" } }, { "name": "friendlyId", "in": "query", "description": "Simplified identification invoice's generate by the merchant (optional).It consists of a 8 digit random id (of numbers and letters) and the installment.", "style": "form", "schema": { "type": "string", "example": "aaaa-0001" } } ], "requestBody": { "description": "", "content": { "application/json": { "schema": { "title": "ChangeInvoiceRequest", "required": [ "status", "observation", "paymentLink" ], "type": "object", "properties": { "status": { "type": "string", "default": "Paid", "description": "Invoice's status. It must be completed with "Paid", "Cancelled" or "Open" value." }, "observation": { "type": "string", "default": "example" }, "paymentLink": { "type": "string", "default": "example" } }, "example": { "status": "string", "observation": "string (optional)", "paymentLink": "string (URL) (optional)" } }, "example": { "status": "string", "observation": "string (optional)", "paymentLink": "string (URL) (optional)" } } }, "required": true }, "responses": { "200": { "description": "", "headers": { "Access-Control-Allow-Origin": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "*" } } }, "Connection": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "keep-alive" } } }, "Content-Length": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "0" } } }, "Date": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "Wed, 12 Jul 2017 21:02:41 GMT" } } }, "Server": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "nginx" } } }, "X-CDNIgnore": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "1" } } }, "X-Powered-by-VTEX-Janus-Edge": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "v1.36.5-beta.1" } } }, "X-Track": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "beta" } } }, "X-Translate": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "1" } } }, "X-Translate-BackEnd": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "http%3A%2F%2Fbeta.janus-router-v2.vtexinternal.com.br%2Fapi%2Fcreditcontrol%2Fcheckingaccounts%2F76655291437_CPF%2Finvoices%2F8735068e9aa042488e7cd2a0d3028ce7" } } }, "X-VTEX-Janus-Router-Backend-App": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "cc-v0.1.7-beta.5+75" } } } }, "content": { "text/plain": { "schema": { "type": "object" } } } } }, "deprecated": false }, "delete": { "tags": ["Invoices"], "summary": "Cancel Invoice", "description": "Changes invoice's status from ancells invoice by specified Id.", "operationId": "CancelInvoice", "parameters": [ { "name": "Content-Type", "in": "header", "description": "Type of the content being sent.", "required": true, "style": "simple", "schema": { "type": "string", "default": "application/json" } }, { "name": "Accept", "in": "header", "description": "HTTP Client Negotiation _Accept_ Header. Indicates the types of responses the client can understand.", "required": true, "style": "simple", "schema": { "type": "string", "default": "application/json" } }, { "name": "creditAccountId", "in": "path", "description": "Credit account's identification.", "required": true, "style": "simple", "schema": { "type": "string", "example": "01bce461-9g03-12ds-8217-b3d39271e15b" } }, { "name": "invoiceId", "in": "path", "description": "Invoice identification.", "required": true, "style": "simple", "schema": { "type": "string", "example": "109G739FHE3138F9C152D4BH27093B6BC-01" } } ], "responses": { "200": { "description": "", "headers": { "Access-Control-Allow-Origin": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "*" } } }, "Connection": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "keep-alive" } } }, "Content-Length": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "0" } } }, "Date": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "Wed, 12 Jul 2017 21:06:17 GMT" } } }, "Server": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "nginx" } } }, "X-CDNIgnore": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "1" } } }, "X-Powered-by-VTEX-Janus-Edge": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "v1.36.5-beta.1" } } }, "X-Track": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "beta" } } }, "X-Translate": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "1" } } }, "X-Translate-BackEnd": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "http%3A%2F%2Fbeta.janus-router-v2.vtexinternal.com.br%2Fapi%2Fcreditcontrol%2Fcheckingaccounts%2F76655291437_CPF%2Finvoices%2F8735068e9aa042488e7cd2a0d3028ce7" } } }, "X-VTEX-Janus-Router-Backend-App": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "cc-v0.1.7-beta.5+75" } } } }, "content": { "text/plain": { "schema": { "type": "object" } } } } }, "deprecated": false } }, "/api/creditcontrol/accounts/{creditAccountId}/invoices": { "get": { "tags": ["Invoices"], "summary": "Retrieve invoice by creditAccountId", "description": "Returns associated invoices given a specific `creditAccountId`, the parameter that identifies a customer at VTEX.\r\n\r\n### Queries to filter results\r\n\r\n- **By page numbers**: `?from={int}&to={int}`\r\n- **By creation date**: `?createdDateFrom={dateISO8601}&createDateTo={dateISO8601}`. The dates should be in ISO8601 format.\r\n- **By due date**: `?dueDateFrom={dateISO8601}&dueDateTo={dateISO8601}`. The dates should be in ISO8601 format.\r\n- **By value**: `?value={decimal}`\r\n- **By status**: `?status={string}`\r\n- **By Id**: `?Id={string}`\r\n- **By observation**: `?observation={string}`\r\n- **By creditAccountId**: `?creditAccountId={creditAcountId}`\r\n\r\n### Combining filters\r\n\r\nYou can use the `op` query parameter to specify if filters will be evaluated as `AND` or `OR` for the query. The default behavior when there is more than one query parameter is `AND`.\r\n\r\nExample:\r\n\r\nFor the query `?value=100&status=Paid`, the criteria will build **value = 100 AND status = Paid**.\r\n\r\nFor the same query, adding the `op` parameter (`?value=100&status=Paid&op=or`), the criteria will build **value = 100 OR status = Paid**.", "operationId": "SearchallinvoicesofaAccount", "parameters": [ { "name": "Content-Type", "in": "header", "description": "Type of the content being sent.", "required": true, "style": "simple", "schema": { "type": "string", "default": "application/json" } }, { "name": "Accept", "in": "header", "description": "HTTP Client Negotiation _Accept_ Header. Indicates the types of responses the client can understand.", "required": true, "style": "simple", "schema": { "type": "string", "default": "application/json" } }, { "name": "creditAccountId", "in": "path", "description": "Credit account's identification.", "required": true, "style": "simple", "schema": { "type": "string", "example": "01bce461-9g03-12ds-8217-b3d39271e15b" } } ], "responses": { "200": { "description": "", "headers": { "Connection": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "close" } } }, "Content-Encoding": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "gzip" } } }, "Date": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "Wed, 12 Jul 2017 20:30:00 GMT" } } }, "Server": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "nginx" } } }, "Vary": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "Accept-Encoding" } } }, "X-CDNIgnore": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "1" } } }, "X-Powered-by-VTEX-Janus-Edge": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "v1.36.4" } } }, "X-Track": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "stable" } } }, "X-VTEX-Janus-Router-Backend-App": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "cc-v0.1.6-stable+62" } } } }, "content": { "application/json; charset=utf-8": { "schema": { "title": "Getinvoicesfromacheckingaccount", "required": ["data", "summary"], "type": "object", "properties": { "data": { "type": "array", "items": { "title": "Datum1", "required": [ "id", "status", "value", "checkingAccountId", "createdAt", "updatedAt", "paymentLink", "originalDueDate", "dueDate", "description", "observation" ], "type": "object", "properties": { "id": { "type": "string" }, "status": { "type": "string" }, "value": { "type": "number" }, "checkingAccountId": { "type": "string" }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" }, "paymentLink": { "type": "string" }, "originalDueDate": { "type": "string" }, "dueDate": { "type": "string" }, "description": { "type": "string" }, "observation": { "type": "string" } }, "example": { "id": "f9a056cb63f5417fb900ed5128bc1b15", "status": "Opened", "value": 240, "checkingAccountId": "12345677811_CPF", "createdAt": "2017-07-06T01:57:58", "updatedAt": "2017-07-06T01:57:58", "paymentLink": "", "originalDueDate": "2017-08-05T01:57:58", "dueDate": "2017-08-05T01:57:58", "description": "Invoice from debit of 240.0M. Installment 1/1", "observation": "" } }, "description": "" }, "summary": { "title": "Summary", "required": ["total", "count"], "type": "object", "properties": { "total": { "type": "number" }, "count": { "type": "integer", "format": "int32" } }, "example": { "total": 500, "count": 5 } } }, "example": { "data": [ { "id": "f9a056cb63f5417fb900ed5128bc1b15", "status": "Opened", "value": 240, "checkingAccountId": "12345677811_CPF", "createdAt": "2017-07-06T01:57:58", "updatedAt": "2017-07-06T01:57:58", "paymentLink": "", "originalDueDate": "2017-08-05T01:57:58", "dueDate": "2017-08-05T01:57:58", "description": "Invoice from debit of 240.0M. Installment 1/1", "observation": "" }, { "id": "ae45d73bfe534325bc6cfef3521d675c", "status": "Opened", "value": 240, "checkingAccountId": "12345677811_CPF", "createdAt": "2017-07-06T01:57:58", "updatedAt": "2017-07-06T01:57:58", "paymentLink": "", "originalDueDate": "2017-08-05T01:57:58", "dueDate": "2017-08-05T01:57:58", "description": "Invoice from debit of 240.0M. Installment 1/1", "observation": "" }, { "id": "8b984881a6934a06b65ab679c3b6641b", "status": "Opened", "value": 20, "checkingAccountId": "12345677811_CPF", "createdAt": "2017-07-06T01:45:40", "updatedAt": "2017-07-06T01:57:58", "paymentLink": "", "originalDueDate": "2017-08-05T01:57:58", "dueDate": "2017-08-05T01:57:58", "description": "Invoice from debit of 240.0M. Installment 1/1", "observation": "" }, { "id": "c19d55551ac84e2d84c5b60f53c77daa", "status": "Opened", "value": 20, "checkingAccountId": "12345677811_CPF", "createdAt": "2017-07-06T01:44:49", "updatedAt": "2017-07-06T01:44:52", "paymentLink": "", "originalDueDate": "2017-08-05T01:44:51", "dueDate": "2017-08-05T01:44:51", "description": "Invoice from debit of 240.0M. Installment 1/1", "observation": "" }, { "id": "b588919ac65a4bc58bc1b87957ca136a", "status": "Opened", "value": 240, "checkingAccountId": "12345677811_CPF", "createdAt": "2017-07-06T01:40:02", "updatedAt": "2017-07-06T01:40:03", "paymentLink": "", "originalDueDate": "2017-08-05T01:40:03", "dueDate": "2017-08-05T01:40:03", "description": "Invoice from debit of 240.0M. Installment 1/1", "observation": "" }, { "id": "fabb9ae209cb4c50ac048ab72363d488", "status": "Opened", "value": 20, "checkingAccountId": "12345677811_CPF", "createdAt": "2017-07-06T01:39:17", "updatedAt": "2017-07-06T01:39:20", "paymentLink": "", "originalDueDate": "2017-08-05T01:39:19", "dueDate": "2017-08-05T01:39:19", "description": "Invoice from debit of 240.0M. Installment 1/1", "observation": "" }, { "id": "bc4e409f1490495b8dc351e2f93ac766", "status": "Opened", "value": 20, "checkingAccountId": "12345677811_CPF", "createdAt": "2017-07-06T01:38:15", "updatedAt": "2017-07-06T01:38:18", "paymentLink": "", "originalDueDate": "2017-08-05T01:38:17", "dueDate": "2017-08-05T01:38:17", "description": "Invoice from debit of 240.0M. Installment 1/1", "observation": "" }, { "id": "b23eb606d9054e29a789745c1473d123", "status": "Opened", "value": 20, "checkingAccountId": "12345677811_CPF", "createdAt": "2017-07-06T01:37:35", "updatedAt": "2017-07-06T01:37:38", "paymentLink": "", "originalDueDate": "2017-08-05T01:37:38", "dueDate": "2017-08-05T01:37:38", "description": "Invoice from debit of 240.0M. Installment 1/1", "observation": "" }, { "id": "2f67b460ca0742118d5eadd7d3752480", "status": "Opened", "value": 20, "checkingAccountId": "12345677811_CPF", "createdAt": "2017-07-06T01:36:25", "updatedAt": "2017-07-06T01:36:30", "paymentLink": "", "originalDueDate": "2017-08-05T01:36:29", "dueDate": "2017-08-05T01:36:29", "description": "Invoice from debit of 240.0M. Installment 1/1", "observation": "" }, { "id": "36102b1baec74904a80dcc6baf8dd5e7", "status": "Opened", "value": 20, "checkingAccountId": "12345677811_CPF", "createdAt": "2017-07-06T01:35:18", "updatedAt": "2017-07-06T01:35:22", "paymentLink": "", "originalDueDate": "2017-08-05T01:35:21", "dueDate": "2017-08-05T01:35:21", "description": "Invoice from debit of 240.0M. Installment 1/1", "observation": "" }, { "id": "2166d1d0b35a4ece826fac580652348b", "status": "Opened", "value": 240, "checkingAccountId": "12345677811_CPF", "createdAt": "2017-07-06T01:31:31", "updatedAt": "2017-07-06T01:31:32", "paymentLink": "", "originalDueDate": "2017-08-05T01:31:32", "dueDate": "2017-08-05T01:31:32", "description": "Invoice from debit of 240.0M. Installment 1/1", "observation": "" }, { "id": "4d7ae513368a425db3c0c567fa2e9704", "status": "Opened", "value": 20, "checkingAccountId": "12345677811_CPF", "createdAt": "2017-07-06T01:30:18", "updatedAt": "2017-07-06T01:30:21", "paymentLink": "", "originalDueDate": "2017-08-05T01:30:20", "dueDate": "2017-08-05T01:30:20", "description": "Invoice from debit of 240.0M. Installment 1/1", "observation": "" }, { "id": "98332e38da024e269670bf6a5fce24ca", "status": "Opened", "value": 20, "checkingAccountId": "12345677811_CPF", "createdAt": "2017-07-06T01:29:32", "updatedAt": "2017-07-06T01:29:35", "paymentLink": "", "originalDueDate": "2017-08-05T01:29:34", "dueDate": "2017-08-05T01:29:34", "description": "Invoice from debit of 240.0M. Installment 1/1", "observation": "" }, { "id": "f2caa32762f14961895f93ddd1eb66cb", "status": "Opened", "value": 20, "checkingAccountId": "12345677811_CPF", "createdAt": "2017-07-06T01:28:58", "updatedAt": "2017-07-06T01:29:01", "paymentLink": "", "originalDueDate": "2017-08-05T01:29:00", "dueDate": "2017-08-05T01:29:00", "description": "Invoice from debit of 240.0M. Installment 1/1", "observation": "" }, { "id": "c44a7c0d2d944fe1bffc59b79ffdb214", "status": "Opened", "value": 240, "checkingAccountId": "12345677811_CPF", "createdAt": "2017-07-06T01:19:14", "updatedAt": "2017-07-06T01:19:15", "paymentLink": "", "originalDueDate": "2017-08-05T01:19:15", "dueDate": "2017-08-05T01:19:15", "description": "Invoice from debit of 240.0M. Installment 1/1", "observation": "" }, { "id": "f5c4725b549e4e77bfbf69f9ec6b5f44", "status": "Opened", "value": 20, "checkingAccountId": "12345677811_CPF", "createdAt": "2017-07-06T01:18:25", "updatedAt": "2017-07-06T01:18:29", "paymentLink": "", "originalDueDate": "2017-08-05T01:18:28", "dueDate": "2017-08-05T01:18:28", "description": "Invoice from debit of 240.0M. Installment 1/1", "observation": "" }, { "id": "76054911732743e3b011a36fdf99ac9b", "status": "Opened", "value": 20, "checkingAccountId": "12345677811_CPF", "createdAt": "2017-07-06T01:17:34", "updatedAt": "2017-07-06T01:17:38", "paymentLink": "", "originalDueDate": "2017-08-05T01:17:37", "dueDate": "2017-08-05T01:17:37", "description": "Invoice from debit of 240.0M. Installment 1/1", "observation": "" }, { "id": "d5d5bc644d9e4068bb108bcca420343b", "status": "Opened", "value": 20, "checkingAccountId": "12345677811_CPF", "createdAt": "2017-07-06T01:16:54", "updatedAt": "2017-07-06T01:16:58", "paymentLink": "", "originalDueDate": "2017-08-05T01:16:57", "dueDate": "2017-08-05T01:16:57", "description": "Invoice from debit of 240.0M. Installment 1/1", "observation": "" }, { "id": "c8de1d1b4f144a8bbb339f2a1c873c7e", "status": "Opened", "value": 20, "checkingAccountId": "12345677811_CPF", "createdAt": "2017-07-06T01:16:14", "updatedAt": "2017-07-06T01:16:18", "paymentLink": "", "originalDueDate": "2017-08-05T01:16:17", "dueDate": "2017-08-05T01:16:17", "description": "Invoice from debit of 240.0M. Installment 1/1", "observation": "" }, { "id": "a84cc2c91ee048c2bcf94b3214af31b2", "status": "Opened", "value": 20, "checkingAccountId": "12345677811_CPF", "createdAt": "2017-07-06T01:14:40", "updatedAt": "2017-07-06T01:14:43", "paymentLink": "", "originalDueDate": "2017-08-05T01:14:43", "dueDate": "2017-08-05T01:14:43", "description": "Invoice from debit of 240.0M. Installment 1/1", "observation": "" }, { "id": "3bf5ea95cb75465e80ea8c0f16cbc4d2", "status": "Opened", "value": 240, "checkingAccountId": "12345677811_CPF", "createdAt": "2017-07-06T01:13:22", "updatedAt": "2017-07-06T01:13:23", "paymentLink": "", "originalDueDate": "2017-08-05T01:13:23", "dueDate": "2017-08-05T01:13:23", "description": "Invoice from debit of 240.0M. Installment 1/1", "observation": "" } ], "summary": { "total": 1740, "count": 194 } } }, "example": { "data": [ { "id": "f9a056cb63f5417fb900ed5128bc1b15", "status": "Opened", "value": 240, "checkingAccountId": "12345677811_CPF", "createdAt": "2017-07-06T01:57:58", "updatedAt": "2017-07-06T01:57:58", "paymentLink": "", "originalDueDate": "2017-08-05T01:57:58", "dueDate": "2017-08-05T01:57:58", "description": "Invoice from debit of 240.0M. Installment 1/1", "observation": "" }, { "id": "ae45d73bfe534325bc6cfef3521d675c", "status": "Opened", "value": 240, "checkingAccountId": "12345677811_CPF", "createdAt": "2017-07-06T01:57:58", "updatedAt": "2017-07-06T01:57:58", "paymentLink": "", "originalDueDate": "2017-08-05T01:57:58", "dueDate": "2017-08-05T01:57:58", "description": "Invoice from debit of 240.0M. Installment 1/1", "observation": "" }, { "id": "8b984881a6934a06b65ab679c3b6641b", "status": "Opened", "value": 20, "checkingAccountId": "12345677811_CPF", "createdAt": "2017-07-06T01:45:40", "updatedAt": "2017-07-06T01:57:58", "paymentLink": "", "originalDueDate": "2017-08-05T01:57:58", "dueDate": "2017-08-05T01:57:58", "description": "Invoice from debit of 240.0M. Installment 1/1", "observation": "" }, { "id": "c19d55551ac84e2d84c5b60f53c77daa", "status": "Opened", "value": 20, "checkingAccountId": "12345677811_CPF", "createdAt": "2017-07-06T01:44:49", "updatedAt": "2017-07-06T01:44:52", "paymentLink": "", "originalDueDate": "2017-08-05T01:44:51", "dueDate": "2017-08-05T01:44:51", "description": "Invoice from debit of 240.0M. Installment 1/1", "observation": "" }, { "id": "b588919ac65a4bc58bc1b87957ca136a", "status": "Opened", "value": 240, "checkingAccountId": "12345677811_CPF", "createdAt": "2017-07-06T01:40:02", "updatedAt": "2017-07-06T01:40:03", "paymentLink": "", "originalDueDate": "2017-08-05T01:40:03", "dueDate": "2017-08-05T01:40:03", "description": "Invoice from debit of 240.0M. Installment 1/1", "observation": "" }, { "id": "fabb9ae209cb4c50ac048ab72363d488", "status": "Opened", "value": 20, "checkingAccountId": "12345677811_CPF", "createdAt": "2017-07-06T01:39:17", "updatedAt": "2017-07-06T01:39:20", "paymentLink": "", "originalDueDate": "2017-08-05T01:39:19", "dueDate": "2017-08-05T01:39:19", "description": "Invoice from debit of 240.0M. Installment 1/1", "observation": "" }, { "id": "bc4e409f1490495b8dc351e2f93ac766", "status": "Opened", "value": 20, "checkingAccountId": "12345677811_CPF", "createdAt": "2017-07-06T01:38:15", "updatedAt": "2017-07-06T01:38:18", "paymentLink": "", "originalDueDate": "2017-08-05T01:38:17", "dueDate": "2017-08-05T01:38:17", "description": "Invoice from debit of 240.0M. Installment 1/1", "observation": "" }, { "id": "b23eb606d9054e29a789745c1473d123", "status": "Opened", "value": 20, "checkingAccountId": "12345677811_CPF", "createdAt": "2017-07-06T01:37:35", "updatedAt": "2017-07-06T01:37:38", "paymentLink": "", "originalDueDate": "2017-08-05T01:37:38", "dueDate": "2017-08-05T01:37:38", "description": "Invoice from debit of 240.0M. Installment 1/1", "observation": "" }, { "id": "2f67b460ca0742118d5eadd7d3752480", "status": "Opened", "value": 20, "checkingAccountId": "12345677811_CPF", "createdAt": "2017-07-06T01:36:25", "updatedAt": "2017-07-06T01:36:30", "paymentLink": "", "originalDueDate": "2017-08-05T01:36:29", "dueDate": "2017-08-05T01:36:29", "description": "Invoice from debit of 240.0M. Installment 1/1", "observation": "" }, { "id": "36102b1baec74904a80dcc6baf8dd5e7", "status": "Opened", "value": 20, "checkingAccountId": "12345677811_CPF", "createdAt": "2017-07-06T01:35:18", "updatedAt": "2017-07-06T01:35:22", "paymentLink": "", "originalDueDate": "2017-08-05T01:35:21", "dueDate": "2017-08-05T01:35:21", "description": "Invoice from debit of 240.0M. Installment 1/1", "observation": "" }, { "id": "2166d1d0b35a4ece826fac580652348b", "status": "Opened", "value": 240, "checkingAccountId": "12345677811_CPF", "createdAt": "2017-07-06T01:31:31", "updatedAt": "2017-07-06T01:31:32", "paymentLink": "", "originalDueDate": "2017-08-05T01:31:32", "dueDate": "2017-08-05T01:31:32", "description": "Invoice from debit of 240.0M. Installment 1/1", "observation": "" }, { "id": "4d7ae513368a425db3c0c567fa2e9704", "status": "Opened", "value": 20, "checkingAccountId": "12345677811_CPF", "createdAt": "2017-07-06T01:30:18", "updatedAt": "2017-07-06T01:30:21", "paymentLink": "", "originalDueDate": "2017-08-05T01:30:20", "dueDate": "2017-08-05T01:30:20", "description": "Invoice from debit of 240.0M. Installment 1/1", "observation": "" }, { "id": "98332e38da024e269670bf6a5fce24ca", "status": "Opened", "value": 20, "checkingAccountId": "12345677811_CPF", "createdAt": "2017-07-06T01:29:32", "updatedAt": "2017-07-06T01:29:35", "paymentLink": "", "originalDueDate": "2017-08-05T01:29:34", "dueDate": "2017-08-05T01:29:34", "description": "Invoice from debit of 240.0M. Installment 1/1", "observation": "" }, { "id": "f2caa32762f14961895f93ddd1eb66cb", "status": "Opened", "value": 20, "checkingAccountId": "12345677811_CPF", "createdAt": "2017-07-06T01:28:58", "updatedAt": "2017-07-06T01:29:01", "paymentLink": "", "originalDueDate": "2017-08-05T01:29:00", "dueDate": "2017-08-05T01:29:00", "description": "Invoice from debit of 240.0M. Installment 1/1", "observation": "" }, { "id": "c44a7c0d2d944fe1bffc59b79ffdb214", "status": "Opened", "value": 240, "checkingAccountId": "12345677811_CPF", "createdAt": "2017-07-06T01:19:14", "updatedAt": "2017-07-06T01:19:15", "paymentLink": "", "originalDueDate": "2017-08-05T01:19:15", "dueDate": "2017-08-05T01:19:15", "description": "Invoice from debit of 240.0M. Installment 1/1", "observation": "" }, { "id": "f5c4725b549e4e77bfbf69f9ec6b5f44", "status": "Opened", "value": 20, "checkingAccountId": "12345677811_CPF", "createdAt": "2017-07-06T01:18:25", "updatedAt": "2017-07-06T01:18:29", "paymentLink": "", "originalDueDate": "2017-08-05T01:18:28", "dueDate": "2017-08-05T01:18:28", "description": "Invoice from debit of 240.0M. Installment 1/1", "observation": "" }, { "id": "76054911732743e3b011a36fdf99ac9b", "status": "Opened", "value": 20, "checkingAccountId": "12345677811_CPF", "createdAt": "2017-07-06T01:17:34", "updatedAt": "2017-07-06T01:17:38", "paymentLink": "", "originalDueDate": "2017-08-05T01:17:37", "dueDate": "2017-08-05T01:17:37", "description": "Invoice from debit of 240.0M. Installment 1/1", "observation": "" }, { "id": "d5d5bc644d9e4068bb108bcca420343b", "status": "Opened", "value": 20, "checkingAccountId": "12345677811_CPF", "createdAt": "2017-07-06T01:16:54", "updatedAt": "2017-07-06T01:16:58", "paymentLink": "", "originalDueDate": "2017-08-05T01:16:57", "dueDate": "2017-08-05T01:16:57", "description": "Invoice from debit of 240.0M. Installment 1/1", "observation": "" }, { "id": "c8de1d1b4f144a8bbb339f2a1c873c7e", "status": "Opened", "value": 20, "checkingAccountId": "12345677811_CPF", "createdAt": "2017-07-06T01:16:14", "updatedAt": "2017-07-06T01:16:18", "paymentLink": "", "originalDueDate": "2017-08-05T01:16:17", "dueDate": "2017-08-05T01:16:17", "description": "Invoice from debit of 240.0M. Installment 1/1", "observation": "" }, { "id": "a84cc2c91ee048c2bcf94b3214af31b2", "status": "Opened", "value": 20, "checkingAccountId": "12345677811_CPF", "createdAt": "2017-07-06T01:14:40", "updatedAt": "2017-07-06T01:14:43", "paymentLink": "", "originalDueDate": "2017-08-05T01:14:43", "dueDate": "2017-08-05T01:14:43", "description": "Invoice from debit of 240.0M. Installment 1/1", "observation": "" }, { "id": "3bf5ea95cb75465e80ea8c0f16cbc4d2", "status": "Opened", "value": 240, "checkingAccountId": "12345677811_CPF", "createdAt": "2017-07-06T01:13:22", "updatedAt": "2017-07-06T01:13:23", "paymentLink": "", "originalDueDate": "2017-08-05T01:13:23", "dueDate": "2017-08-05T01:13:23", "description": "Invoice from debit of 240.0M. Installment 1/1", "observation": "" } ], "summary": { "total": 1740, "count": 194 } } } } } }, "deprecated": false } }, "/api/creditcontrol/accounts/{creditAccountId}/invoices/{invoiceId}/payments": { "post": { "tags": ["Invoices"], "summary": "Mark an invoice as Paid", "description": "Records the payment of an invoice.\r\n\r\nThis operation causes a balance restore with the invoice value to the checking account.", "operationId": "MarkaninvoiceasPaid", "parameters": [ { "name": "Content-Type", "in": "header", "description": "Type of the content being sent.", "required": true, "style": "simple", "schema": { "type": "string", "default": "application/json" } }, { "name": "Accept", "in": "header", "description": "HTTP Client Negotiation _Accept_ Header. Indicates the types of responses the client can understand.", "required": true, "style": "simple", "schema": { "type": "string", "default": "application/json" } }, { "name": "creditAccountId", "in": "path", "description": "Credit account's identification.", "required": true, "style": "simple", "schema": { "type": "string", "example": "01bce461-9g03-12ds-8217-b3d39271e15b" } }, { "name": "invoiceId", "in": "path", "description": "Invoice identification.", "required": true, "style": "simple", "schema": { "type": "string", "example": "109G739FHE3138F9C152D4BH27093B6BC-01" } } ], "requestBody": { "description": "", "content": { "application/json": { "schema": { "title": "MarkaninvoiceasPaidRequest", "required": ["value"], "type": "object", "properties": { "value": { "type": "string", "default": "example" } }, "example": { "value": "number (FULL invoice value [deprecated])" } }, "example": { "value": "number (FULL invoice value [deprecated])" } } }, "required": true }, "responses": { "200": { "description": "", "headers": { "Access-Control-Allow-Origin": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "*" } } }, "Connection": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "keep-alive" } } }, "Content-Length": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "38" } } }, "Date": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "Wed, 12 Jul 2017 20:58:28 GMT" } } }, "Server": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "nginx" } } }, "X-CDNIgnore": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "1" } } }, "X-Powered-by-VTEX-Janus-Edge": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "v1.36.5-beta.1" } } }, "X-Track": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "beta" } } }, "X-Translate": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "1" } } }, "X-Translate-BackEnd": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "http%3A%2F%2Fbeta.janus-router-v2.vtexinternal.com.br%2Fapi%2Fcreditcontrol%2Fcheckingaccounts%2F76655291437_CPF%2Finvoices%2F029f4009-ac4b-4739-8644-50df050f34ca%2Fpayments" } } }, "X-VTEX-Janus-Router-Backend-App": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "cc-v0.1.7-beta.5+75" } } } }, "content": { "application/json; charset=utf-8": { "schema": { "type": "string", "example": "\"029f4009-ac4b-4739-8644-50df050f34ca\"" }, "example": "\"029f4009-ac4b-4739-8644-50df050f34ca\"" } } } }, "deprecated": false } }, "/api/creditcontrol/accounts/{creditAccountId}/invoices/{invoiceId}/postponement": { "put": { "tags": ["Invoices"], "summary": "Postpone an invoice", "description": "Postpones an invoice by the amount of time defined on the `dueDays` field (number of days for the invoice to be postponed by).\r\n\r\nThis operation updates the invoice field `dueDate`.", "operationId": "Postponeaninvoice", "parameters": [ { "name": "Content-Type", "in": "header", "description": "Type of the content being sent.", "required": true, "style": "simple", "schema": { "type": "string", "default": "application/json" } }, { "name": "Accept", "in": "header", "description": "HTTP Client Negotiation _Accept_ Header. Indicates the types of responses the client can understand.", "required": true, "style": "simple", "schema": { "type": "string", "default": "application/json" } }, { "name": "creditAccountId", "in": "path", "description": "Credit account's identification.", "required": true, "style": "simple", "schema": { "type": "string", "example": "01bce461-9g03-12ds-8217-b3d39271e15b" } }, { "name": "invoiceId", "in": "path", "description": "Invoice identification.", "required": true, "style": "simple", "schema": { "type": "string", "example": "109G739FHE3138F9C152D4BH27093B6BC-01" } } ], "requestBody": { "description": "", "content": { "application/json": { "schema": { "title": "PostponeaninvoiceRequest", "required": ["dueDays"], "type": "object", "properties": { "dueDays": { "type": "string" } }, "example": { "dueDays": "number (integer)" } }, "example": { "dueDays": "number (integer)" } } }, "required": true }, "responses": { "200": { "description": "", "headers": { "Access-Control-Allow-Origin": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "*" } } }, "Connection": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "keep-alive" } } }, "Content-Length": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "0" } } }, "Date": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "Wed, 12 Jul 2017 21:04:01 GMT" } } }, "Server": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "nginx" } } }, "X-CDNIgnore": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "1" } } }, "X-Powered-by-VTEX-Janus-Edge": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "v1.36.5-beta.1" } } }, "X-Track": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "beta" } } }, "X-Translate": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "1" } } }, "X-Translate-BackEnd": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "http%3A%2F%2Fbeta.janus-router-v2.vtexinternal.com.br%2Fapi%2Fcreditcontrol%2Fcheckingaccounts%2F76655291437_CPF%2Finvoices%2F8735068e9aa042488e7cd2a0d3028ce7%2Fpostponement" } } }, "X-VTEX-Janus-Router-Backend-App": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "cc-v0.1.7-beta.5+75" } } } }, "content": { "text/plain": { "schema": { "type": "object" } } } } }, "deprecated": false } }, "/api/creditcontrol/accounts": { "get": { "tags": ["Account"], "summary": "Search all accounts", "description": "Retrieves a list of all [customer credit accounts](https://help.vtex.com/en/tracks/customer-credit-getting-started--1hCRg21lXYy2seOKgqQ2CC/7FHLd0cmxqqGeEUuc8uioU) of your store filtered by the query params informed in the request.\r\n\r\n### Queries to filter results\r\n\r\n- **By page numbers**: ?from={int}&to={int}\r\n- **By value**: ?value={decimal}\r\n- **By status**: ?status={string}\r\n- **By Id**: ?Id={string}\r\n- **By observation**: ?observation={string}\r\n- **By creditAccountId**: ?creditAccountId={creditAcountId}\r\n\r\n### Combining filters\r\n\r\nYou can use the `op` query parameter to specify if filters will be evaluated as `AND` or `OR` for the query. The default behavior when there is more than one query parameter is `AND`.\r\n\r\nExample:\r\n\r\nFor the query `?value=100&status=Paid`, the criteria will build **value = 100 AND status = Paid**.\r\n\r\nFor the same query, adding the `op` parameter (`?value=100&status=Paid&op=or`), the criteria will build **value = 100 OR status = Paid**.", "operationId": "Searchallaccounts", "parameters": [ { "name": "Content-Type", "in": "header", "description": "Type of the content being sent.", "required": true, "style": "simple", "schema": { "type": "string", "default": "application/json" } }, { "name": "Accept", "in": "header", "description": "HTTP Client Negotiation _Accept_ Header. Indicates the types of responses the client can understand.", "required": true, "style": "simple", "schema": { "type": "string", "default": "application/json" } } ], "responses": { "200": { "description": "", "headers": { "Connection": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "keep-alive" } } }, "Content-Length": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "225" } } }, "Date": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "Wed, 12 Jul 2017 20:36:17 GMT" } } }, "Server": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "nginx" } } }, "X-CDNIgnore": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "1" } } }, "X-Powered-by-VTEX-Janus-Edge": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "v1.36.5-beta.1" } } }, "X-Track": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "beta" } } }, "X-Translate": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "1" } } }, "X-Translate-BackEnd": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "http%3A%2F%2Fbeta.janus-router-v2.vtexinternal.com.br%2Fapi%2Fcreditcontrol%2Fcheckingaccounts%3Ffrom%3D9%26to%3D9" } } }, "X-VTEX-Janus-Router-Backend-App": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "cc-v0.1.7-beta.5+75" } } } }, "content": { "application/json; charset=utf-8": { "schema": { "title": "Searchaccounts", "required": ["data", "summary"], "type": "object", "properties": { "data": { "type": "array", "items": { "title": "Datum2", "required": [ "account", "balance", "document", "documentType", "creditLimit", "lastUpdate", "description", "email" ], "type": "object", "properties": { "account": { "type": "string" }, "balance": { "type": "number" }, "document": { "type": "string" }, "documentType": { "type": "string" }, "creditLimit": { "type": "number" }, "lastUpdate": { "type": "string" }, "description": { "type": "string" }, "email": { "type": "string" } }, "example": { "account": "ambienteqa", "balance": 220, "document": "12345677811", "documentType": "CPF", "creditLimit": 240, "lastUpdate": "2017-07-06T01:57:39.4317119Z", "description": "", "email": "test@test.com" } }, "description": "" }, "summary": { "title": "Summary2", "required": ["count"], "type": "object", "properties": { "count": { "type": "integer", "format": "int32" } }, "example": { "count": 39 } } }, "example": { "data": [ { "account": "ambienteqa", "balance": 220, "document": "12345677811", "documentType": "CPF", "creditLimit": 240, "lastUpdate": "2017-07-06T01:57:39.4317119Z", "description": "", "email": "test@test.com" } ], "summary": { "count": 39 } } }, "example": { "data": [ { "account": "ambienteqa", "balance": 220, "document": "12345677811", "documentType": "CPF", "creditLimit": 240, "lastUpdate": "2017-07-06T01:57:39.4317119Z", "description": "", "email": "test@test.com" } ], "summary": { "count": 39 } } } } } }, "deprecated": false }, "post": { "tags": ["Account"], "summary": "Open an Account", "description": "Opens a [customer credit account](https://help.vtex.com/en/tracks/customer-credit-getting-started--1hCRg21lXYy2seOKgqQ2CC/7FHLd0cmxqqGeEUuc8uioU) on your store.\r\n\r\n>⚠️ This request should only be used if you do not have an account yet registered. If you already have an account (open or closed) and want to create or modify an account, go to [Open or Change Account](https://developers.vtex.com/docs/api-reference/customer-credit-api#put-/api/creditcontrol/accounts/-accountId-) endpoint.", "operationId": "OpenanAccount", "parameters": [ { "name": "Content-Type", "in": "header", "description": "Type of the content being sent.", "required": true, "style": "simple", "schema": { "type": "string", "default": "application/json" } }, { "name": "Accept", "in": "header", "description": "HTTP Client Negotiation _Accept_ Header. Indicates the types of responses the client can understand.", "required": true, "style": "simple", "schema": { "type": "string", "default": "application/json" } } ], "requestBody": { "description": "", "content": { "application/json": { "schema": { "title": "OpenanAccountRequest", "required": [ "document", "documentType", "email", "creditLimit", "description", "tolerance" ], "type": "object", "properties": { "document": { "type": "string", "default": "99999999999" }, "documentType": { "type": "string", "default": "CPF" }, "email": { "type": "string", "default": "email@domain.com" }, "creditLimit": { "type": "string", "default": "500" }, "description": { "type": "string", "default": "example" }, "tolerance": { "type": "string", "default": "1" } }, "example": { "document": "number", "documentType": "CPF ou CNPJ ou Other", "email": "email", "creditLimit": "number", "description": "description", "tolerance": "1 is 100%" } }, "example": { "document": "number", "documentType": "CPF ou CNPJ ou Other", "email": "email", "creditLimit": "number", "description": "description", "tolerance": "1 is 100%" } } }, "required": true }, "responses": { "200": { "description": "", "headers": { "Connection": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "keep-alive" } } }, "Content-Length": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "17" } } }, "Date": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "Wed, 12 Jul 2017 20:47:35 GMT" } } }, "Server": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "nginx" } } }, "X-CDNIgnore": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "1" } } }, "X-Powered-by-VTEX-Janus-Edge": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "v1.36.5-beta.1" } } }, "X-Track": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "beta" } } }, "X-Translate": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "1" } } }, "X-Translate-BackEnd": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "http%3A%2F%2Fbeta.janus-router-v2.vtexinternal.com.br%2Fapi%2Fcreditcontrol%2Fcheckingaccounts" } } }, "X-VTEX-Janus-Router-Backend-App": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "cc-v0.1.7-beta.5+75" } } } }, "content": { "application/json; charset=utf-8": { "schema": { "type": "string", "example": "\"76655291437_CPF\"" }, "example": "\"76655291437_CPF\"" } } } }, "deprecated": false } }, "/api/creditcontrol/accounts/{creditAccountId}": { "get": { "tags": ["Account"], "summary": "Retrieve an Account by Id", "description": "Retrieve an account by id.", "operationId": "RetrieveaAccountbyId", "parameters": [ { "name": "Content-Type", "in": "header", "description": "Type of the content being sent.", "required": true, "style": "simple", "schema": { "type": "string", "default": "application/json" } }, { "name": "Accept", "in": "header", "description": "HTTP Client Negotiation _Accept_ Header. Indicates the types of responses the client can understand.", "required": true, "style": "simple", "schema": { "type": "string", "default": "application/json" } }, { "name": "creditAccountId", "in": "path", "description": "Credit account's identification.", "required": true, "style": "simple", "schema": { "type": "string", "example": "01bce461-9g03-12ds-8217-b3d39271e15b" } } ], "responses": { "200": { "description": "", "headers": { "Connection": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "keep-alive" } } }, "Content-Length": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "145" } } }, "Date": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "Wed, 12 Jul 2017 20:28:47 GMT" } } }, "Server": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "nginx" } } }, "X-CDNIgnore": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "1" } } }, "X-Powered-by-VTEX-Janus-Edge": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "v1.36.4" } } }, "X-Track": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "stable" } } }, "X-VTEX-Janus-Router-Backend-App": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "cc-v0.1.6-stable+62" } } } }, "content": { "application/json; charset=utf-8": { "schema": { "title": "Getaccount", "required": [ "account", "balance", "creditLimit", "lastUpdate", "description", "email" ], "type": "object", "properties": { "account": { "type": "string" }, "balance": { "type": "number" }, "creditLimit": { "type": "number" }, "lastUpdate": { "type": "string" }, "description": { "type": "string" }, "email": { "type": "string" } }, "example": { "account": "ambienteqa", "balance": 220, "creditLimit": 240, "lastUpdate": "2017-07-06T01:57:39.4317119Z", "description": "", "email": "test@test.com" } }, "example": { "account": "ambienteqa", "balance": 220, "creditLimit": 240, "lastUpdate": "2017-07-06T01:57:39.4317119Z", "description": "", "email": "test@test.com" } } } } }, "deprecated": false }, "delete": { "tags": ["Account"], "summary": "Close an Account", "description": "Closes an account.", "operationId": "CloseanAccount", "parameters": [ { "name": "Content-Type", "in": "header", "description": "Type of the content being sent.", "required": true, "style": "simple", "schema": { "type": "string", "default": "application/json" } }, { "name": "Accept", "in": "header", "description": "HTTP Client Negotiation _Accept_ Header. Indicates the types of responses the client can understand.", "required": true, "style": "simple", "schema": { "type": "string", "default": "application/json" } }, { "name": "creditAccountId", "in": "path", "description": "Credit account's identification.", "required": true, "style": "simple", "schema": { "type": "string", "example": "01bce461-9g03-12ds-8217-b3d39271e15b" } } ], "requestBody": { "description": "", "content": { "application/json": { "schema": { "title": "CloseanAccountRequest", "type": "object", "properties": { "document": { "type": "string", "default": "99999999999" }, "documentType": { "type": "string", "default": "CPF" }, "email": { "type": "string", "default": "email@domain.com" } }, "example": { "document": "number", "documentType": "CPF ou CNPJ ou Other", "email": "email" } }, "example": { "document": "number", "documentType": "CPF ou CNPJ ou Other", "email": "email" } } }, "required": true }, "responses": { "200": { "description": "", "headers": {} } }, "deprecated": false }, "put": { "tags": ["Account"], "summary": "Update email and description of a account", "description": "Update a checking account.", "operationId": "Updateemailanddescriptionofaaccount", "parameters": [ { "name": "Content-Type", "in": "header", "description": "Type of the content being sent.", "required": true, "style": "simple", "schema": { "type": "string", "default": "application/json" } }, { "name": "Accept", "in": "header", "description": "HTTP Client Negotiation _Accept_ Header. Indicates the types of responses the client can understand.", "required": true, "style": "simple", "schema": { "type": "string", "default": "application/json" } }, { "name": "creditAccountId", "in": "path", "description": "Credit account's identification.", "required": true, "style": "simple", "schema": { "type": "string", "example": "01bce461-9g03-12ds-8217-b3d39271e15b" } } ], "requestBody": { "description": "", "content": { "application/json": { "schema": { "title": "UpdateemailanddescriptionofaaccountRequest", "required": ["description", "email"], "type": "object", "properties": { "description": { "type": "string", "default": "example" }, "email": { "type": "string", "default": "email@domain.com" } }, "example": { "description": "string", "email": "email" } }, "example": { "description": "string", "email": "email" } } }, "required": true }, "responses": { "200": { "description": "", "headers": { "Connection": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "keep-alive" } } }, "Content-Length": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "17" } } }, "Date": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "Wed, 12 Jul 2017 20:47:35 GMT" } } }, "Server": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "nginx" } } }, "X-CDNIgnore": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "1" } } }, "X-Powered-by-VTEX-Janus-Edge": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "v1.36.5-beta.1" } } }, "X-Track": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "beta" } } }, "X-Translate": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "1" } } }, "X-Translate-BackEnd": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "http%3A%2F%2Fbeta.janus-router-v2.vtexinternal.com.br%2Fapi%2Fcreditcontrol%2Fcheckingaccounts" } } }, "X-VTEX-Janus-Router-Backend-App": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "cc-v0.1.7-beta.5+75" } } } }, "content": { "application/json; charset=utf-8": { "schema": { "type": "string", "example": "\"76655291437_CPF\"" }, "example": "\"76655291437_CPF\"" } } } }, "deprecated": false } }, "/api/creditcontrol/accounts/{creditAccountId}/statements": { "get": { "tags": ["Account"], "summary": "Account statements", "description": "Get the account statements.", "operationId": "Accountstatements", "parameters": [ { "name": "Content-Type", "in": "header", "description": "Type of the content being sent.", "required": true, "style": "simple", "schema": { "type": "string", "default": "application/json" } }, { "name": "Accept", "in": "header", "description": "HTTP Client Negotiation _Accept_ Header. Indicates the types of responses the client can understand.", "required": true, "style": "simple", "schema": { "type": "string", "default": "application/json" } }, { "name": "creditAccountId", "in": "path", "description": "Credit account's identification.", "required": true, "style": "simple", "schema": { "type": "string", "example": "01bce461-9g03-12ds-8217-b3d39271e15b" } } ], "responses": { "200": { "description": "", "headers": { "Connection": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "close" } } }, "Content-Encoding": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "gzip" } } }, "Date": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "Wed, 12 Jul 2017 20:44:51 GMT" } } }, "Server": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "nginx" } } }, "Vary": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "Accept-Encoding" } } }, "X-CDNIgnore": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "1" } } }, "X-Powered-by-VTEX-Janus-Edge": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "v1.36.5-beta.1" } } }, "X-Track": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "beta" } } }, "X-Translate": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "1" } } }, "X-Translate-BackEnd": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "http%3A%2F%2Fbeta.janus-router-v2.vtexinternal.com.br%2Fapi%2Fcreditcontrol%2Fcheckingaccounts%2F1234567890_CPF%2Fstatements" } } }, "X-VTEX-Janus-Router-Backend-App": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "cc-v0.1.7-beta.5+75" } } } }, "content": { "application/json; charset=utf-8": { "schema": { "title": "Statements", "required": [ "statements", "currentBalance", "intervalBalance", "previousBalance" ], "type": "object", "properties": { "statements": { "type": "array", "items": { "title": "Statements1", "required": [ "value", "date", "description" ], "type": "object", "properties": { "value": { "type": "number" }, "date": { "type": "string" }, "description": { "type": "string" } }, "example": { "value": 10000, "date": "2017-07-03T16:47:19.4578611Z", "description": "Credited" } }, "description": "" }, "currentBalance": { "type": "number" }, "intervalBalance": { "type": "number" }, "previousBalance": { "type": "number" } }, "example": { "statements": [ { "value": 10000, "date": "2017-07-03T16:47:19.4578611Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T16:47:19.6678789Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T16:47:20.118935Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T16:47:20.4899776Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T16:52:00.9443838Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T16:52:01.2514187Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T16:52:01.671466Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T16:52:01.9424961Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T16:54:40.0782046Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T16:54:40.3252276Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T16:54:40.6552638Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T16:54:40.8932962Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T16:55:57.197841Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T16:55:57.5278732Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T16:55:57.9019147Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T16:55:58.1179392Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T16:57:11.8426054Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T16:57:13.8889672Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T16:57:16.5197295Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T16:57:18.3509528Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T16:57:18.7869726Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T16:57:19.0240035Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T16:57:19.3770378Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T16:57:19.7050818Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T17:07:15.8348399Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T17:07:16.1788809Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T17:07:16.5469147Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T17:07:16.7959479Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T17:09:33.0252059Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T17:09:33.5372179Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T17:09:34.1453238Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T17:09:34.468359Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T17:09:53.1504362Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T17:09:55.3629113Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T17:09:58.6401036Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T17:10:00.782546Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T18:49:22.3349339Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T18:49:22.6879717Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T18:49:23.0600071Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T18:49:23.3570469Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T18:57:01.460345Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T18:57:02.2444344Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T18:57:02.6094762Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T18:57:03.0085156Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T19:01:09.3831094Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T19:01:09.7391531Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T19:01:10.3811954Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T19:01:13.7475991Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T20:48:39.1243969Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T20:48:39.6534554Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T20:48:39.976498Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T20:48:40.2195183Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T21:43:36.8709735Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T21:43:39.3015912Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T21:43:42.4497005Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T21:43:45.0294261Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T21:52:42.0202602Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T21:52:44.2187306Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T21:52:47.6370182Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T21:52:49.6223473Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T22:00:43.7004457Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T22:00:45.8558835Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T22:00:48.8719015Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T22:00:50.9332797Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T22:06:14.2397182Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T22:06:14.8247757Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T22:06:15.3018042Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T22:06:15.5878612Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T22:13:11.2934159Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T22:13:11.6004563Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T22:13:13.677688Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T22:13:13.9407125Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T22:24:18.0640865Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T22:24:18.3391219Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T22:24:18.7501665Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T22:24:19.0612052Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-04T13:35:32.4265204Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-04T13:35:32.670556Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-04T13:35:33.0035923Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-04T13:35:33.2296111Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-04T13:43:18.0936755Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-04T13:43:18.5677311Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-04T13:43:19.0377821Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-04T13:43:19.3078114Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-04T13:46:24.2995291Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-04T13:46:24.5415575Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-04T13:46:25.1666258Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-04T13:46:25.3926527Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-04T15:10:11.6542275Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-04T15:10:25.101228Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-04T15:10:46.4925416Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-04T15:10:53.5622728Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-04T16:47:02.1152214Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-04T16:47:02.4332644Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-04T16:47:02.9263133Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-04T16:47:03.2213519Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-04T18:15:05.4888997Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-04T18:15:06.0669661Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-04T18:15:06.6290272Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-04T18:15:07.0140703Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-04T18:29:04.8128943Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-04T18:29:05.1829369Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-04T18:29:05.7749947Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-04T18:29:06.0640335Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-05T17:15:29.5981555Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-05T17:15:29.8481897Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-05T17:15:30.2942391Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-05T17:15:30.5592684Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-05T17:44:37.2988823Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-05T17:44:37.851942Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-05T17:44:38.3920041Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-05T17:44:38.7030381Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-05T20:09:37.3571808Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-05T20:09:37.72222Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-05T20:09:38.0552519Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-05T20:09:38.2922837Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-05T20:20:18.4320323Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-05T20:20:21.3519865Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-05T20:20:24.16387Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-05T20:20:25.8389893Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-05T20:22:52.2991989Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-05T20:22:52.5682339Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-05T20:22:53.0962861Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-05T20:22:53.6013417Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-05T20:24:44.309999Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-05T20:24:46.5064706Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-05T20:24:49.6956032Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-05T20:24:51.4547805Z", "description": "Credits emptied" }, { "value": 0, "date": "2017-07-05T21:14:17.4331001Z", "description": "Credits emptied" }, { "value": 0, "date": "2017-07-05T21:14:30.1921448Z", "description": "Credits emptied" }, { "value": 0, "date": "2017-07-05T22:20:16.0386883Z", "description": "Credits emptied" }, { "value": 0, "date": "2017-07-05T22:20:25.5770708Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-05T23:59:03.2527657Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-05T23:59:08.3266609Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-05T23:59:16.9109105Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-05T23:59:22.5296797Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-06T01:57:44.2482508Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-06T01:57:44.5012788Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-06T01:57:45.2343532Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-06T01:57:45.5723968Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-06T14:22:00.5618842Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-06T14:22:05.5812446Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-06T14:22:13.7547136Z", "description": "Credited" }, { "value": 10000, "date": "2017-07-06T14:22:16.3029568Z", "description": "Credited" }, { "value": -20000, "date": "2017-07-06T14:22:17.7061162Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-06T14:22:20.5444338Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-06T14:22:21.0144862Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-06T14:32:59.6762693Z", "description": "Credited" }, { "value": 10000, "date": "2017-07-06T14:33:07.7819136Z", "description": "Credited" }, { "value": -20000, "date": "2017-07-06T14:33:08.2790261Z", "description": "Credits emptied" }, { "value": 0, "date": "2017-07-06T14:33:08.3789839Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-06T14:33:09.0970636Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-06T14:33:09.5591087Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-06T14:33:20.0709176Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-06T14:33:27.9481914Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-06T14:39:44.5993553Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-06T14:39:44.8493768Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-06T14:39:45.4174464Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-06T14:39:45.8154911Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-06T18:02:28.6075704Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-06T18:02:28.9126055Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-06T18:02:29.361656Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-06T18:02:29.6296853Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-06T18:14:48.6134384Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-06T18:14:48.937473Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-06T18:14:51.6977841Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-06T18:14:52.0238222Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-06T18:58:40.45117Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-06T18:58:40.7472093Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-06T18:58:41.1442492Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-06T18:58:41.7183119Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-06T20:10:20.391709Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-06T20:10:20.6657389Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-06T20:10:21.3558225Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-06T20:10:21.6258492Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-06T20:11:48.5505811Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-06T20:11:49.0886414Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-06T20:11:49.797721Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-06T20:11:50.1477661Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-07T02:33:28.0860427Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-07T02:33:28.4040771Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-07T02:33:28.9461381Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-07T02:33:29.3731885Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-07T03:19:29.0522439Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-07T03:19:29.3802781Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-07T03:19:29.8033262Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-07T03:19:30.1083606Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-09T16:38:32.0646398Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-09T16:38:38.5399737Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-09T16:38:52.0400096Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-09T16:38:59.0326902Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-09T16:46:39.5442819Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-09T16:46:39.8743121Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-09T16:46:40.8354262Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-09T16:46:41.1404609Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-09T16:53:23.68054Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-09T16:53:23.9735672Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-09T16:53:24.4196165Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-09T16:53:24.7606614Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-09T17:02:28.3755391Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-09T17:02:28.7075311Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-09T17:02:30.9268213Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-09T17:02:31.4268761Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-10T15:31:13.8141713Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-10T15:31:14.1722149Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-10T15:31:14.7582781Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-10T15:31:15.008306Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-10T15:36:12.620413Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-10T15:36:15.3802583Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-10T15:36:20.0483828Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-10T15:36:22.3108969Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-10T15:39:13.5468917Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-10T15:39:14.0169506Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-10T15:39:14.4700013Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-10T15:39:14.7320264Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-10T15:48:49.3203773Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-10T15:48:49.6554153Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-10T15:48:50.2114767Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-10T15:48:50.5725163Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-10T16:01:48.7536577Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-10T16:01:49.0086875Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-10T16:01:49.3867329Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-10T16:01:49.720771Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-10T16:21:56.4849081Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-10T16:21:56.7768944Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-10T16:21:57.420015Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-10T16:21:57.7600564Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-10T18:44:22.3239425Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-10T18:44:22.6069739Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-10T18:44:23.0380212Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-10T18:44:23.7830985Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-10T18:46:15.7306413Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-10T18:46:16.0676798Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-10T18:46:16.7557547Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-10T18:46:17.0717915Z", "description": "Credits emptied" }, { "value": 0, "date": "2017-07-10T20:46:09.0601995Z", "description": "Credits emptied" }, { "value": 0, "date": "2017-07-10T20:46:09.7432736Z", "description": "Credits emptied" }, { "value": 0, "date": "2017-07-10T20:59:50.5891534Z", "description": "Credits emptied" }, { "value": 0, "date": "2017-07-10T20:59:51.1332589Z", "description": "Credits emptied" }, { "value": 0, "date": "2017-07-10T21:50:23.5218551Z", "description": "Credits emptied" }, { "value": 0, "date": "2017-07-10T21:50:24.1779278Z", "description": "Credits emptied" }, { "value": 0, "date": "2017-07-11T14:33:29.5236904Z", "description": "Credits emptied" }, { "value": 0, "date": "2017-07-11T14:33:30.0347475Z", "description": "Credits emptied" }, { "value": 0, "date": "2017-07-11T16:09:06.1221118Z", "description": "Credits emptied" }, { "value": 0, "date": "2017-07-11T16:09:06.6011653Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-11T16:11:55.696109Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-11T16:11:56.2121659Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-11T16:11:56.8692618Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-11T16:11:57.1562724Z", "description": "Credits emptied" }, { "value": 0, "date": "2017-07-11T16:19:51.1613469Z", "description": "Credits emptied" }, { "value": 0, "date": "2017-07-11T16:19:51.5924019Z", "description": "Credits emptied" }, { "value": 0, "date": "2017-07-11T17:08:27.2440987Z", "description": "Credits emptied" }, { "value": 0, "date": "2017-07-11T17:31:27.2874184Z", "description": "Credits emptied" }, { "value": 1, "date": "2017-07-11T17:38:25.7778188Z", "description": "Credited" }, { "value": -1, "date": "2017-07-11T17:38:47.9508788Z", "description": "Decrease credits" }, { "value": 10000, "date": "2017-07-11T17:40:23.1954791Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-11T17:42:40.0572365Z", "description": "Credits emptied" }, { "value": 0, "date": "2017-07-11T17:44:01.6719325Z", "description": "Credits emptied" }, { "value": 0, "date": "2017-07-11T17:45:45.1352607Z", "description": "Credits emptied" }, { "value": 0, "date": "2017-07-11T17:46:26.9859192Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-11T17:52:50.7294541Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-11T17:52:55.3262378Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-11T18:01:50.9566941Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-11T18:01:51.27073Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-11T18:01:51.8287917Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-11T18:01:52.13982Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-11T18:23:21.8592583Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-11T18:23:22.202299Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-11T18:23:22.6883482Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-11T18:23:23.0293898Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-11T20:39:37.8348611Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-11T20:39:38.2699106Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-11T20:39:38.7839661Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-11T20:39:39.1620082Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-11T20:53:39.9211228Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-11T20:53:40.8032621Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-11T20:53:41.3593193Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-11T20:53:41.7023675Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-11T21:49:07.6918338Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-11T21:49:08.0898827Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-11T21:49:09.7340616Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-11T21:49:10.298129Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-11T22:13:29.121493Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-11T22:13:29.7035615Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-11T22:13:31.0747185Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-11T22:13:31.3367462Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-12T15:19:01.7803787Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-12T15:19:02.2223874Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-12T15:19:02.7854971Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-12T15:19:03.3115534Z", "description": "Credits emptied" } ], "currentBalance": 0, "intervalBalance": 0, "previousBalance": 0 } }, "example": { "statements": [ { "value": 10000, "date": "2017-07-03T16:47:19.4578611Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T16:47:19.6678789Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T16:47:20.118935Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T16:47:20.4899776Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T16:52:00.9443838Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T16:52:01.2514187Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T16:52:01.671466Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T16:52:01.9424961Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T16:54:40.0782046Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T16:54:40.3252276Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T16:54:40.6552638Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T16:54:40.8932962Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T16:55:57.197841Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T16:55:57.5278732Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T16:55:57.9019147Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T16:55:58.1179392Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T16:57:11.8426054Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T16:57:13.8889672Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T16:57:16.5197295Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T16:57:18.3509528Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T16:57:18.7869726Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T16:57:19.0240035Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T16:57:19.3770378Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T16:57:19.7050818Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T17:07:15.8348399Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T17:07:16.1788809Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T17:07:16.5469147Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T17:07:16.7959479Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T17:09:33.0252059Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T17:09:33.5372179Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T17:09:34.1453238Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T17:09:34.468359Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T17:09:53.1504362Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T17:09:55.3629113Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T17:09:58.6401036Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T17:10:00.782546Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T18:49:22.3349339Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T18:49:22.6879717Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T18:49:23.0600071Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T18:49:23.3570469Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T18:57:01.460345Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T18:57:02.2444344Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T18:57:02.6094762Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T18:57:03.0085156Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T19:01:09.3831094Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T19:01:09.7391531Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T19:01:10.3811954Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T19:01:13.7475991Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T20:48:39.1243969Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T20:48:39.6534554Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T20:48:39.976498Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T20:48:40.2195183Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T21:43:36.8709735Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T21:43:39.3015912Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T21:43:42.4497005Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T21:43:45.0294261Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T21:52:42.0202602Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T21:52:44.2187306Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T21:52:47.6370182Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T21:52:49.6223473Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T22:00:43.7004457Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T22:00:45.8558835Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T22:00:48.8719015Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T22:00:50.9332797Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T22:06:14.2397182Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T22:06:14.8247757Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T22:06:15.3018042Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T22:06:15.5878612Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T22:13:11.2934159Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T22:13:11.6004563Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T22:13:13.677688Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T22:13:13.9407125Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T22:24:18.0640865Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T22:24:18.3391219Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T22:24:18.7501665Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T22:24:19.0612052Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-04T13:35:32.4265204Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-04T13:35:32.670556Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-04T13:35:33.0035923Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-04T13:35:33.2296111Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-04T13:43:18.0936755Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-04T13:43:18.5677311Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-04T13:43:19.0377821Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-04T13:43:19.3078114Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-04T13:46:24.2995291Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-04T13:46:24.5415575Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-04T13:46:25.1666258Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-04T13:46:25.3926527Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-04T15:10:11.6542275Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-04T15:10:25.101228Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-04T15:10:46.4925416Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-04T15:10:53.5622728Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-04T16:47:02.1152214Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-04T16:47:02.4332644Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-04T16:47:02.9263133Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-04T16:47:03.2213519Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-04T18:15:05.4888997Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-04T18:15:06.0669661Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-04T18:15:06.6290272Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-04T18:15:07.0140703Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-04T18:29:04.8128943Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-04T18:29:05.1829369Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-04T18:29:05.7749947Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-04T18:29:06.0640335Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-05T17:15:29.5981555Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-05T17:15:29.8481897Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-05T17:15:30.2942391Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-05T17:15:30.5592684Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-05T17:44:37.2988823Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-05T17:44:37.851942Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-05T17:44:38.3920041Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-05T17:44:38.7030381Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-05T20:09:37.3571808Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-05T20:09:37.72222Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-05T20:09:38.0552519Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-05T20:09:38.2922837Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-05T20:20:18.4320323Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-05T20:20:21.3519865Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-05T20:20:24.16387Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-05T20:20:25.8389893Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-05T20:22:52.2991989Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-05T20:22:52.5682339Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-05T20:22:53.0962861Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-05T20:22:53.6013417Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-05T20:24:44.309999Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-05T20:24:46.5064706Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-05T20:24:49.6956032Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-05T20:24:51.4547805Z", "description": "Credits emptied" }, { "value": 0, "date": "2017-07-05T21:14:17.4331001Z", "description": "Credits emptied" }, { "value": 0, "date": "2017-07-05T21:14:30.1921448Z", "description": "Credits emptied" }, { "value": 0, "date": "2017-07-05T22:20:16.0386883Z", "description": "Credits emptied" }, { "value": 0, "date": "2017-07-05T22:20:25.5770708Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-05T23:59:03.2527657Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-05T23:59:08.3266609Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-05T23:59:16.9109105Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-05T23:59:22.5296797Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-06T01:57:44.2482508Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-06T01:57:44.5012788Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-06T01:57:45.2343532Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-06T01:57:45.5723968Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-06T14:22:00.5618842Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-06T14:22:05.5812446Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-06T14:22:13.7547136Z", "description": "Credited" }, { "value": 10000, "date": "2017-07-06T14:22:16.3029568Z", "description": "Credited" }, { "value": -20000, "date": "2017-07-06T14:22:17.7061162Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-06T14:22:20.5444338Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-06T14:22:21.0144862Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-06T14:32:59.6762693Z", "description": "Credited" }, { "value": 10000, "date": "2017-07-06T14:33:07.7819136Z", "description": "Credited" }, { "value": -20000, "date": "2017-07-06T14:33:08.2790261Z", "description": "Credits emptied" }, { "value": 0, "date": "2017-07-06T14:33:08.3789839Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-06T14:33:09.0970636Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-06T14:33:09.5591087Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-06T14:33:20.0709176Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-06T14:33:27.9481914Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-06T14:39:44.5993553Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-06T14:39:44.8493768Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-06T14:39:45.4174464Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-06T14:39:45.8154911Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-06T18:02:28.6075704Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-06T18:02:28.9126055Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-06T18:02:29.361656Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-06T18:02:29.6296853Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-06T18:14:48.6134384Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-06T18:14:48.937473Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-06T18:14:51.6977841Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-06T18:14:52.0238222Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-06T18:58:40.45117Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-06T18:58:40.7472093Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-06T18:58:41.1442492Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-06T18:58:41.7183119Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-06T20:10:20.391709Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-06T20:10:20.6657389Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-06T20:10:21.3558225Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-06T20:10:21.6258492Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-06T20:11:48.5505811Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-06T20:11:49.0886414Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-06T20:11:49.797721Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-06T20:11:50.1477661Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-07T02:33:28.0860427Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-07T02:33:28.4040771Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-07T02:33:28.9461381Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-07T02:33:29.3731885Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-07T03:19:29.0522439Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-07T03:19:29.3802781Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-07T03:19:29.8033262Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-07T03:19:30.1083606Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-09T16:38:32.0646398Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-09T16:38:38.5399737Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-09T16:38:52.0400096Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-09T16:38:59.0326902Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-09T16:46:39.5442819Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-09T16:46:39.8743121Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-09T16:46:40.8354262Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-09T16:46:41.1404609Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-09T16:53:23.68054Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-09T16:53:23.9735672Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-09T16:53:24.4196165Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-09T16:53:24.7606614Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-09T17:02:28.3755391Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-09T17:02:28.7075311Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-09T17:02:30.9268213Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-09T17:02:31.4268761Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-10T15:31:13.8141713Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-10T15:31:14.1722149Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-10T15:31:14.7582781Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-10T15:31:15.008306Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-10T15:36:12.620413Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-10T15:36:15.3802583Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-10T15:36:20.0483828Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-10T15:36:22.3108969Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-10T15:39:13.5468917Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-10T15:39:14.0169506Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-10T15:39:14.4700013Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-10T15:39:14.7320264Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-10T15:48:49.3203773Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-10T15:48:49.6554153Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-10T15:48:50.2114767Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-10T15:48:50.5725163Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-10T16:01:48.7536577Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-10T16:01:49.0086875Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-10T16:01:49.3867329Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-10T16:01:49.720771Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-10T16:21:56.4849081Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-10T16:21:56.7768944Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-10T16:21:57.420015Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-10T16:21:57.7600564Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-10T18:44:22.3239425Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-10T18:44:22.6069739Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-10T18:44:23.0380212Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-10T18:44:23.7830985Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-10T18:46:15.7306413Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-10T18:46:16.0676798Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-10T18:46:16.7557547Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-10T18:46:17.0717915Z", "description": "Credits emptied" }, { "value": 0, "date": "2017-07-10T20:46:09.0601995Z", "description": "Credits emptied" }, { "value": 0, "date": "2017-07-10T20:46:09.7432736Z", "description": "Credits emptied" }, { "value": 0, "date": "2017-07-10T20:59:50.5891534Z", "description": "Credits emptied" }, { "value": 0, "date": "2017-07-10T20:59:51.1332589Z", "description": "Credits emptied" }, { "value": 0, "date": "2017-07-10T21:50:23.5218551Z", "description": "Credits emptied" }, { "value": 0, "date": "2017-07-10T21:50:24.1779278Z", "description": "Credits emptied" }, { "value": 0, "date": "2017-07-11T14:33:29.5236904Z", "description": "Credits emptied" }, { "value": 0, "date": "2017-07-11T14:33:30.0347475Z", "description": "Credits emptied" }, { "value": 0, "date": "2017-07-11T16:09:06.1221118Z", "description": "Credits emptied" }, { "value": 0, "date": "2017-07-11T16:09:06.6011653Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-11T16:11:55.696109Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-11T16:11:56.2121659Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-11T16:11:56.8692618Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-11T16:11:57.1562724Z", "description": "Credits emptied" }, { "value": 0, "date": "2017-07-11T16:19:51.1613469Z", "description": "Credits emptied" }, { "value": 0, "date": "2017-07-11T16:19:51.5924019Z", "description": "Credits emptied" }, { "value": 0, "date": "2017-07-11T17:08:27.2440987Z", "description": "Credits emptied" }, { "value": 0, "date": "2017-07-11T17:31:27.2874184Z", "description": "Credits emptied" }, { "value": 1, "date": "2017-07-11T17:38:25.7778188Z", "description": "Credited" }, { "value": -1, "date": "2017-07-11T17:38:47.9508788Z", "description": "Decrease credits" }, { "value": 10000, "date": "2017-07-11T17:40:23.1954791Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-11T17:42:40.0572365Z", "description": "Credits emptied" }, { "value": 0, "date": "2017-07-11T17:44:01.6719325Z", "description": "Credits emptied" }, { "value": 0, "date": "2017-07-11T17:45:45.1352607Z", "description": "Credits emptied" }, { "value": 0, "date": "2017-07-11T17:46:26.9859192Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-11T17:52:50.7294541Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-11T17:52:55.3262378Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-11T18:01:50.9566941Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-11T18:01:51.27073Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-11T18:01:51.8287917Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-11T18:01:52.13982Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-11T18:23:21.8592583Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-11T18:23:22.202299Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-11T18:23:22.6883482Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-11T18:23:23.0293898Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-11T20:39:37.8348611Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-11T20:39:38.2699106Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-11T20:39:38.7839661Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-11T20:39:39.1620082Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-11T20:53:39.9211228Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-11T20:53:40.8032621Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-11T20:53:41.3593193Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-11T20:53:41.7023675Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-11T21:49:07.6918338Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-11T21:49:08.0898827Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-11T21:49:09.7340616Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-11T21:49:10.298129Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-11T22:13:29.121493Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-11T22:13:29.7035615Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-11T22:13:31.0747185Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-11T22:13:31.3367462Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-12T15:19:01.7803787Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-12T15:19:02.2223874Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-12T15:19:02.7854971Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-12T15:19:03.3115534Z", "description": "Credits emptied" } ], "currentBalance": 0, "intervalBalance": 0, "previousBalance": 0 } } } } }, "deprecated": false } }, "/api/creditcontrol/accounts/{accountId}": { "put": { "tags": ["Account"], "summary": "Open or Change Account", "description": "Open or Change an account.", "operationId": "OpenorChangeAccount", "parameters": [ { "name": "Content-Type", "in": "header", "description": "Type of the content being sent.", "required": true, "style": "simple", "schema": { "type": "string", "default": "application/json" } }, { "name": "Accept", "in": "header", "description": "HTTP Client Negotiation _Accept_ Header. Indicates the types of responses the client can understand.", "required": true, "style": "simple", "schema": { "type": "string", "default": "application/json" } }, { "name": "accountId", "in": "path", "description": "Account identification.", "required": true, "style": "simple", "schema": { "type": "string", "example": "53GD8F7ACM4H40D4A289E906S34281C9" } } ], "requestBody": { "description": "", "content": { "application/json": { "schema": { "title": "OpenorChangeAccountRequest", "required": ["email", "id"], "type": "object", "properties": { "email": { "type": "string", "default": "email@email.com" }, "creditLimit": { "type": "integer", "default": "100.0", "description": "If the user don't set a credit limit, the system will define 100 for default" }, "document": { "type": "string", "default": "00221292404" }, "id": { "type": "string", "default": "teste" } }, "example": { "email": "email", "creditLimit": "number" } }, "example": { "email": "email", "creditLimit": "number" } } } }, "responses": { "200": { "description": "", "headers": { "Connection": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "keep-alive" } } }, "Content-Length": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "17" } } }, "Date": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "Wed, 12 Jul 2017 20:47:35 GMT" } } }, "Server": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "nginx" } } }, "X-CDNIgnore": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "1" } } }, "X-Powered-by-VTEX-Janus-Edge": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "v1.36.5-beta.1" } } }, "X-Track": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "beta" } } }, "X-Translate": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "1" } } }, "X-Translate-BackEnd": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "http%3A%2F%2Fbeta.janus-router-v2.vtexinternal.com.br%2Fapi%2Fcreditcontrol%2Fcheckingaccounts" } } }, "X-VTEX-Janus-Router-Backend-App": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "cc-v0.1.7-beta.5+75" } } } }, "content": { "application/json; charset=utf-8": { "schema": { "type": "string", "example": "\"76655291437_CPF\"" }, "example": "\"76655291437_CPF\"" } } } }, "deprecated": false } }, "/api/creditcontrol/accounts/{creditAccountId}/creditlimit": { "put": { "tags": ["Account"], "summary": "Change credit limit of an Account", "description": "Increase the credit limit of an account.", "operationId": "ChangecreditlimitofanAccount", "parameters": [ { "name": "Content-Type", "in": "header", "description": "Type of the content being sent.", "required": true, "style": "simple", "schema": { "type": "string", "default": "application/json" } }, { "name": "Accept", "in": "header", "description": "HTTP Client Negotiation _Accept_ Header. Indicates the types of responses the client can understand.", "required": true, "style": "simple", "schema": { "type": "string", "default": "application/json" } }, { "name": "creditAccountId", "in": "path", "description": "Credit account's identification.", "required": true, "style": "simple", "schema": { "type": "string", "example": "01bce461-9g03-12ds-8217-b3d39271e15b" } } ], "requestBody": { "description": "", "content": { "application/json": { "schema": { "title": "ChangecreditlimitofanAccountRequest", "required": ["value"], "type": "object", "properties": { "value": { "type": "integer", "format": "number", "default": "500.0" } }, "example": { "value": 10000 } }, "example": { "value": 10000 } } }, "required": true }, "responses": { "200": { "description": "", "headers": { "connection": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "keep-alive" } } }, "content-length": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "0" } } }, "date": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "Thu, 25 Jan 2018 13:35:21 GMT" } } }, "server": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "Microsoft-IIS/8.5" } } }, "via": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "1.1 localhost (squid/3.5.27)" } } }, "x-cache": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "MISS from localhost" } } }, "x-cache-lookup": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "MISS from localhost:3128" } } }, "x-powered-by": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "ASP.NET" } } }, "x-vtex-janus-router-backend-app": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "cc-v0.1.32-stable+145" } } } }, "content": { "text/plain": { "schema": { "type": "object" } } } } }, "deprecated": false } }, "/api/creditcontrol/accounts/{creditAccountId}/statements/{statementId}": { "put": { "tags": ["Account"], "summary": "Decrease balance of an account", "description": "Create a debit value updating the account BALANCE.", "operationId": "Decreasebalanceofanaccount", "parameters": [ { "name": "Content-Type", "in": "header", "description": "Type of the content being sent.", "required": true, "style": "simple", "schema": { "type": "string", "default": "application/json" } }, { "name": "Accept", "in": "header", "description": "HTTP Client Negotiation _Accept_ Header. Indicates the types of responses the client can understand.", "required": true, "style": "simple", "schema": { "type": "string", "default": "application/json" } }, { "name": "creditAccountId", "in": "path", "description": "Credit account's identification.", "required": true, "style": "simple", "schema": { "type": "string", "example": "01bce461-9g03-12ds-8217-b3d39271e15b" } }, { "name": "statementId", "in": "path", "description": "Statement identification. This is the same \"transactionId\" field you get from the [Account statements](https://developers.vtex.com/docs/api-reference/customer-credit-api#get-/api/creditcontrol/accounts/-creditAccountId-) response body endpoint.", "required": true, "style": "simple", "schema": { "type": "string", "example": "451924c579a6759cf6e112a" } } ], "requestBody": { "description": "", "content": { "application/json": { "schema": { "title": "DecreasebalanceofanaccountRequest", "required": ["value"], "type": "object", "properties": { "value": { "type": "string", "default": "-490.0" } }, "example": { "value": "-number" } }, "example": { "value": "-number" } } }, "required": true }, "responses": { "200": { "description": "", "headers": {} } }, "deprecated": false } }, "/api/creditcontrol/accounts/{creditAccountId}/transactions/{transactionId}/settlement": { "put": { "tags": ["Account"], "summary": "Create or Update Settlement", "description": "Creates `N` invoices, where `N` is the number of installments.\r\n\r\nThe first invoice will be due in 30 days, and subsequent invoices will be due 30 days after the previous invoice.\r\n\r\nYou can specify a `transactionId` (pre-authorization identification) that will be used to create `N` invoices.", "operationId": "CreateorUpdateSettlement", "parameters": [ { "name": "Content-Type", "in": "header", "description": "Type of the content being sent.", "required": true, "style": "simple", "schema": { "type": "string", "default": "application/json" } }, { "name": "Accept", "in": "header", "description": "HTTP Client Negotiation _Accept_ Header. Indicates the types of responses the client can understand.", "required": true, "style": "simple", "schema": { "type": "string", "default": "application/json" } }, { "name": "creditAccountId", "in": "path", "description": "Credit account's identification.", "required": true, "style": "simple", "schema": { "type": "string", "example": "01bce461-9g03-12ds-8217-b3d39271e15b" } }, { "name": "transactionId", "in": "path", "description": "Pre-authorization identification.", "required": true, "style": "simple", "schema": { "type": "string", "default": "insert identifier here" } } ], "requestBody": { "description": "", "content": { "application/json": { "schema": { "title": "CreateorUpdateSettlementRequest", "required": ["value"], "type": "object", "properties": { "value": { "type": "string", "default": "490.0" } }, "example": { "value": "decimal (required)" } }, "example": { "value": "decimal (required)" } } }, "required": true }, "responses": { "200": { "description": "", "headers": { "connection": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "keep-alive" } } }, "content-length": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "55" } } }, "content-type": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "application/json; charset=utf-8" } } }, "date": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "Thu, 29 Mar 2018 15:56:55 GMT" } } }, "server": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "Microsoft-IIS/8.5" } } }, "x-powered-by": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "ASP.NET" } } }, "x-vtex-janus-router-backend-app": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "cc-v0.1.37-beta.1+166" } } } }, "content": { "application/json": { "schema": { "title": "ThisoperationcausesthecreationofNinvoices,whereNisthenumberofinstallments.Thefirstinvoicewillhaveaduedatewith30daysandthenextinvoiceswillhaveaduedate30daysawayfrompreviousinvoice.", "required": ["value", "id"], "type": "object", "properties": { "value": { "type": "number" }, "id": { "type": "string" } }, "example": { "value": 100, "id": "d7d135000a8347ec8b0a0f9edceccefd" } }, "example": { "value": 100, "id": "d7d135000a8347ec8b0a0f9edceccefd" } } } } }, "deprecated": false } }, "/api/creditcontrol/accounts/{creditAccountId}/transaction": { "post": { "tags": ["Account"], "summary": "Create a Pre-Authorization", "description": "Creates a Pre-Authorization. Also known as authorization hold, card authorization or pre-auth, pre-authorization is the practice of holding this balance as unavailable until either the merchant clears the transaction, also called settlement, or the hold *falls off*.\r\n\r\nThis operation does not appear in statements, but the available balance will be updated.\r\n\r\nThe result of this operation is generating a `transactionId` (pre-authorization identification) to use in a settlement.", "operationId": "CreateaPreAuthorization", "parameters": [ { "name": "Content-Type", "in": "header", "description": "Type of the content being sent.", "required": true, "style": "simple", "schema": { "type": "string", "default": "application/json" } }, { "name": "Accept", "in": "header", "description": "HTTP Client Negotiation _Accept_ Header. Indicates the types of responses the client can understand.", "required": true, "style": "simple", "schema": { "type": "string", "default": "application/json" } }, { "name": "creditAccountId", "in": "path", "description": "Credit account's identification.", "required": true, "style": "simple", "schema": { "type": "string", "example": "01bce461-9g03-12ds-8217-b3d39271e15b" } } ], "requestBody": { "description": "", "content": { "application/json": { "schema": { "title": "CreateaPreAuthorizationRequest", "required": [ "value", "settle", "installments", "expirationDate" ], "type": "object", "properties": { "value": { "type": "string", "default": "490.0" }, "settle": { "type": "boolean", "default": false }, "installments": { "type": "string", "default": "1" }, "expirationDate": { "type": "string", "description": "date in ISO8601 (UTC) dateformat (optional default is 1(one) day)", "default": "1" } }, "example": { "value": "decimal (required)", "settle": false, "installments": "integer (optional default is 1)", "expirationDate": "date in ISO8601 (UTC) dateformat (optional default is 1(one) day)" } }, "example": { "value": "decimal (required)", "settle": false, "installments": "integer (optional default is 1)", "expirationDate": "date in ISO8601 (UTC) dateformat (optional default is 1(one) day)" } } }, "required": true }, "responses": { "200": { "description": "", "headers": {} } }, "deprecated": false } }, "/api/creditcontrol/accounts/{creditAccountId}/transactions/{transactionId}": { "put": { "tags": ["Account"], "summary": "Update a Pre-Authorization", "description": "Updates information for a specific pre-authorization request.\r\n\r\n>⚠️ This call can only be used for pre-authorizations that have not yet been captured or canceled.\r\n\r\nAlso known as authorization hold, card authorization or pre-auth, pre-authorization is the practice of holding this balance as unavailable until either the merchant clears the transaction, also called settlement, or the hold *falls off*.\r\n\r\nThis operation does not appear in statements but the available balance will be updated.\r\n\r\nThe result of this operation is generating a `preauthorizationId` to use in a settlement.", "operationId": "CreateaPreAuthorization(usingid)", "parameters": [ { "name": "Content-Type", "in": "header", "description": "Type of the content being sent.", "required": true, "style": "simple", "schema": { "type": "string", "default": "application/json" } }, { "name": "Accept", "in": "header", "description": "HTTP Client Negotiation _Accept_ Header. Indicates the types of responses the client can understand.", "required": true, "style": "simple", "schema": { "type": "string", "default": "application/json" } }, { "name": "creditAccountId", "in": "path", "description": "Credit account's identification.", "required": true, "style": "simple", "schema": { "type": "string", "example": "01bce461-9g03-12ds-8217-b3d39271e15b" } }, { "name": "transactionId", "in": "path", "description": "Pre-authorization identification.", "required": true, "style": "simple", "schema": { "type": "string", "default": "insert identifier here" } } ], "requestBody": { "description": "", "content": { "application/json": { "schema": { "title": "", "required": [ "value", "settle", "installments", "expirationDate" ], "type": "object", "properties": { "value": { "type": "string", "default": "20.0" }, "settle": { "type": "boolean", "default": false }, "installments": { "type": "string", "default": "1" }, "expirationDate": { "type": "string", "description": "date in ISO8601 (UTC) dateformat (optional default is 1(one) day)", "default": "1" } }, "example": { "value": "decimal (required)", "settle": false, "installments": "integer (optional default is 1)", "expirationDate": "date in ISO8601 (UTC) dateformat (optional default is 1(one) day)" } }, "example": { "value": "decimal (required)", "settle": false, "installments": "integer (optional default is 1)", "expirationDate": "date in ISO8601 (UTC) dateformat (optional default is 1(one) day)" } } }, "required": true }, "responses": { "200": { "description": "", "headers": {} } }, "deprecated": false }, "delete": { "tags": ["Account"], "summary": "Cancel a Pre Authorization", "description": "", "operationId": "CancelaPreAuthorization", "parameters": [ { "name": "Content-Type", "in": "header", "description": "Type of the content being sent.", "required": true, "style": "simple", "schema": { "type": "string", "default": "application/json" } }, { "name": "Accept", "in": "header", "description": "HTTP Client Negotiation _Accept_ Header. Indicates the types of responses the client can understand.", "required": true, "style": "simple", "schema": { "type": "string", "default": "application/json" } }, { "name": "creditAccountId", "in": "path", "description": "Credit account's identification.", "required": true, "style": "simple", "schema": { "type": "string", "example": "01bce461-9g03-12ds-8217-b3d39271e15b" } }, { "name": "transactionId", "in": "path", "description": "Pre-authorization identification.", "required": true, "style": "simple", "schema": { "type": "string", "default": "insert identifier here" } } ], "responses": { "200": { "description": "", "headers": {} } }, "deprecated": false } }, "/api/creditcontrol/accounts/{creditAccountId}/holders": { "post": { "tags": ["Account"], "summary": "Add an account Holder", "description": "Add an account holder. This new user can share the account's credit limit with users already registered on the account.", "operationId": "AddanaccountHolder", "parameters": [ { "name": "Content-Type", "in": "header", "description": "Type of the content being sent.", "required": true, "style": "simple", "schema": { "type": "string", "default": "application/json" } }, { "name": "Accept", "in": "header", "description": "HTTP Client Negotiation _Accept_ Header. Indicates the types of responses the client can understand.", "required": true, "style": "simple", "schema": { "type": "string", "default": "application/json" } }, { "name": "creditAccountId", "in": "path", "description": "Credit account's identification.", "required": true, "style": "simple", "schema": { "type": "string", "example": "01bce461-9g03-12ds-8217-b3d39271e15b" } } ], "requestBody": { "description": "", "content": { "application/json": { "schema": { "title": "AddanaccountHolderRequest", "required": ["claims"], "type": "object", "properties": { "claims": { "title": "Claims", "required": ["email"], "type": "object", "properties": { "email": { "type": "string", "default": "email@domain.com" } }, "example": { "email": "USER-EMAIL" } } }, "example": { "claims": { "email": "USER-EMAIL" } } }, "example": { "claims": { "email": "USER-EMAIL" } } } }, "required": true }, "responses": { "200": { "description": "", "headers": { "Connection": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "keep-alive" } } }, "Content-Length": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "225" } } }, "Date": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "Wed, 12 Jul 2017 20:36:17 GMT" } } }, "Server": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "nginx" } } }, "X-CDNIgnore": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "1" } } }, "X-Powered-by-VTEX-Janus-Edge": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "v1.36.5-beta.1" } } }, "X-Track": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "beta" } } }, "X-Translate": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "1" } } }, "X-Translate-BackEnd": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "http%3A%2F%2Fbeta.janus-router-v2.vtexinternal.com.br%2Fapi%2Fcreditcontrol%2Fcheckingaccounts%3Ffrom%3D9%26to%3D9" } } }, "X-VTEX-Janus-Router-Backend-App": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "cc-v0.1.7-beta.5+75" } } } }, "content": { "application/json; charset=utf-8": { "schema": { "title": "Searchcheckingaccounts", "required": ["data", "summary"], "type": "object", "properties": { "data": { "type": "array", "items": { "title": "Datum2", "required": [ "account", "balance", "document", "documentType", "creditLimit", "lastUpdate", "description", "email" ], "type": "object", "properties": { "account": { "type": "string" }, "balance": { "type": "number" }, "document": { "type": "string" }, "documentType": { "type": "string" }, "creditLimit": { "type": "number" }, "lastUpdate": { "type": "string" }, "description": { "type": "string" }, "email": { "type": "string" } }, "example": { "account": "ambienteqa", "balance": 220, "document": "12345677811", "documentType": "CPF", "creditLimit": 240, "lastUpdate": "2017-07-06T01:57:39.4317119Z", "description": "", "email": "test@test.com" } }, "description": "" }, "summary": { "title": "Summary2", "required": ["count"], "type": "object", "properties": { "count": { "type": "integer", "format": "int32" } }, "example": { "count": 39 } } }, "example": { "data": [ { "account": "ambienteqa", "balance": 220, "document": "12345677811", "documentType": "CPF", "creditLimit": 240, "lastUpdate": "2017-07-06T01:57:39.4317119Z", "description": "", "email": "test@test.com" } ], "summary": { "count": 39 } } }, "example": { "data": [ { "account": "ambienteqa", "balance": 220, "document": "12345677811", "documentType": "CPF", "creditLimit": 240, "lastUpdate": "2017-07-06T01:57:39.4317119Z", "description": "", "email": "test@test.com" } ], "summary": { "count": 39 } } } } } }, "deprecated": false } }, "/api/creditcontrol/accounts/{creditAccountId}/holders/{holderId}": { "delete": { "tags": ["Account"], "summary": "Delete an account holder", "description": "Deletes a specific account holder.", "operationId": "Deleteanaccountholder", "parameters": [ { "name": "Content-Type", "in": "header", "description": "Type of the content being sent.", "required": true, "style": "simple", "schema": { "type": "string", "default": "application/json" } }, { "name": "Accept", "in": "header", "description": "HTTP Client Negotiation _Accept_ Header. Indicates the types of responses the client can understand.", "required": true, "style": "simple", "schema": { "type": "string", "default": "application/json" } }, { "name": "creditAccountId", "in": "path", "description": "Credit account's identification.", "required": true, "style": "simple", "schema": { "type": "string", "example": "01bce461-9g03-12ds-8217-b3d39271e15b" } }, { "name": "holderId", "in": "path", "description": "Holder identification.", "required": true, "style": "simple", "schema": { "type": "string", "example": "524bc947d2b37a1a759ba3d174b58f9b" } } ], "responses": { "200": { "description": "", "headers": { "Connection": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "keep-alive" } } }, "Content-Length": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "225" } } }, "Date": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "Wed, 12 Jul 2017 20:36:17 GMT" } } }, "Server": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "nginx" } } }, "X-CDNIgnore": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "1" } } }, "X-Powered-by-VTEX-Janus-Edge": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "v1.36.5-beta.1" } } }, "X-Track": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "beta" } } }, "X-Translate": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "1" } } }, "X-Translate-BackEnd": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "http%3A%2F%2Fbeta.janus-router-v2.vtexinternal.com.br%2Fapi%2Fcreditcontrol%2Fcheckingaccounts%3Ffrom%3D9%26to%3D9" } } }, "X-VTEX-Janus-Router-Backend-App": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "cc-v0.1.7-beta.5+75" } } } }, "content": { "application/json; charset=utf-8": { "schema": { "title": "Searchcheckingaccounts", "required": ["data", "summary"], "type": "object", "properties": { "data": { "type": "array", "items": { "title": "Datum2", "required": [ "account", "balance", "document", "documentType", "creditLimit", "lastUpdate", "description", "email" ], "type": "object", "properties": { "account": { "type": "string" }, "balance": { "type": "number" }, "document": { "type": "string" }, "documentType": { "type": "string" }, "creditLimit": { "type": "number" }, "lastUpdate": { "type": "string" }, "description": { "type": "string" }, "email": { "type": "string" } }, "example": { "account": "ambienteqa", "balance": 220, "document": "12345677811", "documentType": "CPF", "creditLimit": 240, "lastUpdate": "2017-07-06T01:57:39.4317119Z", "description": "", "email": "test@test.com" } }, "description": "" }, "summary": { "title": "Summary2", "required": ["count"], "type": "object", "properties": { "count": { "type": "integer", "format": "int32" } }, "example": { "count": 39 } } }, "example": { "data": [ { "account": "ambienteqa", "balance": 220, "document": "12345677811", "documentType": "CPF", "creditLimit": 240, "lastUpdate": "2017-07-06T01:57:39.4317119Z", "description": "", "email": "test@test.com" } ], "summary": { "count": 39 } } }, "example": { "data": [ { "account": "ambienteqa", "balance": 220, "document": "12345677811", "documentType": "CPF", "creditLimit": 240, "lastUpdate": "2017-07-06T01:57:39.4317119Z", "description": "", "email": "test@test.com" } ], "summary": { "count": 39 } } } } } }, "deprecated": false } }, "/api/creditcontrol/accounts/{creditAccountId}/tolerance": { "put": { "tags": ["Account"], "summary": "Change tolerance of an account", "description": "Increase the credit limit of a checking account.", "operationId": "Changetoleranceofanaccount", "parameters": [ { "name": "Content-Type", "in": "header", "description": "Type of the content being sent.", "required": true, "style": "simple", "schema": { "type": "string", "default": "application/json" } }, { "name": "Accept", "in": "header", "description": "HTTP Client Negotiation _Accept_ Header. Indicates the types of responses the client can understand.", "required": true, "style": "simple", "schema": { "type": "string", "default": "application/json" } }, { "name": "creditAccountId", "in": "path", "description": "Credit account's identification.", "required": true, "style": "simple", "schema": { "type": "string", "example": "01bce461-9g03-12ds-8217-b3d39271e15b" } } ], "requestBody": { "description": "", "content": { "application/json": { "schema": { "title": "ChangetoleranceofanaccountRequest", "required": ["value"], "type": "object", "properties": { "value": { "type": "number", "default": 0.2 } }, "example": { "value": 0.2 } }, "example": { "value": 0.2 } } }, "required": true }, "responses": { "200": { "description": "", "headers": { "connection": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "keep-alive" } } }, "content-length": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "0" } } }, "date": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "Thu, 25 Jan 2018 13:35:21 GMT" } } }, "server": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "Microsoft-IIS/8.5" } } }, "via": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "1.1 localhost (squid/3.5.27)" } } }, "x-cache": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "MISS from localhost" } } }, "x-cache-lookup": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "MISS from localhost:3128" } } }, "x-powered-by": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "ASP.NET" } } }, "x-vtex-janus-router-backend-app": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "cc-v0.1.32-stable+145" } } } }, "content": { "text/plain": { "schema": { "type": "object" } } } } }, "deprecated": false } }, "/api/creditcontrol/accounts/{creditAccountId}/transactions/{transactionId}/refunds": { "post": { "tags": ["Account"], "summary": "Partially or totally refund a settlement", "description": "Refunds a value from an already settled transaction.\r\n\r\nThis operation causes the refund of `N` invoices, where `N` is the number of installments used on settlement operation.", "operationId": "PartialorTotalRefundaSettlement", "parameters": [ { "name": "Content-Type", "in": "header", "description": "Type of the content being sent.", "required": true, "style": "simple", "schema": { "type": "string", "default": "application/json" } }, { "name": "Accept", "in": "header", "description": "HTTP Client Negotiation _Accept_ Header. Indicates the types of responses the client can understand.", "required": true, "style": "simple", "schema": { "type": "string", "default": "application/json" } }, { "name": "creditAccountId", "in": "path", "description": "Credit account's identification.", "required": true, "style": "simple", "schema": { "type": "string", "example": "01bce461-9g03-12ds-8217-b3d39271e15b" } }, { "name": "transactionId", "in": "path", "description": "Pre-authorization identification.", "required": true, "style": "simple", "schema": { "type": "string", "default": "insert identifier here" } } ], "requestBody": { "description": "", "content": { "application/json": { "schema": { "title": "PartialorTotalRefundaSettlementRequest", "required": ["value"], "type": "object", "properties": { "value": { "type": "string", "default": "20" } }, "example": { "value": "decimal (required)" } }, "example": { "value": "decimal (required)" } } }, "required": true }, "responses": { "200": { "description": "", "headers": { "connection": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "keep-alive" } } }, "content-length": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "55" } } }, "content-type": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "application/json; charset=utf-8" } } }, "date": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "Thu, 29 Mar 2018 15:56:55 GMT" } } }, "server": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "Microsoft-IIS/8.5" } } }, "x-powered-by": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "ASP.NET" } } }, "x-vtex-janus-router-backend-app": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "cc-v0.1.37-beta.1+166" } } } }, "content": { "application/json": { "schema": { "title": "ThisoperationcausesthecreationofNinvoices,whereNisthenumberofinstallments.Thefirstinvoicewillhaveaduedatewith30daysandthenextinvoiceswillhaveaduedate30daysawayfrompreviousinvoice.", "required": ["value", "id"], "type": "object", "properties": { "value": { "type": "number" }, "id": { "type": "string" } }, "example": { "value": 100, "id": "d7d135000a8347ec8b0a0f9edceccefd" } }, "example": { "value": 100, "id": "d7d135000a8347ec8b0a0f9edceccefd" } } } } }, "deprecated": false } }, "/api/creditcontrol/storeconfig": { "get": { "tags": ["Store Configuration"], "summary": "Retrieve store configuration", "description": "Get store configuration data.", "operationId": "Retrievestoreconfiguration", "parameters": [ { "name": "Content-Type", "in": "header", "description": "Type of the content being sent.", "required": true, "style": "simple", "schema": { "type": "string", "default": "application/json" } }, { "name": "Accept", "in": "header", "description": "HTTP Client Negotiation _Accept_ Header. Indicates the types of responses the client can understand.", "required": true, "style": "simple", "schema": { "type": "string", "default": "application/json" } } ], "responses": { "200": { "description": "", "headers": { "Connection": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "keep-alive" } } }, "Content-Length": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "91" } } }, "Date": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "Wed, 12 Jul 2017 20:45:36 GMT" } } }, "Server": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "nginx" } } }, "X-CDNIgnore": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "1" } } }, "X-Powered-by-VTEX-Janus-Edge": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "v1.36.5-beta.1" } } }, "X-Track": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "beta" } } }, "X-Translate": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "1" } } }, "X-Translate-BackEnd": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "http%3A%2F%2Fbeta.janus-router-v2.vtexinternal.com.br%2Fapi%2Fcreditcontrol%2Fstoreconfig" } } }, "X-VTEX-Janus-Router-Backend-App": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "cc-v0.1.7-beta.5+75" } } } }, "content": { "application/json; charset=utf-8": { "schema": { "title": "Storeconfig", "required": [ "dailyInterestRate", "invoicePostponementLimit", "taxRate", "tolerancePercent" ], "type": "object", "properties": { "dailyInterestRate": { "type": "number" }, "invoicePostponementLimit": { "type": "integer", "format": "int32" }, "taxRate": { "type": "number" }, "tolerancePercent": { "type": "number" } }, "example": { "dailyInterestRate": 0, "invoicePostponementLimit": 0, "taxRate": 0, "tolerancePercent": 0.7 } }, "example": { "dailyInterestRate": 0, "invoicePostponementLimit": 0, "taxRate": 0, "tolerancePercent": 0.7 } } } } }, "deprecated": false }, "put": { "tags": ["Store Configuration"], "summary": "Create or change store configuration", "description": "Create or change store configuration data.", "operationId": "Createorchangestoreconfiguration", "parameters": [ { "name": "Content-Type", "in": "header", "description": "Type of the content being sent.", "required": true, "style": "simple", "schema": { "type": "string", "default": "application/json" } }, { "name": "Accept", "in": "header", "description": "HTTP Client Negotiation _Accept_ Header. Indicates the types of responses the client can understand.", "required": true, "style": "simple", "schema": { "type": "string", "default": "application/json" } } ], "requestBody": { "description": "", "content": { "application/json": { "schema": { "title": "CreateorchangestoreconfigurationRequest", "required": [ "dailyInterestRate", "invoicePostponementLimit", "taxRate", "maxPostponementDays", "defaultCreditValue", "maxPreAuthorizationGrowthRate", "myCreditsEnabled", "toleranceEnabled", "automaticCheckingAccountCreationEnabled", "postponementEnabled" ], "type": "object", "properties": { "dailyInterestRate": { "type": "string", "default": "0.6" }, "invoicePostponementLimit": { "type": "string", "default": "2" }, "taxRate": { "type": "string", "default": "0.4" }, "maxPostponementDays": { "type": "string", "default": "3" }, "defaultCreditValue": { "type": "string", "default": "150.0" }, "maxPreAuthorizationGrowthRate": { "type": "string", "default": "0.1" }, "myCreditsEnabled": { "type": "boolean", "default": true }, "toleranceEnabled": { "type": "boolean", "default": true }, "automaticCheckingAccountCreationEnabled": { "type": "boolean", "default": false }, "postponementEnabled": { "type": "boolean", "default": false }, "notificationsSettings": { "type": "object", "properties": { "daysPrior": { "type": "array", "items": { "required": [ "days", "timeOfDay" ], "type": "object", "properties": { "days": { "type": "integer", "default": 1 }, "timeOfDay": { "type": "string", "default": "16:00:00" } } } }, "daysAfter": { "type": "array", "items": { "required": [ "days", "timeOfDay" ], "type": "object", "properties": { "days": { "type": "integer", "default": "0" }, "timeOfDay": { "type": "string", "default": "12:00:00" } } } } } } }, "example": { "dailyInterestRate": "number(percent 0.1=10%) (float)", "invoicePostponementLimit": "number (int)", "taxRate": "number(percent 0.1=10%) (float)", "maxPostponementDays": "number (int", "defaultCreditValue": "number (decimal)", "maxPreAuthorizationGrowthRate": "number (percent 0.1=10%) (float)", "myCreditsEnabled": false, "toleranceEnabled": false, "automaticCheckingAccountCreationEnabled": false, "postponementEnabled": false } }, "example": { "dailyInterestRate": "number(percent 0.1=10%) (float)", "invoicePostponementLimit": "number (int)", "taxRate": "number(percent 0.1=10%) (float)", "maxPostponementDays": "number (int", "defaultCreditValue": "number (decimal)", "maxPreAuthorizationGrowthRate": "number (percent 0.1=10%) (float)", "myCreditsEnabled": false, "toleranceEnabled": false, "automaticCheckingAccountCreationEnabled": false, "postponementEnabled": false } } }, "required": true }, "responses": { "200": { "description": "", "headers": { "Connection": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "keep-alive" } } }, "Content-Length": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "92" } } }, "Date": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "Wed, 12 Jul 2017 21:00:07 GMT" } } }, "Server": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "nginx" } } }, "X-CDNIgnore": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "1" } } }, "X-Powered-by-VTEX-Janus-Edge": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "v1.36.5-beta.1" } } }, "X-Track": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "beta" } } }, "X-Translate": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "1" } } }, "X-Translate-BackEnd": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "http%3A%2F%2Fbeta.janus-router-v2.vtexinternal.com.br%2Fapi%2Fcreditcontrol%2Fstoreconfig" } } }, "X-VTEX-Janus-Router-Backend-App": { "content": { "text/plain": { "schema": { "type": "string" }, "example": "cc-v0.1.7-beta.5+75" } } } }, "content": { "application/json; charset=utf-8": { "schema": { "title": "Savestoreconfig", "required": [ "dailyInterestRate", "invoicePostponementLimit", "taxRate", "tolerancePercent" ], "type": "object", "properties": { "dailyInterestRate": { "type": "number" }, "invoicePostponementLimit": { "type": "integer", "format": "int32" }, "taxRate": { "type": "number" }, "tolerancePercent": { "type": "number" } }, "example": { "dailyInterestRate": 0.2, "invoicePostponementLimit": 2, "taxRate": 0.4, "tolerancePercent": 0.35 } }, "example": { "dailyInterestRate": 0.2, "invoicePostponementLimit": 2, "taxRate": 0.4, "tolerancePercent": 0.35 } } } } }, "deprecated": false } } }, "components": { "schemas": { "Paidinvoices": { "title": "Paidinvoices", "required": ["data", "summary"], "type": "object", "properties": { "data": { "type": "array", "items": { "title": "Datum", "required": [ "id", "status", "value", "checkingAccountId", "createdAt", "updatedAt", "paymentLink", "originalDueDate", "dueDate", "description", "observation" ], "type": "object", "properties": { "id": { "type": "string" }, "status": { "type": "string" }, "value": { "type": "number" }, "checkingAccountId": { "type": "string" }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" }, "paymentLink": { "type": "string", "nullable": true }, "originalDueDate": { "type": "string" }, "dueDate": { "type": "string" }, "description": { "type": "string" }, "observation": { "type": "string", "nullable": true } }, "example": { "id": "ce02c68b2b584d5ba15a63bc485d43f1", "status": "Paid", "value": 100, "checkingAccountId": "14443385797_CPF", "createdAt": "2017-06-19T01:53:54", "updatedAt": "2017-06-27T05:58:24", "paymentLink": "", "originalDueDate": "2017-07-27T05:58:24", "dueDate": "2017-07-27T05:58:24", "description": "Invoice from debit of 100M. Installment 1/1", "observation": "" } }, "description": "" }, "summary": { "title": "Summary", "required": ["total", "count"], "type": "object", "properties": { "total": { "type": "number" }, "count": { "type": "integer", "format": "int32" } }, "example": { "total": 500, "count": 5 } } }, "example": { "data": [ { "id": "ce02c68b2b584d5ba15a63bc485d43f1", "status": "Paid", "value": 100, "checkingAccountId": "14443385797_CPF", "createdAt": "2017-06-19T01:53:54", "updatedAt": "2017-06-27T05:58:24", "paymentLink": "", "originalDueDate": "2017-07-27T05:58:24", "dueDate": "2017-07-27T05:58:24", "description": "Invoice from debit of 100M. Installment 1/1", "observation": "" }, { "id": "11ff8f52407047c2966649c3484285bd", "status": "Paid", "value": 100, "checkingAccountId": "06100326744_CPF", "createdAt": "2017-04-27T01:48:27", "updatedAt": "2017-04-27T07:58:42", "paymentLink": null, "originalDueDate": "", "dueDate": "2017-05-27T07:58:42", "description": "Invoice from debit of 100M. Installment 1/1", "observation": "" }, { "id": "2828a856363a4f82b3f5c18b3ef09620", "status": "Paid", "value": 100, "checkingAccountId": "06100326744_CPF", "createdAt": "2017-04-27T01:48:27", "updatedAt": "2017-04-27T07:58:30", "paymentLink": null, "originalDueDate": "", "dueDate": "2017-05-27T07:58:30", "description": "Invoice from debit of 100M. Installment 1/1", "observation": "" }, { "id": "06c8f6160f7a4a50ae43c26a37fe1946", "status": "Paid", "value": 100, "checkingAccountId": "06100326744_CPF", "createdAt": "2017-04-27T01:48:27", "updatedAt": "2017-04-27T07:58:52", "paymentLink": null, "originalDueDate": "", "dueDate": "2017-05-27T07:58:52", "description": "Invoice from debit of 100M. Installment 1/1", "observation": "" }, { "id": "105e79997fbe452ba33ffa69b408f9bf", "status": "Paid", "value": 100, "checkingAccountId": "14443385797_CPF", "createdAt": "2017-04-11T04:50:34", "updatedAt": "2017-04-11T05:26:07", "paymentLink": null, "originalDueDate": "", "dueDate": "2017-05-11T05:26:07", "description": "Invoice from debit of 100M. Installment 1/1", "observation": null } ], "summary": { "total": 500, "count": 5 } } }, "Datum": { "title": "Datum", "required": [ "id", "status", "value", "checkingAccountId", "createdAt", "updatedAt", "paymentLink", "originalDueDate", "dueDate", "description", "observation" ], "type": "object", "properties": { "id": { "type": "string" }, "status": { "type": "string" }, "value": { "type": "number" }, "checkingAccountId": { "type": "string" }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" }, "paymentLink": { "type": "string", "nullable": true }, "originalDueDate": { "type": "string" }, "dueDate": { "type": "string" }, "description": { "type": "string" }, "observation": { "type": "string", "nullable": true } }, "example": { "id": "ce02c68b2b584d5ba15a63bc485d43f1", "status": "Paid", "value": 100, "checkingAccountId": "14443385797_CPF", "createdAt": "2017-06-19T01:53:54", "updatedAt": "2017-06-27T05:58:24", "paymentLink": "", "originalDueDate": "2017-07-27T05:58:24", "dueDate": "2017-07-27T05:58:24", "description": "Invoice from debit of 100M. Installment 1/1", "observation": "" } }, "Summary": { "title": "Summary", "required": ["total", "count"], "type": "object", "properties": { "total": { "type": "number" }, "count": { "type": "integer", "format": "int32" } }, "example": { "total": 500, "count": 5 } }, "Retrievedinvoice": { "title": "Retrievedinvoice", "required": [ "id", "status", "value", "checkingAccountId", "createdAt", "updatedAt", "paymentLink", "originalDueDate", "dueDate", "description", "observation" ], "type": "object", "properties": { "id": { "type": "string" }, "status": { "type": "string" }, "value": { "type": "number" }, "checkingAccountId": { "type": "string" }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" }, "paymentLink": { "type": "string" }, "originalDueDate": { "type": "string" }, "dueDate": { "type": "string" }, "description": { "type": "string" }, "observation": { "type": "string" } }, "example": { "id": "029f4009-ac4b-4739-8644-50df050f34ca", "status": "Opened", "value": 50, "checkingAccountId": "76655291437_CPF", "createdAt": "2017-07-12T08:53:04", "updatedAt": "2017-07-12T08:53:04", "paymentLink": "http://foo.bar", "originalDueDate": "2017-07-27T08:53:04", "dueDate": "2017-07-27T08:53:04", "description": "Invoice issued from a API call", "observation": "Some observation about the invoice" } }, "Getinvoicesfromacheckingaccount": { "title": "Getinvoicesfromacheckingaccount", "required": ["data", "summary"], "type": "object", "properties": { "data": { "type": "array", "items": { "title": "Datum1", "required": [ "id", "status", "value", "checkingAccountId", "createdAt", "updatedAt", "paymentLink", "originalDueDate", "dueDate", "description", "observation" ], "type": "object", "properties": { "id": { "type": "string" }, "status": { "type": "string" }, "value": { "type": "number" }, "checkingAccountId": { "type": "string" }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" }, "paymentLink": { "type": "string" }, "originalDueDate": { "type": "string" }, "dueDate": { "type": "string" }, "description": { "type": "string" }, "observation": { "type": "string" } }, "example": { "id": "f9a056cb63f5417fb900ed5128bc1b15", "status": "Opened", "value": 240, "checkingAccountId": "12345677811_CPF", "createdAt": "2017-07-06T01:57:58", "updatedAt": "2017-07-06T01:57:58", "paymentLink": "", "originalDueDate": "2017-08-05T01:57:58", "dueDate": "2017-08-05T01:57:58", "description": "Invoice from debit of 240.0M. Installment 1/1", "observation": "" } }, "description": "" }, "summary": { "title": "Summary", "required": ["total", "count"], "type": "object", "properties": { "total": { "type": "number" }, "count": { "type": "integer", "format": "int32" } }, "example": { "total": 500, "count": 5 } } }, "example": { "data": [ { "id": "f9a056cb63f5417fb900ed5128bc1b15", "status": "Opened", "value": 240, "checkingAccountId": "12345677811_CPF", "createdAt": "2017-07-06T01:57:58", "updatedAt": "2017-07-06T01:57:58", "paymentLink": "", "originalDueDate": "2017-08-05T01:57:58", "dueDate": "2017-08-05T01:57:58", "description": "Invoice from debit of 240.0M. Installment 1/1", "observation": "" }, { "id": "ae45d73bfe534325bc6cfef3521d675c", "status": "Opened", "value": 240, "checkingAccountId": "12345677811_CPF", "createdAt": "2017-07-06T01:57:58", "updatedAt": "2017-07-06T01:57:58", "paymentLink": "", "originalDueDate": "2017-08-05T01:57:58", "dueDate": "2017-08-05T01:57:58", "description": "Invoice from debit of 240.0M. Installment 1/1", "observation": "" }, { "id": "8b984881a6934a06b65ab679c3b6641b", "status": "Opened", "value": 20, "checkingAccountId": "12345677811_CPF", "createdAt": "2017-07-06T01:45:40", "updatedAt": "2017-07-06T01:57:58", "paymentLink": "", "originalDueDate": "2017-08-05T01:57:58", "dueDate": "2017-08-05T01:57:58", "description": "Invoice from debit of 240.0M. Installment 1/1", "observation": "" }, { "id": "c19d55551ac84e2d84c5b60f53c77daa", "status": "Opened", "value": 20, "checkingAccountId": "12345677811_CPF", "createdAt": "2017-07-06T01:44:49", "updatedAt": "2017-07-06T01:44:52", "paymentLink": "", "originalDueDate": "2017-08-05T01:44:51", "dueDate": "2017-08-05T01:44:51", "description": "Invoice from debit of 240.0M. Installment 1/1", "observation": "" }, { "id": "b588919ac65a4bc58bc1b87957ca136a", "status": "Opened", "value": 240, "checkingAccountId": "12345677811_CPF", "createdAt": "2017-07-06T01:40:02", "updatedAt": "2017-07-06T01:40:03", "paymentLink": "", "originalDueDate": "2017-08-05T01:40:03", "dueDate": "2017-08-05T01:40:03", "description": "Invoice from debit of 240.0M. Installment 1/1", "observation": "" }, { "id": "fabb9ae209cb4c50ac048ab72363d488", "status": "Opened", "value": 20, "checkingAccountId": "12345677811_CPF", "createdAt": "2017-07-06T01:39:17", "updatedAt": "2017-07-06T01:39:20", "paymentLink": "", "originalDueDate": "2017-08-05T01:39:19", "dueDate": "2017-08-05T01:39:19", "description": "Invoice from debit of 240.0M. Installment 1/1", "observation": "" }, { "id": "bc4e409f1490495b8dc351e2f93ac766", "status": "Opened", "value": 20, "checkingAccountId": "12345677811_CPF", "createdAt": "2017-07-06T01:38:15", "updatedAt": "2017-07-06T01:38:18", "paymentLink": "", "originalDueDate": "2017-08-05T01:38:17", "dueDate": "2017-08-05T01:38:17", "description": "Invoice from debit of 240.0M. Installment 1/1", "observation": "" }, { "id": "b23eb606d9054e29a789745c1473d123", "status": "Opened", "value": 20, "checkingAccountId": "12345677811_CPF", "createdAt": "2017-07-06T01:37:35", "updatedAt": "2017-07-06T01:37:38", "paymentLink": "", "originalDueDate": "2017-08-05T01:37:38", "dueDate": "2017-08-05T01:37:38", "description": "Invoice from debit of 240.0M. Installment 1/1", "observation": "" }, { "id": "2f67b460ca0742118d5eadd7d3752480", "status": "Opened", "value": 20, "checkingAccountId": "12345677811_CPF", "createdAt": "2017-07-06T01:36:25", "updatedAt": "2017-07-06T01:36:30", "paymentLink": "", "originalDueDate": "2017-08-05T01:36:29", "dueDate": "2017-08-05T01:36:29", "description": "Invoice from debit of 240.0M. Installment 1/1", "observation": "" }, { "id": "36102b1baec74904a80dcc6baf8dd5e7", "status": "Opened", "value": 20, "checkingAccountId": "12345677811_CPF", "createdAt": "2017-07-06T01:35:18", "updatedAt": "2017-07-06T01:35:22", "paymentLink": "", "originalDueDate": "2017-08-05T01:35:21", "dueDate": "2017-08-05T01:35:21", "description": "Invoice from debit of 240.0M. Installment 1/1", "observation": "" }, { "id": "2166d1d0b35a4ece826fac580652348b", "status": "Opened", "value": 240, "checkingAccountId": "12345677811_CPF", "createdAt": "2017-07-06T01:31:31", "updatedAt": "2017-07-06T01:31:32", "paymentLink": "", "originalDueDate": "2017-08-05T01:31:32", "dueDate": "2017-08-05T01:31:32", "description": "Invoice from debit of 240.0M. Installment 1/1", "observation": "" }, { "id": "4d7ae513368a425db3c0c567fa2e9704", "status": "Opened", "value": 20, "checkingAccountId": "12345677811_CPF", "createdAt": "2017-07-06T01:30:18", "updatedAt": "2017-07-06T01:30:21", "paymentLink": "", "originalDueDate": "2017-08-05T01:30:20", "dueDate": "2017-08-05T01:30:20", "description": "Invoice from debit of 240.0M. Installment 1/1", "observation": "" }, { "id": "98332e38da024e269670bf6a5fce24ca", "status": "Opened", "value": 20, "checkingAccountId": "12345677811_CPF", "createdAt": "2017-07-06T01:29:32", "updatedAt": "2017-07-06T01:29:35", "paymentLink": "", "originalDueDate": "2017-08-05T01:29:34", "dueDate": "2017-08-05T01:29:34", "description": "Invoice from debit of 240.0M. Installment 1/1", "observation": "" }, { "id": "f2caa32762f14961895f93ddd1eb66cb", "status": "Opened", "value": 20, "checkingAccountId": "12345677811_CPF", "createdAt": "2017-07-06T01:28:58", "updatedAt": "2017-07-06T01:29:01", "paymentLink": "", "originalDueDate": "2017-08-05T01:29:00", "dueDate": "2017-08-05T01:29:00", "description": "Invoice from debit of 240.0M. Installment 1/1", "observation": "" }, { "id": "c44a7c0d2d944fe1bffc59b79ffdb214", "status": "Opened", "value": 240, "checkingAccountId": "12345677811_CPF", "createdAt": "2017-07-06T01:19:14", "updatedAt": "2017-07-06T01:19:15", "paymentLink": "", "originalDueDate": "2017-08-05T01:19:15", "dueDate": "2017-08-05T01:19:15", "description": "Invoice from debit of 240.0M. Installment 1/1", "observation": "" }, { "id": "f5c4725b549e4e77bfbf69f9ec6b5f44", "status": "Opened", "value": 20, "checkingAccountId": "12345677811_CPF", "createdAt": "2017-07-06T01:18:25", "updatedAt": "2017-07-06T01:18:29", "paymentLink": "", "originalDueDate": "2017-08-05T01:18:28", "dueDate": "2017-08-05T01:18:28", "description": "Invoice from debit of 240.0M. Installment 1/1", "observation": "" }, { "id": "76054911732743e3b011a36fdf99ac9b", "status": "Opened", "value": 20, "checkingAccountId": "12345677811_CPF", "createdAt": "2017-07-06T01:17:34", "updatedAt": "2017-07-06T01:17:38", "paymentLink": "", "originalDueDate": "2017-08-05T01:17:37", "dueDate": "2017-08-05T01:17:37", "description": "Invoice from debit of 240.0M. Installment 1/1", "observation": "" }, { "id": "d5d5bc644d9e4068bb108bcca420343b", "status": "Opened", "value": 20, "checkingAccountId": "12345677811_CPF", "createdAt": "2017-07-06T01:16:54", "updatedAt": "2017-07-06T01:16:58", "paymentLink": "", "originalDueDate": "2017-08-05T01:16:57", "dueDate": "2017-08-05T01:16:57", "description": "Invoice from debit of 240.0M. Installment 1/1", "observation": "" }, { "id": "c8de1d1b4f144a8bbb339f2a1c873c7e", "status": "Opened", "value": 20, "checkingAccountId": "12345677811_CPF", "createdAt": "2017-07-06T01:16:14", "updatedAt": "2017-07-06T01:16:18", "paymentLink": "", "originalDueDate": "2017-08-05T01:16:17", "dueDate": "2017-08-05T01:16:17", "description": "Invoice from debit of 240.0M. Installment 1/1", "observation": "" }, { "id": "a84cc2c91ee048c2bcf94b3214af31b2", "status": "Opened", "value": 20, "checkingAccountId": "12345677811_CPF", "createdAt": "2017-07-06T01:14:40", "updatedAt": "2017-07-06T01:14:43", "paymentLink": "", "originalDueDate": "2017-08-05T01:14:43", "dueDate": "2017-08-05T01:14:43", "description": "Invoice from debit of 240.0M. Installment 1/1", "observation": "" }, { "id": "3bf5ea95cb75465e80ea8c0f16cbc4d2", "status": "Opened", "value": 240, "checkingAccountId": "12345677811_CPF", "createdAt": "2017-07-06T01:13:22", "updatedAt": "2017-07-06T01:13:23", "paymentLink": "", "originalDueDate": "2017-08-05T01:13:23", "dueDate": "2017-08-05T01:13:23", "description": "Invoice from debit of 240.0M. Installment 1/1", "observation": "" } ], "summary": { "total": 1740, "count": 194 } } }, "Datum1": { "title": "Datum1", "required": [ "id", "status", "value", "checkingAccountId", "createdAt", "updatedAt", "paymentLink", "originalDueDate", "dueDate", "description", "observation" ], "type": "object", "properties": { "id": { "type": "string" }, "status": { "type": "string" }, "value": { "type": "number" }, "checkingAccountId": { "type": "string" }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" }, "paymentLink": { "type": "string" }, "originalDueDate": { "type": "string" }, "dueDate": { "type": "string" }, "description": { "type": "string" }, "observation": { "type": "string" } }, "example": { "id": "f9a056cb63f5417fb900ed5128bc1b15", "status": "Opened", "value": 240, "checkingAccountId": "12345677811_CPF", "createdAt": "2017-07-06T01:57:58", "updatedAt": "2017-07-06T01:57:58", "paymentLink": "", "originalDueDate": "2017-08-05T01:57:58", "dueDate": "2017-08-05T01:57:58", "description": "Invoice from debit of 240.0M. Installment 1/1", "observation": "" } }, "MarkaninvoiceasPaidRequest": { "title": "MarkaninvoiceasPaidRequest", "required": ["value"], "type": "object", "properties": { "value": { "type": "string" } }, "example": { "value": "number (FULL invoice value [deprecated])" } }, "ChangeInvoiceRequest": { "title": "ChangeInvoiceRequest", "required": ["status", "observation", "paymentLink"], "type": "object", "properties": { "status": { "type": "string" }, "observation": { "type": "string" }, "paymentLink": { "type": "string" } }, "example": { "status": "string", "observation": "string (optional)", "paymentLink": "string (URL) (optional)" } }, "PostponeaninvoiceRequest": { "title": "PostponeaninvoiceRequest", "required": ["dueDays"], "type": "object", "properties": { "dueDays": { "type": "string" } }, "example": { "dueDays": "number (integer)" } }, "Searchaccounts": { "title": "Searchaccounts", "required": ["data", "summary"], "type": "object", "properties": { "data": { "type": "array", "items": { "title": "Datum2", "required": [ "account", "balance", "document", "documentType", "creditLimit", "lastUpdate", "description", "email" ], "type": "object", "properties": { "account": { "type": "string" }, "balance": { "type": "number" }, "document": { "type": "string" }, "documentType": { "type": "string" }, "creditLimit": { "type": "number" }, "lastUpdate": { "type": "string" }, "description": { "type": "string" }, "email": { "type": "string" } }, "example": { "account": "ambienteqa", "balance": 220, "document": "12345677811", "documentType": "CPF", "creditLimit": 240, "lastUpdate": "2017-07-06T01:57:39.4317119Z", "description": "", "email": "test@test.com" } }, "description": "" }, "summary": { "title": "Summary2", "required": ["count"], "type": "object", "properties": { "count": { "type": "integer", "format": "int32" } }, "example": { "count": 39 } } }, "example": { "data": [ { "account": "ambienteqa", "balance": 220, "document": "12345677811", "documentType": "CPF", "creditLimit": 240, "lastUpdate": "2017-07-06T01:57:39.4317119Z", "description": "", "email": "test@test.com" } ], "summary": { "count": 39 } } }, "Datum2": { "title": "Datum2", "required": [ "account", "balance", "document", "documentType", "creditLimit", "lastUpdate", "description", "email" ], "type": "object", "properties": { "account": { "type": "string" }, "balance": { "type": "number" }, "document": { "type": "string" }, "documentType": { "type": "string" }, "creditLimit": { "type": "number" }, "lastUpdate": { "type": "string" }, "description": { "type": "string" }, "email": { "type": "string" } }, "example": { "account": "ambienteqa", "balance": 220, "document": "12345677811", "documentType": "CPF", "creditLimit": 240, "lastUpdate": "2017-07-06T01:57:39.4317119Z", "description": "", "email": "test@test.com" } }, "Summary2": { "title": "Summary2", "required": ["count"], "type": "object", "properties": { "count": { "type": "integer", "format": "int32" } }, "example": { "count": 39 } }, "Getaccount": { "title": "Getaccount", "required": [ "account", "balance", "creditLimit", "lastUpdate", "description", "email" ], "type": "object", "properties": { "account": { "type": "string" }, "balance": { "type": "number" }, "creditLimit": { "type": "number" }, "lastUpdate": { "type": "string" }, "description": { "type": "string" }, "email": { "type": "string" } }, "example": { "account": "ambienteqa", "balance": 220, "creditLimit": 240, "lastUpdate": "2017-07-06T01:57:39.4317119Z", "description": "", "email": "test@test.com" } }, "Statements": { "title": "Statements", "required": [ "statements", "currentBalance", "intervalBalance", "previousBalance" ], "type": "object", "properties": { "statements": { "type": "array", "items": { "title": "Statements1", "required": ["value", "date", "description"], "type": "object", "properties": { "value": { "type": "number" }, "date": { "type": "string" }, "description": { "type": "string" } }, "example": { "value": 10000, "date": "2017-07-03T16:47:19.4578611Z", "description": "Credited" } }, "description": "" }, "currentBalance": { "type": "number" }, "intervalBalance": { "type": "number" }, "previousBalance": { "type": "number" } }, "example": { "statements": [ { "value": 10000, "date": "2017-07-03T16:47:19.4578611Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T16:47:19.6678789Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T16:47:20.118935Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T16:47:20.4899776Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T16:52:00.9443838Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T16:52:01.2514187Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T16:52:01.671466Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T16:52:01.9424961Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T16:54:40.0782046Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T16:54:40.3252276Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T16:54:40.6552638Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T16:54:40.8932962Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T16:55:57.197841Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T16:55:57.5278732Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T16:55:57.9019147Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T16:55:58.1179392Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T16:57:11.8426054Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T16:57:13.8889672Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T16:57:16.5197295Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T16:57:18.3509528Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T16:57:18.7869726Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T16:57:19.0240035Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T16:57:19.3770378Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T16:57:19.7050818Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T17:07:15.8348399Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T17:07:16.1788809Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T17:07:16.5469147Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T17:07:16.7959479Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T17:09:33.0252059Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T17:09:33.5372179Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T17:09:34.1453238Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T17:09:34.468359Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T17:09:53.1504362Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T17:09:55.3629113Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T17:09:58.6401036Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T17:10:00.782546Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T18:49:22.3349339Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T18:49:22.6879717Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T18:49:23.0600071Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T18:49:23.3570469Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T18:57:01.460345Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T18:57:02.2444344Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T18:57:02.6094762Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T18:57:03.0085156Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T19:01:09.3831094Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T19:01:09.7391531Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T19:01:10.3811954Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T19:01:13.7475991Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T20:48:39.1243969Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T20:48:39.6534554Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T20:48:39.976498Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T20:48:40.2195183Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T21:43:36.8709735Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T21:43:39.3015912Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T21:43:42.4497005Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T21:43:45.0294261Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T21:52:42.0202602Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T21:52:44.2187306Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T21:52:47.6370182Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T21:52:49.6223473Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T22:00:43.7004457Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T22:00:45.8558835Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T22:00:48.8719015Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T22:00:50.9332797Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T22:06:14.2397182Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T22:06:14.8247757Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T22:06:15.3018042Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T22:06:15.5878612Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T22:13:11.2934159Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T22:13:11.6004563Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T22:13:13.677688Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T22:13:13.9407125Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T22:24:18.0640865Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T22:24:18.3391219Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-03T22:24:18.7501665Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-03T22:24:19.0612052Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-04T13:35:32.4265204Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-04T13:35:32.670556Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-04T13:35:33.0035923Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-04T13:35:33.2296111Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-04T13:43:18.0936755Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-04T13:43:18.5677311Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-04T13:43:19.0377821Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-04T13:43:19.3078114Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-04T13:46:24.2995291Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-04T13:46:24.5415575Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-04T13:46:25.1666258Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-04T13:46:25.3926527Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-04T15:10:11.6542275Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-04T15:10:25.101228Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-04T15:10:46.4925416Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-04T15:10:53.5622728Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-04T16:47:02.1152214Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-04T16:47:02.4332644Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-04T16:47:02.9263133Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-04T16:47:03.2213519Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-04T18:15:05.4888997Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-04T18:15:06.0669661Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-04T18:15:06.6290272Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-04T18:15:07.0140703Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-04T18:29:04.8128943Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-04T18:29:05.1829369Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-04T18:29:05.7749947Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-04T18:29:06.0640335Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-05T17:15:29.5981555Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-05T17:15:29.8481897Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-05T17:15:30.2942391Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-05T17:15:30.5592684Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-05T17:44:37.2988823Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-05T17:44:37.851942Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-05T17:44:38.3920041Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-05T17:44:38.7030381Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-05T20:09:37.3571808Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-05T20:09:37.72222Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-05T20:09:38.0552519Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-05T20:09:38.2922837Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-05T20:20:18.4320323Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-05T20:20:21.3519865Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-05T20:20:24.16387Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-05T20:20:25.8389893Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-05T20:22:52.2991989Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-05T20:22:52.5682339Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-05T20:22:53.0962861Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-05T20:22:53.6013417Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-05T20:24:44.309999Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-05T20:24:46.5064706Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-05T20:24:49.6956032Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-05T20:24:51.4547805Z", "description": "Credits emptied" }, { "value": 0, "date": "2017-07-05T21:14:17.4331001Z", "description": "Credits emptied" }, { "value": 0, "date": "2017-07-05T21:14:30.1921448Z", "description": "Credits emptied" }, { "value": 0, "date": "2017-07-05T22:20:16.0386883Z", "description": "Credits emptied" }, { "value": 0, "date": "2017-07-05T22:20:25.5770708Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-05T23:59:03.2527657Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-05T23:59:08.3266609Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-05T23:59:16.9109105Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-05T23:59:22.5296797Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-06T01:57:44.2482508Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-06T01:57:44.5012788Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-06T01:57:45.2343532Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-06T01:57:45.5723968Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-06T14:22:00.5618842Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-06T14:22:05.5812446Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-06T14:22:13.7547136Z", "description": "Credited" }, { "value": 10000, "date": "2017-07-06T14:22:16.3029568Z", "description": "Credited" }, { "value": -20000, "date": "2017-07-06T14:22:17.7061162Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-06T14:22:20.5444338Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-06T14:22:21.0144862Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-06T14:32:59.6762693Z", "description": "Credited" }, { "value": 10000, "date": "2017-07-06T14:33:07.7819136Z", "description": "Credited" }, { "value": -20000, "date": "2017-07-06T14:33:08.2790261Z", "description": "Credits emptied" }, { "value": 0, "date": "2017-07-06T14:33:08.3789839Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-06T14:33:09.0970636Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-06T14:33:09.5591087Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-06T14:33:20.0709176Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-06T14:33:27.9481914Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-06T14:39:44.5993553Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-06T14:39:44.8493768Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-06T14:39:45.4174464Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-06T14:39:45.8154911Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-06T18:02:28.6075704Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-06T18:02:28.9126055Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-06T18:02:29.361656Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-06T18:02:29.6296853Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-06T18:14:48.6134384Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-06T18:14:48.937473Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-06T18:14:51.6977841Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-06T18:14:52.0238222Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-06T18:58:40.45117Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-06T18:58:40.7472093Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-06T18:58:41.1442492Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-06T18:58:41.7183119Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-06T20:10:20.391709Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-06T20:10:20.6657389Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-06T20:10:21.3558225Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-06T20:10:21.6258492Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-06T20:11:48.5505811Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-06T20:11:49.0886414Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-06T20:11:49.797721Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-06T20:11:50.1477661Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-07T02:33:28.0860427Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-07T02:33:28.4040771Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-07T02:33:28.9461381Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-07T02:33:29.3731885Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-07T03:19:29.0522439Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-07T03:19:29.3802781Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-07T03:19:29.8033262Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-07T03:19:30.1083606Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-09T16:38:32.0646398Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-09T16:38:38.5399737Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-09T16:38:52.0400096Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-09T16:38:59.0326902Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-09T16:46:39.5442819Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-09T16:46:39.8743121Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-09T16:46:40.8354262Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-09T16:46:41.1404609Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-09T16:53:23.68054Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-09T16:53:23.9735672Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-09T16:53:24.4196165Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-09T16:53:24.7606614Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-09T17:02:28.3755391Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-09T17:02:28.7075311Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-09T17:02:30.9268213Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-09T17:02:31.4268761Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-10T15:31:13.8141713Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-10T15:31:14.1722149Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-10T15:31:14.7582781Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-10T15:31:15.008306Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-10T15:36:12.620413Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-10T15:36:15.3802583Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-10T15:36:20.0483828Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-10T15:36:22.3108969Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-10T15:39:13.5468917Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-10T15:39:14.0169506Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-10T15:39:14.4700013Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-10T15:39:14.7320264Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-10T15:48:49.3203773Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-10T15:48:49.6554153Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-10T15:48:50.2114767Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-10T15:48:50.5725163Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-10T16:01:48.7536577Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-10T16:01:49.0086875Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-10T16:01:49.3867329Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-10T16:01:49.720771Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-10T16:21:56.4849081Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-10T16:21:56.7768944Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-10T16:21:57.420015Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-10T16:21:57.7600564Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-10T18:44:22.3239425Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-10T18:44:22.6069739Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-10T18:44:23.0380212Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-10T18:44:23.7830985Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-10T18:46:15.7306413Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-10T18:46:16.0676798Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-10T18:46:16.7557547Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-10T18:46:17.0717915Z", "description": "Credits emptied" }, { "value": 0, "date": "2017-07-10T20:46:09.0601995Z", "description": "Credits emptied" }, { "value": 0, "date": "2017-07-10T20:46:09.7432736Z", "description": "Credits emptied" }, { "value": 0, "date": "2017-07-10T20:59:50.5891534Z", "description": "Credits emptied" }, { "value": 0, "date": "2017-07-10T20:59:51.1332589Z", "description": "Credits emptied" }, { "value": 0, "date": "2017-07-10T21:50:23.5218551Z", "description": "Credits emptied" }, { "value": 0, "date": "2017-07-10T21:50:24.1779278Z", "description": "Credits emptied" }, { "value": 0, "date": "2017-07-11T14:33:29.5236904Z", "description": "Credits emptied" }, { "value": 0, "date": "2017-07-11T14:33:30.0347475Z", "description": "Credits emptied" }, { "value": 0, "date": "2017-07-11T16:09:06.1221118Z", "description": "Credits emptied" }, { "value": 0, "date": "2017-07-11T16:09:06.6011653Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-11T16:11:55.696109Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-11T16:11:56.2121659Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-11T16:11:56.8692618Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-11T16:11:57.1562724Z", "description": "Credits emptied" }, { "value": 0, "date": "2017-07-11T16:19:51.1613469Z", "description": "Credits emptied" }, { "value": 0, "date": "2017-07-11T16:19:51.5924019Z", "description": "Credits emptied" }, { "value": 0, "date": "2017-07-11T17:08:27.2440987Z", "description": "Credits emptied" }, { "value": 0, "date": "2017-07-11T17:31:27.2874184Z", "description": "Credits emptied" }, { "value": 1, "date": "2017-07-11T17:38:25.7778188Z", "description": "Credited" }, { "value": -1, "date": "2017-07-11T17:38:47.9508788Z", "description": "Decrease credits" }, { "value": 10000, "date": "2017-07-11T17:40:23.1954791Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-11T17:42:40.0572365Z", "description": "Credits emptied" }, { "value": 0, "date": "2017-07-11T17:44:01.6719325Z", "description": "Credits emptied" }, { "value": 0, "date": "2017-07-11T17:45:45.1352607Z", "description": "Credits emptied" }, { "value": 0, "date": "2017-07-11T17:46:26.9859192Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-11T17:52:50.7294541Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-11T17:52:55.3262378Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-11T18:01:50.9566941Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-11T18:01:51.27073Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-11T18:01:51.8287917Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-11T18:01:52.13982Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-11T18:23:21.8592583Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-11T18:23:22.202299Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-11T18:23:22.6883482Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-11T18:23:23.0293898Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-11T20:39:37.8348611Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-11T20:39:38.2699106Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-11T20:39:38.7839661Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-11T20:39:39.1620082Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-11T20:53:39.9211228Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-11T20:53:40.8032621Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-11T20:53:41.3593193Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-11T20:53:41.7023675Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-11T21:49:07.6918338Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-11T21:49:08.0898827Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-11T21:49:09.7340616Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-11T21:49:10.298129Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-11T22:13:29.121493Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-11T22:13:29.7035615Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-11T22:13:31.0747185Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-11T22:13:31.3367462Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-12T15:19:01.7803787Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-12T15:19:02.2223874Z", "description": "Credits emptied" }, { "value": 10000, "date": "2017-07-12T15:19:02.7854971Z", "description": "Credited" }, { "value": -10000, "date": "2017-07-12T15:19:03.3115534Z", "description": "Credits emptied" } ], "currentBalance": 0, "intervalBalance": 0, "previousBalance": 0 } }, "Statements1": { "title": "Statements1", "required": ["value", "date", "description"], "type": "object", "properties": { "value": { "type": "number" }, "date": { "type": "string" }, "description": { "type": "string" } }, "example": { "value": 10000, "date": "2017-07-03T16:47:19.4578611Z", "description": "Credited" } }, "OpenanAccountRequest": { "title": "OpenanAccountRequest", "required": [ "document", "documentType", "email", "creditLimit", "description", "tolerance" ], "type": "object", "properties": { "document": { "type": "string" }, "documentType": { "type": "string" }, "email": { "type": "string" }, "creditLimit": { "type": "string" }, "description": { "type": "string" }, "tolerance": { "type": "string" } }, "example": { "document": "number", "documentType": "CPF ou CNPJ ou Other", "email": "email", "creditLimit": "number", "description": "description", "tolerance": "1 is 100%" } }, "OpenorChangeAccountRequest": { "title": "OpenorChangeAccountRequest", "required": ["email", "creditLimit"], "type": "object", "properties": { "email": { "type": "string" }, "creditLimit": { "type": "string" } }, "example": { "email": "email", "creditLimit": "number" } }, "CloseanAccountRequest": { "title": "CloseanAccountRequest", "required": ["document", "documentType", "email"], "type": "object", "properties": { "document": { "type": "string" }, "documentType": { "type": "string" }, "email": { "type": "string" } }, "example": { "document": "number", "documentType": "CPF ou CNPJ ou Other", "email": "email" } }, "ChangecreditlimitofanAccountRequest": { "title": "ChangecreditlimitofanAccountRequest", "required": ["value"], "type": "object", "properties": { "value": { "type": "integer", "format": "int32" } }, "example": { "value": 10000 } }, "DecreasebalanceofanaccountRequest": { "title": "DecreasebalanceofanaccountRequest", "required": ["value"], "type": "object", "properties": { "value": { "type": "string" } }, "example": { "value": "-number" } }, "IncreasebalanceofanaccountRequest": { "title": "IncreasebalanceofanaccountRequest", "required": ["value"], "type": "object", "properties": { "value": { "type": "string" } }, "example": { "value": "number" } }, "UpdateemailanddescriptionofaaccountRequest": { "title": "UpdateemailanddescriptionofaaccountRequest", "required": ["description", "email"], "type": "object", "properties": { "description": { "type": "string" }, "email": { "type": "string" } }, "example": { "description": "string", "email": "email" } }, "CreateorUpdateSettlementRequest": { "title": "CreateorUpdateSettlementRequest", "required": ["value"], "type": "object", "properties": { "value": { "type": "string" } }, "example": { "value": "decimal (required)" } }, "Thisoperation": { "title": "ThisoperationcausesthecreationofNinvoices,whereNisthenumberofinstallments.Thefirstinvoicewillhaveaduedatewith30daysandthenextinvoiceswillhaveaduedate30daysawayfrompreviousinvoice.", "required": ["value", "id"], "type": "object", "properties": { "value": { "type": "number" }, "id": { "type": "string" } }, "example": { "value": 100, "id": "d7d135000a8347ec8b0a0f9edceccefd" } }, "CreateaPreAuthorizationRequest": { "title": "CreateaPreAuthorizationRequest", "required": [ "value", "settle", "installments", "expirationDate" ], "type": "object", "properties": { "value": { "type": "string" }, "settle": { "type": "boolean" }, "installments": { "type": "string" }, "expirationDate": { "type": "string" } }, "example": { "value": "decimal (required)", "settle": false, "installments": "integer (optional default is 1)", "expirationDate": "date in ISO8601 (UTC) dateformat (optional default is 1(one) day)" } }, "CreateaPreAuthorizationUsingidRequest": { "title": "", "required": [ "value", "settle", "installments", "expirationDate" ], "type": "object", "properties": { "value": { "type": "string" }, "settle": { "type": "boolean" }, "installments": { "type": "string" }, "expirationDate": { "type": "string" } }, "example": { "value": "decimal (required)", "settle": false, "installments": "integer (optional default is 1)", "expirationDate": "date in ISO8601 (UTC) dateformat (optional default is 1(one) day)" } }, "AddanaccountHolderRequest": { "title": "AddanaccountHolderRequest", "required": ["claims"], "type": "object", "properties": { "claims": { "title": "Claims", "required": ["email"], "type": "object", "properties": { "email": { "type": "string" } }, "example": { "email": "USER-EMAIL" } } }, "example": { "claims": { "email": "USER-EMAIL" } } }, "Claims": { "title": "Claims", "required": ["email"], "type": "object", "properties": { "email": { "type": "string" } }, "example": { "email": "USER-EMAIL" } }, "Searchcheckingaccounts": { "title": "Searchcheckingaccounts", "required": ["data", "summary"], "type": "object", "properties": { "data": { "type": "array", "items": { "title": "Datum2", "required": [ "account", "balance", "document", "documentType", "creditLimit", "lastUpdate", "description", "email" ], "type": "object", "properties": { "account": { "type": "string" }, "balance": { "type": "number" }, "document": { "type": "string" }, "documentType": { "type": "string" }, "creditLimit": { "type": "number" }, "lastUpdate": { "type": "string" }, "description": { "type": "string" }, "email": { "type": "string" } }, "example": { "account": "ambienteqa", "balance": 220, "document": "12345677811", "documentType": "CPF", "creditLimit": 240, "lastUpdate": "2017-07-06T01:57:39.4317119Z", "description": "", "email": "test@test.com" } }, "description": "" }, "summary": { "title": "Summary2", "required": ["count"], "type": "object", "properties": { "count": { "type": "integer", "format": "int32" } }, "example": { "count": 39 } } }, "example": { "data": [ { "account": "ambienteqa", "balance": 220, "document": "12345677811", "documentType": "CPF", "creditLimit": 240, "lastUpdate": "2017-07-06T01:57:39.4317119Z", "description": "", "email": "test@test.com" } ], "summary": { "count": 39 } } }, "ChangetoleranceofanaccountRequest": { "title": "ChangetoleranceofanaccountRequest", "required": ["value"], "type": "object", "properties": { "value": { "type": "number" } }, "example": { "value": 0.2 } }, "PartialorTotalRefundaSettlementRequest": { "title": "PartialorTotalRefundaSettlementRequest", "required": ["value"], "type": "object", "properties": { "value": { "type": "string" } }, "example": { "value": "decimal (required)" } }, "Storeconfig": { "title": "Storeconfig", "required": [ "dailyInterestRate", "invoicePostponementLimit", "taxRate", "tolerancePercent" ], "type": "object", "properties": { "dailyInterestRate": { "type": "number" }, "invoicePostponementLimit": { "type": "integer", "format": "int32" }, "taxRate": { "type": "number" }, "tolerancePercent": { "type": "number" } }, "example": { "dailyInterestRate": 0, "invoicePostponementLimit": 0, "taxRate": 0, "tolerancePercent": 0.7 } }, "CreateorchangestoreconfigurationRequest": { "title": "CreateorchangestoreconfigurationRequest", "required": [ "dailyInterestRate", "invoicePostponementLimit", "taxRate", "maxPostponementDays", "defaultCreditValue", "maxPreAuthorizationGrowthRate", "myCreditsEnabled", "toleranceEnabled", "automaticCheckingAccountCreationEnabled", "postponementEnabled" ], "type": "object", "properties": { "dailyInterestRate": { "type": "string" }, "invoicePostponementLimit": { "type": "string" }, "taxRate": { "type": "string" }, "maxPostponementDays": { "type": "string" }, "defaultCreditValue": { "type": "string" }, "maxPreAuthorizationGrowthRate": { "type": "string" }, "myCreditsEnabled": { "type": "boolean" }, "toleranceEnabled": { "type": "boolean" }, "automaticCheckingAccountCreationEnabled": { "type": "boolean" }, "postponementEnabled": { "type": "boolean" } }, "example": { "dailyInterestRate": "number(percent 0.1=10%) (float)", "invoicePostponementLimit": "number (int)", "taxRate": "number(percent 0.1=10%) (float)", "maxPostponementDays": "number (int", "defaultCreditValue": "number (decimal)", "maxPreAuthorizationGrowthRate": "number (percent 0.1=10%) (float)", "myCreditsEnabled": false, "toleranceEnabled": false, "automaticCheckingAccountCreationEnabled": false, "postponementEnabled": false } }, "Savestoreconfig": { "title": "Savestoreconfig", "required": [ "dailyInterestRate", "invoicePostponementLimit", "taxRate", "tolerancePercent" ], "type": "object", "properties": { "dailyInterestRate": { "type": "number" }, "invoicePostponementLimit": { "type": "integer", "format": "int32" }, "taxRate": { "type": "number" }, "tolerancePercent": { "type": "number" } }, "example": { "dailyInterestRate": 0.2, "invoicePostponementLimit": 2, "taxRate": 0.4, "tolerancePercent": 0.35 } } }, "securitySchemes": { "appKey": { "type": "apiKey", "in": "header", "name": "X-VTEX-API-AppKey", "description": "Unique identifier of the [application key](https://developers.vtex.com/docs/guides/api-authentication-using-application-keys)." }, "appToken": { "type": "apiKey", "in": "header", "name": "X-VTEX-API-AppToken", "description": "Secret token of the [application key](https://developers.vtex.com/docs/guides/api-authentication-using-application-keys)." }, "VtexIdclientAutCookie": { "type": "apiKey", "in": "header", "name": "VtexIdclientAutCookie", "description": "[User token](https://developers.vtex.com/docs/guides/api-authentication-using-user-tokens), valid for 24 hours." } } }, "tags": [ { "name": "Invoices" }, { "name": "Account" }, { "name": "Store Configuration" } ], "security": [ { "appKey": [], "appToken": [] }, { "VtexIdclientAutCookie": [] } ] }