Pular para o conteúdo

Add RPO Schema

Requisição

Adds a schema to a receiver address.

Segurança
Bearer
Corpoapplication/jsonobrigatório
sender_addressstring, <= 64 characters

RippleNet sender address.

Exemplo:"test.ros.com"
receiver_addressstring, <= 64 charactersobrigatório

RippleNet receiver address.

Exemplo:"test.ros.com"
schema_namestring, <= 64 charactersobrigatório

customer schema name.

Exemplo:"schema1"
schemaobjectobrigatório

RPO schema.

schema_descriptionstring, <= 256 characters

RPO schema description.

receiver_currencystring, = 3 characters^[a-zA-Z0-9_]*$obrigatório

Receiver currency code for schema.

payment_methodstring, [ 2 .. 32 ] characters^[a-zA-Z0-9@_,:\s-]*$

Payment method for schema.

curl -i -X POST \
  https://docs.ripple.com/_mock/pt-br/products/payments-odl/api-docs/ripplenet/ripplenet/v4/orchestration/config/schema \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'Content-Type: application/json' \
  -d '{
    "sender_address": "test.ros.com",
    "receiver_address": "test.ros.com",
    "schema_name": "schema1",
    "schema": {},
    "schema_description": "string",
    "receiver_currency": "str",
    "payment_method": "string"
  }'

Respostas

Successfully created RPO schema.

Corpoapplication/json
schema_idstring, (uuid)obrigatório

Unique Identifier of an RPO schema.

Exemplo:"5492648d-2132-4e70-9ded-2fc86f22b321"
sender_addressstring, <= 64 charactersobrigatório

RippleNet sender address.

Exemplo:"test.ros.com"
receiver_addressstringobrigatório

RippleNet receiver address.

Exemplo:"test.ros.com"
schema_namestringobrigatório

customer schema name.

Exemplo:"schema1"
schema_descriptionstringobrigatório

RPO schema description.

receiver_currencystringobrigatório

receiver currency code for schema.

payment_methodstringobrigatório

payment method for schema.

created_atstring, (date-time)obrigatório

Date and time at which the RPO was created, as an ISO-8601 timestamp in UTC.

Exemplo:"2018-04-06T20:33:35Z"
schemaobjectobrigatório

RPO schema.

Resposta
{ "schema_id": "5492648d-2132-4e70-9ded-2fc86f22b321", "sender_address": "test.ros.com", "receiver_address": "test.ros.com", "schema_name": "schema1", "schema_description": "string", "receiver_currency": "string", "payment_method": "string", "created_at": "2018-04-06T20:33:35Z", "schema": {} }