UNPKG

node-red-contrib-rollun-aws-sp-api

Version:

Node-RED nodes to access AWS Selling Partner API

1,047 lines (1,046 loc) 374 kB
{ "swagger": "2.0", "info": { "description": "The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments.", "version": "v2", "title": "Amazon Shipping API", "contact": { "name": "Amazon Shipping API Support", "email": "swa-api-core@amazon.com" }, "license": { "name": "Amazon Software License", "url": "https://aws.amazon.com/asl/" } }, "host": "sellingpartnerapi-eu.amazon.com", "schemes": [ "https" ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "paths": { "/shipping/v2/shipments/rates": { "post": { "tags": [ "shipping" ], "description": "Returns the available shipping service offerings.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 80 | 100 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).", "operationId": "getRates", "parameters": [ { "in": "body", "name": "body", "description": "GetRatesRequest body", "required": true, "schema": { "$ref": "#/definitions/GetRatesRequest" } }, { "name": "x-amzn-shipping-business-id", "in": "header", "description": "Amazon shipping business to assume for this request. The default is AmazonShipping_UK.", "required": false, "type": "string", "enum": [ "AmazonShipping_US", "AmazonShipping_IN", "AmazonShipping_UK", "AmazonShipping_UAE", "AmazonShipping_SA", "AmazonShipping_EG", "AmazonShipping_IT", "AmazonShipping_ES", "AmazonShipping_FR", "AmazonShipping_JP" ], "x-docgen-enum-table-extension": [ { "value": "AmazonShipping_US", "description": "The United States Amazon shipping business." }, { "value": "AmazonShipping_IN", "description": "The India Amazon shipping business." }, { "value": "AmazonShipping_UK", "description": "The United Kingdom Amazon shipping business." }, { "value": "AmazonShipping_UAE", "description": "The United Arab Emirates Amazon shipping business." }, { "value": "AmazonShipping_SA", "description": "The Saudi Arabia Amazon shipping business." }, { "value": "AmazonShipping_EG", "description": "The Egypt Amazon shipping business." }, { "value": "AmazonShipping_IT", "description": "The Italy Amazon shipping business." }, { "value": "AmazonShipping_ES", "description": "The Spain Amazon shipping business." }, { "value": "AmazonShipping_FR", "description": "The France Amazon shipping business." }, { "value": "AmazonShipping_JP", "description": "The Japan Amazon shipping business." } ] } ], "responses": { "200": { "description": "Success.", "schema": { "$ref": "#/definitions/GetRatesResponse" }, "examples": { "application/json": { "requestToken": "6DCCEDD3FF961C15FEB94F342D41C", "rates": [ { "rateId": "F4B68849F969E239FF9FCA9C12E35", "carrierId": "FOOSHIPGRD", "carrierName": "FOO SHIP GRD", "billedWeight": { "value": 5, "unit": "GRAMS" }, "totalCharge": { "value": 7, "unit": "USD" }, "serviceId": "FOORSID", "serviceName": "FOO RS ID", "promise": { "deliveryWindow": { "start": "2018-08-24T08:22:30.737Z", "end": "2018-08-24T20:22:30.737Z" }, "pickupWindow": { "start": "2018-08-23T08:22:30.737Z", "end": "2018-08-23T20:22:30.737Z" } }, "supportedDocumentSpecifications": [ { "format": "PNG", "size": { "length": 6, "width": 4, "unit": "INCH" }, "printOptions": [ { "supportedDPIs": [ 300, 203 ], "supportedPageLayouts": [ "LEFT", "RIGHT" ], "supportedFileJoiningOptions": [ true, false ], "supportedDocumentDetails": [ { "name": "LABEL", "isMandatory": true } ] } ] }, { "format": "ZPL", "size": { "length": 6, "width": 4, "unit": "INCH" }, "printOptions": [ { "supportedDPIs": [ 300, 203 ], "supportedPageLayouts": [ "LEFT", "RIGHT" ], "supportedFileJoiningOptions": [ true, false ], "supportedDocumentDetails": [ { "name": "LABEL", "isMandatory": true } ] } ] } ], "availableValueAddedServiceGroups": [ { "groupId": "SIG_VERIFICATION", "groupDescription": "Signature Verification", "isRequired": true, "valueAddedServices": [ { "id": "CUST_SIG_VERIFICATION", "name": "Customer Signature Verification", "cost": { "unit": "USD", "value": 2 } } ] } ], "requiresAdditionalInputs": false, "rateItemList": [ { "rateItemCharge": { "unit": "INR", "value": "2.00000" }, "rateItemID": "BASE_RATE", "rateItemNameLocalization": "Base Rate", "rateItemType": "MANDATORY" }, { "rateItemCharge": { "unit": "INR", "value": "1.20000" }, "rateItemID": "DELIVERY_CONFIRMATION", "rateItemNameLocalization": "Delivery Confirmation", "rateItemType": "INCLUDED" }, { "rateItemCharge": { "unit": "INR", "value": "2.00" }, "rateItemID": "VAT", "rateItemNameLocalization": "VAT", "rateItemType": "MANDATORY" } ], "paymentType": "PAY_THROUGH_AMAZON", "benefits": { "includedBenefits": [], "excludedBenefits": [ { "benefit": "CLAIMS_PROTECTED", "reasonCodes": [ "LATE_DELIVERY_RISK" ] } ] } } ], "ineligibleRates": [ { "carrierId": "FOOSTDGRD", "serviceId": "FOO8420430", "carrierName": "FOOSTDGRD", "serviceName": "FOO8420430", "ineligibilityReasons": [ { "code": "NO_COVERAGE", "message": "Required shipping network coverage doesn't exist for the offering" } ] } ] } }, "headers": { "x-amzn-RateLimit-Limit": { "type": "string", "description": "Your rate limit (requests per second) for this operation." }, "x-amzn-RequestId": { "type": "string", "description": "Unique request reference identifier." } } }, "400": { "description": "Request has missing or invalid parameters and cannot be parsed.", "schema": { "$ref": "#/definitions/ErrorList" }, "examples": { "application/json": { "errors": [ { "code": "InvalidRequest", "message": "Request is missing or has invalid parameters", "details": "ChannelDetails object cannot be null" } ] } }, "headers": { "x-amzn-RateLimit-Limit": { "type": "string", "description": "Your rate limit (requests per second) for this operation." }, "x-amzn-RequestId": { "type": "string", "description": "Unique request reference identifier." } } }, "401": { "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", "schema": { "$ref": "#/definitions/ErrorList" }, "examples": { "application/json": { "errors": [ { "code": "Unauthorized", "message": "You don't have access to the requested response or the credentials are invalid." } ] } }, "headers": { "x-amzn-RequestId": { "type": "string", "description": "Unique request reference identifier." } } }, "403": { "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", "schema": { "$ref": "#/definitions/ErrorList" }, "examples": { "application/json": { "errors": [ { "code": "Unauthorized", "message": "You don't have access to the requested response or the credentials are invalid." } ] } }, "headers": { "x-amzn-RequestId": { "type": "string", "description": "Unique request reference identifier." } } }, "404": { "description": "The resource specified does not exist.", "schema": { "$ref": "#/definitions/ErrorList" }, "examples": { "application/json": { "errors": [ { "code": "NotFound", "message": "The requested resource is invalid or doesn't exist" } ] } }, "headers": { "x-amzn-RateLimit-Limit": { "type": "string", "description": "Your rate limit (requests per second) for this operation." }, "x-amzn-RequestId": { "type": "string", "description": "Unique request reference identifier." } } }, "413": { "description": "The request size exceeded the maximum accepted size.", "schema": { "$ref": "#/definitions/ErrorList" }, "examples": { "application/json": { "errors": [ { "code": "InvalidRequest", "message": "The request payload size is greater than maximum accepted size." } ] } }, "headers": { "x-amzn-RequestId": { "type": "string", "description": "Unique request reference identifier." } } }, "415": { "description": "The request payload is in an unsupported format.", "schema": { "$ref": "#/definitions/ErrorList" }, "examples": { "application/json": { "errors": [ { "code": "InvalidRequest", "message": "The request payload format is not supported." } ] } }, "headers": { "x-amzn-RequestId": { "type": "string", "description": "Unique request reference identifier." } } }, "429": { "description": "The frequency of requests was greater than allowed.", "schema": { "$ref": "#/definitions/ErrorList" }, "examples": { "application/json": { "errors": [ { "code": "TooManyRequests", "message": "The total number of requests exceeded your allowed limit." } ] } }, "headers": { "x-amzn-RequestId": { "type": "string", "description": "Unique request reference identifier." } } }, "500": { "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", "schema": { "$ref": "#/definitions/ErrorList" }, "examples": { "application/json": { "errors": [ { "code": "InternalError", "message": "Something went wrong while processing the request." } ] } }, "headers": { "x-amzn-RequestId": { "type": "string", "description": "Unique request reference identifier." } } }, "503": { "description": "Temporary overloading or maintenance of the server.", "schema": { "$ref": "#/definitions/ErrorList" }, "examples": { "application/json": { "errors": [ { "code": "ServiceUnavailable", "message": "Service temporarily unavailable or down for maintenance. Please try again after sometime." } ] } }, "headers": { "x-amzn-RequestId": { "type": "string", "description": "Unique request reference identifier." } } } }, "x-amzn-api-sandbox": { "dynamic": {} } }, "parameters": [] }, "/shipping/v2/shipments/directPurchase": { "post": { "tags": [ "shipping" ], "description": "Purchases the shipping service for a shipment using the best fit service offering. Returns purchase related details and documents.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 80 | 100 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).", "operationId": "directPurchaseShipment", "parameters": [ { "in": "body", "name": "body", "description": "DirectPurchaseRequest body", "required": true, "schema": { "$ref": "#/definitions/DirectPurchaseRequest" } }, { "name": "x-amzn-IdempotencyKey", "description": "A unique value which the server uses to recognize subsequent retries of the same request.", "in": "header", "required": false, "type": "string" }, { "name": "locale", "description": "The IETF Language Tag. Note that this only supports the primary language subtag with one secondary language subtag (i.e. en-US, fr-CA).\nThe secondary language subtag is almost always a regional designation.\nThis does not support additional subtags beyond the primary and secondary language subtags.\n", "in": "header", "required": false, "type": "string" }, { "name": "x-amzn-shipping-business-id", "in": "header", "description": "Amazon shipping business to assume for this request. The default is AmazonShipping_UK.", "required": false, "type": "string", "enum": [ "AmazonShipping_US", "AmazonShipping_IN", "AmazonShipping_UK", "AmazonShipping_UAE", "AmazonShipping_SA", "AmazonShipping_EG", "AmazonShipping_IT", "AmazonShipping_ES", "AmazonShipping_FR", "AmazonShipping_JP" ], "x-docgen-enum-table-extension": [ { "value": "AmazonShipping_US", "description": "The United States Amazon shipping business." }, { "value": "AmazonShipping_IN", "description": "The India Amazon shipping business." }, { "value": "AmazonShipping_UK", "description": "The United Kingdom Amazon shipping business." }, { "value": "AmazonShipping_UAE", "description": "The United Arab Emirates Amazon shipping business." }, { "value": "AmazonShipping_SA", "description": "The Saudi Arabia Amazon shipping business." }, { "value": "AmazonShipping_EG", "description": "The Egypt Amazon shipping business." }, { "value": "AmazonShipping_IT", "description": "The Italy Amazon shipping business." }, { "value": "AmazonShipping_ES", "description": "The Spain Amazon shipping business." }, { "value": "AmazonShipping_FR", "description": "The France Amazon shipping business." }, { "value": "AmazonShipping_JP", "description": "The Japan Amazon shipping business." } ] } ], "responses": { "200": { "description": "Success", "schema": { "$ref": "#/definitions/DirectPurchaseResponse" }, "examples": { "application/json": { "shipmentId": "445454-3232-3232", "packageDocumentDetailList": [ { "packageClientReferenceId": "ASUSDI-45343854", "trackingId": "T1234567", "packageDocuments": [ { "type": "LABEL", "format": "PNG", "contents": "iVBORw0KGgoAAAANSUhEUgAAAywAAATCCAMAAABouZLTAAAABlBMVEUAAAD///+l2Z/dAAAACXBIWXMAAB84AAAfOAGTPyf1AAAfLklEQVR42u3dCXajShZAQb2u2v+WX3+XNTBkMgkQoIhz+ndZlsCWucpEA0TcgCn+5y4AsYBYQCwgFhALiAUQC4gFxAJiAbGAWEAsgFhALCAWEAuIBcQCiAXEAmIBsYBYQCwgFkAsIBYQC4gFxAJiAbEAYgGxgFhALCAWEAsgFhALiAXEAmIBsYBYALGAWEAsIBYQC1zaX3fBeaW7YCVhZAHTMDANY4vpw6cninGGH9LIAqZhIBYQC4gFxAKIBcQCYgGxgFhALCAWQCwgFhALiAXEAmIB9vkM/s9nnGPuDTq3KFw0/4doLODt5SGWFft4bI358/85Z8OM/jEEnhflwm28s8xw0C0OEku8Nur0CL6rvDUeqCrXiCmjf94aS8qxha71w0f1Qbd2te4kofOgeLJpmBnPrqnct+0s3uc5XFhh8P1dSmz/mJe1X+aWnd8le9fJ3GMLO90OfoTuxh+Worj1ZdZaiQmL3fR+L/1ozz6j/th7v07scixbB9m7aDJZaCBuy7epjM0Tz0orE0ej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sIBZALCAWEAuIBcQCYgHEAmIBsYBYQCwgFhALIBYQC4gFxAJiAbEAYgGxgFhALCAWEAuIBRALiAXEAmIBsYBYQCyAWEAsIBYQC4gFxAKIBcQCYgGxgFhALCAWQCwgFhALiAXEAmIBsQBiAbGAWEAsIBYQCyAWEAuIBcQCYgGxgFgAsYBYQCwgFhALiAUQC4gFxAJiAbGAWEAsgFhALCAWEAuIBcQCYgHEAmIBsYBYQCwgFkAsIBYQC4gFxAJiAbEAYgGxgFhALCAWEAsgFhALiAXEAmIBsYBYALGAWEAsIBYQC4gFxAKIBcQCYgGxgFhALIBYQCwgFhALiAXEAmIByv4PwWms3AV97VoAAAAASUVORK5CYII=" } ] } ] } }, "headers": { "x-amzn-RateLimit-Limit": { "type": "string", "description": "Your rate limit (requests per second) for this operation." }, "x-amzn-RequestId": { "type": "string", "description": "Unique request reference identifier." }, "x-amzn-IdempotencyKey": { "type": "string", "description": "A unique value which the server uses to recognize subsequent retries of the same request." } } }, "400": { "description": "Request has missing or invalid parameters and cannot be parsed.", "schema": { "$ref": "#/definitions/ErrorList" }, "examples": { "application/json": { "errors": [ { "code": "InvalidRequest", "message": "Request is missing or has invalid parameters", "details": "ChannelDetails object cannot be null" } ] } }, "headers": { "x-amzn-RateLimit-Limit": { "type": "string", "description": "Your rate limit (requests per second) for this operation." }, "x-amzn-RequestId": { "type": "string", "description": "Unique request reference identifier." } } }, "401": { "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", "schema": { "$ref": "#/definitions/ErrorList" }, "examples": { "application/json": { "errors": [ { "code": "Unauthorized", "message": "You don't have access to the requested response or the credentials are invalid." } ] } }, "headers": { "x-amzn-RequestId": { "type": "string", "description": "Unique request reference identifier." } } }, "403": { "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", "schema": { "$ref": "#/definitions/ErrorList" }, "examples": { "application/json": { "errors": [ { "code": "Unauthorized", "message": "You don't have access to the requested response or the credentials are invalid." } ] } }, "headers": { "x-amzn-RequestId": { "type": "string", "description": "Unique request reference identifier." } } }, "404": { "description": "The resource specified does not exist.", "schema": { "$ref": "#/definitions/ErrorList" }, "examples": { "application/json": { "errors": [ { "code": "NotFound", "message": "The requested resource is invalid or doesn't exist" } ] } }, "headers": { "x-amzn-RateLimit-Limit": { "type": "string", "description": "Your rate limit (requests per second) for this operation." }, "x-amzn-RequestId": { "type": "string", "description": "Unique request reference identifier." } } }, "413": { "description": "The request size exceeded the maximum accepted size.", "schema": { "$ref": "#/definitions/ErrorList" }, "examples": { "application/json": { "errors": [ { "code": "InvalidRequest", "message": "The request payload size is greater than maximum accepted size." } ] } }, "headers": { "x-amzn-RequestId": { "type": "string", "description": "Unique request reference identifier." } } }, "415": { "description": "The request payload is in an unsupported format.", "schema": { "$ref": "#/definitions/ErrorList" }, "examples": { "application/json": { "errors": [ { "code": "InvalidRequest", "message": "The request payload format is not supported." } ] } }, "headers": { "x-amzn-RequestId": { "type": "string", "description": "Unique request reference identifier." } } }, "429": { "description": "The frequency of requests was greater than allowed.", "schema": { "$ref": "#/definitions/ErrorList" }, "examples": { "application/json": { "errors": [ { "code": "TooManyRequests", "message": "The total number of requests exceeded your allowed limit." } ] } }, "headers": { "x-amzn-RequestId": { "type": "string", "description": "Unique request reference identifier." } } }, "500": { "description": "An unexpected condition occurred that prevented the server from fulfilling the request.", "schema": { "$ref": "#/definitions/ErrorList" }, "examples": { "application/json": { "errors": [ { "code": "InternalError", "message": "Something went wrong while processing the request." } ] } }, "headers": { "x-amzn-RequestId": { "type": "string", "description": "Unique request reference identifier." } } }, "503": { "description": "Temporary overloading or maintenance of the server.", "schema": { "$ref": "#/definitions/ErrorList" }, "examples": { "application/json": { "errors": [ { "code": "ServiceUnavailable", "message": "Service temporarily unavailable or down for maintenance. Please try again after sometime." } ] } }, "headers": { "x-amzn-RequestId": { "type": "string", "description": "Unique request reference identifier." } } } }, "x-amzn-api-sandbox": { "dynamic": {} } }, "parameters": [] }, "/shipping/v2/shipments": { "post": { "tags": [ "shipping" ], "description": "Purchases a shipping service and returns purchase related details and documents.\n\nNote: You must complete the purchase within 10 minutes of rate creation by the shipping service provider. If you make the request after the 10 minutes have expired, you will receive an error response with the error code equal to \"TOKEN_EXPIRED\". If you receive this error response, you must get the rates for the shipment again.\n\n**Usage Plan:**\n\n| Rate (requests per second) | Burst |\n| ---- | ---- |\n| 80 | 100 |\n\nThe `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values then those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).", "operationId": "purchaseShipment", "parameters": [ { "in": "body", "name": "body", "description": "PurchaseShipmentRequest body", "required": true, "schema": { "$ref": "#/definitions/PurchaseShipmentRequest" } }, { "name": "x-amzn-IdempotencyKey", "description": "A unique value which the server uses to recognize subsequent retries of the same request.", "in": "header", "required": false, "type": "string" }, { "name": "x-amzn-shipping-business-id", "in": "header", "description": "Amazon shipping business to assume for this request. The default is AmazonShipping_UK.", "required": false, "type": "string", "enum": [ "AmazonShipping_US", "AmazonShipping_IN", "AmazonShipping_UK", "AmazonShipping_UAE", "AmazonShipping_SA", "AmazonShipping_EG", "AmazonShipping_IT", "AmazonShipping_ES", "AmazonShipping_FR", "AmazonShipping_JP" ], "x-docgen-enum-table-extension": [ { "value": "AmazonShipping_US", "description": "The United States Amazon shipping business." }, { "value": "AmazonShipping_IN", "description": "The India Amazon shipping business." }, { "value": "AmazonShipping_UK", "description": "The United Kingdom Amazon shipping business." }, { "value": "AmazonShipping_UAE", "description": "The United Arab Emirates Amazon shipping business." }, { "value": "AmazonShipping_SA", "description": "The Saudi Arabia Amazon shipping business." }, { "value": "AmazonShipping_EG", "description": "The Egypt Amazon shipping business." }, { "value": "AmazonShipping_IT", "description": "The Italy Amazon shipping business." }, { "value": "AmazonShipping_ES", "description": "The Spain Amazon shipping business." }, { "value": "AmazonShipping_FR", "description": "The France Amazon shipping business." }, { "value": "AmazonShipping_JP", "description": "The Japan Amazon shipping business." } ] } ], "responses": { "200": { "description": "Success.", "schema": { "$ref": "#/definitions/PurchaseShipmentResponse" }, "examples": { "application/json": { "shipmentId": "87852211788104", "packageDocumentDetails": [ { "packageClientReferenceId": "abcd", "packageDocuments": [ { "type": "LABEL", "format": "PNG", "contents": "sdioadaiosfhdodsaiufhouafhoudfhdouahfac==" } ], "trackingId": 1578648261977 } ], "promise": { "pickupWindow": { "start": "2019-12-11T07:09:05.513Z", "end": "2019-12-11T09:09:05.513Z" }, "deliveryWindow": { "start": "2019-12-13T07:09:05.513Z", "end": "2019-12-13T09:09:05.513Z" } }, "benefits": { "includedBenefits": [ "CLAIMS_PROTECTED" ], "excludedBenefits": [] } } }, "headers": { "x-amzn-RateLimit-Limit": { "type": "string", "description": "Your rate limit (requests per second) for this operation." }, "x-amzn-RequestId": { "type": "string", "description": "Unique request reference identifier." } } }, "400": { "description": "Request has missing or invalid parameters and cannot be parsed.", "schema": { "$ref": "#/definitions/ErrorList" }, "examples": { "application/json": { "errors": [ { "code": "InvalidRequest", "message": "Request is missing or has invalid parameters", "details": "RateId cannot be null" } ] } }, "headers": { "x-amzn-RateLimit-Limit": { "type": "string", "description": "Your rate limit (requests per second) for this operation." }, "x-amzn-RequestId": { "type": "string", "description": "Unique request reference identifier." } } }, "401": { "description": "The request's Authorization header is not formatted correctly or does not contain a valid token.", "schema": { "$ref": "#/definitions/ErrorList" }, "examples": { "application/json": { "errors": [ { "code": "Unauthorized", "message": "You don't have access to the requested response or the credentials are invalid." } ] } }, "headers": { "x-amzn-RequestId": { "type": "string", "description": "Unique request reference identifier." } } }, "403": { "description": "Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.", "schema": { "$ref": "#/definitions/ErrorList" }, "examples": { "application/json": { "errors": [ { "code": "Unauthorized", "message": "You don't have access to the requested response or the credentials are invalid."