Skip to content

Go SDK

package main
import (
"bytes"
"encoding/json"
"fmt"
"net/http"
)
func main() {
body, _ := json.Marshal(map[string]any{
"amount_ars": 5000,
"destination": "0000003100010000123456",
"destination_kind": "CBU",
})
req, _ := http.NewRequest("POST", "https://sandbox-api.nuez.app/v1/withdraws", bytes.NewReader(body))
req.Header.Set("Authorization", "Bearer "+jwt) // from POST /v1/auth/token
req.Header.Set("Idempotency-Key", "inv-2026-04-001")
req.Header.Set("Content-Type", "application/json")
resp, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
var result map[string]any
json.NewDecoder(resp.Body).Decode(&result)
fmt.Println(result["id"], result["status"])
}

See Authentication for how to get jwt from your API key first.