{ "data" : [ { "id" : "1" , // The work order request ID. "type" : "work_order_requests" , "attributes" : { "payer_id" : 1 , // The status will change as your order progresses // received: We received your request and are doing sanity checks on it. // waiting_for_inputs: We're contacting you to give you instructions to fund your inputs. // sending_to_outputs: We're in the process of issuing all payments to payees. // done: This Work Order Request has been completed, nothing else to do here. // cancelled: Orders can be cancelled, usually before you fund your inputs. "status" : "received" , // Our pricing fluctuates slightly throughout the day. Input and output amounts // may change between the time que request funding for your inputs and the time // those funds credit and we can move forward issuing the payouts. // We can call you once all your inputs are funded so you can decide to move // forward, or wait until the price changes in your favor. "should_confirm_quote" : false , // Any input excess will be returned to your Bitex.la balance as Bitcoin. // We can configure your Bitex account so that these bitcoin are converted // to USD upon arrival just contact us to make that change. "bitcoin_rebate" : 0 , // Last time your request saw any updates. "updated_at" : "2000-01-01T00:00:00.000Z" }, // As per the JSON API specification, relatioships are defined as references // When parsing, you may want to look at "included" for each input and output. "relationships" : { "inputs" : { "data" : [{ "id" : "1" , "type" : "work_order_request_inputs" }] }, "bitcoin_inputs" : { "data" : [{ "id" : "1" , "type" : "work_order_request_bitcoin_inputs" }] }, "outputs" : { "data" : [ { "id" : "1" , "type" : "work_order_request_outputs" }, { "id" : "2" , "type" : "work_order_request_outputs" } ] } } } ], "included" : [ // Your work order request input will look like this. { "id" : "1" , "type" : "work_order_request_inputs" , "attributes" : { // The amount and currency you have. Currency will usually be associated with country. "currency" : "ARS" , "amount" : 1000.0 , "country" : "AR" , // Instructions on how to fund this input will be available when // the request moves to the waiting_for_inputs state. "instructions" : { "method" : "bank_transfer" , "comments" : null }, // Cash_in fees are taken by your bank and our partner's bank. // These fees are percentual and/or fixed, and start out as null. "cash_in_fee_percent" : null , "cash_in_fee_fixed" : null , // The amount received by our partner with all fees deducted. // This amount may be expressed in a different currency than what // you sent as it may get converted during Cash In. "fiat_received_by_partner" : null , // We use bitcoin as our underlying asset, differences in bitcoin // prices on the inputs vs the outputs could be considered as the // cost of the international clearing network. "broker_bitcoin_price" : null , "bitcoins_produced" : null , // The fee taken by the concierge partner when sending your money // to the bitcoin clearing network. "partner_fee_percent" : null , // The fee taken by the concierge service itself. "concierge_fee_percent" : null , "tax_invoice_number" : null } "relationships" => { "user" =>{ "data" =>{ "id" =>1, "type" => "users" } } } } , { "id" : "1" , "type" : "work_order_request_bitcoin_inputs" , "attributes" : { // The bitcoin amount you'll need to fund your input with. "amount" : null , // Instructions will primarily contain the address to which the bitcoins // should be sent. "instructions" : { "method" : "bitcoin" , "address" : "1..." , "comments" : "This is a bitcoin address provided to you by Bitex.la" }, // The bitcoin amount received and confirmed so far. "bitcoins_credited" : 0.0 , // The fee taken by the concierge service itself. "concierge_fee_percent" : 1.0 }, "relationships" => { "user" =>{ "data" =>{ "id" =>1, "type" => "users" }}} } , // Your work order request output will look like this. { "id" : "1" , "type" : "work_order_request_outputs" , "attributes" : { // The net amount the payee should receive in their bank account after fees. "amount" : 100.0 , // Currency will usually match that of the country where the bank account is, // although some countries offer local currency and USD bank accounts. "country" : "US" , "currency" : "USD" , "user_id" : 5 , "withdrawal_instruction_id" : 1 , // The fee taken by the concierge service itself. "concierge_fee_percent" : null , // We use bitcoin as our underlying asset, differences in bitcoin // prices on the inputs vs the outputs could be considered as the // cost of the international clearing network. "broker_bitcoin_price" : null , // The fee taken by the concierge network partner when receiving // money from the bitcoin clearing network. "partner_fee_percent" : null , // The final amount in local currency sent by our partner. It may be // expressed in a different currency than the final currency received // by the payee. "fiat_sent_by_partner" : null , // Cash_out fees are taken by the payee's bank and our partner's bank. // These fees are percentual and/or fixed, and start out as null. "cash_out_fee_percent" : null , "cash_out_fee_fixed" : null , "tax_invoice_number" : null , // Eligible outputs also feature a 'friendly_pricing_summary', // when available, it shows how much of the input amount // was spent on this output, what was the exchange rate and // how much was paid in fees, expressed in the output currency. // Notice: The friendly pricing summary is less precise than // the per-input and per-output breakdown, which remains always available. "friendly_pricing_summary" : { "amount_received" : 960.12 , "amount_sent" : 10182.13 , "currency_received" : "usd" , "currency_sent" : "ars" , "exchange_rate" : 0.1 , "fee" : 58.08 } }, "relationships" => { "user" =>{ "data" =>{ "id" =>5, "type" => "users" }}} } , { "id" : "2" , "type" : "work_order_request_outputs" , "attributes" : { "amount" : 400.0 , "country" : "MX" , "currency" : "MXN" , "user_id" : 5 , "withdrawal_instruction_id" : 1 , "concierge_fee_percent" : null , "broker_bitcoin_price" : null , "partner_fee_percent" : null , "fiat_sent_by_partner" : null , "cash_out_fee_percent" : null , "cash_out_fee_fixed" : null , "tax_invoice_number" : null , "friendly_pricing_summary" : null , } , "relationships" => { "user" =>{ "data" =>{ "id" =>5, "type" => "users" }}} } , { "id" : 1 , "type" : "users" , "attributes" : { "email" : "the_payer_email@example.com" , "kyc_profile_id" : 101 , "name" : "John Doe" } }, { "id" : 5 , "type" : "users" , "attributes" : { "email" : "a_payee@example.com" , "kyc_profile_id" : 105 , "name" : "Susan Doe" } } ] }