list_orders

Private5G.Client.list_orders(**kwargs)

Lists orders. Add filters to your request to return a more specific list of results. Use filters to match the Amazon Resource Name (ARN) of the network site or the status of the order.

If you specify multiple filters, filters are joined with an OR, and the request returns results that match all of the specified filters.

See also: AWS API Documentation

Request Syntax

response = client.list_orders(
    filters={
        'string': [
            'string',
        ]
    },
    maxResults=123,
    networkArn='string',
    startToken='string'
)
Parameters
  • filters (dict) --

    The filters.

    • NETWORK_SITE - The Amazon Resource Name (ARN) of the network site.
    • STATUS - The status ( ACKNOWLEDGING | ACKNOWLEDGED | UNACKNOWLEDGED ).

    Filter values are case sensitive. If you specify multiple values for a filter, the values are joined with an OR , and the request returns all results that match any of the specified values.

    • (string) --
      • (list) --
        • (string) --
  • maxResults (integer) -- The maximum number of results to return.
  • networkArn (string) --

    [REQUIRED]

    The Amazon Resource Name (ARN) of the network.

  • startToken (string) -- The token for the next page of results.
Return type

dict

Returns

Response Syntax

{
    'nextToken': 'string',
    'orders': [
        {
            'acknowledgmentStatus': 'ACKNOWLEDGING'|'ACKNOWLEDGED'|'UNACKNOWLEDGED',
            'createdAt': datetime(2015, 1, 1),
            'networkArn': 'string',
            'networkSiteArn': 'string',
            'orderArn': 'string',
            'shippingAddress': {
                'city': 'string',
                'company': 'string',
                'country': 'string',
                'name': 'string',
                'phoneNumber': 'string',
                'postalCode': 'string',
                'stateOrProvince': 'string',
                'street1': 'string',
                'street2': 'string',
                'street3': 'string'
            },
            'trackingInformation': [
                {
                    'trackingNumber': 'string'
                },
            ]
        },
    ]
}

Response Structure

  • (dict) --

    • nextToken (string) --

      The token for the next page of results.

    • orders (list) --

      Information about the orders.

      • (dict) --

        Information about an order.

        • acknowledgmentStatus (string) --

          The acknowledgement status of the order.

        • createdAt (datetime) --

          The creation time of the order.

        • networkArn (string) --

          The Amazon Resource Name (ARN) of the network associated with this order.

        • networkSiteArn (string) --

          The Amazon Resource Name (ARN) of the network site associated with this order.

        • orderArn (string) --

          The Amazon Resource Name (ARN) of the order.

        • shippingAddress (dict) --

          The shipping address of the order.

          • city (string) --

            The city for this address.

          • company (string) --

            The company name for this address.

          • country (string) --

            The country for this address.

          • name (string) --

            The recipient's name for this address.

          • phoneNumber (string) --

            The phone number for this address.

          • postalCode (string) --

            The postal code for this address.

          • stateOrProvince (string) --

            The state or province for this address.

          • street1 (string) --

            The first line of the street address.

          • street2 (string) --

            The second line of the street address.

          • street3 (string) --

            The third line of the street address.

        • trackingInformation (list) --

          The tracking information of the order.

          • (dict) --

            Information about tracking a shipment.

            • trackingNumber (string) --

              The tracking number of the shipment.

Exceptions

  • Private5G.Client.exceptions.ResourceNotFoundException
  • Private5G.Client.exceptions.ValidationException
  • Private5G.Client.exceptions.InternalServerException