View App Store Legal Document

GET https://api.ocamba.com/v2/ocamba/app-store/{app_id}/legal-doc/app-store/{app_id}/legal-doc

Retrieves the Legal Document for a specific app in the App Store.


Name
Description
idstringrequired
Unique identifier for the object defined as a path parameter.


Example: 12345

Name
Description
fieldsstring
The client can request more efficient filtered representation of the resource showing only specific field(s), using the “fields” query parameter. Note that the “fields” parameter has precedence over the “view” parameter.

Example GET /v2/ocamba/RESOURCE_NAME?fields=id,name

See "Tips" for the list of filterable parameters.


Example: fields=field1,field2,field3

viewstring
Ocamba API returns full representation of the resource using the “view=full” query parameter. If not specified, the default view will be used.

Note that the “fields” parameter has precedence over the “view” parameter.


Example: view=full/default

Response examples

>
200 - OK
200 - OK response
application/json
Name
Description
items[ app-legal-doc ]
Array containing a single Legal Document.

totalinteger
Total number of Legal Documents found.


Example: 1
>
400 - Bad Request
400 - Bad Request response
application/json
Name
Description
codeinteger
Http response status code.


Example: 400

messagestring
The human readable message that describes how to deal with error.


Example: The request body is not valid.

titlestring
The error title.


Example: Bad request.

trace_idstring
Error trace id.


Example: 99a84211-f73d-4ff8-acdf-eb3e06bb9d62
>
500 - Internal Server Error
500 - Internal Server Error response
application/json
Name
Description
codeinteger
Http response status code.


Example: 500

messagestring
The human readable message that describes how to deal with error.


Example: Internal server error.

titlestring
The error title.


Example: Internal server error.
200 Arrow
{
  "total": 1,
  "items": [
    {
      "id": "10014",
      "app_id": "1001",
      "name": "Terms of Service",
      "text": "By using this application, you agree to be bound by these Terms of Service...",
      "url": "https://ocamba.com/apps/hood/terms",
      "pdf": "https://ocamba.com/apps/hood/terms/terms-of-service-v2.1.pdf",
      "status": "superseded",
      "superseded_by_ids": [
        null
      ],
      "supersede_time": "2021-07-30 12:50:13",
      "create_time": "2021-07-30 12:50:13",
      "update_time": "2021-07-30 12:50:13"
    }
  ]
}
{
  "code": 400,
  "title": "Bad request.",
  "message": "The request body is not valid.",
  "trace_id": "99a84211-f73d-4ff8-acdf-eb3e06bb9d62"
}
{
  "code": 500,
  "title": "Internal server error.",
  "message": "Internal server error."
}