Gyvar docs

Change a payout's network

Gives a payout paid by deposit a new `pay_to` on another chain, for a payer who picked the wrong one. Only before any money arrives and before `expires_at`. The old address still counts: money sent to it pays this payout. A payout can have up to 5 addresses. Needs the `money` capability.

POST
/payouts/{id}/network

Authorization

KeyID Timestamp Nonce Signature
X-Gyvar-Key<token>

Your key id, gyv_k_live_... or gyv_k_sandbox_....

In: header

X-Gyvar-Timestamp<token>

Unix seconds. Must be within 5 minutes of our clock.

In: header

X-Gyvar-Nonce<token>

A unique value per request. Replays are rejected.

In: header

X-Gyvar-Signature<token>

Ed25519 signature over the canonical string. See the Signing guide.

In: header

Path Parameters

id*string
Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

chain*string

One of the payout's funding.networks.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/payouts/497f6eca-6276-4993-bfeb-53cbbbba6f08/network" \  -H "Content-Type: application/json" \  -d '{    "chain": "string"  }'
{  "data": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "reference": "string",    "status": "awaiting_funds",    "status_reason": "string",    "funding": {      "method": "deposit",      "chain": "string",      "pay_to": "string",      "expires_at": "2019-08-24T14:15:22Z",      "networks": [        "string"      ]    },    "currency": "string",    "amount": "string",    "amount_minor": "string",    "received_amount": "string",    "received_amount_minor": "string",    "settlement_currency": "string",    "settlement_amount": "string",    "settlement_amount_minor": "string",    "min_settlement_amount": "string",    "min_settlement_amount_minor": "string",    "transaction": {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "reference": "string"    },    "created_at": "2019-08-24T14:15:22Z"  }}