> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developer.gitiho.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developer.gitiho.com/_mcp/server.

# Get invoice detail

GET https://example.gitiho.com/api/invoice/615107/detail

- Lấy thông tin chi tiết của hóa đơn
    
- invoice_number : 725123

Reference: https://developer.gitiho.com/gitiho-business-api/admin/get-invoice-detail

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: collection
  version: 1.0.0
paths:
  /api/invoice/615107/detail:
    get:
      operationId: Get invoice detail
      summary: Get invoice detail
      description: |-
        - Lấy thông tin chi tiết của hóa đơn
            
        - invoice_number : 725123
      tags:
        - Admin
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/type_admin:GetInvoiceDetailAdminResponse'
servers:
  - url: https://example.gitiho.com
    description: Default
components:
  schemas:
    type_admin:GetInvoiceDetailAdminResponseDataItemOrderItemItemsSub1133619Attributes:
      type: object
      properties:
        employer_name:
          type: string
        biz_employer_id:
          type: integer
        biz_subscription_id:
          type: integer
        biz_subscription_label:
          type: string
      required:
        - employer_name
        - biz_employer_id
        - biz_subscription_id
        - biz_subscription_label
      title: GetInvoiceDetailAdminResponseDataItemOrderItemItemsSub1133619Attributes
    type_admin:GetInvoiceDetailAdminResponseDataItemOrderItemItemsSub1133619:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        price:
          type: integer
        quantity:
          type: integer
        attributes:
          $ref: >-
            #/components/schemas/type_admin:GetInvoiceDetailAdminResponseDataItemOrderItemItemsSub1133619Attributes
        conditions:
          type: array
          items:
            description: Any type
      required:
        - id
        - name
        - price
        - quantity
        - attributes
        - conditions
      title: GetInvoiceDetailAdminResponseDataItemOrderItemItemsSub1133619
    type_admin:GetInvoiceDetailAdminResponseDataItemOrderItemItems:
      type: object
      properties:
        sub1133619:
          $ref: >-
            #/components/schemas/type_admin:GetInvoiceDetailAdminResponseDataItemOrderItemItemsSub1133619
      required:
        - sub1133619
      title: GetInvoiceDetailAdminResponseDataItemOrderItemItems
    type_admin:GetInvoiceDetailAdminResponseDataItemOrderItem:
      type: object
      properties:
        items:
          $ref: >-
            #/components/schemas/type_admin:GetInvoiceDetailAdminResponseDataItemOrderItemItems
        amount:
          type: string
        employer:
          type: string
        created_at:
          type: string
      required:
        - items
        - amount
        - employer
        - created_at
      title: GetInvoiceDetailAdminResponseDataItemOrderItem
    type_admin:GetInvoiceDetailAdminResponseDataItem:
      type: object
      properties:
        tax:
          type: integer
        type:
          type: string
        order:
          type: array
          items:
            $ref: >-
              #/components/schemas/type_admin:GetInvoiceDetailAdminResponseDataItemOrderItem
        status:
          type: string
        tax_money:
          type: integer
        provisional:
          type: string
        total_money:
          type: integer
        invoice_number:
          type: integer
      required:
        - tax
        - type
        - order
        - status
        - tax_money
        - provisional
        - total_money
        - invoice_number
      title: GetInvoiceDetailAdminResponseDataItem
    type_admin:GetInvoiceDetailAdminResponse:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: >-
              #/components/schemas/type_admin:GetInvoiceDetailAdminResponseDataItem
        success:
          type: boolean
      required:
        - data
        - success
      title: GetInvoiceDetailAdminResponse

```

## Examples

**Response**

```json
{
  "data": [
    {
      "tax": 10,
      "type": "subscription",
      "order": [
        {
          "items": {
            "sub1133619": {
              "id": "sub1133619",
              "name": "Gói hội viên 12 tháng",
              "price": 1250000,
              "quantity": 1,
              "attributes": {
                "employer_name": "Họ và Tên",
                "biz_employer_id": 33619,
                "biz_subscription_id": 1,
                "biz_subscription_label": "Gói hội viên 12 tháng"
              },
              "conditions": []
            }
          },
          "amount": "1,250,000",
          "employer": "HR Gitiho Vietnam",
          "created_at": "28/05/2024"
        }
      ],
      "status": "paid",
      "tax_money": 0,
      "provisional": "1250000",
      "total_money": 1250000,
      "invoice_number": 615107
    }
  ],
  "success": true
}
```

**SDK Code**

```python
import requests

url = "https://example.gitiho.com/api/invoice/615107/detail"

response = requests.get(url)

print(response.json())
```

```javascript
const url = 'https://example.gitiho.com/api/invoice/615107/detail';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://example.gitiho.com/api/invoice/615107/detail"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://example.gitiho.com/api/invoice/615107/detail")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://example.gitiho.com/api/invoice/615107/detail")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://example.gitiho.com/api/invoice/615107/detail');

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://example.gitiho.com/api/invoice/615107/detail");
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "https://example.gitiho.com/api/invoice/615107/detail")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```