> For the complete documentation index, see [llms.txt](https://docs.xorosoft.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.xorosoft.com/developers-api/third-party-logistics-3pl/create-rma.md).

# Create RMA

Creates a new RMA entry in the system associated with the provided 3PL account token.

| Name                             | Data Type               | Description                                                                                                                                                                                      |
| -------------------------------- | ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `AccountToken`                   | string                  | A unique authentication token generated specifically for a 3PL account. It is used as a parameter in API requests to authenticate and access resources related to the corresponding 3PL account. |
| `Id`                             | long                    | Unique identifier                                                                                                                                                                                |
| `RMANumber`                      | string                  | RMA number                                                                                                                                                                                       |
| `CreditId`                       | long                    | Credit ID                                                                                                                                                                                        |
| `InvoiceId`                      | long (nullable)         | Invoice ID (nullable)                                                                                                                                                                            |
| `InvoiceNumber`                  | string                  | Invoice number                                                                                                                                                                                   |
| `HeaderTypeId`                   | int (nullable)          | Header type ID (nullable)                                                                                                                                                                        |
| `TypeId`                         | int (nullable)          | Type ID (nullable)                                                                                                                                                                               |
| `ReturnTypeId`                   | int (nullable)          | Return type ID (nullable)                                                                                                                                                                        |
| `TypeName`                       | string                  | Type name                                                                                                                                                                                        |
| `TxnId`                          | string                  | Transaction ID                                                                                                                                                                                   |
| `TxnNumber`                      | long                    | Transaction number                                                                                                                                                                               |
| `StoreId`                        | int                     | Store ID                                                                                                                                                                                         |
| `StoreName`                      | string                  | Store name                                                                                                                                                                                       |
| `StoreCode`                      | string                  | Store code                                                                                                                                                                                       |
| `SaleStoreId`                    | int                     | Sale store ID                                                                                                                                                                                    |
| `SaleStoreName`                  | string                  | Sale store name                                                                                                                                                                                  |
| `CustomerId`                     | int                     | Customer ID                                                                                                                                                                                      |
| `CurrencyName`                   | string                  | Currency name                                                                                                                                                                                    |
| `AccntReceivableId`              | string                  | Receivable account ID                                                                                                                                                                            |
| `AccntReceivableName`            | string                  | Receivable account name                                                                                                                                                                          |
| `CustomerName`                   | string                  | Customer name                                                                                                                                                                                    |
| `TxnDate`                        | DateTime                | Transaction date                                                                                                                                                                                 |
| `OldTxnDate`                     | DateTime                | Old transaction date                                                                                                                                                                             |
| `CurrencyId`                     | int                     | Currency ID                                                                                                                                                                                      |
| `CurrencyCode`                   | string                  | Currency code                                                                                                                                                                                    |
| `CurrencySymbol`                 | string                  | Currency symbol                                                                                                                                                                                  |
| `StatusId`                       | int                     | Status ID                                                                                                                                                                                        |
| `StatusName`                     | string                  | Status name                                                                                                                                                                                      |
| `ExchangeRate`                   | double                  | Exchange rate                                                                                                                                                                                    |
| `RefNo`                          | string                  | Reference number                                                                                                                                                                                 |
| `Memo`                           | string                  | Memo                                                                                                                                                                                             |
| `Amount`                         | double                  | Amount                                                                                                                                                                                           |
| `AmountApplied`                  | double                  | Applied amount                                                                                                                                                                                   |
| `AmountRefunded`                 | double                  | Refunded amount                                                                                                                                                                                  |
| `AmountRemaining`                | double                  | Remaining amount                                                                                                                                                                                 |
| `CreateDttm`                     | DateTime                | Creation date and time                                                                                                                                                                           |
| `CreateSource`                   | string                  | Creation source                                                                                                                                                                                  |
| `ModifyDttm`                     | DateTime (nullable)     | Modification date and time (nullable)                                                                                                                                                            |
| `ModifySource`                   | string                  | Modification source                                                                                                                                                                              |
| `AmountToApply`                  | double                  | Amount to apply                                                                                                                                                                                  |
| `InvoiceShippingUsed`            | double (nullable)       | Used shipping amount (nullable)                                                                                                                                                                  |
| `ExpenseDiscountAccntId`         | string                  | Discount account ID                                                                                                                                                                              |
| `ExpenseDiscountAccntName`       | string                  | Discount account name                                                                                                                                                                            |
| `InvoiceDiscountUsed`            | double (nullable)       | Used discount amount (nullable)                                                                                                                                                                  |
| `ExpenseShippingAccntId`         | string                  | Shipping account ID                                                                                                                                                                              |
| `InvoiceShippingTermId`          | int (nullable)          | Shipping term ID (nullable)                                                                                                                                                                      |
| `InvoiceShippingTermName`        | string                  | Shipping term name                                                                                                                                                                               |
| `InvoiceShipMethodId`            | int (nullable)          | Shipping method ID (nullable)                                                                                                                                                                    |
| `InvoiceShipMethodName`          | string                  | Shipping method name                                                                                                                                                                             |
| `InvoiceShipTaxCodeId`           | int (nullable)          | Shipping tax code ID (nullable)                                                                                                                                                                  |
| `InvoiceShipTaxCodeName`         | string                  | Shipping tax code name                                                                                                                                                                           |
| `ExpenseShippingAccntName`       | string                  | Shipping account name                                                                                                                                                                            |
| `TaxSummaryDataText`             | string                  | Tax summary data text                                                                                                                                                                            |
| `OpeningBalanceFlag`             | bool                    | Opening balance flag                                                                                                                                                                             |
| `SysLockFlag`                    | bool                    | System lock flag                                                                                                                                                                                 |
| `UnPostTranFlag`                 | bool                    | Unposted transaction flag                                                                                                                                                                        |
| `CustomerEmailMain`              | string                  | Main customer email                                                                                                                                                                              |
| `CustomerMainPhone`              | string                  | Main customer phone number                                                                                                                                                                       |
| `CustomerCurrencyId`             | string                  | Customer currency ID                                                                                                                                                                             |
| `CustomerDefaultARId`            | string                  | Customer default AR ID                                                                                                                                                                           |
| `ImportError`                    | string                  | Import error message                                                                                                                                                                             |
| `BatchUploadFlag`                | bool                    | Batch upload flag                                                                                                                                                                                |
| `ASNCreatedFlag`                 | bool                    | ASN created flag                                                                                                                                                                                 |
| `ASNNumber`                      | string                  | ASN number                                                                                                                                                                                       |
| `ASNId`                          | long                    | ASN ID                                                                                                                                                                                           |
| `ShippingAddress`                | Address                 | Shipping address                                                                                                                                                                                 |
| `ProjectClassId`                 | int (nullable)          | Project class ID (nullable)                                                                                                                                                                      |
| `ProjectClassName`               | string                  | Project class name                                                                                                                                                                               |
| `ShippingCreditAmount`           | double                  | Shipping credit amount                                                                                                                                                                           |
| `ThirdPartyRefNo`                | string                  | Third party reference number                                                                                                                                                                     |
| `ThirdPartySource`               | string                  | Third party source                                                                                                                                                                               |
| `ThirdPartyDisplayName`          | string                  | Third party display name                                                                                                                                                                         |
| `CheckThirdPartySource`          | bool                    | Property, when set to true, checks if a third-party reference number exists with the same third-party source                                                                                     |
| `ThirdPartyIconUrl`              | string                  | Third party icon URL                                                                                                                                                                             |
| `ShippingTaxData`                | Tax.TaxData             | Shipping tax data                                                                                                                                                                                |
| `TotalQty`                       | double                  | Total quantity                                                                                                                                                                                   |
| `SubTotalExclDiscount`           | double                  | Subtotal excluding discount                                                                                                                                                                      |
| `DiscountAmount`                 | double                  | Discount amount                                                                                                                                                                                  |
| `SubTotal`                       | double                  | Subtotal                                                                                                                                                                                         |
| `ThirdPartyTotalRefundAmount`    | double                  | Third party total refund amount                                                                                                                                                                  |
| `ThirdPartyAdjustTotalFlag`      | bool                    | Third party adjust total flag                                                                                                                                                                    |
| `ThirdPartyAdjSku`               | string                  | Third party adjusted SKU                                                                                                                                                                         |
| `SalesRepId`                     | string                  | Sales representative ID                                                                                                                                                                          |
| `SalesRepFullName`               | string                  | Sales representative full name                                                                                                                                                                   |
| `CreditMemoId`                   | long (nullable)         | Credit memo ID (nullable)                                                                                                                                                                        |
| `CreditMemoNumber`               | string                  | Credit memo number                                                                                                                                                                               |
| `ShipToAddr`                     | string                  | Shipping address                                                                                                                                                                                 |
| `ShipToAddr2`                    | string                  | Shipping address line 2                                                                                                                                                                          |
| `ShipToCity`                     | string                  | Shipping city                                                                                                                                                                                    |
| `ShipToState`                    | string                  | Shipping state                                                                                                                                                                                   |
| `ShipToFirstName`                | string                  | Shipping recipient''s first name                                                                                                                                                                 |
| `ShipToCountry`                  | string                  | Shipping country                                                                                                                                                                                 |
| `ShipToLastName`                 | string                  | Shipping recipient''s last name                                                                                                                                                                  |
| `ShipToZpCode`                   | string                  | Shipping ZIP code                                                                                                                                                                                |
| `ShipToCompanyName`              | string                  | Shipping company name                                                                                                                                                                            |
| `ShipToPhoneNumber`              | string                  | Shipping recipient''s phone number                                                                                                                                                               |
| `ShipToEmail`                    | string                  | Shipping recipient''s email                                                                                                                                                                      |
| `UpdateEnable`                   | bool                    | Update enable flag                                                                                                                                                                               |
| `VoidAndCreate`                  | bool                    | Void and create flag                                                                                                                                                                             |
| `AutoApprove`                    | bool                    | Auto approve flag                                                                                                                                                                                |
| `AutoGenerateAsn`                | bool                    | Auto-generate ASN flag                                                                                                                                                                           |
| `QualityId`                      | int (nullable)          | Quality ID (nullable)                                                                                                                                                                            |
| `QualityName`                    | string                  | Quality name                                                                                                                                                                                     |
| `CustomerTypeId3PL`              | int (nullable)          | 3PL customer type ID (nullable)                                                                                                                                                                  |
| `AsnNotes`                       | string                  | ASN notes                                                                                                                                                                                        |
| `CustomFieldH1 - CustomFieldH50` | string                  | Custom Fields (CustomFieldH1 - CustomFieldH50)                                                                                                                                                   |
| `TxnId`                          | string                  | Transaction ID                                                                                                                                                                                   |
| `TxnNumber`                      | long                    | Transaction number                                                                                                                                                                               |
| `LineNumber`                     | int                     | Line number                                                                                                                                                                                      |
| `ItemTypeId`                     | int                     | Item type ID                                                                                                                                                                                     |
| `ItemTypeName`                   | string                  | Item type name                                                                                                                                                                                   |
| `ItemId`                         | long                    | Item ID                                                                                                                                                                                          |
| `ItemNumber`                     | string                  | Item number                                                                                                                                                                                      |
| `Description`                    | string                  | Description                                                                                                                                                                                      |
| `StatusId`                       | int                     | Status ID                                                                                                                                                                                        |
| `Qty`                            | double                  | Quantity                                                                                                                                                                                         |
| `UomId`                          | int                     | Unit of measure ID                                                                                                                                                                               |
| `UomName`                        | string                  | Unit of measure name                                                                                                                                                                             |
| `OldQty`                         | double                  | Old quantity                                                                                                                                                                                     |
| `QtyDecimalFlag`                 | bool                    | Quantity decimal flag                                                                                                                                                                            |
| `Discount`                       | double (nullable)       | Discount                                                                                                                                                                                         |
| `DiscountTypeId`                 | int (nullable)          | Discount type ID                                                                                                                                                                                 |
| `EffectiveUnitPrice`             | double (nullable)       | Effective unit price                                                                                                                                                                             |
| `Rate`                           | double                  | Rate                                                                                                                                                                                             |
| `Amount`                         | double                  | Amount                                                                                                                                                                                           |
| `TaxCodeId`                      | int (nullable)          | Tax code ID (nullable)                                                                                                                                                                           |
| `TaxCodeName`                    | string                  | Tax code name                                                                                                                                                                                    |
| `TaxAmount`                      | double                  | Tax amount                                                                                                                                                                                       |
| `CreateDttm`                     | DateTime                | Creation date and time                                                                                                                                                                           |
| `CreateSource`                   | string                  | Creation source                                                                                                                                                                                  |
| `ModifyDttm`                     | DateTime (nullable)     | Modification date and time (nullable)                                                                                                                                                            |
| `ModifySource`                   | string                  | Modification source                                                                                                                                                                              |
| `DeleteFlag`                     | bool                    | Delete flag                                                                                                                                                                                      |
| `EditState`                      | bool                    | Edit state flag                                                                                                                                                                                  |
| `InventoryLocChangeList`         | List                    | List of inventory location changes                                                                                                                                                               |
| `ReturnCodeId`                   | int (nullable)          | Return code ID (nullable)                                                                                                                                                                        |
| `ReturnCodeName`                 | string                  | Return code name                                                                                                                                                                                 |
| `ReturnNotes`                    | string                  | Return notes                                                                                                                                                                                     |
| `ProjectClassId`                 | int (nullable)          | Project class ID (nullable)                                                                                                                                                                      |
| `ProjectClassName`               | string                  | Project class name                                                                                                                                                                               |
| `TaxItems`                       | List\<Tax.OrderTaxItem> | List of tax items                                                                                                                                                                                |
| `ThirdPartyRefNo`                | string                  | Third party reference number                                                                                                                                                                     |
| `ThirdPartySource`               | string                  | Third party source                                                                                                                                                                               |
| `TaxData`                        | Tax.TaxData             | Tax data                                                                                                                                                                                         |
| `IsTaxableFlag`                  | bool                    | Taxable flag                                                                                                                                                                                     |
| `OpenFlag`                       | bool                    | Open flag                                                                                                                                                                                        |
| `QualityId`                      | int (nullable)          | Quality ID (nullable)                                                                                                                                                                            |
| `StatusName`                     | string                  | Status name                                                                                                                                                                                      |
| `QtyReceived`                    | double (nullable)       | Quantity received (nullable)                                                                                                                                                                     |
| `QtyRemaining`                   | double (nullable)       | Quantity remaining (nullable)                                                                                                                                                                    |
| `QtyAvailableToReceive`          | double (nullable)       | Quantity available to receive (nullable)                                                                                                                                                         |
| `IsReceivableFlag`               | bool                    | Receivable flag                                                                                                                                                                                  |
| `AsnItemId`                      | long (nullable)         | ASN item ID (nullable)                                                                                                                                                                           |
| `AsnId`                          | long (nullable)         | ASN ID (nullable)                                                                                                                                                                                |
| `AsnNumber`                      | string                  | ASN number                                                                                                                                                                                       |
| `AsnQtyReceived`                 | double (nullable)       | ASN quantity received (nullable)                                                                                                                                                                 |
| `AsnQtyRemaining`                | double (nullable)       | ASN quantity remaining (nullable)                                                                                                                                                                |
| `AsnQty`                         | double (nullable)       | ASN quantity (nullable)                                                                                                                                                                          |
| `CreateTranTypeId`               | int (nullable)          | Create transaction type ID (nullable)                                                                                                                                                            |
| `CreateTranTypeName`             | string                  | Create transaction type name                                                                                                                                                                     |
| `CreateTranNumber`               | string                  | Create transaction number                                                                                                                                                                        |
| `TotalReceivableQty`             | double (nullable)       | Total receivable quantity (nullable)                                                                                                                                                             |
| `ASNItemLineId`                  | long (nullable)         | ASN item line ID (nullable)                                                                                                                                                                      |
| `InvoiceShippingUsed`            | double (nullable)       | Used shipping amount (nullable)                                                                                                                                                                  |
| `InvoiceDiscountUsed`            | double (nullable)       | Used discount amount (nullable)                                                                                                                                                                  |
| `InvoiceDiscountAccntId`         | string                  | Discount account ID                                                                                                                                                                              |
| `InvoiceDiscountAccntName`       | string                  | Discount account name                                                                                                                                                                            |
| `InvoiceShippingTermId`          | int (nullable)          | Shipping term ID (nullable)                                                                                                                                                                      |
| `InvoiceShippingTermName`        | string                  | Shipping term name                                                                                                                                                                               |
| `InvoiceShipMethodId`            | int (nullable)          | Shipping method ID (nullable)                                                                                                                                                                    |
| `InvoiceShipMethodName`          | string                  | Shipping method name                                                                                                                                                                             |
| `InvoiceShipTaxCodeId`           | int (nullable)          | Shipping tax code ID (nullable)                                                                                                                                                                  |
| `InvoiceShipTaxCodeName`         | string                  | Shipping tax code name                                                                                                                                                                           |
| `ExpenseShippingAccntId`         | string                  | Shipping account ID                                                                                                                                                                              |
| `ExpenseShippingAccntName`       | string                  | Shipping account name                                                                                                                                                                            |
| `ExpenseDiscountAccntId`         | string                  | Discount account ID                                                                                                                                                                              |
| `ExpenseDiscountAccntName`       | string                  | Discount account name                                                                                                                                                                            |
| `InvoiceItemShipTaxCodeId`       | int (nullable)          | Shipping tax code ID for item line (nullable)                                                                                                                                                    |
| `InvoiceItemShipTaxCodeName`     | string                  | Shipping tax code name for item line                                                                                                                                                             |
| `AllocateFlag`                   | bool                    | Allocate flag                                                                                                                                                                                    |
| `OriginalQtyAllocated`           | double (nullable)       | Original quantity allocated (nullable)                                                                                                                                                           |
| `QtyAllocated`                   | double (nullable)       | Quantity allocated (nullable)                                                                                                                                                                    |
| `ExpireDate`                     | DateTime (nullable)     | Expiration date (nullable)                                                                                                                                                                       |
| `OrderLineId`                    | long (nullable)         | Order line ID (nullable)                                                                                                                                                                         |
| `OrderNo`                        | string                  | Order number                                                                                                                                                                                     |
| `OrderLineNo`                    | int (nullable)          | Order line number (nullable)                                                                                                                                                                     |
| `OrderItemId`                    | long (nullable)         | Order item ID (nullable)                                                                                                                                                                         |
| `OrderQty`                       | double (nullable)       | Order quantity (nullable)                                                                                                                                                                        |
| `ShipToAddr`                     | string                  | Shipping address                                                                                                                                                                                 |
| `ShipToAddr2`                    | string                  | Shipping address line 2                                                                                                                                                                          |
| `ShipToCity`                     | string                  | Shipping city                                                                                                                                                                                    |
| `ShipToState`                    | string                  | Shipping state                                                                                                                                                                                   |
| `ShipToFirstName`                | string                  | Shipping recipient''s first name                                                                                                                                                                 |
| `ShipToCountry`                  | string                  | Shipping country                                                                                                                                                                                 |
| `ShipToLastName`                 | string                  | Shipping recipient''s last name                                                                                                                                                                  |
| `ShipToZpCode`                   | string                  | Shipping ZIP code                                                                                                                                                                                |
| `ShipToCompanyName`              | string                  | Shipping company name                                                                                                                                                                            |
| `ShipToPhoneNumber`              | string                  | Shipping recipient''s phone number                                                                                                                                                               |
| `ShipToEmail`                    | string                  | Shipping recipient''s email                                                                                                                                                                      |
| `OrderItemId3PL`                 | string                  | 3PL order item ID                                                                                                                                                                                |
| `OrderLineId3PL`                 | string                  | 3PL order line ID                                                                                                                                                                                |
| `ItemWeight`                     | double (nullable)       | Item weight (nullable)                                                                                                                                                                           |
| `ItemVolume`                     | double (nullable)       | Item volume (nullable)                                                                                                                                                                           |
| `BatchUploadFlag`                | bool                    | Batch upload flag                                                                                                                                                                                |
| `ThirdPartyRefNo`                | string                  | Third party reference number                                                                                                                                                                     |
| `ThirdPartySource`               | string                  | Third party source                                                                                                                                                                               |
| `ThirdPartyDisplayName`          | string                  | Third party display name                                                                                                                                                                         |
| `ThirdPartyIconUrl`              | string                  | Third party icon URL                                                                                                                                                                             |
| `Item`                           | Item                    | Item details                                                                                                                                                                                     |
| `LotNo`                          | string                  | Lot number                                                                                                                                                                                       |
| `SerialNo`                       | string                  | Serial number                                                                                                                                                                                    |
| `IsSerialTracking`               | bool                    | Serial tracking flag                                                                                                                                                                             |
| `InventoryLocChangeList`         | List                    | List of inventory location changes                                                                                                                                                               |
| `Memo`                           | string                  | Memo                                                                                                                                                                                             |
| `OrderDiscountAmount`            | double (nullable)       | Order discount amount (nullable)                                                                                                                                                                 |
| `RmaItemGroupId`                 | int (nullable)          | RMA item group ID (nullable)                                                                                                                                                                     |
| `RmaItemGroupName`               | string                  | RMA item group name                                                                                                                                                                              |
| `CustomFieldD1 - CustomFieldD50` | string                  | Custom Fields (CustomFieldD1 - CustomFieldD50)                                                                                                                                                   |

```json
{"openapi":"3.0.3","info":{"title":"Xorosoft ERP Public API","version":"2026.07"},"tags":[{"name":"Third-Party Logistics (3PL)","description":"Use 3PL APIs when a warehouse or logistics provider needs account-specific access to customer orders, inventory, purchase orders, RMAs, bills, item receipts, packing slips, and related documents. 3PL requests use the 3PL account token generated in Xorosoft ERP so data access can be limited to the connected client account."}],"servers":[{"url":"https://res.xorosoft.io","description":"Xorosoft ERP API server"}],"security":[{"basic":[]}],"components":{"securitySchemes":{"basic":{"scheme":"basic","type":"http"}}},"paths":{"/api/xerp/account3pl/createrma":{"post":{"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"AccountToken":{"type":"string"},"rmaHeader":{"properties":{"ASNCreatedFlag":{"type":"boolean"},"ASNId":{"type":"number"},"ASNNumber":{"type":"string"},"AccntReceivableId":{"type":"string"},"AccntReceivableName":{"type":"string"},"Amount":{"type":"number"},"AmountApplied":{"type":"number"},"AmountRefunded":{"type":"number"},"AmountRemaining":{"type":"number"},"AmountToApply":{"type":"number"},"AuthorizationDetailList":{"type":"array","items":{"type":"object","additionalProperties":true},"nullable":true},"BatchUploadFlag":{"type":"boolean"},"CreateDttm":{"type":"string"},"CreateSource":{"type":"string"},"CreditId":{"type":"number"},"CreditMemoId":{"type":"number"},"CreditMemoNumber":{"type":"string"},"CurrencyCode":{"type":"string"},"CurrencyId":{"type":"number"},"CurrencyName":{"type":"string","nullable":true},"CurrencySymbol":{"type":"string"},"CustomFieldH1":{"type":"string","nullable":true},"CustomFieldH10":{"type":"string","nullable":true},"CustomFieldH11":{"type":"string","nullable":true},"CustomFieldH12":{"type":"string","nullable":true},"CustomFieldH13":{"type":"string","nullable":true},"CustomFieldH14":{"type":"string","nullable":true},"CustomFieldH15":{"type":"string","nullable":true},"CustomFieldH16":{"type":"string","nullable":true},"CustomFieldH17":{"type":"string","nullable":true},"CustomFieldH18":{"type":"string","nullable":true},"CustomFieldH19":{"type":"string","nullable":true},"CustomFieldH2":{"type":"string","nullable":true},"CustomFieldH20":{"type":"string","nullable":true},"CustomFieldH21":{"type":"string","nullable":true},"CustomFieldH22":{"type":"string","nullable":true},"CustomFieldH23":{"type":"string","nullable":true},"CustomFieldH24":{"type":"string","nullable":true},"CustomFieldH25":{"type":"string","nullable":true},"CustomFieldH26":{"type":"string","nullable":true},"CustomFieldH27":{"type":"string","nullable":true},"CustomFieldH28":{"type":"string","nullable":true},"CustomFieldH29":{"type":"string","nullable":true},"CustomFieldH3":{"type":"string","nullable":true},"CustomFieldH30":{"type":"string","nullable":true},"CustomFieldH31":{"type":"string","nullable":true},"CustomFieldH32":{"type":"string","nullable":true},"CustomFieldH33":{"type":"string","nullable":true},"CustomFieldH34":{"type":"string","nullable":true},"CustomFieldH35":{"type":"string","nullable":true},"CustomFieldH36":{"type":"string","nullable":true},"CustomFieldH37":{"type":"string","nullable":true},"CustomFieldH38":{"type":"string","nullable":true},"CustomFieldH39":{"type":"string","nullable":true},"CustomFieldH4":{"type":"string","nullable":true},"CustomFieldH40":{"type":"string","nullable":true},"CustomFieldH41":{"type":"string","nullable":true},"CustomFieldH42":{"type":"string","nullable":true},"CustomFieldH43":{"type":"string","nullable":true},"CustomFieldH44":{"type":"string","nullable":true},"CustomFieldH45":{"type":"string","nullable":true},"CustomFieldH46":{"type":"string","nullable":true},"CustomFieldH47":{"type":"string","nullable":true},"CustomFieldH48":{"type":"string","nullable":true},"CustomFieldH49":{"type":"string","nullable":true},"CustomFieldH5":{"type":"string","nullable":true},"CustomFieldH50":{"type":"string","nullable":true},"CustomFieldH6":{"type":"string","nullable":true},"CustomFieldH7":{"type":"string","nullable":true},"CustomFieldH8":{"type":"string","nullable":true},"CustomFieldH9":{"type":"string","nullable":true},"CustomerCurrencyId":{"type":"string"},"CustomerDefaultARId":{"type":"string"},"CustomerEmailMain":{"type":"string"},"CustomerId":{"type":"number"},"CustomerMainPhone":{"type":"string"},"CustomerName":{"type":"string"},"DiscountAmount":{"type":"number"},"ExchangeRate":{"type":"number"},"ExpenseDiscountAccntId":{"type":"string"},"ExpenseDiscountAccntName":{"type":"string","nullable":true},"ExpenseShippingAccntId":{"type":"string"},"ExpenseShippingAccntName":{"type":"string","nullable":true},"HeaderTypeId":{"type":"number"},"Id":{"type":"number"},"ImportError":{"type":"string","nullable":true},"InvoiceDiscountUsed":{"type":"number"},"InvoiceId":{"type":"number","nullable":true},"InvoiceNumber":{"type":"string"},"InvoiceShipMethodId":{"type":"number","nullable":true},"InvoiceShipMethodName":{"type":"string"},"InvoiceShipTaxCodeId":{"type":"number","nullable":true},"InvoiceShipTaxCodeName":{"type":"string"},"InvoiceShippingTermId":{"type":"number","nullable":true},"InvoiceShippingTermName":{"type":"string"},"InvoiceShippingUsed":{"type":"string","nullable":true},"Memo":{"type":"string"},"ModifyDttm":{"type":"string","nullable":true},"ModifySource":{"type":"string"},"OldTxnDate":{"type":"string"},"OpeningBalanceFlag":{"type":"boolean"},"ProjectClassId":{"type":"number","nullable":true},"ProjectClassName":{"type":"string"},"RMANumber":{"type":"string"},"RefNo":{"type":"string"},"ReportDataObj":{"properties":{"EntityAccntId":{"type":"string"},"EntityName":{"type":"string"},"ReportEntityId":{"type":"number"},"TxnRefId":{"type":"number"},"TxnRefNumber":{"type":"string"},"TxnTypeId":{"type":"number"},"linkedTxnRefId":{"type":"number","nullable":true}},"type":"object"},"ReturnTypeId":{"type":"number"},"SaleStoreId":{"type":"number"},"SaleStoreName":{"type":"string"},"SalesRepFullName":{"type":"string","nullable":true},"SalesRepId":{"type":"string"},"ShipToAddr":{"type":"string"},"ShipToAddr2":{"type":"string"},"ShipToCity":{"type":"string"},"ShipToCompanyName":{"type":"string"},"ShipToCountry":{"type":"string"},"ShipToEmail":{"type":"string"},"ShipToFirstName":{"type":"string"},"ShipToLastName":{"type":"string"},"ShipToPhoneNumber":{"type":"string"},"ShipToState":{"type":"string"},"ShipToZpCode":{"type":"string"},"ShippingAddress":{"properties":{"Addr":{"type":"string"},"Addr2":{"type":"string"},"AddressId":{"type":"number"},"AddressInstructionId":{"type":"number"},"AddressTypeId":{"type":"number"},"AddressTypeName":{"type":"string"},"AddressVerificationError":{"type":"string","nullable":true},"AddressVerificationWarning":{"type":"string","nullable":true},"City":{"type":"string"},"Company":{"type":"string","nullable":true},"CompanyName":{"type":"string"},"Country":{"type":"string"},"CountryCode":{"type":"string","nullable":true},"CustomerId":{"type":"number","nullable":true},"CustomerName":{"type":"string","nullable":true},"DefaultFlag":{"type":"boolean"},"DeleteFlag":{"type":"boolean"},"EditState":{"type":"boolean"},"Email":{"type":"string"},"FirstName":{"type":"string"},"Id":{"type":"number"},"ImportError":{"type":"string","nullable":true},"IntAccountId":{"type":"string"},"IsUpdateDefaultBillToAddr":{"type":"boolean"},"IsUpdateDefaultShipToAddr":{"type":"boolean"},"LastName":{"type":"string"},"Name":{"type":"string"},"Phone":{"type":"string","nullable":true},"PhoneNumber":{"type":"string"},"PostalZipCode":{"type":"string"},"ResidentialFlag":{"type":"boolean"},"ShippingAccountNumber":{"type":"string"},"State":{"type":"string"},"StateCode":{"type":"string","nullable":true}},"type":"object"},"ShippingTaxData":{"properties":{"taxItems":{"items":{},"type":"array"},"totalAmount":{"type":"number"}},"type":"object"},"StatusId":{"type":"number"},"StatusName":{"type":"string"},"StoreCode":{"type":"string","nullable":true},"StoreId":{"type":"number"},"StoreName":{"type":"string"},"SubTotal":{"type":"number"},"SubTotalExclDiscount":{"type":"number"},"SysLockFlag":{"type":"boolean"},"TaxSummaryDataText":{"type":"string","nullable":true},"ThirdPartyAdjSku":{"type":"string","nullable":true},"ThirdPartyAdjustTotalFlag":{"type":"boolean"},"ThirdPartyDisplayName":{"type":"string"},"ThirdPartyIconUrl":{"type":"string"},"ThirdPartyRefNo":{"type":"string"},"ThirdPartySource":{"type":"string"},"ThirdPartyTotalRefundAmount":{"type":"number"},"TotalQty":{"type":"number"},"TxnDate":{"type":"string"},"TxnId":{"type":"string"},"TxnNumber":{"type":"number"},"TypeId":{"type":"number"},"TypeName":{"type":"string"},"UnPostTranFlag":{"type":"boolean"},"ValidUntilDate":{"type":"string"}},"type":"object"},"rmaItemLineArry":{"items":{"properties":{"AllowedSellUOMList":{"type":"boolean","nullable":true},"Amount":{"type":"number"},"AuthorizationDetailList":{"type":"array","items":{"type":"object","additionalProperties":true},"nullable":true},"BaseUomId":{"type":"number"},"CreateDttm":{"type":"string"},"CreateSource":{"type":"string","nullable":true},"CustomFieldD1":{"type":"string"},"CustomFieldD10":{"type":"string"},"CustomFieldD11":{"type":"string"},"CustomFieldD12":{"type":"string"},"CustomFieldD13":{"type":"string"},"CustomFieldD14":{"type":"string"},"CustomFieldD15":{"type":"string"},"CustomFieldD16":{"type":"string"},"CustomFieldD17":{"type":"string"},"CustomFieldD18":{"type":"string"},"CustomFieldD19":{"type":"string"},"CustomFieldD2":{"type":"string"},"CustomFieldD20":{"type":"string"},"CustomFieldD21":{"type":"string"},"CustomFieldD22":{"type":"string"},"CustomFieldD23":{"type":"string"},"CustomFieldD24":{"type":"string"},"CustomFieldD25":{"type":"string"},"CustomFieldD26":{"type":"string"},"CustomFieldD27":{"type":"string"},"CustomFieldD28":{"type":"string"},"CustomFieldD29":{"type":"string"},"CustomFieldD3":{"type":"string"},"CustomFieldD30":{"type":"string"},"CustomFieldD31":{"type":"string"},"CustomFieldD32":{"type":"string"},"CustomFieldD33":{"type":"string"},"CustomFieldD34":{"type":"string"},"CustomFieldD35":{"type":"string"},"CustomFieldD36":{"type":"string"},"CustomFieldD37":{"type":"string"},"CustomFieldD38":{"type":"string"},"CustomFieldD39":{"type":"string"},"CustomFieldD4":{"type":"string"},"CustomFieldD40":{"type":"string"},"CustomFieldD41":{"type":"string"},"CustomFieldD42":{"type":"string"},"CustomFieldD43":{"type":"string"},"CustomFieldD44":{"type":"string"},"CustomFieldD45":{"type":"string"},"CustomFieldD46":{"type":"string"},"CustomFieldD47":{"type":"string"},"CustomFieldD48":{"type":"string"},"CustomFieldD49":{"type":"string"},"CustomFieldD5":{"type":"string"},"CustomFieldD50":{"type":"string"},"CustomFieldD6":{"type":"string"},"CustomFieldD7":{"type":"string"},"CustomFieldD8":{"type":"string"},"CustomFieldD9":{"type":"string"},"DeleteFlag":{"type":"boolean"},"Description":{"type":"string"},"Discount":{"type":"number"},"DiscountTypeId":{"type":"number"},"EditState":{"type":"boolean"},"EffectiveUnitPrice":{"type":"number"},"Id":{"type":"number"},"InventoryLocChangeList":{"type":"array","items":{"type":"object","additionalProperties":true},"nullable":true},"InvoiceLineId":{"type":"number"},"IsReceivableFlag":{"type":"boolean"},"IsTaxableFlag":{"type":"boolean"},"ItemId":{"type":"number"},"ItemNumber":{"type":"string"},"ItemTypeId":{"type":"number"},"ItemTypeName":{"type":"string"},"ItemUpc":{"type":"string","nullable":true},"LineNumber":{"type":"number"},"ModifyDttm":{"type":"string","nullable":true},"ModifySource":{"type":"string","nullable":true},"OldQty":{"type":"number"},"OpenFlag":{"type":"boolean"},"ProjectClassId":{"type":"number","nullable":true},"ProjectClassName":{"type":"string"},"Qty":{"type":"number"},"QtyAvailableToReceive":{"type":"string","nullable":true},"QtyDecimalFlag":{"type":"boolean"},"QtyInReceiving":{"type":"number"},"QtyOpenAsn":{"type":"string","nullable":true},"QtyReceived":{"type":"string","nullable":true},"QtyRemaining":{"type":"number"},"RMAId":{"type":"number"},"Rate":{"type":"number"},"ReturnCodeId":{"type":"number"},"ReturnCodeName":{"type":"string"},"ReturnNotes":{"type":"string"},"RmaNumber":{"type":"number","nullable":true},"StatusId":{"type":"number"},"StatusName":{"type":"string","nullable":true},"StoreId":{"type":"number","nullable":true},"StoreName":{"type":"string","nullable":true},"TaxAmount":{"type":"number"},"TaxCodeId":{"type":"number"},"TaxCodeName":{"type":"string"},"TaxData":{"properties":{"taxItems":{"items":{"properties":{"itemAmount":{"type":"number"},"itemId":{"type":"number"},"itemName":{"type":"string"},"itemRatePerc":{"type":"number"},"lineAmount":{"type":"number"}},"type":"object"},"type":"array"},"totalAmount":{"type":"number"}},"type":"object"},"TaxItems":{"items":{"properties":{"Id":{"type":"number"},"Name":{"type":"string"},"Rate":{"type":"number"},"RateType":{"type":"string"},"TotalAmount":{"type":"number"}},"type":"object"},"type":"array"},"ThirdPartyRefNo":{"type":"string"},"ThirdPartySource":{"type":"string"},"TxnId":{"type":"number","nullable":true},"TxnNumber":{"type":"number"},"UomFactor":{"type":"number"},"UomId":{"type":"number"},"UomName":{"type":"string"},"VASDiscountableFlag":{"type":"boolean"},"VASItemCost":{"type":"number","nullable":true},"VASItemCostTotal":{"type":"number","nullable":true},"VASItemId":{"type":"number","nullable":true},"VASItemName":{"type":"string","nullable":true},"VASTaxableFlag":{"type":"boolean"},"ValidUntilDate":{"type":"string"}},"type":"object"},"type":"array"}},"type":"object"}}},"description":"OK","headers":{}}},"tags":["Third-Party Logistics (3PL)"],"description":"Creates a new RMA entry in the system associated with the provided 3PL account token.\nName               |Data Type          |Description\n-------------------|-------------------|-------------------\n``AccountToken``|string|A unique authentication token generated specifically for a 3PL account. It is used as a parameter in API requests to authenticate and access resources related to the corresponding 3PL account.\n| `Id` | long      | Unique identifier     |\n| `RMANumber` | string | RMA number |\n| `CreditId` | long | Credit ID |\n| `InvoiceId` | long (nullable) | Invoice ID (nullable) |\n| `InvoiceNumber` | string | Invoice number |\n| `HeaderTypeId` | int (nullable) | Header type ID (nullable) |\n| `TypeId` | int (nullable) | Type ID (nullable) |\n| `ReturnTypeId` | int (nullable) | Return type ID (nullable) |\n| `TypeName` | string | Type name |\n| `TxnId` | string | Transaction ID |\n| `TxnNumber` | long | Transaction number |\n| `StoreId` | int | Store ID |\n| `StoreName` | string | Store name |\n| `StoreCode` | string | Store code |\n| `SaleStoreId` | int | Sale store ID |\n| `SaleStoreName` | string | Sale store name |\n| `CustomerId` | int | Customer ID |\n| `CurrencyName` | string | Currency name |\n| `AccntReceivableId` | string | Receivable account ID |\n| `AccntReceivableName` | string | Receivable account name |\n| `CustomerName` | string | Customer name |\n| `TxnDate` | DateTime | Transaction date |\n| `OldTxnDate` | DateTime | Old transaction date |\n| `CurrencyId` | int | Currency ID |\n| `CurrencyCode` | string | Currency code |\n| `CurrencySymbol` | string | Currency symbol |\n| `StatusId` | int | Status ID |\n| `StatusName` | string | Status name |\n| `ExchangeRate` | double | Exchange rate |\n| `RefNo` | string | Reference number |\n| `Memo` | string | Memo |\n| `Amount` | double | Amount |\n| `AmountApplied` | double | Applied amount |\n| `AmountRefunded` | double | Refunded amount |\n| `AmountRemaining` | double | Remaining amount |\n| `CreateDttm` | DateTime | Creation date and time |\n| `CreateSource` | string | Creation source |\n| `ModifyDttm` | DateTime (nullable) | Modification date and time (nullable) |\n| `ModifySource` | string | Modification source |\n| `AmountToApply` | double | Amount to apply |\n| `InvoiceShippingUsed` | double (nullable) | Used shipping amount (nullable) |\n| `ExpenseDiscountAccntId` | string | Discount account ID |\n| `ExpenseDiscountAccntName` | string | Discount account name |\n| `InvoiceDiscountUsed` | double (nullable) | Used discount amount (nullable) |\n| `ExpenseShippingAccntId` | string | Shipping account ID |\n| `InvoiceShippingTermId` | int (nullable) | Shipping term ID (nullable) |\n| `InvoiceShippingTermName` | string | Shipping term name |\n| `InvoiceShipMethodId` | int (nullable) | Shipping method ID (nullable) |\n| `InvoiceShipMethodName` | string | Shipping method name |\n| `InvoiceShipTaxCodeId` | int (nullable) | Shipping tax code ID (nullable) |\n| `InvoiceShipTaxCodeName` | string | Shipping tax code name |\n| `ExpenseShippingAccntName` | string | Shipping account name |\n| `TaxSummaryDataText` | string | Tax summary data text |\n| `OpeningBalanceFlag` | bool | Opening balance flag |\n| `SysLockFlag` | bool | System lock flag |\n| `UnPostTranFlag` | bool | Unposted transaction flag |\n| `CustomerEmailMain` | string | Main customer email |\n| `CustomerMainPhone` | string | Main customer phone number |\n| `CustomerCurrencyId` | string | Customer currency ID |\n| `CustomerDefaultARId` | string | Customer default AR ID |\n| `ImportError` | string | Import error message |\n| `BatchUploadFlag` | bool | Batch upload flag |\n| `ASNCreatedFlag` | bool | ASN created flag |\n| `ASNNumber` | string | ASN number |\n| `ASNId` | long | ASN ID |\n| `ShippingAddress` | Address | Shipping address |\n| `ProjectClassId` | int (nullable) | Project class ID (nullable) |\n| `ProjectClassName` | string | Project class name |\n| `ShippingCreditAmount` | double | Shipping credit amount |\n| `ThirdPartyRefNo` | string | Third party reference number |\n| `ThirdPartySource` | string | Third party source |\n| `ThirdPartyDisplayName` | string | Third party display name |\n| `CheckThirdPartySource` | bool | Property, when set to true, checks if a third-party reference number exists with the same third-party source |\n| `ThirdPartyIconUrl` | string | Third party icon URL |\n| `ShippingTaxData` | Tax.TaxData | Shipping tax data |\n| `TotalQty` | double | Total quantity |\n| `SubTotalExclDiscount` | double | Subtotal excluding discount |\n| `DiscountAmount` | double | Discount amount |\n| `SubTotal` | double | Subtotal |\n| `ThirdPartyTotalRefundAmount` | double | Third party total refund amount |\n| `ThirdPartyAdjustTotalFlag` | bool | Third party adjust total flag |\n| `ThirdPartyAdjSku` | string | Third party adjusted SKU |\n| `SalesRepId` | string | Sales representative ID |\n| `SalesRepFullName` | string | Sales representative full name |\n| `CreditMemoId` | long (nullable) | Credit memo ID (nullable) |\n| `CreditMemoNumber` | string | Credit memo number |\n| `ShipToAddr` | string | Shipping address |\n| `ShipToAddr2` | string | Shipping address line 2 |\n| `ShipToCity` | string | Shipping city |\n| `ShipToState` | string | Shipping state |\n| `ShipToFirstName` | string | Shipping recipient''s first name |\n| `ShipToCountry` | string | Shipping country |\n| `ShipToLastName` | string | Shipping recipient''s last name |\n| `ShipToZpCode` | string | Shipping ZIP code |\n| `ShipToCompanyName` | string | Shipping company name |\n| `ShipToPhoneNumber` | string | Shipping recipient''s phone number |\n| `ShipToEmail` | string | Shipping recipient''s email |\n| `UpdateEnable` | bool | Update enable flag |\n| `VoidAndCreate` | bool | Void and create flag |\n| `AutoApprove` | bool | Auto approve flag |\n| `AutoGenerateAsn` | bool | Auto-generate ASN flag |\n| `QualityId` | int (nullable) | Quality ID (nullable) |\n| `QualityName` | string | Quality name |\n| `CustomerTypeId3PL` | int (nullable) | 3PL customer type ID (nullable) |\n| `AsnNotes` | string | ASN notes |\n| `CustomFieldH1 - CustomFieldH50` | string | Custom Fields (CustomFieldH1 - CustomFieldH50) |\n| `TxnId`                       | string        | Transaction ID                                         |\n| `TxnNumber`                   | long          | Transaction number                                     |\n| `LineNumber`                  | int           | Line number                                            |\n| `ItemTypeId`                  | int           | Item type ID                                           |\n| `ItemTypeName`                | string        | Item type name                                         |\n| `ItemId`                      | long          | Item ID                                                |\n| `ItemNumber`                  | string        | Item number                                            |\n| `Description`                 | string        | Description                                            |\n| `StatusId`                    | int           | Status ID                                              |\n| `Qty`                         | double        | Quantity                                               |\n| `UomId`                       | int           | Unit of measure ID                                     |\n| `UomName`                     | string        | Unit of measure name                                   |\n| `OldQty`                      | double        | Old quantity                                           |\n| `QtyDecimalFlag`              | bool          | Quantity decimal flag                                  |\n| `Discount`                    | double (nullable)       | Discount                                               |\n| `DiscountTypeId`              | int (nullable)          | Discount type ID                                       |\n| `EffectiveUnitPrice`          | double (nullable)       | Effective unit price                                   |\n| `Rate`                        | double        | Rate                                                   |\n| `Amount`                      | double        | Amount                                                 |\n| `TaxCodeId`                   | int (nullable)          | Tax code ID (nullable)                                 |\n| `TaxCodeName`                 | string        | Tax code name                                          |\n| `TaxAmount`                   | double        | Tax amount                                             |\n| `CreateDttm`                  | DateTime      | Creation date and time                                 |\n| `CreateSource`                | string        | Creation source                                        |\n| `ModifyDttm`                  | DateTime (nullable)     | Modification date and time (nullable)                  |\n| `ModifySource`                | string        | Modification source                                    |\n| `DeleteFlag`                  | bool          | Delete flag                                            |\n| `EditState`                   | bool          | Edit state flag                                        |\n| `InventoryLocChangeList`      | List<InventoryLocationChange> | List of inventory location changes           |\n| `ReturnCodeId`                | int (nullable)          | Return code ID (nullable)                              |\n| `ReturnCodeName`              | string        | Return code name                                       |\n| `ReturnNotes`                 | string        | Return notes                                           |\n| `ProjectClassId`              | int (nullable)          | Project class ID (nullable)                            |\n| `ProjectClassName`            | string        | Project class name                                     |\n| `TaxItems`                    | List<Tax.OrderTaxItem> | List of tax items                                  |\n| `ThirdPartyRefNo`             | string        | Third party reference number                           |\n| `ThirdPartySource`            | string        | Third party source                                     |\n| `TaxData`                     | Tax.TaxData   | Tax data                                               |\n| `IsTaxableFlag`               | bool          | Taxable flag                                           |\n| `OpenFlag`                    | bool          | Open flag                                              |\n| `QualityId`                   | int (nullable)          | Quality ID (nullable)                                  |\n| `StatusName`                  | string        | Status name                                            |\n| `QtyReceived`                 | double (nullable)       | Quantity received (nullable)                           |\n| `QtyRemaining`                | double (nullable)       | Quantity remaining (nullable)                          |\n| `QtyAvailableToReceive`       | double (nullable)       | Quantity available to receive (nullable)               |\n| `IsReceivableFlag`            | bool          | Receivable flag                                        |\n| `AsnItemId`                   | long (nullable)         | ASN item ID (nullable)                                 |\n| `AsnId`                       | long (nullable)         | ASN ID (nullable)                                      |\n| `AsnNumber`                   | string        | ASN number                                             |\n| `AsnQtyReceived`              | double (nullable)       | ASN quantity received (nullable)                       |\n| `AsnQtyRemaining`             | double (nullable)       | ASN quantity remaining (nullable)                      |\n| `AsnQty`                      | double (nullable)       | ASN quantity (nullable)                                |\n| `CreateTranTypeId`            | int (nullable)          | Create transaction type ID (nullable)                  |\n| `CreateTranTypeName`          | string        | Create transaction type name                           |\n| `CreateTranNumber`            | string        | Create transaction number                              |\n| `TotalReceivableQty`          | double (nullable)       | Total receivable quantity (nullable)                   |\n| `ASNItemLineId`               | long (nullable)         | ASN item line ID (nullable)                            |\n| `InvoiceShippingUsed`         | double (nullable)       | Used shipping amount (nullable)                        |\n| `InvoiceDiscountUsed`         | double (nullable)       | Used discount amount (nullable)                        |\n| `InvoiceDiscountAccntId`      | string        | Discount account ID                                    |\n| `InvoiceDiscountAccntName`    | string        | Discount account name                                  |\n| `InvoiceShippingTermId`       | int (nullable)          | Shipping term ID (nullable)                            |\n| `InvoiceShippingTermName`     | string        | Shipping term name                                     |\n| `InvoiceShipMethodId`         | int (nullable)          | Shipping method ID (nullable)                          |\n| `InvoiceShipMethodName`       | string        | Shipping method name                                   |\n| `InvoiceShipTaxCodeId`        | int (nullable)          | Shipping tax code ID (nullable)                        |\n| `InvoiceShipTaxCodeName`      | string        | Shipping tax code name                                 |\n| `ExpenseShippingAccntId`      | string        | Shipping account ID                                    |\n| `ExpenseShippingAccntName`    | string        | Shipping account name                                  |\n| `ExpenseDiscountAccntId`      | string        | Discount account ID                                    |\n| `ExpenseDiscountAccntName`    | string        | Discount account name                                  |\n| `InvoiceItemShipTaxCodeId`    | int (nullable)          | Shipping tax code ID for item line (nullable)          |\n| `InvoiceItemShipTaxCodeName`  | string        | Shipping tax code name for item line                   |\n| `AllocateFlag`                | bool          | Allocate flag                                          |\n| `OriginalQtyAllocated`        | double (nullable)       | Original quantity allocated (nullable)                 |\n| `QtyAllocated`                | double (nullable)       | Quantity allocated (nullable)                          |\n| `ExpireDate`                  | DateTime (nullable)     | Expiration date (nullable)                             |\n| `OrderLineId`                 | long (nullable)         | Order line ID (nullable)                               |\n| `OrderNo`                     | string        | Order number                                           |\n| `OrderLineNo`                 | int (nullable)          | Order line number (nullable)                           |\n| `OrderItemId`                 | long (nullable)         | Order item ID (nullable)                               |\n| `OrderQty`                    | double (nullable)       | Order quantity (nullable)                              |\n| `ShipToAddr`                  | string        | Shipping address                                       |\n| `ShipToAddr2`                 | string        | Shipping address line 2                                |\n| `ShipToCity`                  | string        | Shipping city                                          |\n| `ShipToState`                 | string        | Shipping state                                         |\n| `ShipToFirstName`             | string        | Shipping recipient''s first name                        |\n| `ShipToCountry`               | string        | Shipping country                                       |\n| `ShipToLastName`              | string        | Shipping recipient''s last name                         |\n| `ShipToZpCode`                | string        | Shipping ZIP code                                      |\n| `ShipToCompanyName`           | string        | Shipping company name                                  |\n| `ShipToPhoneNumber`           | string        | Shipping recipient''s phone number                      |\n| `ShipToEmail`                 | string        | Shipping recipient''s email                             |\n| `OrderItemId3PL`              | string        | 3PL order item ID                                      |\n| `OrderLineId3PL`              | string        | 3PL order line ID                                      |\n| `ItemWeight`                  | double (nullable)       | Item weight (nullable)                                 |\n| `ItemVolume`                  | double (nullable)       | Item volume (nullable)                                 |\n| `BatchUploadFlag`             | bool          | Batch upload flag                                      |\n| `ThirdPartyRefNo`             | string        | Third party reference number                           |\n| `ThirdPartySource`            | string        | Third party source                                     |\n| `ThirdPartyDisplayName`       | string        | Third party display name                               |\n| `ThirdPartyIconUrl`           | string        | Third party icon URL                                   |\n| `Item`                        | Item          | Item details                                           |\n| `LotNo`                       | string        | Lot number                                             |\n| `SerialNo`                    | string        | Serial number                                          |\n| `IsSerialTracking`            | bool          | Serial tracking flag                                   |\n| `InventoryLocChangeList`      | List<InventoryLocationChange> | List of inventory location changes           |\n| `Memo`                        | string        | Memo                                                   |\n| `OrderDiscountAmount`         | double (nullable)       | Order discount amount (nullable)                       |\n| `RmaItemGroupId`              | int (nullable)          | RMA item group ID (nullable)                           |\n| `RmaItemGroupName`            | string        | RMA item group name                                    |\n| `CustomFieldD1 - CustomFieldD50` | string    | Custom Fields (CustomFieldD1 - CustomFieldD50)        |","operationId":"post_account3pl_createrma","requestBody":{"content":{"application/json":{"schema":{"properties":{"AccountToken":{"type":"string"},"rmaHeader":{"properties":{"ASNCreatedFlag":{"type":"boolean"},"ASNId":{"type":"number"},"ASNNumber":{"type":"string"},"AccntReceivableId":{"type":"string"},"AccntReceivableName":{"type":"string"},"Amount":{"type":"number"},"AmountApplied":{"type":"number"},"AmountRefunded":{"type":"number"},"AmountRemaining":{"type":"number"},"AmountToApply":{"type":"number"},"AuthorizationDetailList":{"type":"array","items":{"type":"object","additionalProperties":true},"nullable":true},"BatchUploadFlag":{"type":"boolean"},"CreateDttm":{"type":"string"},"CreateSource":{"type":"string"},"CreditId":{"type":"number"},"CreditMemoId":{"type":"number"},"CreditMemoNumber":{"type":"string"},"CurrencyCode":{"type":"string"},"CurrencyId":{"type":"number"},"CurrencyName":{"type":"string","nullable":true},"CurrencySymbol":{"type":"string"},"CustomFieldH1":{"type":"string","nullable":true},"CustomFieldH10":{"type":"string","nullable":true},"CustomFieldH11":{"type":"string","nullable":true},"CustomFieldH12":{"type":"string","nullable":true},"CustomFieldH13":{"type":"string","nullable":true},"CustomFieldH14":{"type":"string","nullable":true},"CustomFieldH15":{"type":"string","nullable":true},"CustomFieldH16":{"type":"string","nullable":true},"CustomFieldH17":{"type":"string","nullable":true},"CustomFieldH18":{"type":"string","nullable":true},"CustomFieldH19":{"type":"string","nullable":true},"CustomFieldH2":{"type":"string","nullable":true},"CustomFieldH20":{"type":"string","nullable":true},"CustomFieldH21":{"type":"string","nullable":true},"CustomFieldH22":{"type":"string","nullable":true},"CustomFieldH23":{"type":"string","nullable":true},"CustomFieldH24":{"type":"string","nullable":true},"CustomFieldH25":{"type":"string","nullable":true},"CustomFieldH26":{"type":"string","nullable":true},"CustomFieldH27":{"type":"string","nullable":true},"CustomFieldH28":{"type":"string","nullable":true},"CustomFieldH29":{"type":"string","nullable":true},"CustomFieldH3":{"type":"string","nullable":true},"CustomFieldH30":{"type":"string","nullable":true},"CustomFieldH31":{"type":"string","nullable":true},"CustomFieldH32":{"type":"string","nullable":true},"CustomFieldH33":{"type":"string","nullable":true},"CustomFieldH34":{"type":"string","nullable":true},"CustomFieldH35":{"type":"string","nullable":true},"CustomFieldH36":{"type":"string","nullable":true},"CustomFieldH37":{"type":"string","nullable":true},"CustomFieldH38":{"type":"string","nullable":true},"CustomFieldH39":{"type":"string","nullable":true},"CustomFieldH4":{"type":"string","nullable":true},"CustomFieldH40":{"type":"string","nullable":true},"CustomFieldH41":{"type":"string","nullable":true},"CustomFieldH42":{"type":"string","nullable":true},"CustomFieldH43":{"type":"string","nullable":true},"CustomFieldH44":{"type":"string","nullable":true},"CustomFieldH45":{"type":"string","nullable":true},"CustomFieldH46":{"type":"string","nullable":true},"CustomFieldH47":{"type":"string","nullable":true},"CustomFieldH48":{"type":"string","nullable":true},"CustomFieldH49":{"type":"string","nullable":true},"CustomFieldH5":{"type":"string","nullable":true},"CustomFieldH50":{"type":"string","nullable":true},"CustomFieldH6":{"type":"string","nullable":true},"CustomFieldH7":{"type":"string","nullable":true},"CustomFieldH8":{"type":"string","nullable":true},"CustomFieldH9":{"type":"string","nullable":true},"CustomerCurrencyId":{"type":"string"},"CustomerDefaultARId":{"type":"string"},"CustomerEmailMain":{"type":"string"},"CustomerId":{"type":"number"},"CustomerMainPhone":{"type":"string"},"CustomerName":{"type":"string"},"DiscountAmount":{"type":"number"},"ExchangeRate":{"type":"number"},"ExpenseDiscountAccntId":{"type":"string"},"ExpenseDiscountAccntName":{"type":"string","nullable":true},"ExpenseShippingAccntId":{"type":"string"},"ExpenseShippingAccntName":{"type":"string","nullable":true},"HeaderTypeId":{"type":"number"},"Id":{"type":"number"},"ImportError":{"type":"string","nullable":true},"InvoiceDiscountUsed":{"type":"number"},"InvoiceId":{"type":"number","nullable":true},"InvoiceNumber":{"type":"string"},"InvoiceShipMethodId":{"type":"number","nullable":true},"InvoiceShipMethodName":{"type":"string"},"InvoiceShipTaxCodeId":{"type":"number","nullable":true},"InvoiceShipTaxCodeName":{"type":"string"},"InvoiceShippingTermId":{"type":"number","nullable":true},"InvoiceShippingTermName":{"type":"string"},"InvoiceShippingUsed":{"type":"string","nullable":true},"Memo":{"type":"string"},"ModifyDttm":{"type":"string","nullable":true},"ModifySource":{"type":"string"},"OldTxnDate":{"type":"string"},"OpeningBalanceFlag":{"type":"boolean"},"ProjectClassId":{"type":"number","nullable":true},"ProjectClassName":{"type":"string"},"RMANumber":{"type":"string"},"RefNo":{"type":"string"},"ReportDataObj":{"properties":{"EntityAccntId":{"type":"string"},"EntityName":{"type":"string"},"ReportEntityId":{"type":"number"},"TxnRefId":{"type":"number"},"TxnRefNumber":{"type":"string"},"TxnTypeId":{"type":"number"},"linkedTxnRefId":{"type":"number","nullable":true}},"type":"object"},"ReturnTypeId":{"type":"number"},"SaleStoreId":{"type":"number"},"SaleStoreName":{"type":"string"},"SalesRepFullName":{"type":"string","nullable":true},"SalesRepId":{"type":"string"},"ShipToAddr":{"type":"string"},"ShipToAddr2":{"type":"string"},"ShipToCity":{"type":"string"},"ShipToCompanyName":{"type":"string"},"ShipToCountry":{"type":"string"},"ShipToEmail":{"type":"string"},"ShipToFirstName":{"type":"string"},"ShipToLastName":{"type":"string"},"ShipToPhoneNumber":{"type":"string"},"ShipToState":{"type":"string"},"ShipToZpCode":{"type":"string"},"ShippingAddress":{"properties":{"Addr":{"type":"string"},"Addr2":{"type":"string"},"AddressId":{"type":"number"},"AddressInstructionId":{"type":"number"},"AddressTypeId":{"type":"number"},"AddressTypeName":{"type":"string"},"AddressVerificationError":{"type":"string","nullable":true},"AddressVerificationWarning":{"type":"string","nullable":true},"City":{"type":"string"},"Company":{"type":"string","nullable":true},"CompanyName":{"type":"string"},"Country":{"type":"string"},"CountryCode":{"type":"string","nullable":true},"CustomerId":{"type":"number","nullable":true},"CustomerName":{"type":"string","nullable":true},"DefaultFlag":{"type":"boolean"},"DeleteFlag":{"type":"boolean"},"EditState":{"type":"boolean"},"Email":{"type":"string"},"FirstName":{"type":"string"},"Id":{"type":"number"},"ImportError":{"type":"string","nullable":true},"IntAccountId":{"type":"string"},"IsUpdateDefaultBillToAddr":{"type":"boolean"},"IsUpdateDefaultShipToAddr":{"type":"boolean"},"LastName":{"type":"string"},"Name":{"type":"string"},"Phone":{"type":"string","nullable":true},"PhoneNumber":{"type":"string"},"PostalZipCode":{"type":"string"},"ResidentialFlag":{"type":"boolean"},"ShippingAccountNumber":{"type":"string"},"State":{"type":"string"},"StateCode":{"type":"string","nullable":true}},"type":"object"},"ShippingTaxData":{"properties":{"taxItems":{"items":{},"type":"array"},"totalAmount":{"type":"number"}},"type":"object"},"StatusId":{"type":"number"},"StatusName":{"type":"string"},"StoreCode":{"type":"string","nullable":true},"StoreId":{"type":"number"},"StoreName":{"type":"string"},"SubTotal":{"type":"number"},"SubTotalExclDiscount":{"type":"number"},"SysLockFlag":{"type":"boolean"},"TaxSummaryDataText":{"type":"string","nullable":true},"ThirdPartyAdjSku":{"type":"string","nullable":true},"ThirdPartyAdjustTotalFlag":{"type":"boolean"},"ThirdPartyDisplayName":{"type":"string"},"ThirdPartyIconUrl":{"type":"string"},"ThirdPartyRefNo":{"type":"string"},"ThirdPartySource":{"type":"string"},"ThirdPartyTotalRefundAmount":{"type":"number"},"TotalQty":{"type":"number"},"TxnDate":{"type":"string"},"TxnId":{"type":"string"},"TxnNumber":{"type":"number"},"TypeId":{"type":"number"},"TypeName":{"type":"string"},"UnPostTranFlag":{"type":"boolean"},"ValidUntilDate":{"type":"string"}},"type":"object"},"rmaItemLineArry":{"items":{"properties":{"AllowedSellUOMList":{"type":"boolean","nullable":true},"Amount":{"type":"number"},"AuthorizationDetailList":{"type":"array","items":{"type":"object","additionalProperties":true},"nullable":true},"BaseUomId":{"type":"number"},"CreateDttm":{"type":"string"},"CreateSource":{"type":"string","nullable":true},"CustomFieldD1":{"type":"string"},"CustomFieldD10":{"type":"string"},"CustomFieldD11":{"type":"string"},"CustomFieldD12":{"type":"string"},"CustomFieldD13":{"type":"string"},"CustomFieldD14":{"type":"string"},"CustomFieldD15":{"type":"string"},"CustomFieldD16":{"type":"string"},"CustomFieldD17":{"type":"string"},"CustomFieldD18":{"type":"string"},"CustomFieldD19":{"type":"string"},"CustomFieldD2":{"type":"string"},"CustomFieldD20":{"type":"string"},"CustomFieldD21":{"type":"string"},"CustomFieldD22":{"type":"string"},"CustomFieldD23":{"type":"string"},"CustomFieldD24":{"type":"string"},"CustomFieldD25":{"type":"string"},"CustomFieldD26":{"type":"string"},"CustomFieldD27":{"type":"string"},"CustomFieldD28":{"type":"string"},"CustomFieldD29":{"type":"string"},"CustomFieldD3":{"type":"string"},"CustomFieldD30":{"type":"string"},"CustomFieldD31":{"type":"string"},"CustomFieldD32":{"type":"string"},"CustomFieldD33":{"type":"string"},"CustomFieldD34":{"type":"string"},"CustomFieldD35":{"type":"string"},"CustomFieldD36":{"type":"string"},"CustomFieldD37":{"type":"string"},"CustomFieldD38":{"type":"string"},"CustomFieldD39":{"type":"string"},"CustomFieldD4":{"type":"string"},"CustomFieldD40":{"type":"string"},"CustomFieldD41":{"type":"string"},"CustomFieldD42":{"type":"string"},"CustomFieldD43":{"type":"string"},"CustomFieldD44":{"type":"string"},"CustomFieldD45":{"type":"string"},"CustomFieldD46":{"type":"string"},"CustomFieldD47":{"type":"string"},"CustomFieldD48":{"type":"string"},"CustomFieldD49":{"type":"string"},"CustomFieldD5":{"type":"string"},"CustomFieldD50":{"type":"string"},"CustomFieldD6":{"type":"string"},"CustomFieldD7":{"type":"string"},"CustomFieldD8":{"type":"string"},"CustomFieldD9":{"type":"string"},"DeleteFlag":{"type":"boolean"},"Description":{"type":"string"},"Discount":{"type":"number"},"DiscountTypeId":{"type":"number"},"EditState":{"type":"boolean"},"EffectiveUnitPrice":{"type":"number"},"Id":{"type":"number"},"InventoryLocChangeList":{"type":"array","items":{"type":"object","additionalProperties":true},"nullable":true},"InvoiceLineId":{"type":"number"},"IsReceivableFlag":{"type":"boolean"},"IsTaxableFlag":{"type":"boolean"},"ItemId":{"type":"number"},"ItemNumber":{"type":"string"},"ItemTypeId":{"type":"number"},"ItemTypeName":{"type":"string"},"ItemUpc":{"type":"string","nullable":true},"LineNumber":{"type":"number"},"ModifyDttm":{"type":"string","nullable":true},"ModifySource":{"type":"string","nullable":true},"OldQty":{"type":"number"},"OpenFlag":{"type":"boolean"},"ProjectClassId":{"type":"number","nullable":true},"ProjectClassName":{"type":"string"},"Qty":{"type":"number"},"QtyAvailableToReceive":{"type":"string","nullable":true},"QtyDecimalFlag":{"type":"boolean"},"QtyInReceiving":{"type":"number"},"QtyOpenAsn":{"type":"string","nullable":true},"QtyReceived":{"type":"string","nullable":true},"QtyRemaining":{"type":"number"},"RMAId":{"type":"number"},"Rate":{"type":"number"},"ReturnCodeId":{"type":"number"},"ReturnCodeName":{"type":"string"},"ReturnNotes":{"type":"string"},"RmaNumber":{"type":"number","nullable":true},"StatusId":{"type":"number"},"StatusName":{"type":"string","nullable":true},"StoreId":{"type":"number","nullable":true},"StoreName":{"type":"string","nullable":true},"TaxAmount":{"type":"number"},"TaxCodeId":{"type":"number"},"TaxCodeName":{"type":"string"},"TaxData":{"properties":{"taxItems":{"items":{"properties":{"itemAmount":{"type":"number"},"itemId":{"type":"number"},"itemName":{"type":"string"},"itemRatePerc":{"type":"number"},"lineAmount":{"type":"number"}},"type":"object"},"type":"array"},"totalAmount":{"type":"number"}},"type":"object"},"TaxItems":{"items":{"properties":{"Id":{"type":"number"},"Name":{"type":"string"},"Rate":{"type":"number"},"RateType":{"type":"string"},"TotalAmount":{"type":"number"}},"type":"object"},"type":"array"},"ThirdPartyRefNo":{"type":"string"},"ThirdPartySource":{"type":"string"},"TxnId":{"type":"number","nullable":true},"TxnNumber":{"type":"number"},"UomFactor":{"type":"number"},"UomId":{"type":"number"},"UomName":{"type":"string"},"VASDiscountableFlag":{"type":"boolean"},"VASItemCost":{"type":"number","nullable":true},"VASItemCostTotal":{"type":"number","nullable":true},"VASItemId":{"type":"number","nullable":true},"VASItemName":{"type":"string","nullable":true},"VASTaxableFlag":{"type":"boolean"},"ValidUntilDate":{"type":"string"}},"type":"object"},"type":"array"}},"type":"object"}}}},"summary":"Create RMA"}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.xorosoft.com/developers-api/third-party-logistics-3pl/create-rma.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
