Skip to content

[BUG] Invalid value 'INVOICE_ID' for 'item_related_identifier_name', must be one of 'ORDER_ADJUSTMENT_ITEM_ID', 'COUPON_ID', 'REMOVAL_SHIPMENT_ITEM_ID', 'TRANSACTION_ID' #438

@kaushik-tops

Description

@kaushik-tops

Environment
1.4

Describe the bug
When fetching transactions using list transactions API the SDK throws an error:
Invalid value 'INVOICE_ID' for 'item_related_identifier_name', must be one of
'ORDER_ADJUSTMENT_ITEM_ID', 'COUPON_ID', 'REMOVAL_SHIPMENT_ITEM_ID', 'TRANSACTION_ID'

To Reproduce
Steps to reproduce the behavior:

  1. Call listTransactions function from SpApi\Api\finances\v2024_06_19\DefaultApi
  2. SDK throws the above error of "Invalid value 'INVOICE_ID' for 'item_related_identifier_name', must be one of 'ORDER_ADJUSTMENT_ITEM_ID', 'COUPON_ID', 'REMOVAL_SHIPMENT_ITEM_ID', 'TRANSACTION_ID'"

Expected behavior
I made a call from Postman to fetch the transaction and it worked.

Additional context
After adding this constant and including it in getItemRelatedIdentifierNameAllowableValues(), the request works as expected.

public const ITEM_RELATED_IDENTIFIER_NAME_INVOICE_ID = 'INVOICE_ID';

also add this line to getItemRelatedIdentifierNameAllowableValues function

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions