Gofive OpenAPI
empeoVenioeTaxGo
empeoVenioeTaxGo
  1. Document Management
  • Auth Request
    • Auth Token
      POST
  • Document Management
    • Validate Documents
      • Validate Documents Json
    • Delivery Service
      • Delivery Service Resend
    • Create Document JSON
      POST
    • List Sellers
      GET
    • Create Tax Invoice
      POST
    • Update Tax Invoice
      PUT
    • Create Debit Note
      POST
    • Create Credit Note
      POST
    • Create Invoice
      POST
    • Create Receipt
      POST
    • Create Invoice and Tax Invoice
      POST
    • Create Receipt and Tax Invoice
      POST
    • Create Delivery Order and Tax Invoice
      POST
    • Create Abbreviated Tax Invoice
      POST
    • Create Receipt Abbreviated Tax Invoice
      POST
    • Document Raw Data
      POST
    • Download Document
      POST
    • Download Document By Id
      GET
    • Get Batch By Id
      GET
    • List Provinces
      GET
    • List Districts
      GET
    • List Sub Districts
      GET
    • List Posts
      GET
  1. Document Management

Create Debit Note

POST
https://api.gofive.co.th/etaxgo/Documents/Debit-Note

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Header Params

Body Params application/json

Example
{
    "SellerKey": "9876543210987",
    "BranchCode": "00000",
    "DocumentNo": "XYZ987654321",
    "CreatedDate": "2025-01-01T12:00:00",
    "IssueDateTime": "2025-01-01T14:00:00",
    "ReferenceDocument": {
        "ReferenceNo": "REF123456789",
        "ReferenceCode": "ABCD1234"
    },
    "ReasonCode": "DBNG01",
    "Reason": "สินค้าชำรุดเสียหาย",
    "TemplateToken": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "BuyerDetail": {
        "CustomerType": "NIDN",
        "TaxID": "45678912345",
        "CustomerName": "บริษัท เอ็กซแซมเปิ้ล จำกัด",
        "Address": "123/321",
        "SubDistrict": "พระบรมมหาราชวัง",
        "District": "พระนคร",
        "Province": "กรุงเทพมหานคร",
        "PostCode": "10010"
    },
    "Mobile": "0812345679",
    "Email": "[email protected]",
    "ItemProducts": [
        {
            "Number": "1",
            "ProductCode": "P001",
            "ProductName": "Product 1",
            "Quantity": "2",
            "UnitName": "Piece",
            "PricePerItem": "50.00",
            "Discount": "10",
            "PercentVat": "7",
            "TotalAmount": "90.00",
            "TotalVatAmount": "6.30",
            "TotalNetAmount": "96.30"
        }
    ],
    "IncludedVat": false,
    "OriginalAmount": "180",
    "DifferenceAmount": "10.0",
    "TotalItemAmount": "90.00",
    "TaxBasisTotalAmount": "90.00",
    "TaxTotalAmount": "6.30",
    "GrandTotal": "96.30",
    "DisCount": {
        "Description": "End of Season Sale",
        "Amount": "10.00"
    },
    "PdfFile": "string"
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.gofive.co.th/etaxgo/Documents/Debit-Note' \
--header 'Ocp-Apim-Subscription-Key: รหัส subscription key ของลูกค้า' \
--header 'Content-Type: application/json' \
--data-raw '{
    "SellerKey": "9876543210987",
    "BranchCode": "00000",
    "DocumentNo": "XYZ987654321",
    "CreatedDate": "2025-01-01T12:00:00",
    "IssueDateTime": "2025-01-01T14:00:00",
    "ReferenceDocument": {
        "ReferenceNo": "REF123456789",
        "ReferenceCode": "ABCD1234"
    },
    "ReasonCode": "DBNG01",
    "Reason": "สินค้าชำรุดเสียหาย",
    "TemplateToken": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "BuyerDetail": {
        "CustomerType": "NIDN",
        "TaxID": "45678912345",
        "CustomerName": "บริษัท เอ็กซแซมเปิ้ล จำกัด",
        "Address": "123/321",
        "SubDistrict": "พระบรมมหาราชวัง",
        "District": "พระนคร",
        "Province": "กรุงเทพมหานคร",
        "PostCode": "10010"
    },
    "Mobile": "0812345679",
    "Email": "[email protected]",
    "ItemProducts": [
        {
            "Number": "1",
            "ProductCode": "P001",
            "ProductName": "Product 1",
            "Quantity": "2",
            "UnitName": "Piece",
            "PricePerItem": "50.00",
            "Discount": "10",
            "PercentVat": "7",
            "TotalAmount": "90.00",
            "TotalVatAmount": "6.30",
            "TotalNetAmount": "96.30"
        }
    ],
    "IncludedVat": false,
    "OriginalAmount": "180",
    "DifferenceAmount": "10.0",
    "TotalItemAmount": "90.00",
    "TaxBasisTotalAmount": "90.00",
    "TaxTotalAmount": "6.30",
    "GrandTotal": "96.30",
    "DisCount": {
        "Description": "End of Season Sale",
        "Amount": "10.00"
    },
    "PdfFile": "string"
}'

Responses

🟢200Success
application/json
Body

Example
{
    "status": {
        "isSuccess": true
    },
    "data": {
        "validate": true,
        "validateEmail": true,
        "validateSms": true,
        "warningMessage": "",
        "pdf": "",
        "isSuccess": true
    }
}
🟠401Unauthorized
🟠401User authentication required V2.
Modified at 2025-01-23 04:34:10
Previous
Update Tax Invoice
Next
Create Credit Note
Built with