The dates for an order. Each date has a type and each type can have several names, but only one name per language.
Lists names in all languages available of an order date type. The ID of the date type must be specified.
/rest/orders/dates/types/{typeId}/names
Field | Type | Description |
---|---|---|
typeId | Int |
The Id of the OrderDateType to be found |
List
Field | Type | Description |
---|---|---|
id | Int |
The ID of the order date type name |
typeId | Int |
The ID of the date type that this name belongs to. The following date types are available:
|
lang | String |
The ISO 639-1 language code for the name, e.g. "en" for English |
name | String |
The name of the order date type |
Code | Exception | Description |
---|---|---|
401 | League\OAuth2\Server\Exception\AccessDeniedException |
The resource owner or authorization server denied the request. |
401 | League\OAuth2\Server\Exception\InvalidRequestException |
The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed. Check the "access token" parameter. |
Gets a name of an order date type. The ID of the date type and the language of the name must be specified.
/rest/orders/dates/types/{typeId}/names/{lang}
Field | Type | Description |
---|---|---|
typeId | Int |
The ID of the order date type to be found |
lang | String |
The language of the order date type name |
Field | Type | Description |
---|---|---|
id | Int |
The ID of the order date type name |
typeId | Int |
The ID of the date type that this name belongs to. The following date types are available:
|
lang | String |
The ISO 639-1 language code for the name, e.g. "en" for English |
name | String |
The name of the order date type |
Code | Exception | Description |
---|---|---|
401 | League\OAuth2\Server\Exception\AccessDeniedException |
The resource owner or authorization server denied the request. |
401 | League\OAuth2\Server\Exception\InvalidRequestException |
The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed. Check the "access token" parameter. |
/rest/orders/dates/types
Code | Exception | Description |
---|---|---|
401 | League\OAuth2\Server\Exception\AccessDeniedException |
The resource owner or authorization server denied the request. |
401 | League\OAuth2\Server\Exception\InvalidRequestException |
The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed. Check the "access token" parameter. |
/rest/orders/dates/types/{typeId}
Field | Type | Description |
---|---|---|
id | Int |
The ID of the order date type. The following date types are available:
|
isErasable | Bool |
Flag that indicates if this type can be deleted or not. |
position | Int |
The position for sorting |
Code | Exception | Description |
---|---|---|
401 | League\OAuth2\Server\Exception\AccessDeniedException |
The resource owner or authorization server denied the request. |
401 | League\OAuth2\Server\Exception\InvalidRequestException |
The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed. Check the "access token" parameter. |
Lists dates of an order. The ID of the order must be specified.
/rest/orders/{orderId}/dates
Field | Type | Description |
---|---|---|
orderId | Int |
The ID of the order |
List
Field | Type | Description |
---|---|---|
id | Int |
The ID of the order date |
orderId | Int |
The ID of the order that the date belongs to |
typeId | Int |
The ID of the date type. The following types are available:
|
createdAt | String|\Carbon |
The date when the date was created |
updatedAt | String|\Carbon |
The date when the date was last updated |
Code | Exception | Description |
---|---|---|
401 | League\OAuth2\Server\Exception\AccessDeniedException |
The resource owner or authorization server denied the request. |
401 | League\OAuth2\Server\Exception\InvalidRequestException |
The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed. Check the "access token" parameter. |
Gets a date. The ID of the order and the ID of the date type must be specified.
/rest/orders/{orderId}/dates/{typeId}
Field | Type | Description |
---|---|---|
typeId | Int |
The ID of the order date type to be found |
orderId | Int |
The ID of the order |
Field | Type | Description |
---|---|---|
id | Int |
The ID of the order date |
orderId | Int |
The ID of the order that the date belongs to |
typeId | Int |
The ID of the date type. The following types are available:
|
createdAt | String|\Carbon |
The date when the date was created |
updatedAt | String|\Carbon |
The date when the date was last updated |
Code | Exception | Description |
---|---|---|
401 | League\OAuth2\Server\Exception\AccessDeniedException |
The resource owner or authorization server denied the request. |
401 | League\OAuth2\Server\Exception\InvalidRequestException |
The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed. Check the "access token" parameter. |