Authorization: ********************{
"documentNo": "T2024001233",
"refDocumentNo": "T2024001234",
"reasonCode": "RCTC01",
"reason": null,
"createdDate": "2024-01-15T00:00:00",
"issueDateTime": "2024-01-15T10:30:00",
"buyerDetail": {
"taxID": "1234567890123",
"customerType": "TXID",
"customerName": "บริษัท เอ็กซแซมเปิ้ล จำกัด",
"address": "123/45 ถนนตัวอย่าง",
"subDistrict": "สามเสนใน",
"district": "พญาไท",
"province": "กรุงเทพมหานคร",
"postCode": "10400"
},
"mobile": "0812345678",
"email": "[email protected]",
"itemProducts": [
{
"number": "1",
"productCode": "P001",
"quantity": 1,
"pricePerItem": 1000,
"discount": 0
}
],
"discount": {
"description": "Year End Discount",
"amount": 0
}
}curl --location 'https://api.gofive.co.th/etaxgo/Documents/corrected-receipt' \
--header 'Ocp-Apim-Subscription-Key: a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"documentNo": "T2024001233",
"refDocumentNo": "T2024001234",
"reasonCode": "RCTC01",
"reason": null,
"createdDate": "2024-01-15T00:00:00",
"issueDateTime": "2024-01-15T10:30:00",
"buyerDetail": {
"taxID": "1234567890123",
"customerType": "TXID",
"customerName": "บริษัท เอ็กซแซมเปิ้ล จำกัด",
"address": "123/45 ถนนตัวอย่าง",
"subDistrict": "สามเสนใน",
"district": "พญาไท",
"province": "กรุงเทพมหานคร",
"postCode": "10400"
},
"mobile": "0812345678",
"email": "[email protected]",
"itemProducts": [
{
"number": "1",
"productCode": "P001",
"quantity": 1,
"pricePerItem": 1000,
"discount": 0
}
],
"discount": {
"description": "Year End Discount",
"amount": 0
}
}'status.isSuccess = true{
"status": {
"isSuccess": true
},
"data": {
"newDocumentNumber": "T2024001235",
"originalDocumentNumber": "T2024001234",
"correctedAmount": 1070,
"cancellationReasonCode": "RCTC01",
"rdSubmissionStatus": "PENDING",
"createdAt": "2024-01-15T10:30:00"
}
}