POST v1/Order/OrderVersionPostageDetailUpdate
Updates order version postage detail information
Request Information
URI Parameters
None.
Body Parameters
OrderVersionPostageDetail| Name | Description | Type | Additional information |
|---|---|---|---|
| OrderVersionPostageDetailID |
Provide the OrderVersionPostageDetailID |
integer |
None. |
| OrderVersionPostageID |
Provide the OrderVersionPostageID |
integer |
None. |
| RateDescription |
Provide the RateDescription |
string |
None. |
| Quantity |
Provide the Quantity |
integer |
None. |
| Rate |
Provide the Rate |
decimal number |
None. |
| DetailTotalWeight |
Provide the DetailTotalWeight |
decimal number |
None. |
| DetailTotalPostage |
Provide the DetailTotalPostage |
decimal number |
None. |
| DetailDate |
Provide the DetailDate |
string |
None. |
| RateCode |
Provide the RateCode |
string |
None. |
| WtType |
Provide the WtType |
string |
None. |
| Precanceled |
Provide the Precanceled |
string |
None. |
| Sign |
Provide the Sign |
string |
None. |
| OrderVersionPostageID |
Ignored for OrderVersionPostageInsert. Required for OrderVersionPostageUpdate. |
integer |
None. |
| VersionID |
Required for OrderVersionPostageInsert. Must match Midnight VersionID. |
integer |
None. |
| PostageAffixID |
Provide the PostageAffixID |
integer |
None. |
| PostageAffixName |
Must match PostageAffix Name in Midnight. |
string |
None. |
| PostageQuantity |
Provide the PostageQuantity |
integer |
None. |
| PostageRate |
Provide the PostageRate |
decimal number |
None. |
| PostageMarkupType |
Provide the PostageMarkupType |
string |
None. |
| PostageMarkupValue |
Provide the PostageMarkupValue |
decimal number |
None. |
| PostageSellRate |
Provide the PostageSellRate |
decimal number |
None. |
| PostageTotal |
must be a valid decimal value and the product of PostageQuantity and PostageRate. |
decimal number |
None. |
| DateUsed |
Provide the DateUsed |
string |
None. |
| MailClassID |
must match MailClass in Midnight. |
integer |
None. |
| TotalWeight |
Provide the TotalWeight |
decimal number |
None. |
| FormNo |
Provide the FormNo |
string |
None. |
| LOT |
Provide the LOT |
string |
None. |
| PermitNo |
Provide the PermitNo |
string |
None. |
| NonProfit |
Provide the NonProfit |
string |
None. |
| PostOffice |
Provide the PostOffice |
string |
None. |
| POCity |
Provide the POCity |
string |
None. |
| POZIP |
Provide the POZIP |
string |
None. |
| WTStatus |
Provide the WTStatus |
string |
None. |
| ProcessingCategory |
Provide the ProcessingCategory |
string |
None. |
| FTtr1 |
Provide the FTtr1 |
integer |
None. |
| FTtr2 |
Provide the FTtr2 |
integer |
None. |
| Sacks |
Provide the Sacks |
integer |
None. |
| Pallets |
Provide the Pallets |
integer |
None. |
| FlatTr |
Provide the FlatTr |
integer |
None. |
| Other |
Provide the Other |
integer |
None. |
| TareWt |
Provide the TareWt |
decimal number |
None. |
| IfExistIDDateAppendDetailUpdateHeader |
Optional, custom parameter. Only relevant for OrderVersionPostageInsert. If a value of true is provided for this parameter, and the combination of values of VersionID, PostageAffixID, DateUsed parameters match an existing OrderVersionPostage record; an OrderVersionPostageDetail record is added to the matched OrderVersionPostage record which itself is updated accordingly. If a value of false or no value is provided for this parameter, or the combination of values of VersionID, PostageAffixID, DateUsed parameters do not match an existing OrderVersionPostage record; a new OrderVersionPostage record is added. |
boolean |
None. |
Request Formats
application/json, text/json
{
"OrderVersionPostageDetailID": 1,
"OrderVersionPostageID": 2,
"RateDescription": "sample string 3",
"Quantity": 4,
"Rate": 5.0,
"DetailTotalWeight": 6.0,
"DetailTotalPostage": 7.0,
"DetailDate": "sample string 8",
"RateCode": "sample string 9",
"WtType": "sample string 10",
"Precanceled": "sample string 11",
"Sign": "sample string 12",
"VersionID": 1,
"PostageAffixID": 1,
"PostageAffixName": "sample string 13",
"PostageQuantity": 1,
"PostageRate": 1.0,
"PostageMarkupType": "sample string 14",
"PostageMarkupValue": 1.0,
"PostageSellRate": 1.0,
"PostageTotal": 1.0,
"DateUsed": "sample string 15",
"MailClassID": 1,
"TotalWeight": 1.0,
"FormNo": "sample string 17",
"LOT": "sample string 18",
"PermitNo": "sample string 19",
"NonProfit": "sample string 20",
"PostOffice": "sample string 21",
"POCity": "sample string 22",
"POZIP": "sample string 23",
"WTStatus": "sample string 24",
"ProcessingCategory": "sample string 25",
"FTtr1": 1,
"FTtr2": 1,
"Sacks": 1,
"Pallets": 1,
"FlatTr": 1,
"Other": 1,
"TareWt": 1.0,
"IfExistIDDateAppendDetailUpdateHeader": true
}
application/x-www-form-urlencoded
Response Information
Resource Description
stringResponse Formats
application/json, text/json
"sample string 1"
application/xml, text/xml
<string>sample string 1</string>
