Skip to main content
POST
/
api
/
vendor
/
payroll
/
quotes
Create vendor payroll quotes
curl --request POST \
  --url https://api.sandbox.bitwage.com/api/vendor/payroll/quotes \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --header 'Idempotency-Key: <idempotency-key>' \
  --data '
{
  "company_id": "<string>",
  "funding_currency": "USD",
  "funding_method": "custodial_account_123",
  "vendor_payment_quotes": [
    {
      "vendor_id": "<string>",
      "distribution_id": "<string>",
      "receiving_amount": 123,
      "receiving_currency": "<string>"
    }
  ]
}
'
{
  "company_quotes": [
    {
      "id": "<string>",
      "vendor_id": "<string>",
      "distribution_id": "<string>",
      "base_currency": "<string>",
      "quote_currency": "<string>",
      "sell_rate": 123,
      "buy_rate": 123,
      "valid_from": "2023-11-07T05:31:56Z",
      "valid_to": "2023-11-07T05:31:56Z",
      "base_amount": 123,
      "quote_amount": 123,
      "base_amount_subtotal": 123,
      "total_fees_in_base_currency": 123,
      "percent_fee": 123,
      "processing_fees_in_base_currency": 123,
      "flat_fees_in_base_currency": 123
    }
  ],
  "vendor_quotes": [
    {
      "id": "<string>",
      "vendor_id": "<string>",
      "distribution_id": "<string>",
      "base_currency": "<string>",
      "quote_currency": "<string>",
      "sell_rate": 123,
      "buy_rate": 123,
      "valid_from": "2023-11-07T05:31:56Z",
      "valid_to": "2023-11-07T05:31:56Z",
      "base_amount": 123,
      "quote_amount": 123,
      "base_amount_subtotal": 123,
      "total_fees_in_base_currency": 123,
      "percent_fee": 123,
      "processing_fees_in_base_currency": 123,
      "flat_fees_in_base_currency": 123
    }
  ],
  "fees": {
    "all_fees_in_input_currency": 123,
    "subtotal_in_input_currency": 123,
    "total_amount_in_input_currency": 123
  }
}

Documentation Index

Fetch the complete documentation index at: https://developer.bitwage.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API key authentication. Include your access token as: Authorization: Basic <ACCESS_TOKEN>

Headers

Idempotency-Key
string
required

Unique key for idempotent write requests.

Body

application/json
company_id
string
required

Company ID that the vendor payroll quotes are being created for.

funding_currency
string
required

Currency of the wallet used for funding.

Example:

"USD"

funding_method
string
required

Concrete wallet funding method ID.

Example:

"custodial_account_123"

vendor_payment_quotes
object[]
required
Minimum array length: 1

Response

200 - application/json

Vendor payroll quotes created.

company_quotes
object[]
vendor_quotes
object[]
fees
object