POST
/
orders
/
bags
/
transfer_funds
curl --request POST \
  --url https://sandbox-api.violet.io/v1/orders/bags/transfer_funds \
  --header 'Content-Type: application/json' \
  --data '{
  "bag_ids": [
    139973,
    139974
  ]
}'
{
  "successful_transfers": {
    "count": 1,
    "bag_ids": [
      139974,
      139973
    ],
    "transfers": [
      {
        "id": 93647,
        "payment_provider_id": "tr_1QNNtlKUtPkD6xdU9uFqXVa0",
        "payout_account_id": 1025,
        "amount": 360000,
        "currency": "USD",
        "status": "SENT",
        "payment_provider": "STRIPE",
        "related_orders": [
          "149486",
          "149487"
        ],
        "related_bags": [
          "139973",
          "139974"
        ],
        "related_distributions": [
          "89092",
          "89090"
        ],
        "date_created": "2024-11-21T00:05:29+0000",
        "date_last_modified": "2024-11-21T00:05:29+0000",
        "errors": [],
        "payment_service": "STRIPE",
        "external_id": "tr_1QNNtlKUtPkD6xdU9uFqXVa0"
      }
    ]
  },
  "failed_transfers": {
    "count": 0,
    "bag_ids": [],
    "transfers": []
  }
}

This endpoint only accepts bag_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
Process Transfers for multiple Bags

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.