POST
/
orders
/
transfer_funds
{
  "successful_transfers": {
    "count": 1,
    "order_count": 2,
    "order_ids": [
      149483,
      149484
    ],
    "bag_ids": [
      139970,
      139971
    ],
    "transfers": [
      {
        "id": 93645,
        "payment_provider_id": "tr_1QNNs5KUtPkD6xdUHFhGa9HH",
        "payout_account_id": 1025,
        "amount": 360000,
        "currency": "USD",
        "status": "SENT",
        "payment_provider": "STRIPE",
        "related_orders": [
          "149483",
          "149484"
        ],
        "related_bags": [
          "139971",
          "139970"
        ],
        "related_distributions": [
          "89086",
          "89084"
        ],
        "date_created": "2024-11-21T00:03:45+0000",
        "date_last_modified": "2024-11-21T00:03:45+0000",
        "errors": [],
        "payment_service": "STRIPE",
        "external_id": "tr_1QNNs5KUtPkD6xdUHFhGa9HH"
      }
    ]
  },
  "failed_transfers": {
    "count": 0,
    "order_count": 0,
    "order_ids": [],
    "bag_ids": [],
    "transfers": []
  }
}

This endpoint only accepts order_ids in the request body. Passing in any other fields will result in an exception.

Headers

X-Violet-Token
string
X-Violet-App-Secret
string
X-Violet-App-Id
integer

Body

application/json

Request to process pending transfers for a given list of Order or Bag identifiers

application_id
integer

Identifier of the app that this request is being made for.

developer_id
integer

Identifier of the channel making this request.

order_ids
integer[]

List of Violet Order identifiers for which to process pending transfers.

bag_ids
integer[]

List of Violet Bag identifiers for which to process pending transfers.

Response

200 - application/json

Summary of process transfers request, split by successful and failed transfers.

successful_transfers
object

Summary of job to process transfers for a list of given order or bag identifiers.

failed_transfers
object

Summary of job to process transfers for a list of given order or bag identifiers.