Authorization: Bearer ********************
{
"Documents": [
{
"DeliveryInfo": {
"EmailAddress1": "string",
"EmailAddress2": "string",
"SMSTelNo1": "string",
"Password": "string",
"PrintDeliveryType": "string",
"EDeliveryType": "string",
"IsAlertBySMS": "string",
"TemplateToken": "string",
"CustomAction": "string"
},
"Header": {
"ExchangedDocument": {
"Id": "string",
"Name": "string",
"TypeCode": "string",
"IssueDateTime": "string",
"Purpose": "string",
"PurposeCode": "string",
"CreationDateTime": "string",
"Subject": "string",
"Content": "string"
},
"SellerTradeParty": {
"Id": "string",
"Name": "string",
"TaxId": "string",
"Postcode": "string",
"BuildingName": "string",
"AddressLine1": "string",
"AddressLine2": "string",
"Line3": "string",
"Line4": "string",
"Line5": "string",
"StreetName": "string",
"CityName": "string",
"CitySubDivisionName": "string",
"CountryId": "string",
"CountrySubDivisionName": "string",
"BuildingNumber": "string"
},
"BuyerTradeParty": {
"Id": "string",
"Name": "string",
"TaxId": "string",
"Postcode": "string",
"BuildingName": "string",
"AddressLine1": "string",
"AddressLine2": "string",
"Line3": "string",
"Line4": "string",
"Line5": "string",
"StreetName": "string",
"CityName": "string",
"CitySubDivisionName": "string",
"CountryId": "string",
"CountrySubDivisionName": "string",
"BuildingNumber": "string"
},
"AdditionalReferencedDocument": {
"IssueAssignedId": "string",
"IssueDateTime": "string",
"ReferenceTypeCode": "string"
},
"ApplicableTradeTax": {
"CurrencyCode": "string",
"TypeCode": "string",
"CalculatedRate": "string",
"BasisAmount": "string",
"CalculatedAmount": "string"
},
"SpecifiedTradeAllowance": {
"ChargeIndicator": "string",
"ActualAmount": "string",
"ReasonCode": "string",
"Reason": "string"
},
"SpecifiedTradeCharge": {
"ChargeIndicator": "string",
"ActualAmount": "string",
"ReasonCode": "string",
"Reason": "string"
},
"SpecifiedTradeSettlementHeaderMonetarySummation": {
"OriginalInformationAmount": "string",
"LineTotalAmount": "string",
"DifferenceSalesInformationAmount": "string",
"AllowanceTotalAmount": "string",
"ChargeTotalAmount": "string",
"TaxBasisTotalAmount": "string",
"TaxTotalAmount": "string",
"GrandTotalAmount": "string"
},
"Custom": {
"Custom01": "string",
"Custom02": "string",
"Custom03": "string",
"Custom04": "string",
"Custom05": "string",
"Custom06": "string",
"Custom07": "string",
"Custom08": "string",
"Custom09": "string",
"Custom10": "string",
"Custom11": "string",
"Custom12": "string",
"Custom13": "string",
"Custom14": "string",
"Custom15": "string",
"Custom16": "string",
"Custom17": "string",
"Custom18": "string",
"Custom19": "string",
"Custom20": "string",
"Custom21": "string",
"Custom22": "string",
"Custom23": "string",
"Custom24": "string",
"Custom25": "string",
"Custom26": "string",
"Custom27": "string",
"Custom28": "string",
"Custom29": "string",
"Custom30": "string"
}
},
"Details": [
{
"IncludedSupplyChainTradeLineItem": {
"LineId": "string",
"Id": "string",
"Name": "string",
"ChargeAmount": "string",
"BilledQuantity": "string",
"BilledQuantityUnit": "string"
},
"ApplicableTradeTax": {
"TypeCode": "string",
"CalculatedRate": "string",
"BasisAmount": "string",
"CalculatedAmount": "string"
},
"SpecifiedTradeAllowance": {
"ChargeIndicator": "string",
"ActualAmount": "string",
"ReasonCode": "string",
"Reason": "string"
},
"SpecifiedTradeSettlementMonetarySummation": {
"TaxTotalAmount": "string",
"NetLineTotalAmount": "string",
"NetIncludingTaxesLineTotalAmount": "string"
},
"Custom": {
"Custom01": "string",
"Custom02": "string",
"Custom03": "string",
"Custom04": "string",
"Custom05": "string",
"Custom06": "string",
"Custom07": "string",
"Custom08": "string",
"Custom09": "string",
"Custom10": "string"
}
}
]
}
]
}
curl --location --request POST 'https://api.gofive.co.th/etaxgo/Documents/Json' \
--header 'Ocp-Apim-Subscription-Key: รหัส subscription key ของลูกค้า' \
--header 'Content-Type: application/json' \
--data-raw '{
"Documents": [
{
"DeliveryInfo": {
"EmailAddress1": "string",
"EmailAddress2": "string",
"SMSTelNo1": "string",
"Password": "string",
"PrintDeliveryType": "string",
"EDeliveryType": "string",
"IsAlertBySMS": "string",
"TemplateToken": "string",
"CustomAction": "string"
},
"Header": {
"ExchangedDocument": {
"Id": "string",
"Name": "string",
"TypeCode": "string",
"IssueDateTime": "string",
"Purpose": "string",
"PurposeCode": "string",
"CreationDateTime": "string",
"Subject": "string",
"Content": "string"
},
"SellerTradeParty": {
"Id": "string",
"Name": "string",
"TaxId": "string",
"Postcode": "string",
"BuildingName": "string",
"AddressLine1": "string",
"AddressLine2": "string",
"Line3": "string",
"Line4": "string",
"Line5": "string",
"StreetName": "string",
"CityName": "string",
"CitySubDivisionName": "string",
"CountryId": "string",
"CountrySubDivisionName": "string",
"BuildingNumber": "string"
},
"BuyerTradeParty": {
"Id": "string",
"Name": "string",
"TaxId": "string",
"Postcode": "string",
"BuildingName": "string",
"AddressLine1": "string",
"AddressLine2": "string",
"Line3": "string",
"Line4": "string",
"Line5": "string",
"StreetName": "string",
"CityName": "string",
"CitySubDivisionName": "string",
"CountryId": "string",
"CountrySubDivisionName": "string",
"BuildingNumber": "string"
},
"AdditionalReferencedDocument": {
"IssueAssignedId": "string",
"IssueDateTime": "string",
"ReferenceTypeCode": "string"
},
"ApplicableTradeTax": {
"CurrencyCode": "string",
"TypeCode": "string",
"CalculatedRate": "string",
"BasisAmount": "string",
"CalculatedAmount": "string"
},
"SpecifiedTradeAllowance": {
"ChargeIndicator": "string",
"ActualAmount": "string",
"ReasonCode": "string",
"Reason": "string"
},
"SpecifiedTradeCharge": {
"ChargeIndicator": "string",
"ActualAmount": "string",
"ReasonCode": "string",
"Reason": "string"
},
"SpecifiedTradeSettlementHeaderMonetarySummation": {
"OriginalInformationAmount": "string",
"LineTotalAmount": "string",
"DifferenceSalesInformationAmount": "string",
"AllowanceTotalAmount": "string",
"ChargeTotalAmount": "string",
"TaxBasisTotalAmount": "string",
"TaxTotalAmount": "string",
"GrandTotalAmount": "string"
},
"Custom": {
"Custom01": "string",
"Custom02": "string",
"Custom03": "string",
"Custom04": "string",
"Custom05": "string",
"Custom06": "string",
"Custom07": "string",
"Custom08": "string",
"Custom09": "string",
"Custom10": "string",
"Custom11": "string",
"Custom12": "string",
"Custom13": "string",
"Custom14": "string",
"Custom15": "string",
"Custom16": "string",
"Custom17": "string",
"Custom18": "string",
"Custom19": "string",
"Custom20": "string",
"Custom21": "string",
"Custom22": "string",
"Custom23": "string",
"Custom24": "string",
"Custom25": "string",
"Custom26": "string",
"Custom27": "string",
"Custom28": "string",
"Custom29": "string",
"Custom30": "string"
}
},
"Details": [
{
"IncludedSupplyChainTradeLineItem": {
"LineId": "string",
"Id": "string",
"Name": "string",
"ChargeAmount": "string",
"BilledQuantity": "string",
"BilledQuantityUnit": "string"
},
"ApplicableTradeTax": {
"TypeCode": "string",
"CalculatedRate": "string",
"BasisAmount": "string",
"CalculatedAmount": "string"
},
"SpecifiedTradeAllowance": {
"ChargeIndicator": "string",
"ActualAmount": "string",
"ReasonCode": "string",
"Reason": "string"
},
"SpecifiedTradeSettlementMonetarySummation": {
"TaxTotalAmount": "string",
"NetLineTotalAmount": "string",
"NetIncludingTaxesLineTotalAmount": "string"
},
"Custom": {
"Custom01": "string",
"Custom02": "string",
"Custom03": "string",
"Custom04": "string",
"Custom05": "string",
"Custom06": "string",
"Custom07": "string",
"Custom08": "string",
"Custom09": "string",
"Custom10": "string"
}
}
]
}
]
}'
{
"validate": true,
"validateEmail": true,
"validateSms": true,
"errorMessage": null,
"warningMessage": null,
"batchId": null,
"pdf": "...base64 encoded pdf...",
"isSuccess": true,
"printQty": null,
"templateToken": null
}