| GET,OPTIONS | /v1/records/logistics/pickups |
|---|
import datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class RecordsPickupDto:
pickup_id: int = 0
pickup_key: Optional[str] = None
vendor_name: Optional[str] = None
vendor_cert: Optional[str] = None
status: Optional[str] = None
wf_label: Optional[str] = None
run_label: Optional[str] = None
manifest_json: Optional[str] = None
quote_json: Optional[str] = None
window_label: Optional[str] = None
vendor_cert_ref: Optional[str] = None
log_json: Optional[str] = None
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class PickupsResponse:
response_status: Optional[ResponseStatus] = None
pickups: List[RecordsPickupDto] = field(default_factory=list)
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class PickupsRequest:
pass
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/records/logistics/pickups HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
},
Pickups:
[
{
PickupId: 0,
PickupKey: String,
VendorName: String,
VendorCert: String,
Status: String,
WfLabel: String,
RunLabel: String,
ManifestJson: String,
QuoteJson: String,
WindowLabel: String,
VendorCertRef: String,
LogJson: String
}
]
}