Skip to content

Latest commit

 

History

History
81 lines (51 loc) · 2.52 KB

SandboxDepositsAPI.md

File metadata and controls

81 lines (51 loc) · 2.52 KB

\SandboxDepositsAPI

All URIs are relative to https://api.paxos.com/v2

Method HTTP request Description
CreateSandboxDeposit Post /sandbox/profiles/{profile_id}/deposit Create Sandbox Deposit

CreateSandboxDeposit

CreateSandboxDepositResponse CreateSandboxDeposit(ctx, profileId).CreateSandboxDepositRequest(createSandboxDepositRequest).Execute()

Create Sandbox Deposit

Example

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)
}

Path Parameters

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

Other parameters are passed through a pointer to a apiCreateSandboxDepositRequest struct via the builder pattern

Name Type Description Notes

createSandboxDepositRequest | CreateSandboxDepositRequest | |

Return type

CreateSandboxDepositResponse

Authorization

OAuth2

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]