HomeDocumentationCode SamplesAPI ReferenceAnnouncementsModelsRelease NotesFAQGitHubVideos
Developer HubAPI StatusSupport
Documentation
Developer HubAPI StatusSupport

Finances API v2024-06-19 Reference

Retrieve financial information for a selling business.

The Selling Partner API for Finances provides financial information relevant to a seller's business. You can obtain financial events for a given order or date range without having to wait until a statement period closes.

Version information

Version : 2024-06-19

Contact information

Contact : Selling Partner API Developer Support
Contact URL : https://sellercentral.amazon.com/gp/mws/contactus.html

License information

License : Apache License 2.0
License URL : http://www.apache.org/licenses/LICENSE-2.0

URI scheme

Host : sellingpartnerapi-na.amazon.com
Schemes : HTTPS

Consumes

  • application/json

Produces

  • application/json

Operations

listTransactions

Paths

GET /finances/2024-06-19/transactions

Operation: listTransactions

Description

Returns transactions for the given parameters. Orders from the last 48 hours might not be included in financial events.

Usage Plan:

Rate (requests per second)Burst
0.510

The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to Usage Plans and Rate Limits.

Parameters

TypeNameDescriptionSchema
QuerypostedAfter
required
The response includes financial events posted after (or on) this date. This date must be in ISO 8601 date-time format. The date-time must be more than two minutes before the time of the request.string (date-time)
QuerypostedBefore
optional
The response includes financial events posted before (but not on) this date. This date must be in ISO 8601 date-time format.

The date-time must be later than PostedAfter and more than two minutes before the request was submitted. If PostedAfter and PostedBefore are more than 180 days apart, the response is empty.

Default: Two minutes before the time of the request.
string (date-time)
QuerymarketplaceId
optional
The ID of the marketplace from which you want to retrieve transactions.string
QuerynextToken
optional
The response includes nextToken when the number of results exceeds the specified pageSize value. To get the next page of results, call the operation with this token and include the same arguments as the call that produced the token. To get a complete list, call this operation until nextToken is null. Note that this operation can return empty pages.string

Responses

HTTP CodeDescriptionSchema
200Success.
Headers :
x-amzn-RateLimit-Limit (string) : Your rate limit (requests per second) for this operation.
x-amzn-RequestId (string) : Unique request reference identifier.
ListTransactionsResponse

For error status codes, descriptions and schemas, see Error responses and schemas.

Error Responses and Schemas

This table contains HTTP status codes and associated information for error responses.

HTTP CodeDescriptionSchema
400Request has missing or invalid parameters and cannot be parsed.
Headers:
x-amzn-RateLimit-Limit (string):Your rate limit (requests per second) for this operation.
x-amzn-RequestId (string):Unique request reference identifier.
ErrorList
403Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.
Headers:
x-amzn-RequestId (string):Unique request reference identifier.
ErrorList
404The resource specified does not exist.
Headers:
x-amzn-RateLimit-Limit (string):Your rate limit (requests per second) for this operation.
x-amzn-RequestId (string):Unique request reference identifier.
ErrorList
413The request size exceeded the maximum accepted size.
Headers:
x-amzn-RequestId (string):Unique request reference identifier.
ErrorList
415The request payload is in an unsupported format.
Headers:
x-amzn-RequestId (string):Unique request reference identifier.
ErrorList
429The frequency of requests was greater than allowed.
Headers:
x-amzn-RequestId (string):Unique request reference identifier.
ErrorList
500An unexpected condition occurred that prevented the server from fulfilling the request.
Headers:
x-amzn-RequestId (string):Unique request reference identifier.
ErrorList
503Temporary overloading or maintenance of the server.
Headers:
x-amzn-RequestId (string):Unique request reference identifier.
ErrorList

Definitions

ListTransactionsResponse

The response schema for the listTransactions operation.

NameDescriptionSchema
nextToken
optional
The response includes nextToken when the number of results exceeds the specified pageSize value. To get the next page of results, call the operation with this token and include the same arguments as the call that produced the token. To get a complete list, call this operation until nextToken is null. Note that this operation can return empty pages.string
transactions
optional
A list of transactions within the specified time period.Transactions

Transactions

A list of transactions within the specified time period.

Type : < Transaction > array

Transaction

All the information related to a transaction.

NameDescriptionSchema
sellingPartnerMetadata
optional
Metadata that describes the seller.SellingPartnerMetadata
relatedIdentifiers
optional
Identifiers related to the transaction, such as order and shipment IDs.RelatedIdentifiers
transactionType
optional
The type of transaction.

Possible value: Shipment
string
transactionId
optional
The unique identifier of the transaction.string
transactionStatus
optional
The status of the transaction.

Possible values:

  • Deferred

  • Released
  • string
    description
    optional
    Describes the reasons for the transaction.

    Example: 'Order Payment', 'Refund Order'
    string
    postedDate
    optional
    The date and time when the transaction was posted.Date
    totalAmount
    optional
    The total amount of money in the transaction.Currency
    marketplaceDetails
    optional
    Information about the marketplace where the transaction occurred.MarketplaceDetails
    items
    optional
    Additional information about the items in the transaction.Items
    contexts
    optional
    Additional Information about the transaction.Contexts
    breakdowns
    optional
    A list of breakdowns that provide details on how the total amount is calculated for the transaction.Breakdowns

    BigDecimal

    A signed decimal number.

    Type : number

    Currency

    A currency type and amount.

    NameDescriptionSchema
    currencyCode
    optional
    The three-digit currency code in ISO 4217 format.string
    currencyAmount
    optional
    The monetary value.BigDecimal

    SellingPartnerMetadata

    Metadata that describes the seller.

    NameDescriptionSchema
    sellingPartnerId
    optional
    A unique seller identifier.string
    accountType
    optional
    The type of account in the transaction.string
    marketplaceId
    optional
    The identifier of the marketplace where the transaction occurred.string

    RelatedIdentifier

    Related business identifier of the transaction.

    NameDescriptionSchema
    relatedIdentifierName
    optional
    An enumerated set of related business identifier names.enum (RelatedIdentifierName)
    relatedIdentifierValue
    optional
    Corresponding value of RelatedIdentifierName.string

    RelatedIdentifiers

    Related business identifiers of the transaction.

    Type : < RelatedIdentifier > array

    Date

    A date in ISO 8601 date-time format.

    Type : string (date-time)

    MarketplaceDetails

    Information about the marketplace where the transaction occurred.

    NameDescriptionSchema
    marketplaceId
    optional
    The identifier of the marketplace where the transaction occured.string
    marketplaceName
    optional
    The name of the marketplace where the transaction occurred. For example: Amazon.com,Amazon.instring

    Items

    A list of items in the transaction.

    Type : < Item > array

    Item

    Additional information about the items in a transaction.

    NameDescriptionSchema
    description
    optional
    A description of the items in a transaction.string
    relatedIdentifiers
    optional
    Related business identifiers of the item.ItemRelatedIdentifiers
    totalAmount
    optional
    The total monetary amount of the item.Currency
    breakdowns
    optional
    A list of breakdowns that provide details on how the total amount is calculated for the transaction.Breakdowns
    contexts
    optional
    Additional Information about the item.Contexts

    ItemRelatedIdentifier

    Related business identifiers of the item.

    NameDescriptionSchema
    itemRelatedIdentifierName
    optional
    Enumerated set of related item identifier names for the item.enum (ItemRelatedIdentifierName)
    itemRelatedIdentifierValue
    optional
    Corresponding value to ItemRelatedIdentifierName.string

    ItemRelatedIdentifiers

    Related business identifiers of the item in the transaction.

    Type : < ItemRelatedIdentifier > array

    Breakdowns

    A list of breakdowns that provide details on how the total amount is calculated for the transaction.

    Type : < Breakdown > array

    Breakdown

    Details about the movement of money in the financial transaction. Breakdowns are further categorized into breakdown types, breakdown amounts, and further breakdowns.

    NameDescriptionSchema
    breakdownType
    optional
    The type of charge.string
    breakdownAmount
    optional
    The monetary amount of the charge.Currency
    breakdowns
    optional
    Further breakdowns of BreakdownType.Breakdown

    Contexts

    A list of additional information about the item.

    Type : < Context > array

    Context

    Additional Information about the item.

    Polymorphism : Composition

    NameDescriptionSchema
    contextType
    required
    -string
    storeName
    optional
    The name of the store that is related to the transaction.string
    orderType
    optional
    The transaction's order type.string
    channel
    optional
    Channel details of related transaction.string
    asin
    optional
    The Amazon Standard Identification Number (ASIN) of the item.string
    sku
    optional
    The Stock Keeping Unit (SKU) of the item.string
    quantityShipped
    optional
    The quantity of the item shipped.integer (int32)
    fulfillmentNetwork
    optional
    The fulfillment network of the item.string
    paymentType
    optional
    The type of payment.string
    paymentMethod
    optional
    The method of payment.string
    paymentReference
    optional
    The reference number of the payment.string
    paymentDate
    optional
    The date of the payment.Date
    deferralReason
    optional
    Deferral policy applied on the transaction.

    Examples: B2B,DD7
    string
    maturityDate
    optional
    The release date of the transaction.Date
    deferralStatus
    optional
    The status of the transaction. For example, HOLD,RELEASE.string
    startTime
    optional
    The start time of the transaction.Date
    endTime
    optional
    The end time of the transaction.Date

    ProductContext

    Additional information related to the product.

    NameDescriptionSchema
    asin
    optional
    The Amazon Standard Identification Number (ASIN) of the item.string
    sku
    optional
    The Stock Keeping Unit (SKU) of the item.string
    quantityShipped
    optional
    The quantity of the item shipped.integer (int32)
    fulfillmentNetwork
    optional
    The fulfillment network of the item.string

    AmazonPayContext

    Additional information related to Amazon Pay.

    NameDescriptionSchema
    storeName
    optional
    The name of the store that is related to the transaction.string
    orderType
    optional
    The transaction's order type.string
    channel
    optional
    Channel details of related transaction.string

    PaymentsContext

    Additional information related to payments-related transactions.

    NameDescriptionSchema
    paymentType
    optional
    The type of payment.string
    paymentMethod
    optional
    The method of payment.string
    paymentReference
    optional
    The reference number of the payment.string
    paymentDate
    optional
    The date of the payment.Date

    DeferredContext

    Additional information related to deferred transactions.

    NameDescriptionSchema
    deferralReason
    optional
    Deferral policy applied on the transaction.

    Examples: B2B,DD7
    string
    maturityDate
    optional
    The release date of the transaction.Date
    deferralStatus
    optional
    The status of the transaction. For example, HOLD,RELEASE.string

    TimeRangeContext

    Additional information that is related to the time range of the transaction.

    NameDescriptionSchema
    startTime
    optional
    The start time of the transaction.Date
    endTime
    optional
    The end time of the transaction.Date

    ErrorList

    A list of error responses returned when a request is unsuccessful.

    NameDescriptionSchema
    errors
    required
    The error responses that are returned when the request is unsuccessful.< Error > array

    Error

    An error response returned when the request is unsuccessful.

    NameDescriptionSchema
    code
    required
    An error code that identifies the type of error that occurred.string
    message
    required
    A message that describes the error condition.string
    details
    optional
    Additional details that can help the caller understand or fix the issue.string

    RelatedIdentifierName

    An enumerated set of related business identifier names.

    Type : enum

    ValueDescription
    ORDER_IDThe OrderId that is associated with the transaction.
    SHIPMENT_IDThe ShipmentId that is associated with the transaction.
    EVENT_GROUP_IDThe identifier that is associated with the transaction's financial event group.
    REFUND_IDThe RefundId that is associated with the transaction.
    INVOICE_IDThe InvoiceId that is associated with the transaction.
    DISBURSEMENT_IDThe disbursement ID for Amazon's bank transfer.
    TRANSFER_IDThe TransferId associated with the transaction.
    DEFERRED_TRANSACTION_IDThe transaction ID for the related deferred transaction

    ItemRelatedIdentifierName

    Enumerated set of related item identifier names for the item.

    Type : enum

    ValueDescription
    ORDER_ADJUSTMENT_ITEM_IDAn Amazon-defined order adjustment identifier defined for refunds, guarantee claims, and chargeback events.
    COUPON_IDAn identifier for a coupon that is applied to a transaction.
    REMOVAL_SHIPMENT_ITEM_IDAn identifier for an item in a removal shipment.
    TRANSACTION_IDThe transaction ID of the item.