{"id":22495064,"url":"https://github.com/invoiced/invoiced-go","last_synced_at":"2025-08-03T02:30:51.544Z","repository":{"id":35163941,"uuid":"39410189","full_name":"Invoiced/invoiced-go","owner":"Invoiced","description":"Official Go client library for the Invoiced API","archived":false,"fork":false,"pushed_at":"2024-07-16T16:21:35.000Z","size":437,"stargazers_count":7,"open_issues_count":5,"forks_count":6,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-07-17T16:19:01.920Z","etag":null,"topics":["api","billing","golang","invoiced"],"latest_commit_sha":null,"homepage":"https://www.invoiced.com/resources/docs/api/?go","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Invoiced.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-07-20T21:49:55.000Z","updated_at":"2024-07-16T16:21:07.000Z","dependencies_parsed_at":"2024-04-12T19:51:51.275Z","dependency_job_id":null,"html_url":"https://github.com/Invoiced/invoiced-go","commit_stats":null,"previous_names":[],"tags_count":50,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Invoiced%2Finvoiced-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Invoiced%2Finvoiced-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Invoiced%2Finvoiced-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Invoiced%2Finvoiced-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Invoiced","download_url":"https://codeload.github.com/Invoiced/invoiced-go/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228517086,"owners_count":17932436,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","billing","golang","invoiced"],"created_at":"2024-12-06T19:21:09.069Z","updated_at":"2024-12-06T19:21:09.700Z","avatar_url":"https://github.com/Invoiced.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"invoiced-go\n========\n\nThis repository contains the Go client library for the [Invoiced](https://invoiced.com) API.\n\n[![Build Status](https://travis-ci.com/Invoiced/invoiced-go.svg?branch=master)](https://travis-ci.com/Invoiced/invoiced-go)\n[![Coverage Status](https://coveralls.io/repos/github/Invoiced/invoiced-go/badge.svg?branch=master)](https://coveralls.io/github/Invoiced/invoiced-go?branch=master)\n\n## Installing\n\nThe Invoiced package can be installed like this:\n\n```\ngo get -u https://github.com/Invoiced/invoiced-go/v2\n```\n\n## Requirements\n\n- Go 1.11+\n\n## Usage\n\nFirst, you must instantiate a new client\n\n```go\nimport \"github.com/Invoiced/invoiced-go/v2/api\"\n\nclient := api.New(\"API_KEY\", false)\n```\n\nThen, API calls can be made like this:\n\n```go\nimport \"github.com/Invoiced/invoiced-go/v2\"\nimport \"fmt\"\n\n// Get all invoices with auto pagination\ninvoices, err := client.Invoice.ListAll(nil, nil)\nif err != nil {\n    panic(err)\n}\n\n// Let's print all the invoices\nfor _, invoice := range invoices {\n    fmt.Println(invoice)\n}\n\n// Let's create a new customer\ncustomer, err := client.Customer.Create(\u0026invoiced.CustomerRequest{\n\tName: invoiced.String(\"Test Customer\")\n})\n\nif err != nil {\n    panic(err)\n}\n\nfmt.Println(\"Customer Response =\u003e \", customer)\n\n// Let's create a new invoice\ninvoice, err := client.Invoice.Create(\u0026invoiced.InvoiceRequest{\n    Customer: invoiced.Int64(customerResponse.Id),\n    PaymentTerms: invoiced.String(\"NET 30\"),\n    Items: []*invoiced.LineItemRequest{\n        {\n            Description: invoiced.String(\"Retina MacBook Pro\"),\n            Quantity: invoiced.Float64(5),\n            UnitCost: invoiced.Float64(1999.22),\n        },\n    },\n})\n\nif err != nil {\n    panic(err)\n}\n\nfmt.Println(\"Invoice Response =\u003e \", invoice)\n```\n\nIf you want to use the sandbox API instead then you must set the second argument on the client to `true` like this:\n\n```go\nclient := api.New(\"SANDBOX_API_KEY\", false)\n```\n\n## Developing\n\nThe test suite can be run with:\n\n```\ngo test ./...\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finvoiced%2Finvoiced-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finvoiced%2Finvoiced-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finvoiced%2Finvoiced-go/lists"}