Pular para o conteúdo

Return orchestration payment

Requisição

Returns the orchestration payment with customer end-to-end ID.

Segurança
Bearer
Corpoapplication/jsonobrigatório
sender_end_to_end_idstring, [ 1 .. 64 ] characters^[a-zA-Z0-9@_,:\s-]*$obrigatório

Unique ID that the sender can specify.

original_payment_idstring, [ 1 .. 64 ] characters^[a-zA-Z0-9@_,:\s-]*$obrigatório

Unique ID of the payment that should be returned.

return_reasonsobject

Provide one or more arbitrary key/value pairs.

return_amount_typestring

Amount type of the return payment.

Padrão:"TOTAL_RECEIVED"
Enum ValueDescription
TOTAL_RECEIVED

Indicates that the sender of the return payment will send the amount they received

TOTAL_RECEIVED_MINUS_FEES

Indicates that the sender of the return payment will send the amount they received minus the receiving fees

custom_feenumber

Custom fee charged and collected by the sending account.

Setting this field overrides all applicable fees configured on the sender's RippleNet instance.

custom_rateobject

Custom rate that the return payment quotes must use.

force_path_finding_and_liquidity_path_findingboolean

When true, this flag tells RippleNet to ignore cached value for path finding and liquidity path finding.

Forces performing new path finding and liquidity path finding.

Padrão:false
Exemplo:false
user_infoobject

Provide one or more arbitrary key/value pairs.

curl -i -X POST \
  https://docs.ripple.com/_mock/pt-br/products/payments-odl/api-docs/ripplenet/reference/openapi/v4/orchestration/payment/return \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'Content-Type: application/json' \
  -d '{
    "sender_end_to_end_id": "string",
    "original_payment_id": "string",
    "return_reasons": {},
    "return_amount_type": "TOTAL_RECEIVED",
    "custom_fee": 0,
    "custom_rate": {
      "rate": 0,
      "base_currency": "str",
      "counter_currency": "str",
      "rate_type": "string"
    },
    "force_path_finding_and_liquidity_path_finding": false,
    "user_info": {}
  }'

Respostas

Successfully returned orchestration payment.

Corpoapplication/json
sender_end_to_end_idstring

Sender end-to-end ID.

Exemplo:"00310000015"
Resposta
{ "sender_end_to_end_id": "00310000015" }