selling-partner-api-models/schemas/notifications/ReportProcessingFinishedNot...

214 lines
7.5 KiB
JSON
Raw Normal View History

2022-06-28 02:00:07 +08:00
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "http://example.com/example.json",
"type": "object",
"description": "The root schema comprises the entire JSON document.",
"examples": [
{
"notificationVersion": "2020-09-04",
"notificationType": "REPORT_PROCESSING_FINISHED",
"payloadVersion": "2020-09-04",
"eventTime": "2020-07-14T03:35:13.214Z",
"payload": {
"reportProcessingFinishedNotification": {
"sellerId": "A3TH9S8BH6GOGM",
"reportId": "54517018502",
"reportType": "GET_FLAT_FILE_ACTIONABLE_ORDER_DATA",
"processingStatus": "CANCELLED",
"reportDocumentId": "amzn1.tortuga.3.edbcd0d8-3434-8222-1234-52ad8ade1208.REP4567URI9BMZ"
}
},
"notificationMetadata": {
"applicationId": "amzn1.sellerapps.app.aacccfff-4455-4b7c-4422-664ecacdd336",
"subscriptionId": "subscription-id-d0e9e693-c3ad-4373-979f-ed4ec98dd746",
"publishTime": "2020-07-13T19:42:04.284Z",
"notificationId": "d0e9e693-c3ad-4373-979f-ed4ec98dd746"
}
}
],
"required": [
"notificationVersion",
"notificationType",
"payloadVersion",
"eventTime",
"payload",
"notificationMetadata"
],
"properties": {
"notificationVersion": {
"$id": "#/properties/notificationVersion",
"type": "string",
"description": "An explanation about the purpose of this instance.",
"examples": [
"2020-09-04"
]
},
"notificationType": {
"$id": "#/properties/notificationType",
"type": "string",
"description": "An explanation about the purpose of this instance.",
"examples": [
"REPORT_PROCESSING_FINISHED"
]
},
"payloadVersion": {
"$id": "#/properties/payloadVersion",
"type": "string",
"description": "An explanation about the purpose of this instance.",
"examples": [
"2020-09-04"
]
},
"eventTime": {
"$id": "#/properties/eventTime",
"type": "string",
"description": "An explanation about the purpose of this instance.",
"examples": [
"2020-07-14T03:35:13.214Z"
]
},
"payload": {
"$id": "#/properties/payload",
"type": "object",
"description": "An explanation about the purpose of this instance.",
"examples": [
{
"reportProcessingFinishedNotification": {
"sellerId": "A3TH9S8BH6GOGM",
"reportId": "54517018502",
"reportType": "GET_FLAT_FILE_ACTIONABLE_ORDER_DATA",
"processingStatus": "CANCELLED",
"reportDocumentId": "amzn1.tortuga.3.edbcd0d8-3434-8222-1234-52ad8ade1208.REP4567URI9BMZ"
}
}
],
"required": [
"reportProcessingFinishedNotification"
],
"properties": {
"reportProcessingFinishedNotification": {
"$id": "#/properties/payload/properties/reportProcessingFinishedNotification",
"type": "object",
"description": "An explanation about the purpose of this instance.",
"examples": [
{
"sellerId": "A3TH9S8BH6GOGM",
"reportId": "54517018502",
"reportType": "GET_FLAT_FILE_ACTIONABLE_ORDER_DATA",
"processingStatus": "CANCELLED",
"reportDocumentId": "amzn1.tortuga.3.edbcd0d8-3434-8222-1234-52ad8ade1208.REP4567URI9BMZ"
}
],
"required": [
"sellerId",
"reportId",
"reportType",
"processingStatus"
],
"properties": {
"sellerId": {
"$id": "#/properties/payload/properties/reportProcessingFinishedNotification/properties/sellerId",
"type": "string",
"description": "An explanation about the purpose of this instance.",
"examples": [
"A3TH9S8BH6GOGM"
]
},
"reportId": {
"$id": "#/properties/payload/properties/reportProcessingFinishedNotification/properties/reportId",
"type": "string",
"description": "An explanation about the purpose of this instance.",
"examples": [
"54517018502"
]
},
"reportType": {
"$id": "#/properties/payload/properties/reportProcessingFinishedNotification/properties/reportType",
"type": "string",
"description": "An explanation about the purpose of this instance.",
"examples": [
"GET_FLAT_FILE_ACTIONABLE_ORDER_DATA"
]
},
"processingStatus": {
"$id": "#/properties/payload/properties/reportProcessingFinishedNotification/properties/processingStatus",
"type": "string",
"description": "An explanation about the purpose of this instance.",
"examples": [
"CANCELLED",
"DONE",
"FATAL"
],
"enum": [
"CANCELLED",
"DONE",
"FATAL"
]
},
"reportDocumentId": {
"$id": "#/properties/payload/properties/reportProcessingFinishedNotification/properties/reportDocumentId",
"type": "string",
"description": "An explanation about the purpose of this instance.",
"examples": [
"amzn1.tortuga.3.edbcd0d8-3434-8222-1234-52ad8ade1208.REP4567URI9BMZ"
]
}
}
}
}
},
"notificationMetadata": {
"$id": "#/properties/notificationMetadata",
"type": "object",
"description": "An explanation about the purpose of this instance.",
"examples": [
{
"applicationId": "amzn1.sellerapps.app.aacccfff-4455-4b7c-4422-664ecacdd336",
"subscriptionId": "subscription-id-d0e9e693-c3ad-4373-979f-ed4ec98dd746",
"publishTime": "2020-07-13T19:42:04.284Z",
"notificationId": "d0e9e693-c3ad-4373-979f-ed4ec98dd746"
}
],
"required": [
"applicationId",
"subscriptionId",
"publishTime",
"notificationId"
],
"properties": {
"applicationId": {
"$id": "#/properties/notificationMetadata/properties/applicationId",
"type": "string",
"description": "An explanation about the purpose of this instance.",
"examples": [
"amzn1.sellerapps.app.aacccfff-4455-4b7c-4422-664ecacdd336"
]
},
"subscriptionId": {
"$id": "#/properties/notificationMetadata/properties/subscriptionId",
"type": "string",
"description": "An explanation about the purpose of this instance.",
"examples": [
"subscription-id-d0e9e693-c3ad-4373-979f-ed4ec98dd746"
]
},
"publishTime": {
"$id": "#/properties/notificationMetadata/properties/publishTime",
"type": "string",
"description": "An explanation about the purpose of this instance.",
"examples": [
"2020-07-13T19:42:04.284Z"
]
},
"notificationId": {
"$id": "#/properties/notificationMetadata/properties/notificationId",
"type": "string",
"description": "An explanation about the purpose of this instance.",
"examples": [
"d0e9e693-c3ad-4373-979f-ed4ec98dd746"
]
}
}
}
}
}