diff --git a/models/tokens-api-model/tokens_2021-03-01.json b/models/tokens-api-model/tokens_2021-03-01.json index df459f4..9976250 100644 --- a/models/tokens-api-model/tokens_2021-03-01.json +++ b/models/tokens-api-model/tokens_2021-03-01.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "description": "The Selling Partner API for Tokens provides a secure way to access a customers's PII (Personally Identifiable Information). You can call the Tokens API to get a Restricted Data Token (RDT) for one or more restricted resources that you specify. The RDT authorizes you to make subsequent requests to access these restricted resources.", + "description": "The Selling Partner API for Tokens provides a secure way to access a customer's PII (Personally Identifiable Information). You can call the Tokens API to get a Restricted Data Token (RDT) for one or more restricted resources that you specify. The RDT authorizes you to make subsequent calls to restricted operations that correspond to the restricted resources that you specified.\n\nFor more information, see the [Tokens API Use Case Guide](https://github.com/amzn/selling-partner-api-docs/blob/main/references/tokens-api/tokens_2021-03-01.md).", "version": "2021-03-01", "title": "Selling Partner API for Tokens ", "contact": { @@ -30,7 +30,7 @@ "tags": [ "tokens" ], - "description": "Returns a Restricted Data Token (RDT) for one or more restricted resources that you specify. A restricted resource is the HTTP method and path from a restricted operation that returns Personally Identifiable Information (PII). See the Tokens API Use Case Guide for a list of restricted operations. Use the RDT returned here as the access token in subsequent calls to the corresponding restricted operations.\n\nThe path of a restricted resource can be:\n- A specific path containing a seller's order ID, for example ```/orders/v0/orders/902-3159896-1390916/address```. The returned RDT authorizes a subsequent call to the getOrderAddress operation of the Orders API for that specific order only. For example, ```GET /orders/v0/orders/902-3159896-1390916/address```.\n- A generic path that does not contain a seller's order ID, for example```/orders/v0/orders/{orderId}/address```). The returned RDT authorizes subsequent calls to the getOrderAddress operation for *any* of a seller's order IDs. For example, ```GET /orders/v0/orders/902-3159896-1390916/address``` and ```GET /orders/v0/orders/483-3488972-0896720/address```\n\n**Usage Plans:**\n\n| Plan type | Rate (requests per second) | Burst |\n| ---- | ---- | ---- |\n|Default| 1 | 10 |\n|Selling partner specific| Variable | Variable |\n\nThe x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.", + "description": "Returns a Restricted Data Token (RDT) for one or more restricted resources that you specify. A restricted resource is the HTTP method and path from a restricted operation that returns Personally Identifiable Information (PII), plus a dataElements value that indicates the type of PII requested. See the Tokens API Use Case Guide for a list of restricted operations. Use the RDT returned here as the access token in subsequent calls to the corresponding restricted operations.\n\n**Usage Plans:**\n\n| Plan type | Rate (requests per second) | Burst |\n| ---- | ---- | ---- |\n|Default| 1 | 10 |\n|Selling partner specific| Variable | Variable |\n\nThe x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.", "parameters": [ { "in": "body", @@ -64,6 +64,7 @@ "parameters": { "body": { "value": { + "targetApplication": "amzn1.sellerapps.app.target-application", "restrictedResources": [ { "method": "GET", @@ -122,6 +123,7 @@ "parameters": { "body": { "value": { + "targetApplication": "amzn1.sellerapps.app.target-application", "restrictedResources": [ { "method": "", @@ -191,7 +193,7 @@ }, "headers": { "x-amzn-RateLimit-Limit": { - "description": "Your rate limit (requests per second) for this operation.", + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", "type": "string" }, "x-amzn-RequestId": { @@ -207,7 +209,7 @@ }, "headers": { "x-amzn-RateLimit-Limit": { - "description": "Your rate limit (requests per second) for this operation.", + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", "type": "string" }, "x-amzn-RequestId": { @@ -223,7 +225,7 @@ }, "headers": { "x-amzn-RateLimit-Limit": { - "description": "Your rate limit (requests per second) for this operation.", + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", "type": "string" }, "x-amzn-RequestId": { @@ -239,7 +241,7 @@ }, "headers": { "x-amzn-RateLimit-Limit": { - "description": "Your rate limit (requests per second) for this operation.", + "description": "Your rate limit (requests per second) for this operation.\n_Note:_ For this status code, the rate limit header is deprecated and no longer returned.", "type": "string" }, "x-amzn-RequestId": { @@ -257,6 +259,10 @@ "description": "The request schema for the createRestrictedDataToken operation.", "type": "object", "properties": { + "targetApplication": { + "type": "string", + "description": "The application ID for the target application to which access is being delegated." + }, "restrictedResources": { "type": "array", "description": "A list of restricted resources.\nMaximum: 50", @@ -279,7 +285,7 @@ "properties": { "method": { "type": "string", - "description": "The HTTP method used with the restricted resource.", + "description": "The HTTP method in the restricted resource.", "enum": [ "GET", "PUT", @@ -307,11 +313,17 @@ }, "path": { "type": "string", - "description": "The path from a restricted operation. This could be:\n\n- A specific path containing a seller's order ID, for example ```/orders/v0/orders/902-3159896-1390916/address```.\n\n- A generic path that does not contain a seller's order ID, for example```/orders/v0/orders/{orderId}/address```)." + "description": "The path in the restricted resource. Here are some path examples:\n- ```/orders/v0/orders```. For getting an RDT for the getOrders operation of the Orders API. For bulk orders.\n- ```/orders/v0/orders/123-1234567-1234567```. For getting an RDT for the getOrder operation of the Orders API. For a specific order.\n- ```/orders/v0/orders/123-1234567-1234567/orderItems```. For getting an RDT for the getOrderItems operation of the Orders API. For the order items in a specific order.\n- ```/mfn/v0/shipments/FBA1234ABC5D```. For getting an RDT for the getShipment operation of the Shipping API. For a specific shipment.\n- ```/mfn/v0/shipments/{shipmentId}```. For getting an RDT for the getShipment operation of the Shipping API. For any of a selling partner's shipments that you specify when you call the getShipment operation." + }, + "dataElements": { + "type": "array", + "description": "Indicates the type of Personally Identifiable Information requested. This parameter is required only when getting an RDT for use with the getOrder, getOrders, or getOrderItems operation of the Orders API. For more information, see the [Tokens API Use Case Guide](https://github.com/amzn/selling-partner-api-docs/blob/main/references/tokens-api/tokens_2021-03-01.md). Possible values include:\n- **buyerInfo**. On the order level this includes general identifying information about the buyer and tax-related information. On the order item level this includes gift wrap information and custom order information, if available.\n- **shippingAddress**. This includes information for fulfilling orders.", + "items": { + "type": "string" + } } } }, - "CreateRestrictedDataTokenResponse": { "type": "object", "description": "The response schema for the createRestrictedDataToken operation.",