All URIs are relative to https://api.paxos.com/v2
Method | HTTP request | Description |
---|---|---|
CreateSandboxDeposit | Post /sandbox/profiles/{profile_id}/deposit | Create Sandbox Deposit |
CreateSandboxDepositResponse CreateSandboxDeposit(ctx, profileId).CreateSandboxDepositRequest(createSandboxDepositRequest).Execute()
Create Sandbox Deposit
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/avianlabs/paxos-go"
)
func main() {
profileId := "profileId_example" // string | The ID of the profile that will credited with the assets.
createSandboxDepositRequest := *openapiclient.NewCreateSandboxDepositRequest(openapiclient.Asset("USD"), "Amount_example") // CreateSandboxDepositRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.SandboxDepositsAPI.CreateSandboxDeposit(context.Background(), profileId).CreateSandboxDepositRequest(createSandboxDepositRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SandboxDepositsAPI.CreateSandboxDeposit``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateSandboxDeposit`: CreateSandboxDepositResponse
fmt.Fprintf(os.Stdout, "Response from `SandboxDepositsAPI.CreateSandboxDeposit`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
profileId | string | The ID of the profile that will credited with the assets. |
Other parameters are passed through a pointer to a apiCreateSandboxDepositRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
createSandboxDepositRequest | CreateSandboxDepositRequest | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]