openapi: 3.2.0 info: title: TextMaster API v1 Invoices API version: v1 servers: - url: https://api.textmaster.com tags: - name: Invoices paths: /v1/clients/invoices: get: summary: List Invoices tags: - Invoices security: - oauth2: - transaction:manage - transaction:read - transaction:write responses: '401': description: Unauthorized content: application/json: examples: example_0: value: error: invalid_token error_description: The access token is invalid state: unauthorizez '403': description: Forbidden content: application/json: examples: example_0: value: error: invalid_token error_description: The access token is invalid state: unauthorizez '200': description: Lists invoices content: application/json: examples: example_0: value: invoices: - invoice_num: 20211015-A44D-FM5 money_amount: 48.0 type: Transaction::CreditPurchase::BuyingACreditBundle url: /clients/transactions/61698afd8b81926d91c0f685.pdf issued_at: day: 15 month: 10 year: 2021 full: 2021-10-15 14:06:53 UTC schema: type: object properties: invoices: type: array items: $ref: '#/components/schemas/Invoice' minItems: 1 uniqueItems: true components: schemas: Date: type: object properties: day: type: integer month: type: integer year: type: integer full: type: string Invoice: type: object properties: invoice_num: type: string money_amount: type: number type: type: string url: type: string issued_at: $ref: '#/components/schemas/Date' required: - invoice_num - money_amount - type - url - issued_at securitySchemes: oauth2: type: oauth2 description: OAuth2 Bearer token authentication flows: authorizationCode: authorizationUrl: https://api.textmaster.com/oauth/authorize tokenUrl: https://api.textmaster.com/oauth/token refreshUrl: https://api.textmaster.com/oauth/token scopes: preferred_author:manage: Allow read & write access to My Authors preferred_author:read: Allow read access to My Authors preferred_author:write: Allow write access to My Authors