# List Brand Orders according to the filters applied.

List Brand Orders, according to the filters applied. This endpoint allows filtering over all brands.

Endpoint: GET /v1/projects/{projectId}/us/orders
Version: 1.0.0
Security: OAuth2

## Security:

  - `OAuth2` (unknown)
    oauth2

## Path parameters:

  - `projectId` (string, required)
    Customer's project id

## Query parameters:

  - `status` (array)
    The brand Order status to filter the brand orders.

  - `metadataName` (string)
    Filter brand orders by brand registration process metadata name.

  - `sort` (string)
    Sorting of the results using SQL-like syntax: comma-separated field names with an optional ':desc' or ':asc' suffix. Fields that support sorting are 'metadataName', 'status', 'createTime', 'updateTime'. Defaults to ascending order when no suffix is provided.

  - `pageSize` (integer)
    Size of the page to be returned. Default is 20. Maximum is 100.

  - `pageToken` (string)
    Page token to request subsequent pages when using pagination. This should be the value generated by the system in a previous list request.

## Response 200:

  - `200` (unknown)
    OK

## Response 200 fields (application/json):

  - `orders` (array)
    List of brand orders

  - `orders.brandOrderId` (string)
    The unique identifier for the brand order.

  - `orders.brandId` (string)
    Brand ID this Order belongs to.

  - `orders.status` (string)
    Brand order status represents the current state of the brand order in the system. When a brand order is created, it is in NEW status. After that, it can be moved to PENDING status when the validation process starts, then it can be moved to REJECTED or INCOMPLETE if the validation process fails, or to COMPLETED if the validation process is successful. When a brand order is in INCOMPLETE status, customer can update the brand/brand order. Updating the brand order moves the brand order to PENDING_REVIEW state, what means that is waiting for another review after the customer changes. Finally, a brand order can be moved to ARCHIVED status after a cancellation.
    Enum: "NEW", "PENDING", "PENDING_REVIEW", "REJECTED", "INCOMPLETE", "COMPLETED", "ARCHIVED"

  - `orders.metadataName` (string)
    These are the different processes the customers can request to add different channels to the Brand.
**Note:** US_SC_REGISTRY is only used to retrieve existing brand orders. It cannot be used for new ones.
    Enum: "US_SC_REGISTRY", "US_SC_GCH", "US_SC_GCH_CONTENT_PROVIDER", "US_10DLC_TCR_PRIVATE_BRAND_REGISTRATION", "US_10DLC_TCR_PUBLIC_BRAND_REGISTRATION", "US_10DLC_TCR_PRIVATE_BRAND_UPDATE", "US_10DLC_TCR_PUBLIC_BRAND_UPDATE", "US_10DLC_TCR_PRIVATE_MOCK", "US_10DLC_TCR_PUBLIC_MOCK", "US_10DLC_TCR_SOLE_PROPRIETOR", "US_10DLC_TCR_SOLE_PROPRIETOR_MOCK", "US_10DLC_TCR_PRIVATE_STANDARD_BRAND_REGISTRATION", "US_10DLC_TCR_PRIVATE_ENHANCED_BRAND_REGISTRATION", "US_10DLC_TCR_PUBLIC_STANDARD_BRAND_REGISTRATION", "US_10DLC_TCR_PUBLIC_ENHANCED_BRAND_REGISTRATION", "US_RCS_TCR_PRIVATE_BRAND_REGISTRATION", "US_RCS_TCR_PUBLIC_BRAND_REGISTRATION", "US_RCS_TCR_UPDATE_ASSETS"

  - `orders.createTime` (string)
    Create time of the request. ISO date time format in UTC.

  - `orders.updateTime` (string)
    Update time of the request. ISO date time format in UTC.

  - `links` (object)
    Pagination links.

  - `links.next` (string)
    Link to the next page of results, following RFC 8288. Absence of this link indicates the last page.

  - `meta` (object)
    Pagination metadata for list responses.

  - `meta.totalCount` (integer)
    Total count of resources matching the provided search criteria. This field cannot be null; an empty result will return 0.

## Response 200 headers (application/json):

  - `Link` (string)
    Pagination links per RFC 8288. A `rel="next"` link is present when there are more results. Absence of a `next` link indicates the last page.
    Example: <https://compliance.api.sinch.com/v1/projects/{projectId}/us/orders?pageToken=abc123>; rel="next"

## Response 401:

  - `401` (unknown)
    Unauthorized

## Response 401 fields (application/problem+json):

  - `type` (any, required)
    Enum: "https://developers.sinch.com/docs/errors/registry/invalid-credentials"

  - `title` (any, required)
    Enum: "Invalid Credentials"

  - `detail` (string)
    A human-readable explanation specific to this occurrence of the problem.
    Example: string

  - `instance` (string)
    A URI reference that identifies the specific occurrence of the problem.
    Example: https://api.sinch.com/example/resource/12345

  - `type` (any)
    Enum: "https://developers.sinch.com/docs/errors/registry/access-token-expired"

  - `title` (any)
    Enum: "Access Token Expired"

## Response 401 headers (application/problem+json):

  - `WWW-Authenticate` (string, required)
    Indicates the authentication scheme(s) the server supports. Sent with 401 responses to inform the client how to authenticate. See https://datatracker.ietf.org/doc/html/rfc9110#section-11.6.1.
    Example: Basic realm=“Realm”

## Response 403:

  - `403` (unknown)
    Permission Denied - The credentials used in the request do not have the necessary permissions.

## Response 403 fields (application/problem+json):

  - `type` (any, required)
    Enum: "https://developers.sinch.com/docs/errors/registry/permission-denied"

  - `title` (any, required)
    Enum: "Permission Denied"

  - `detail` (string)
    A human-readable explanation specific to this occurrence of the problem.
    Example: string

  - `instance` (string)
    A URI reference that identifies the specific occurrence of the problem.
    Example: https://api.sinch.com/example/resource/12345

## Response 404:

  - `404` (unknown)
    Not Found - The requested resource is missing.

## Response 404 fields (application/problem+json):

  - `type` (any, required)
    Enum: "https://developers.sinch.com/docs/errors/registry/not-found"

  - `title` (any, required)
    Enum: "Not Found"

  - `detail` (string)
    A human-readable explanation specific to this occurrence of the problem.
    Example: string

  - `instance` (string)
    A URI reference that identifies the specific occurrence of the problem.
    Example: https://api.sinch.com/example/resource/12345

  - `errors` (array, required)
    An array of objects identifying the missing resource errors.

  - `errors.detail` (string)
    A human-readable explanation specific to this occurrence of the problem.

  - `errors.pointer` (string)
    JSON pointer to the source of this error occurrence.

## Response 429:

  - `429` (unknown)
    Too Many Requests - The client has exceeded a rate limit.

## Response 429 fields (application/problem+json):

  - `type` (any, required)
    Enum: "https://developers.sinch.com/docs/errors/registry/too-many-requests"

  - `title` (any, required)
    Enum: "Too Many Requests"

  - `detail` (string)
    A human-readable explanation specific to this occurrence of the problem.
    Example: string

  - `instance` (string)
    A URI reference that identifies the specific occurrence of the problem.
    Example: https://api.sinch.com/example/resource/12345

## Response 500:

  - `500` (unknown)
    Internal Error - The server encountered an unexpected condition while processing the request.

## Response 500 fields (application/problem+json):

  - `type` (any, required)
    Enum: "https://developers.sinch.com/docs/errors/registry/internal-error"

  - `title` (any, required)
    Enum: "Internal Error"

  - `detail` (string)
    A human-readable explanation specific to this occurrence of the problem.
    Example: string

  - `instance` (string)
    A URI reference that identifies the specific occurrence of the problem.
    Example: https://api.sinch.com/example/resource/12345

## Response 401 examples:

  - `Credentials are present but invalid` (unknown)

  - `Authorization header is absent or empty` (unknown)

  - `The access token has expired` (unknown)

